暂停页面效果调整

This commit is contained in:
caozehui
2025-01-14 18:58:13 +08:00
parent 37d65a944d
commit 876c06ef54
2 changed files with 13 additions and 8 deletions

View File

@@ -12,6 +12,12 @@
:icon="VideoPause" :icon="VideoPause"
@click="emit('sendPause')">停止检测 @click="emit('sendPause')">停止检测
</el-button> </el-button>
<el-button type="warning" v-if="testStatus === 'paused_ing'" disabled>
<el-icon class="loading-box" style="margin-right: 8px;">
<component :is="Refresh"/>
</el-icon>
暂停中
</el-button>
<!-- <el-button--> <!-- <el-button-->
<!-- type="primary"--> <!-- type="primary"-->
<!-- v-if="testStatus=='test_init'"--> <!-- v-if="testStatus=='test_init'"-->
@@ -425,7 +431,6 @@ watch(webMsgSend, function (newValue, oldValue) {
break; break;
case 'preStopTest': case 'preStopTest':
if(newValue.operateCode == 'stop'){ if(newValue.operateCode == 'stop'){
tryHideFullScreenLoading()
ElMessage.success('暂停成功') ElMessage.success('暂停成功')
emit('update:testStatus', 'paused') emit('update:testStatus', 'paused')
handlePauseTest() handlePauseTest()

View File

@@ -42,12 +42,12 @@
</el-icon> </el-icon>
初始化中 初始化中
</el-button> </el-button>
<!-- <el-button type="warning" v-if="ActiveStatue === 'paused'" disabled>--> <el-button type="warning" v-if="ActiveStatue === 'paused_ing'" disabled>
<!-- <el-icon class="loading-box" style="color: #fff;margin-right: 8px;">--> <el-icon class="loading-box" style="color: #fff;margin-right: 8px;">
<!-- <component :is="Refresh"/>--> <component :is="Refresh"/>
<!-- </el-icon>--> </el-icon>
<!-- 暂停中--> 暂停中
<!-- </el-button>--> </el-button>
<el-button :type="ActiveStatue==='success'?'primary':'danger'" :icon="Right" <el-button :type="ActiveStatue==='success'?'primary':'danger'" :icon="Right"
v-if="ActiveStatue === 'success'||ActiveStatue==='error'||ActiveStatue==='test_init_fail'||ActiveStatue==='connect_timeout'" v-if="ActiveStatue === 'success'||ActiveStatue==='error'||ActiveStatue==='test_init_fail'||ActiveStatue==='connect_timeout'"
@click="nextStep"> @click="nextStep">
@@ -377,8 +377,8 @@ watch(ActiveStatue, function (newValue, oldValue) {
const sendPause = () => { const sendPause = () => {
console.log('发起暂停请求') console.log('发起暂停请求')
ActiveStatue.value = 'paused_ing'
pauseTest() pauseTest()
showFullScreenLoading()
} }
const sendResume = () => { const sendResume = () => {
console.log('发起继续检测请求') console.log('发起继续检测请求')