|
|
|
@ -53,7 +53,7 @@ |
|
|
|
style="margin-left: 10px" |
|
|
|
size="small" |
|
|
|
class="diy-button--white" |
|
|
|
@click="" |
|
|
|
@click="resetSearchForm" |
|
|
|
>重置</el-button |
|
|
|
> |
|
|
|
<!-- resetSearchForm --> |
|
|
|
@ -371,7 +371,8 @@ |
|
|
|
v-if="dialogVisible2" |
|
|
|
ref="resiInfo" |
|
|
|
:fixed="true" |
|
|
|
:resi-id="editUserId" |
|
|
|
:resi-id="lookResiId" |
|
|
|
:resiDetailList='resiDetailList' |
|
|
|
/> |
|
|
|
</div> |
|
|
|
|
|
|
|
@ -570,6 +571,7 @@ export default { |
|
|
|
dialogVisible: false, |
|
|
|
// 显示人员详情 |
|
|
|
dialogVisible2: false, |
|
|
|
resiDetailList:{},//人员详情数据 |
|
|
|
lookResiId: "", |
|
|
|
|
|
|
|
uploadUlr: |
|
|
|
@ -725,7 +727,26 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
handleSearchFrom() { |
|
|
|
console.log(this.$refs.myResiSearch.form); |
|
|
|
let obj = this.$refs.myResiSearch.form |
|
|
|
if (obj.categoryKey.length == 0) { |
|
|
|
obj.categoryKey = ""; |
|
|
|
} else { |
|
|
|
obj.categoryKey = obj.categoryKey.join(',') |
|
|
|
console.log(obj.categoryKey); |
|
|
|
// obj.categoryKey.forEach((element) => { |
|
|
|
// console.log(element,obj.categoryKey); |
|
|
|
// obj.categoryKey = obj.categoryKey + "," + element; |
|
|
|
// }); |
|
|
|
} |
|
|
|
if (obj.agencyId.length == 0) { |
|
|
|
obj.agencyId = ""; |
|
|
|
} else { |
|
|
|
obj.agencyId = obj.agencyId.join(',') |
|
|
|
} |
|
|
|
|
|
|
|
this.getTableData(obj) |
|
|
|
this.$refs.myResiSearch.form.categoryKey = [] |
|
|
|
this.$refs.myResiSearch.form.agencyId = [] |
|
|
|
}, |
|
|
|
// 是否可以选中 |
|
|
|
checkSelectable(row, index) { |
|
|
|
@ -827,6 +848,14 @@ export default { |
|
|
|
this.selAllFlag = false; |
|
|
|
} |
|
|
|
}, |
|
|
|
getResiDetail(id){ |
|
|
|
this.$http.post(`/actual/base/residentBaseInfo/detail/${id}`).then(res=>{ |
|
|
|
this.resiDetailList = res.data.data |
|
|
|
}).catch(err =>{ |
|
|
|
console.log(err); |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
deleteBatch() { |
|
|
|
if (this.selection.length > 0) { |
|
|
|
this.$confirm("删除之后无法恢复,确认删除?", "提示", { |
|
|
|
@ -872,15 +901,9 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
resetSearchForm(formName) { |
|
|
|
// for(const n in this.form) { |
|
|
|
// this.form[n] = '' |
|
|
|
// } |
|
|
|
this.searchList.forEach((item) => { |
|
|
|
this.$refs[`resiSearch${item.itemGroupId}`][0].resetForm(); |
|
|
|
// console.log('search-----refs', this.$refs[`resiSearch${item.itemGroupId}`]) |
|
|
|
}); |
|
|
|
this.currentPage = 1; |
|
|
|
this.conditions = []; |
|
|
|
for(const n in this.form) { |
|
|
|
this.$refs.myResiSearch.form[n] = '' |
|
|
|
} |
|
|
|
this.getTableData(); |
|
|
|
}, |
|
|
|
async handleExportModule() { |
|
|
|
@ -1079,9 +1102,9 @@ export default { |
|
|
|
|
|
|
|
// 查看 |
|
|
|
async handleLook(row) { |
|
|
|
console.log(row); |
|
|
|
this.lookResiId = row.resiId; |
|
|
|
this.dialogVisible2 = true; |
|
|
|
this.getResiDetail(row.resiId) |
|
|
|
}, |
|
|
|
|
|
|
|
// 编辑 |
|
|
|
@ -1336,11 +1359,14 @@ export default { |
|
|
|
this.btnLoading = false; |
|
|
|
}, |
|
|
|
|
|
|
|
async getTableData() { |
|
|
|
async getTableData(obj) { |
|
|
|
let params = { |
|
|
|
pageNo: this.currentPage, |
|
|
|
pageSize: this.pageSize, |
|
|
|
...obj |
|
|
|
}; |
|
|
|
|
|
|
|
console.log('1369->>>>>>>>>>>>',params); |
|
|
|
this.tableLoading = true; |
|
|
|
const { data, code, msg } = await requestPost( |
|
|
|
"/actual/base/residentBaseInfo/page", |
|
|
|
|