From 65cd8eaf1bd6b7d67e73aa3d1da6cca53a6a932c Mon Sep 17 00:00:00 2001 From: jiangyy Date: Fri, 24 Sep 2021 14:35:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E6=80=81=E6=98=BE=E7=A4=BA=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/form/index.vue | 4 ++-- src/views/form/publish/index.vue | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/form/index.vue b/src/views/form/index.vue index b78de8f..c724178 100644 --- a/src/views/form/index.vue +++ b/src/views/form/index.vue @@ -111,7 +111,7 @@ export default { { key: 'back', title: '返回', - icon: 'el-icon-edit' + icon: 'el-icon-back' } ], menuItemList2: [ @@ -135,7 +135,7 @@ export default { { key: 'back', title: '返回', - icon: 'el-icon-edit' + icon: 'el-icon-back' } ] } diff --git a/src/views/form/publish/index.vue b/src/views/form/publish/index.vue index cbaa1d3..bbb1511 100644 --- a/src/views/form/publish/index.vue +++ b/src/views/form/publish/index.vue @@ -152,7 +152,7 @@ export default { agencyId: customerId } this.$api.post(`/data/aggregator/org/agencytree`, params).then((res) => { - this.data = res.data ||[] + this.data = res.data || [] }) }, @@ -207,7 +207,7 @@ export default { }, publishProject () { this.resolveAgency() - if (this.data.length >0 && this.selAgencyList.length === 0) { + if (this.data.length > 0 && this.selAgencyList.length === 0) { this.$message( { message: "请选择发布范围", @@ -226,14 +226,16 @@ export default { this.$api.post(`${process.env.VUE_APP_API_ROOT_TDUCK}/user/project/publish`, params).then(() => { this.publishStatus = true + this.$parent.getProjectStatus() this.msgSuccess('发布成功') }) }, stopPublishProject () { + this.$api.post(`${process.env.VUE_APP_API_ROOT_TDUCK}/user/project/stop`, { 'key': this.projectKey }).then(res => { if (res.data) { this.msgSuccess('停止成功') - + this.$parent.getProjectStatus() this.getProjectStatus() } })