暂停页面效果调整
This commit is contained in:
@@ -12,6 +12,12 @@
|
||||
:icon="VideoPause"
|
||||
@click="emit('sendPause')">停止检测
|
||||
</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-->
|
||||
<!-- type="primary"-->
|
||||
<!-- v-if="testStatus=='test_init'"-->
|
||||
@@ -425,7 +431,6 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
break;
|
||||
case 'preStopTest':
|
||||
if(newValue.operateCode == 'stop'){
|
||||
tryHideFullScreenLoading()
|
||||
ElMessage.success('暂停成功')
|
||||
emit('update:testStatus', 'paused')
|
||||
handlePauseTest()
|
||||
|
||||
@@ -42,12 +42,12 @@
|
||||
</el-icon>
|
||||
初始化中
|
||||
</el-button>
|
||||
<!-- <el-button type="warning" v-if="ActiveStatue === 'paused'" disabled>-->
|
||||
<!-- <el-icon class="loading-box" style="color: #fff;margin-right: 8px;">-->
|
||||
<!-- <component :is="Refresh"/>-->
|
||||
<!-- </el-icon>-->
|
||||
<!-- 暂停中-->
|
||||
<!-- </el-button>-->
|
||||
<el-button type="warning" v-if="ActiveStatue === 'paused_ing'" disabled>
|
||||
<el-icon class="loading-box" style="color: #fff;margin-right: 8px;">
|
||||
<component :is="Refresh"/>
|
||||
</el-icon>
|
||||
暂停中
|
||||
</el-button>
|
||||
<el-button :type="ActiveStatue==='success'?'primary':'danger'" :icon="Right"
|
||||
v-if="ActiveStatue === 'success'||ActiveStatue==='error'||ActiveStatue==='test_init_fail'||ActiveStatue==='connect_timeout'"
|
||||
@click="nextStep">
|
||||
@@ -377,8 +377,8 @@ watch(ActiveStatue, function (newValue, oldValue) {
|
||||
const sendPause = () => {
|
||||
console.log('发起暂停请求')
|
||||
|
||||
ActiveStatue.value = 'paused_ing'
|
||||
pauseTest()
|
||||
showFullScreenLoading()
|
||||
}
|
||||
const sendResume = () => {
|
||||
console.log('发起继续检测请求')
|
||||
|
||||
Reference in New Issue
Block a user