From 6715bb7876e10462733e88e751c41ac6ceb45ceb Mon Sep 17 00:00:00 2001
From: zxc <1272811460@qq.com>
Date: Wed, 7 Sep 2022 17:03:52 +0800
Subject: [PATCH] =?UTF-8?q?=E8=81=94=E7=B3=BB=E4=BA=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/partymember/icpartyorgtree.vue | 121 ++++++++++++++++++
1 file changed, 121 insertions(+)
diff --git a/src/views/modules/partymember/icpartyorgtree.vue b/src/views/modules/partymember/icpartyorgtree.vue
index 4b8a5179e..ebc87f1ce 100644
--- a/src/views/modules/partymember/icpartyorgtree.vue
+++ b/src/views/modules/partymember/icpartyorgtree.vue
@@ -17,8 +17,24 @@
:header-cell-style="{background:'#2195FE',color:'#FFFFFF'}"
:height="tableHeight">
+
+
+
+ {{ item.label }}
+
+
+
+
+ {{'负责人'}}
+
+
+
+
+
+
+
+
+
+
+
@@ -67,6 +114,13 @@
export default {
data () {
return {
+ principalShow: false,
+ staffs: [],
+ editPrincipalData: {
+ principal: '',
+ principalMobile: '',
+ partyOrgId: ''
+ },
searchH: 0,
dataForm: {
id: '',
@@ -76,6 +130,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 +177,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 +200,36 @@
// this.pageLoading = true
},
methods:{
+ principal(row) {
+ this.principalShow = true
+ this.editPrincipalData.partyOrgId = row.id
+ 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
+ console.log(this.staffs)
+ }
+ }).catch(() => {})
+ },
+ editPrincipal(row) {
+ this.staffs.forEach(s => {
+ if (this.editPrincipalData.principal === s.value){
+ this.editPrincipalData.principal = s.name
+ this.editPrincipalData.principalMobile = s.mobile
+ }
+ })
+ 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 : '查询失败')
+ }
+ }).catch(() => {})
+ this.principalShow = false
+ this.getTableData()
+ },
+ handleClose() {
+ this.principalShow = false
+ },
// 查询列表
async getTableData () {
this.tableLoading = true