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

Loading…
Cancel
Save