From 694ef1c706e0434afa1062539e45786edd13a289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Tue, 23 Jul 2024 16:20:02 +0800 Subject: [PATCH] =?UTF-8?q?=20=E7=A4=BE=E5=8C=BA=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/shequ/chaxun.vue | 111 +++++++++++++++++++++++++++-- 1 file changed, 107 insertions(+), 4 deletions(-) diff --git a/src/views/modules/shequ/chaxun.vue b/src/views/modules/shequ/chaxun.vue index 529dd5031..11561c52a 100644 --- a/src/views/modules/shequ/chaxun.vue +++ b/src/views/modules/shequ/chaxun.vue @@ -135,7 +135,7 @@ - + @@ -241,7 +251,18 @@ - + + + + + + + + { + console.log("row2", row); + if (res.code !== 0) { + return this.$message.error(res.msg); + } else { + console.log("row3", row); + this.$message.success("删除成功"); + this.handleClickSearchBtn(); + } + }) + .catch((err) => { + console.log("row4", err); + return this.$message.error("网络错误"); + }); + }, + + handelClickCheckPassword() { + this.$refs.checkPasswordFrom.validate((vali) => { + if (vali) { + this.saveCheckPassword(this.checkPasswordFrom.password); + } else { + return false; + } + }); + }, + async saveCheckPassword(password){ + const url = `/actual/base/residentBaseInfo/getResiUserInfo/${this.editUserId}`; + let parm = { + password, + }; + const { data, code, msg } = await requestPost(url, parm); + if (code === 0) { + this.showCheckPassword = false; + this.$router.push({ + name: "edit-resi", + query: { id: this.editUserId }, + params: { idNum: data.idNum, mobile: data.mobile, name: data.name, nationality: data.nationality }, + }); + this.checkPasswordFrom.password = ""; + } else { + this.$message.error(msg); + } + }, async handleExport() { this.btnLoading = true; const url = this.searchData.type === 'fangwu'?"/actual/base/communityHouse/houseSearchExport":'/actual/base/residentBaseInfo/residentSearchExport'; @@ -593,6 +677,25 @@ export default { return item; }); }, + async handelCLickShowCheckPassword(row) { + console.log(row); + console.log(row.resiId); + 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); + } + }, handleSizeChangeSearchFangwu(val) { console.log(`每页 ${val} 条`);