|
|
@ -240,7 +240,7 @@ |
|
|
|
|
|
|
|
<template v-if="filterEdit(scope.row.agencyId)"> |
|
|
|
<el-button v-if="btnAuths.ic_resi_update" style="margin-right: 10px" |
|
|
|
@click="handleEdit(scope.row)" size="small" type="text">编辑</el-button> |
|
|
|
@click="handelCLickShowCheckPassword(scope.row)" size="small" type="text">编辑</el-button> |
|
|
|
|
|
|
|
<el-popconfirm v-if="btnAuths.ic_resi_del" title="删除之后无法回复,确认删除?" |
|
|
|
@onConfirm="handleDel(scope.row)"> |
|
|
@ -292,19 +292,6 @@ |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog title="居民详情" :visible.sync="dialogVisible2" width="986px" top="5vh" append-to-body class="dialog-h" |
|
|
|
:close-on-click-modal="false" :before-close="() => { |
|
|
|
this.dialogVisible2 = false; |
|
|
|
} |
|
|
|
"> |
|
|
|
<div class="dialog-h-content scroll-h"> |
|
|
|
<resi-info v-if="dialogVisible2" ref="resiInfo" :fixed="true" :resi-id="lookResiId" /> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="resi-btns"> |
|
|
|
<el-button size="small" class="diy-button--white" plain @click="dialogVisible2 = false">关闭</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 变更记录 --> |
|
|
|
<el-dialog :visible.sync="changeRecordShow" :close-on-click-modal="false" :close-on-press-escape="false" |
|
|
@ -331,6 +318,19 @@ |
|
|
|
width="620px" top="5vh" class="dialog-h" @closed="diaClose"> |
|
|
|
<resideath-add ref="ref_death" @dialogCancle="deathClose"></resideath-add> |
|
|
|
</el-dialog> |
|
|
|
<!-- 密码验证 --> |
|
|
|
<el-dialog title="密码验证" :visible.sync="showCheckPassword"> |
|
|
|
<el-form :model="checkPasswordFrom" :rules="checkPasswordRulse" ref="checkPasswordFrom"> |
|
|
|
<el-form-item label="密码" prop="password"> |
|
|
|
<el-input v-model.trim="checkPasswordFrom.password" autocomplete="off" type="password" placeholder="请输入当前账号密码" |
|
|
|
@keydown.native.enter="handelClickCheckPassword"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="showCheckPassword = false">取 消</el-button> |
|
|
|
<el-button type="primary" @click="handelClickCheckPassword">确 定</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -380,8 +380,7 @@ export default { |
|
|
|
dialogEditVisible: false, |
|
|
|
dialogVisible: false, |
|
|
|
formType: 'add', |
|
|
|
// 显示人员详情 |
|
|
|
dialogVisible2: false, |
|
|
|
|
|
|
|
lookResiId: "", |
|
|
|
|
|
|
|
uploadUlr: |
|
|
@ -441,6 +440,11 @@ export default { |
|
|
|
|
|
|
|
category: this.$route.query.category, |
|
|
|
searchForm: {}, |
|
|
|
|
|
|
|
showCheckPassword:false, |
|
|
|
checkPasswordFrom: { |
|
|
|
password: "", |
|
|
|
}, |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
@ -864,19 +868,82 @@ export default { |
|
|
|
console.log(tab, event); |
|
|
|
}, |
|
|
|
|
|
|
|
// 查看 |
|
|
|
async handleLook(row) { |
|
|
|
this.lookResiId = row.resiId; |
|
|
|
this.dialogVisible2 = true; |
|
|
|
let { |
|
|
|
agencyId, |
|
|
|
gridId, |
|
|
|
gridName, |
|
|
|
gender, |
|
|
|
homeId, |
|
|
|
homeName, |
|
|
|
name, |
|
|
|
resiId, |
|
|
|
} = row; |
|
|
|
this.$store.dispatch("saveData", { |
|
|
|
agencyId, |
|
|
|
gridId, |
|
|
|
gridName, |
|
|
|
gender, |
|
|
|
homeId, |
|
|
|
homeName, |
|
|
|
name, |
|
|
|
resiId, |
|
|
|
}); |
|
|
|
this.$router.push({ name: "jumin-huaxiang" }); |
|
|
|
this.$store.state.contentTabs = this.$store.state.contentTabs.map( |
|
|
|
(item) => { |
|
|
|
if (item.name === "jumin-huaxiang") { |
|
|
|
return { ...item, title: name }; |
|
|
|
} |
|
|
|
return item; |
|
|
|
} |
|
|
|
); |
|
|
|
}, |
|
|
|
|
|
|
|
// 编辑 |
|
|
|
async handleEdit(row) { |
|
|
|
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.formName = "编辑居民"; |
|
|
|
this.formType = 'edit' |
|
|
|
this.dialogVisible = true; |
|
|
|
await this.residentBaseInfo(); |
|
|
|
this.saveCheckPassword() |
|
|
|
} |
|
|
|
else{ |
|
|
|
this.editUserId = row.resiId; |
|
|
|
this.showCheckPassword = true; |
|
|
|
} |
|
|
|
} |
|
|
|
else{ |
|
|
|
this.$message.error(msg); |
|
|
|
} |
|
|
|
}, |
|
|
|
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); |
|
|
|
} |
|
|
|
}, |
|
|
|
// 获取详情 |
|
|
|
residentBaseInfo() { |
|
|
|