Browse Source

【党组织管理】完成delete。初步完成党组织管理,先去做党员管理,完成党员管理再继续做党组织管理的党员部分功能

V1.0
wxz 3 years ago
parent
commit
3f38f04d3d
  1. 22
      src/views/modules/communityParty/partyOrg/orgTree.vue
  2. 9
      src/views/modules/communityParty/partyOrg/update.vue

22
src/views/modules/communityParty/partyOrg/orgTree.vue

@ -79,6 +79,11 @@
@click="handleUpdateBtnClick(scope.row)"
size="small"
class="div-table-button--detail">修改</el-button>
<el-button type="text"
@click="handleDeletBtnClick(scope.row)"
size="small"
class="div-table-button--detail">删除</el-button>
</template>
</el-table-column>
</el-table>
@ -177,6 +182,23 @@ export default {
});
},
async handleDeletBtnClick(row) {
this.$confirm('"' + row.partyOrgName + '"将被删除,是否确定?').then(async () => {
let url = "/actual/base/party/org/deleteBatch";
let rst = await requestPost(url, [
row.id
]);
this.epmetResultResolver.success((data) => {
this.$message.success('删除成功');
this.handleLoadTreeRoot();
}).parse(rst);
});
},
/**
* 创建下级党组织
* @param row

9
src/views/modules/communityParty/partyOrg/update.vue

@ -51,9 +51,9 @@
<el-form-item prop="description" label="党组织介绍">
<el-input
type="textarea"
:rows="5"
placeholder=""
v-model="this.dataForm.description">
:rows="2"
placeholder="请输入内容"
v-model="dataForm.description">
</el-input>
</el-form-item>
@ -168,7 +168,6 @@ export default {
//
this.$nextTick(() => {
debugger
this.dataForm.principalId = partyOrgInfo.principalId;
console.log(this.principals)
console.log(this.dataForm.principalId )
@ -218,7 +217,7 @@ export default {
description: null,
longitude: null,
latitude: null,
address: null
address: null,
};
this.principals = [];

Loading…
Cancel
Save