|
|
|
@ -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 () { |
|
|
|
|