From c23ca35f8e2f51a17a375a370da0913c09c274fd Mon Sep 17 00:00:00 2001 From: rose <1942951600@qq.com> Date: Sun, 25 Apr 2021 11:43:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=A0=E9=99=A4=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/enterprise.js | 12 ++++++++++++ src/views/enterprise/enterprise.vue | 19 ++++++++++++------- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/src/api/enterprise.js b/src/api/enterprise.js index 513dacb..2cbc78a 100644 --- a/src/api/enterprise.js +++ b/src/api/enterprise.js @@ -45,3 +45,15 @@ export function enterpriseScoreQueryById(id) { } }) } + +export function EnterpriseDelete(id) { + return request({ + url: `/gateway${enterprise}/delEnterprise`, + method: 'post', + data: { + param: { + id: id + } + } + }) +} diff --git a/src/views/enterprise/enterprise.vue b/src/views/enterprise/enterprise.vue index 80439c6..97f927d 100644 --- a/src/views/enterprise/enterprise.vue +++ b/src/views/enterprise/enterprise.vue @@ -86,25 +86,25 @@ @@ -552,6 +552,11 @@ export default { this.getList() }, methods: { + async handleDelete(id) { + await api.EnterpriseDelete(id).then(res => { + this.getList() + }) + }, async getList() { const that = this that.listLoading = true