diff --git a/src/views/modules/partymember/icpartyorgtree.vue b/src/views/modules/partymember/icpartyorgtree.vue index 4b8a5179e..dd69f1160 100644 --- a/src/views/modules/partymember/icpartyorgtree.vue +++ b/src/views/modules/partymember/icpartyorgtree.vue @@ -12,13 +12,28 @@ :data="tableData" :default-expand-all="true" row-key="id" - border :tree-props="{children: 'children', hasChildren: 'hasChildren'}" :header-cell-style="{background:'#2195FE',color:'#FFFFFF'}" :height="tableHeight"> - + + + + + + @@ -67,6 +115,13 @@ export default { data () { return { + principalShow: false, + staffs: [], + editPrincipalData: { + principal: '', + principalMobile: '', + partyOrgId: '' + }, searchH: 0, dataForm: { id: '', @@ -76,6 +131,36 @@ }, tableLoading: false, tableData: [], + partyOrgTypes: [ + { + value: '0', + label: '省委' + }, + { + value: '1', + label: '市委' + }, + { + value: '2', + label: '区委' + }, + { + value: '3', + label: '党工委' + }, + { + value: '4', + label: '党委' + }, + { + value: '5', + label: '支部' + }, + { + value: '6', + label: '党小组' + } + ], agencyId: '', addOrUpdateVisible: false, lookMemberShow: false, @@ -93,6 +178,13 @@ const h = this.clientHeight - this.searchH - 230 + this.iframeHeigh const _h = this.clientHeight - 230 - this.searchH return this.$store.state.inIframe ? h : _h + }, + principalRules() { + return { + principal: [ + {required: true, message: '负责人不能为空', trigger: 'change'}, + ] + } } }, mounted() { @@ -109,6 +201,51 @@ // this.pageLoading = true }, methods:{ + principal(row) { + this.principalShow = true + this.editPrincipalData.partyOrgId = row.id + this.editPrincipalData.principal = row.principal + this.$http.post('/data/aggregator/org/staff-select-list/'+row.agencyId,{'params': {}}).then(({ data: res }) =>{ + if (res.code !== 0) { + return this.$message.error(res.internalMsg ? res.internalMsg : res.msg ? res.msg : '查询失败') + } else { + this.staffs = res.data + } + }).catch(() => {}) + }, + editPrincipal(row) { + this.staffs.forEach(s => { + if (this.editPrincipalData.principal === s.value){ + this.editPrincipalData.principal = s.name + this.editPrincipalData.principalMobile = s.mobile + } + }) + this.$refs['principalRules'].validate((valid) => { + if (!valid) { + return false + } + this.$http.post('/resi/partymember/icPartyOrg/editPrincipal',this.editPrincipalData).then(({ data: res }) =>{ + if (res.code !== 0) { + return this.$message.error(res.internalMsg ? res.internalMsg : res.msg ? res.msg : '查询失败') + }else { + this.principalShow = false + this.getTableData() + this.resetEditPrincipalData() + } + }).catch(() => {}) + }) + }, + handleClose() { + this.principalShow = false + this.resetEditPrincipalData() + }, + resetEditPrincipalData() { + this.editPrincipalData = { + principal: '', + principalMobile: '', + partyOrgId: '' + } + }, // 查询列表 async getTableData () { this.tableLoading = true diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue index a4bbccfcf..8921683fa 100644 --- a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue +++ b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue @@ -153,13 +153,32 @@ align="center" show-overflow-tooltip > + + +