Browse Source

联系人

feature
zxc 3 years ago
parent
commit
b66cf63631
  1. 31
      src/views/modules/partymember/icpartyorgtree.vue

31
src/views/modules/partymember/icpartyorgtree.vue

@ -15,8 +15,8 @@
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
:header-cell-style="{background:'#2195FE',color:'#FFFFFF'}"
:height="tableHeight">
<el-table-column prop="partyOrgName" label="党组织名称"></el-table-column>
<el-table-column prop="partyOrgType" label="类别">
<el-table-column prop="partyOrgName" min-width="250" label="党组织名称"></el-table-column>
<el-table-column prop="partyOrgType" min-width="150" label="类别">
<template slot-scope="scope">
<span v-for="(item, index) in partyOrgTypes"
:key="item.value"
@ -25,8 +25,8 @@
{{ item.label }}</span>
</template>
</el-table-column>
<el-table-column prop="principal" label="负责人"></el-table-column>
<el-table-column prop="principalMobile" label="联系方式"></el-table-column>
<el-table-column prop="principal" width="120" label="负责人"></el-table-column>
<el-table-column prop="principalMobile" width="150" label="联系方式"></el-table-column>
<el-table-column label="操作" align="center" width="300">
<template slot-scope="scope">
<el-button v-if="scope.row.partyOrgType != '6'"
@ -78,7 +78,7 @@
top="5vh"
class="dialog-h"
:before-close="handleClose">
<el-form ref="ref_form"
<el-form ref="principalRules"
:inline="true"
:model="editPrincipalData"
:rules="principalRules"
@ -220,15 +220,20 @@
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 : '查询失败')
}else {
this.principalShow = false
this.getTableData()
this.resetEditPrincipalData()
this.$refs['principalRules'].validate((valid) => {
if (!valid) {
return false
}
}).catch(() => {})
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

Loading…
Cancel
Save