Commit 9f07cea9 authored by 张伯涛's avatar 张伯涛

bug修改

parent c925f834
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<div class="loading-spinner"></div> <div class="loading-spinner"></div>
<p> 命令执行中,请稍后......</p> <p> 命令执行中,请稍后......</p>
<p v-show="isStop">倒计时{{countDown}}</p> <p v-show="isStop">倒计时{{countDown}}</p>
<p v-show="isWait">正在获取停止状态,请稍后</p>
</div> </div>
<el-dialog @close="onClose" :close-on-click-modal="false" v-model="dialogFormVisible" width="30%" title="请选择进行一键启动的循环泵:" center> <el-dialog @close="onClose" :close-on-click-modal="false" v-model="dialogFormVisible" width="30%" title="请选择进行一键启动的循环泵:" center>
...@@ -119,10 +120,11 @@ const stationId = ref(null); ...@@ -119,10 +120,11 @@ const stationId = ref(null);
const limit = ref(0); const limit = ref(0);
const dialogFormVisible = ref(false); const dialogFormVisible = ref(false);
const isSingle = ref(false); const isSingle = ref(false);
const countDown = ref(120); const countDown = ref(180);
const props = { multiple: false, emitPath: false } const props = { multiple: false, emitPath: false }
const isRunning = ref(false); const isRunning = ref(false);
const isStop = ref(false); const isStop = ref(false);
const isWait = ref(false);
const userInfo = store.getters.getUserInfo(); const userInfo = store.getters.getUserInfo();
var startPercent = reactive(new Array({ var startPercent = reactive(new Array({
...@@ -787,7 +789,7 @@ async function OnekeyStop(){ ...@@ -787,7 +789,7 @@ async function OnekeyStop(){
} }
isStop.value = true; isStop.value = true;
countDown.value = 120; countDown.value = 180;
isRunning.value = true; isRunning.value = true;
startCountdown(); startCountdown();
}catch (error) { }catch (error) {
...@@ -834,6 +836,7 @@ async function handleSetOneStartStopTwo( stationId,unitId,runStepsFlag,stopSteps ...@@ -834,6 +836,7 @@ async function handleSetOneStartStopTwo( stationId,unitId,runStepsFlag,stopSteps
} }
async function OnekeyStopEnd() { async function OnekeyStopEnd() {
isStop.value = false;
stationId.value = options[0].children[0].children.find(item => item.value === transferId.value).stationId stationId.value = options[0].children[0].children.find(item => item.value === transferId.value).stationId
try { try {
...@@ -992,7 +995,7 @@ async function OnekeyStopEnd() { ...@@ -992,7 +995,7 @@ async function OnekeyStopEnd() {
} }
finally { finally {
isLoading.value = false; isLoading.value = false;
isStop.value = false; isWait.value = false;
} }
} }
...@@ -1027,7 +1030,7 @@ function getSteps() { ...@@ -1027,7 +1030,7 @@ function getSteps() {
startCountdownTwo(); startCountdownTwo();
}else { }else {
clearInterval(timerTwo) clearInterval(timerTwo)
countDown.value = 120; countDown.value = 180;
isStop.value = false; isStop.value = false;
} }
} }
...@@ -1036,7 +1039,7 @@ function getSteps() { ...@@ -1036,7 +1039,7 @@ function getSteps() {
}else { }else {
clearInterval(timerTwo) clearInterval(timerTwo)
isLoading.value = false isLoading.value = false
countDown.value = 120; countDown.value = 180;
isStop.value = false; isStop.value = false;
} }
const getItem = item ? item : itemTwo const getItem = item ? item : itemTwo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment