diff --git a/src/components/global.vue b/src/components/global.vue index c693402..9890483 100644 --- a/src/components/global.vue +++ b/src/components/global.vue @@ -55,6 +55,18 @@ + +
+
+
+
请问是否确认即刻重启机器恢复服务?
+
+
立即重启
+
取消
+
+
+
+
@@ -206,7 +218,9 @@ numL: [1, 2, 3, 4, 5, 6, 7, 8, 9, '清除', '0', '删除'], qjmData: '', - csSTA: true + csSTA: true, + + confirmDia: false, } }, created() { @@ -258,29 +272,36 @@ }, time) }, onJqzt(num) { - let _this = this + console.log('onJqzt', num) if (num === 0) { - _this.citeL.cqjqSta = false + this.citeL.cqjqSta = false } else if (num === 1) { let {qjmData} = this - if(_this.state.sta) { + if(this.state.sta) { return; } if(!qjmData) { - _this.onTip('请输入维护码授权重启操作!',3000) + this.onTip('请输入维护码授权重启操作!',3000) return } + getEnterKey({keys: qjmData}).then(res=>{ if(res) { - bdStop().then(() => { - _this.citeL.cqjqSta = false - }) + this.qjmData = '' + this.citeL.cqjqSta = false + this.confirmDia = true }else{ - _this.onTip('维护码不正确的,请重新确认!',3000) + this.onTip('维护码不正确的,请重新确认!',3000) } - }) + }) } }, + onJqztDo() { + this.confirmDia = false + bdStop().then(() => { + this.onTip('重启命令已发出',3000) + }) + }, add(t) { if(t<10) { return '0' + t