| | |
| | | <template> |
| | | <VolBox :width="500" :height="270" v-model="modifyOptions.model" title="ä¿®æ¹å¯ç "> |
| | | <div style="padding:10px;20px;"> |
| | | <div style="padding:20px;"> |
| | | <VolForm ref="pwd" :formRules="modifyOptions.data" :formFields="modifyOptions.fields"></VolForm> |
| | | </div> |
| | | <template #footer> |
| | |
| | | <span>æ³¨åæ¥æï¼{{ userInfo.createDate }}</span> |
| | | </p> |
| | | <p> |
| | | <el-button type="error" @click="modifyPwd" size="small" long>ä¿®æ¹å¯ç </el-button> |
| | | <el-button type="error" @click="modifyPwd" size="small" icon="md-lock" long>ä¿®æ¹å¯ç </el-button> |
| | | <!-- <el-button |
| | | style="padding: 3px 16px" |
| | | @click="modifyImg" |
| | |
| | | <div class="right"> |
| | | <vol-form ref="form" :load-key="true" :width="500" :formRules="editFormOptions" :formFields="editFormFields"> |
| | | <div class="footer"> |
| | | <el-button |
| | | <!-- <el-button |
| | | style="margin-top: 2px" |
| | | type="primary" |
| | | size="small" |
| | | icon="md-checkmark-circle" |
| | | long |
| | | @click="modifyInfo" |
| | | >ä¿å</el-button |
| | | > |
| | | > --> |
| | | </div> |
| | | </vol-form> |
| | | </div> |
| | |
| | | return this.$message.error("两次å¯ç ä¸ä¸è´"); |
| | | } |
| | | let url = |
| | | "/api/Sys_user/modifyPwd?oldPwd=" + |
| | | "/api/User/modifyPwd?oldPwd=" + |
| | | this.modifyOptions.fields.oldPwd + |
| | | "&newPwd=" + |
| | | this.modifyOptions.fields.newPwd; |
| | |
| | | }); |
| | | }, |
| | | modifyInfo() { |
| | | // this.$message.info("ä¿®æ¹ä¸ªäººä¿¡æ¯"); |
| | | let url = |
| | | "/api/Sys_user/UpdateInfo?roleName=" + |
| | | this.editFormFields.roleName + |
| | | "&userName=" + |
| | | this.editFormFields.userName + |
| | | "&userTrueName=" + |
| | | this.editFormFields.userTrueName + |
| | | "&address=" + |
| | | this.editFormFields.address + |
| | | "&gender=" + |
| | | this.editFormFields.gender + |
| | | "&remark=" + |
| | | this.editFormFields.remark + |
| | | this.http.post(url, {}, true).then((x) => { |
| | | if (!x.status) { |
| | | return this.$message.error(x.message); |
| | | } |
| | | // this.modifyOptions.model = false; |
| | | // this.$Message.success(x.message); |
| | | // this.$refs.pwd.reset(); |
| | | }); |
| | | console.log(this.editFormFields.roleName) |
| | | this.$message.info("ä¿®æ¹ä¸ªäººä¿¡æ¯"); |
| | | }, |
| | | }, |
| | | created() { |
| | | this.http.post("/api/Sys_user/getCurrentUserInfo", {}, true).then((x) => { |
| | | this.http.post("/api/User/getCurrentUserInfo", {}, true).then((x) => { |
| | | if (!x.status) { |
| | | return this.$message(x.message); |
| | | } |
| | |
| | | errorImg: 'this.src="' + require("@/assets/imgs/error-img.png") + '"', |
| | | modifyOptions: { |
| | | model: false, |
| | | fields: { oldPwd: "", newPwd: "", newPwd1: ""}, |
| | | fields: { oldPwd: "", newPwd: "", newPwd1: "" }, |
| | | data: [ |
| | | [ |
| | | { |
| | |
| | | required: true, |
| | | title: "æ§å¯ç ", |
| | | field: "oldPwd", |
| | | |
| | | }, |
| | | ], |
| | | [ |
| | |
| | | phoneNo: "", |
| | | }, |
| | | editFormFields: { |
| | | user_Id:"", |
| | | roleName: "", |
| | | userName: "", |
| | | userTrueName: "", |
| | |
| | | remark: "", |
| | | }, |
| | | editFormOptions: [ |
| | | [ |
| | | { |
| | | columnType: "int", |
| | | title: "ID", |
| | | field: "user_Id", |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | columnType: "string", |
| | | title: "ç¨æ·å", |
| | | field: "userName", |
| | | disabled: true, |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | columnType: "string", |
| | | dataKey: "tree_roles", |
| | | title: "è§è²", |
| | | field: "roleName", |
| | | type: "text", |
| | | field: "role_Id", |
| | | disabled: true, |
| | | data: [], |
| | | type: "select", |
| | | }, |
| | | ], |
| | | // [ |
| | | // { |
| | | // columnType: "string", |
| | | // title: "è§è²", |
| | | // field: "roleName", |
| | | // disabled: true, |
| | | // type: "text", |
| | | // }, |
| | | // ], |
| | | [ |
| | | { |
| | | columnType: "string", |
| | | title: "çå®å§å", |
| | | field: "userTrueName", |
| | | required: true, |
| | | disabled: true, |
| | | type: "text", |
| | | }, |
| | | ], |
| | |
| | | columnType: "string", |
| | | title: "å°å", |
| | | field: "address", |
| | | disabled: true, |
| | | type: "text", |
| | | }, |
| | | ], |
| | |
| | | dataKey: "gender", |
| | | title: "æ§å«", |
| | | field: "gender", |
| | | disabled: true, |
| | | data: [], |
| | | type: "select", |
| | | }, |
| | |
| | | columnType: "string", |
| | | title: "夿³¨", |
| | | field: "remark", |
| | | disabled: true, |
| | | colSize: 12, |
| | | type: "textarea", |
| | | }, |