From 3f38f04d3d8b9dc4c00ac44ed6ad45581147109b Mon Sep 17 00:00:00 2001 From: wxz Date: Mon, 17 Jul 2023 10:48:57 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=85=9A=E7=BB=84=E7=BB=87=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E3=80=91=E5=AE=8C=E6=88=90delete=E3=80=82=E5=88=9D?= =?UTF-8?q?=E6=AD=A5=E5=AE=8C=E6=88=90=E5=85=9A=E7=BB=84=E7=BB=87=E7=AE=A1?= =?UTF-8?q?=E7=90=86=EF=BC=8C=E5=85=88=E5=8E=BB=E5=81=9A=E5=85=9A=E5=91=98?= =?UTF-8?q?=E7=AE=A1=E7=90=86=EF=BC=8C=E5=AE=8C=E6=88=90=E5=85=9A=E5=91=98?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=86=8D=E7=BB=A7=E7=BB=AD=E5=81=9A=E5=85=9A?= =?UTF-8?q?=E7=BB=84=E7=BB=87=E7=AE=A1=E7=90=86=E7=9A=84=E5=85=9A=E5=91=98?= =?UTF-8?q?=E9=83=A8=E5=88=86=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communityParty/partyOrg/orgTree.vue | 22 +++++++++++++++++++ .../communityParty/partyOrg/update.vue | 9 ++++---- 2 files changed, 26 insertions(+), 5 deletions(-) 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 = [];