Browse Source

联系人

V1.0
zxc 3 years ago
parent
commit
4ef1056df6
  1. 22
      src/views/modules/partymember/icpartyorgtree.vue

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

@ -82,6 +82,7 @@
<el-form ref="ref_form"
:inline="true"
:model="editPrincipalData"
:rules="principalRules"
class="div_form">
<el-form-item label="负责人"
label-width="150px"
@ -89,7 +90,8 @@
<el-select v-model="editPrincipalData.principal"
placeholder="请选择"
clearable
class="item_width_1">
style="width: 200px"
class="item_width_4">
<el-option v-for="item in staffs"
:key="item.value"
:label="item.label"
@ -99,7 +101,7 @@
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="principalShow = false"> </el-button>
<el-button @click="handleClose"> </el-button>
<el-button type="primary" @click="editPrincipal"> </el-button>
</span>
</el-dialog>
@ -222,13 +224,23 @@
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(() => {})
this.principalShow = false
this.getTableData()
},
handleClose() {
this.principalShow = false
this.principalShow = false
this.resetEditPrincipalData()
},
resetEditPrincipalData() {
this.editPrincipalData = {
principal: '',
principalMobile: '',
partyOrgId: ''
}
},
//
async getTableData () {

Loading…
Cancel
Save