diff --git a/src/views/modules/base/resi.vue b/src/views/modules/base/resi.vue index 763a14985..2130fb430 100644 --- a/src/views/modules/base/resi.vue +++ b/src/views/modules/base/resi.vue @@ -968,16 +968,36 @@ export default { } ); }, - handelCLickShowCheckPassword(row) { - this.editUserId = row.resiId; - this.showCheckPassword = true; + async handelCLickShowCheckPassword(row) { + const url = `/actual/base/residentCategoryUpdateInfo/isUpdater/${row.resiId}`; + const { data, code, msg } = await requestPost(url); + if(code==0){ + if(data==true){ + this.editUserId = row.resiId; + this.saveCheckPassword() + } + else{ + this.editUserId = row.resiId; + this.showCheckPassword = true; + } + } + else{ + this.$message.error(msg); + } }, handelClickCheckPassword() { - this.$refs.checkPasswordFrom.validate(async (vali) => { + this.$refs.checkPasswordFrom.validate((vali) => { if (vali) { - const url = `/actual/base/residentBaseInfo/getResiUserInfo/${this.editUserId}`; + this.saveCheckPassword(this.checkPasswordFrom.password); + } else { + return false; + } + }); + }, + async saveCheckPassword(password){ + const url = `/actual/base/residentBaseInfo/getResiUserInfo/${this.editUserId}`; let parm = { - password: this.checkPasswordFrom.password, + password, }; const { data, code, msg } = await requestPost(url, parm); if (code === 0) { @@ -991,12 +1011,7 @@ export default { } else { this.$message.error(msg); } - } else { - return false; - } - }); }, - handleAdd() { this.$router.push({ name: "add-resi" }); }, @@ -1177,7 +1192,7 @@ export default { watch: { $route: { handler: function (newVal, oldVal) { - if (newVal.name == "base-resi") { + if (newVal.name == "base-resi" && oldVal.name!='edit-resi') { this.$nextTick(() => { this.$refs.myResiSearch.form.attentionCrowds = []; this.$refs.myResiSearch.form.healthStatus = []; diff --git a/src/views/modules/portrayal/jumin/index.vue b/src/views/modules/portrayal/jumin/index.vue index 03da1e86c..d373b1a77 100644 --- a/src/views/modules/portrayal/jumin/index.vue +++ b/src/views/modules/portrayal/jumin/index.vue @@ -21,7 +21,6 @@