From 3e778155459a2d5a2f0214f57ff83c3760ed8381 Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期一, 10 二月 2025 14:36:43 +0800 Subject: [PATCH] 添加WMSapi接口调用接口日志记录、添加WMSswagger访问接口账号密码、添加WMS到期时间6-30 --- 项目代码/WMS/WIDESEA_WMSClient/src/extension/system/Sys_User/Sys_UserGridHeader.vue | 41 +++++++++++++++++++---------------------- 1 files changed, 19 insertions(+), 22 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/system/Sys_User/Sys_UserGridHeader.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/system/Sys_User/Sys_UserGridHeader.vue" index 5d1083d..ba29dff 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/system/Sys_User/Sys_UserGridHeader.vue" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/system/Sys_User/Sys_UserGridHeader.vue" @@ -9,14 +9,15 @@ > <el-alert type="success"> <h3> - <span>甯愬彿锛歿{ row.UserName }}</span> - <span>鐢ㄦ埛锛歿{ row.UserTrueName }}</span> + <span>甯愬彿锛歿{ row.userName }}</span> + <span>鐢ㄦ埛锛歿{ row.userTrueName }}</span> </h3> </el-alert> <div> <el-input placeholder="璇疯緭鍏ユ棫瀵嗙爜" - v-model="oldPwd" + v-model="password" + type="password" size="large" style="width: 100%; margin-top: 15px" /> @@ -25,20 +26,14 @@ <el-input placeholder="璇疯緭鍏ユ柊瀵嗙爜" v-model="newPwd" + type="password" size="large" style="width: 100%; margin-top: 15px" /> </div> <template #footer> - <el-button - type="primary" - @click="savePwd()" - >淇敼瀵嗙爜</el-button - > - <el-button - @click="model = false" - >鍏抽棴</el-button - > + <el-button type="primary" @click="savePwd()">淇敼瀵嗙爜</el-button> + <el-button @click="model = false">鍏抽棴</el-button> </template> </vol-box> </div> @@ -47,33 +42,35 @@ import { defineComponent, defineAsyncComponent } from "vue"; export default defineComponent({ components: { - VolBox: defineAsyncComponent(() => import("@/components/basic/VolBox.vue")) + VolBox: defineAsyncComponent(() => import("@/components/basic/VolBox.vue")), }, data() { return { row: {}, + password: "", newPwd: "", - oldPwd:"", model: false, }; }, methods: { open(row) { + this.password = ""; this.newPwd = ""; - this.oldPwd = ""; this.row = row; this.model = true; }, savePwd() { - console.log(this.newPwd,this.oldPwd); - if (!this.newPwd&&!this.oldPwd) return this.$Message.error("璇疯緭瀵嗙爜"); - if (this.newPwd.length < 6&&this.oldPwd.length<6) + if (!this.password || !this.newPwd) + return this.$Message.error("璇疯緭鍏ュ瘑鐮�"); + if (this.password.length < 6 || this.newPwd.length < 6) return this.$Message.error("瀵嗙爜闀垮害鑷冲皯6浣�"); let url = - "/api/Sys_user/modifyPwd?oldPwd=" + - this.oldPwd + + "/api/user/ModifyPwd?oldPwd=" + + this.password + "&newPwd=" + - this.newPwd; + this.newPwd + + "&userName=" + + this.row.userName; this.http.post(url, {}, true).then((x) => { if (!x.status) { return this.$message.error(x.message); @@ -84,7 +81,7 @@ }, }, created() {}, -}) +}); </script> <style lang="less" scoped> h3 { -- Gitblit v1.9.3