From ad9cd8594e5308c6a6bf1cdaf46b7b9c661da1ae Mon Sep 17 00:00:00 2001 From: zhanghouying Date: Tue, 26 Nov 2019 17:56:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=A4=E5=AE=9A=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E6=9C=89=E8=AE=B0=E5=BD=95=E8=A2=AB=E9=80=89=E5=AE=9A?= =?UTF-8?q?=E7=9A=84=E6=96=B9=E6=B3=95=EF=BC=8C=E6=9B=B4=E4=B8=A5=E8=B0=A8?= =?UTF-8?q?=E4=B8=80=E4=BA=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mnt/deploy/index.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/mnt/deploy/index.vue b/src/views/mnt/deploy/index.vue index 8f5b49f..edc7783 100644 --- a/src/views/mnt/deploy/index.vue +++ b/src/views/mnt/deploy/index.vue @@ -178,6 +178,7 @@ export default { methods: { beforeInit() { this.url = 'api/deploy' + this.selectIndex = '' return true }, // 打开新增弹窗前做的操作 @@ -204,7 +205,7 @@ export default { return true }, deploy() { - if (this.selectIndex === '') { + if (!this.selectIndex) { this.$message.error('请先选择服务') } else { this.$refs.deploy.dialog = true @@ -212,7 +213,7 @@ export default { } }, sysRestore() { - if (this.selectIndex === '') { + if (!this.selectIndex) { this.$message.error('请先选择服务') } else { this.$refs.sysRestore.dialog = true @@ -227,7 +228,7 @@ export default { this.deployId = !row ? null : row.id }, startServer() { - if (this.selectIndex === '') { + if (!this.selectIndex) { this.$message.error('请先选择服务') } else { this.crudMethod.startServer(JSON.stringify(this.currentRow)) @@ -239,7 +240,7 @@ export default { } }, stopServer() { - if (this.selectIndex === '') { + if (!this.selectIndex) { this.$message.error('请先选择服务') } else { this.crudMethod.stopServer(JSON.stringify(this.currentRow)) @@ -251,7 +252,7 @@ export default { } }, serverStatus() { - if (this.selectIndex === '') { + if (!this.selectIndex) { this.$message.error('请先选择服务') } else { this.crudMethod.serverStatus(JSON.stringify(this.currentRow))