diff --git a/src/views/modules/communityParty/partyOrg/orgTree.vue b/src/views/modules/communityParty/partyOrg/orgTree.vue index c80d2f8c7..51908ba4e 100644 --- a/src/views/modules/communityParty/partyOrg/orgTree.vue +++ b/src/views/modules/communityParty/partyOrg/orgTree.vue @@ -79,6 +79,11 @@ @click="handleUpdateBtnClick(scope.row)" size="small" class="div-table-button--detail">修改 + + 删除 @@ -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 diff --git a/src/views/modules/communityParty/partyOrg/update.vue b/src/views/modules/communityParty/partyOrg/update.vue index 3ce1ce581..d2ce794df 100644 --- a/src/views/modules/communityParty/partyOrg/update.vue +++ b/src/views/modules/communityParty/partyOrg/update.vue @@ -51,9 +51,9 @@ + :rows="2" + placeholder="请输入内容" + v-model="dataForm.description"> @@ -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 = [];