Merge branch 'master' of http://192.168.1.22:3000/frontend/pqs-9100_client
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
<el-table :data="checkResultView" row-key="scriptId" height="450px"
|
||||
:header-cell-style="{ background: '#003078', color: '#eee', textAlign: 'center' } " style="width: 100%"
|
||||
border>
|
||||
<el-table-column fixed prop="scriptName" label="检测项目" width="140px" align="center">
|
||||
<el-table-column fixed prop="scriptName" label="检测项目" width="150px" align="center">
|
||||
</el-table-column>
|
||||
|
||||
<template v-if="chnSum<=MAX_CHN_SUM">
|
||||
@@ -54,10 +54,10 @@
|
||||
:content="row.devices[index1].chnResult[index2].color===CheckData.ButtonColorEnum.INFO ? '暂无数据' : '点击查看详情'"
|
||||
placement="top">
|
||||
<el-button
|
||||
:disabled="row.devices[index1].chnResult[index2].color==CheckData.ButtonColorEnum.INFO"
|
||||
:disabled="row.devices[index1].chnResult[index2].color===CheckData.ButtonColorEnum.INFO || row.devices[index1].chnResult[index2].color===CheckData.ButtonColorEnum.LOADING"
|
||||
:color="row.devices[index1].chnResult[index2].color"
|
||||
size="small"
|
||||
@click="handleClick(row.scriptId,item.deviceId,chnItem)"
|
||||
@click="handleClick(item.deviceId,chnItem+'',row.scriptId)"
|
||||
style="align-self: center;"
|
||||
>
|
||||
<el-icon v-if="row.devices[index1].chnResult[index2].icon==='Loading'" class="loading-box"
|
||||
@@ -83,10 +83,10 @@
|
||||
:content="row.devices[index1].chnResult[0].color===CheckData.ButtonColorEnum.INFO ? '暂无数据' : '点击查看详情'"
|
||||
placement="top">
|
||||
<el-button
|
||||
:disabled="row.devices[index1].chnResult[0].color===CheckData.ButtonColorEnum.INFO"
|
||||
:disabled="row.devices[index1].chnResult[0].color===CheckData.ButtonColorEnum.INFO || row.devices[index1].chnResult[0].color===CheckData.ButtonColorEnum.LOADING"
|
||||
:color="row.devices[index1].chnResult[0].color"
|
||||
size="small"
|
||||
@click="handleClick(row.scriptId,item.deviceId,-1)"
|
||||
@click="handleClick(item.deviceId,'-1',row.scriptId)"
|
||||
>
|
||||
<el-icon v-if="row.devices[index1].chnResult[0].icon==='Loading'" class="loading-box"
|
||||
style="color: #fff">
|
||||
@@ -127,18 +127,7 @@
|
||||
<dataCheckSingleChannelSingleTestPopup ref="dataCheckSingleChannelSingleTestPopupRef"/>
|
||||
</template>
|
||||
<script lang="tsx" setup name="test">
|
||||
import {
|
||||
Check,
|
||||
InfoFilled,
|
||||
Refresh,
|
||||
VideoPause,
|
||||
Minus,
|
||||
Close,
|
||||
CircleCheckFilled,
|
||||
WarnTriangleFilled,
|
||||
Loading,
|
||||
Link
|
||||
} from '@element-plus/icons-vue'
|
||||
import {Check, InfoFilled, Loading, Refresh, VideoPause} from '@element-plus/icons-vue'
|
||||
import resultPopup from './resultPopup.vue'
|
||||
import dataCheckSingleChannelSingleTestPopup from './dataCheckSingleChannelSingleTestPopup.vue'
|
||||
import {computed, reactive, ref, toRef, watch} from "vue";
|
||||
@@ -146,6 +135,7 @@ import {dialogBig} from "@/utils/elementBind";
|
||||
import {CheckData} from "@/api/check/interface"
|
||||
import {useCheckStore} from "@/stores/modules/check";
|
||||
import {ElMessage, ElMessageBox} from "element-plus";
|
||||
import {getBigTestItem} from "@/api/check/test";
|
||||
|
||||
const checkStore = useCheckStore()
|
||||
|
||||
@@ -166,14 +156,14 @@ const props = defineProps({
|
||||
}
|
||||
})
|
||||
|
||||
const emit = defineEmits(['update:testStatus', 'update:webMsgSend','sendPause','sendResume']);
|
||||
const emit = defineEmits(['update:testStatus', 'update:webMsgSend', 'sendPause', 'sendResume']);
|
||||
|
||||
// 用来保存测试项进度抽屉是否打开
|
||||
const drawer = ref(false)
|
||||
// 进度条颜色
|
||||
const customColors = [{color: "#5cb87a", percentage: 100}]
|
||||
// 检测脚本数据
|
||||
const scriptData = reactive<CheckData.ScriptItem[]>([])
|
||||
let scriptData: CheckData.ScriptItem[] = []
|
||||
// 用来保存被检设备
|
||||
const deviceList = reactive<CheckData.Device[]>([])
|
||||
// 当前进行的测试项索引
|
||||
@@ -289,7 +279,7 @@ const checkResultView = computed(() => {
|
||||
|
||||
watch(testStatus, function (newValue, oldValue) {
|
||||
if (newValue == 'start') {
|
||||
startTimer() // todo 可移除
|
||||
//startTimer() // todo 可移除
|
||||
emit('update:testStatus', 'process')
|
||||
}
|
||||
if (newValue == 'paused' && oldValue == 'process') {
|
||||
@@ -304,7 +294,10 @@ watch(testStatus, function (newValue, oldValue) {
|
||||
watch(webMsgSend, function (newValue, oldValue) {
|
||||
if (activeIndex <= checkTotal) {
|
||||
switch (newValue.requestId) {
|
||||
case 'Test_PreTest_Fail':
|
||||
case 'PreTest_Success':
|
||||
ElMessage.success('预检成功!')
|
||||
break;
|
||||
case 'PreTest_Fail':
|
||||
ElMessageBox.alert('预检测失败,请检查设备连接情况', '预检测失败', {
|
||||
confirmButtonText: '确定',
|
||||
type: 'error',
|
||||
@@ -312,26 +305,39 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
emit('update:testStatus', 'success')
|
||||
})
|
||||
break;
|
||||
case 'Test_Pause_Success':
|
||||
case 'Pause_Success':
|
||||
ElMessage.success('暂停成功')
|
||||
emit('update:testStatus','paused')
|
||||
emit('update:testStatus', 'paused')
|
||||
break;
|
||||
case 'Test_Pause_Fail':
|
||||
case 'Pause_Fail':
|
||||
ElMessage.error('暂停失败')
|
||||
break;
|
||||
case 'Test_Resume_Success':
|
||||
case 'Resume_Success':
|
||||
ElMessage.success('开始继续检测')
|
||||
emit('update:testStatus','process')
|
||||
emit('update:testStatus', 'process')
|
||||
break;
|
||||
case 'Test_Resume_Fail':
|
||||
case 'Resume_Fail':
|
||||
ElMessage.error('无法继续检测')
|
||||
break;
|
||||
case 'Test_VOL_Start':
|
||||
updateCheckResultView("VOL", true)
|
||||
case 'FREQ_Start':
|
||||
updateCheckResultView("FREQ", true)
|
||||
updateLog(true)
|
||||
break;
|
||||
case 'Test_VOL_End':
|
||||
updateCheckResultView("VOL", false)
|
||||
case 'FREQ_End':
|
||||
updateCheckResultView("FREQ", false)
|
||||
updateLog(false)
|
||||
updatePercentage()
|
||||
if (testStatus.value != 'paused') {
|
||||
activeIndex++;
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'VOL_Start':
|
||||
updateCheckResultView("V", true)
|
||||
updateLog(true)
|
||||
break;
|
||||
case 'VOL_End':
|
||||
updateCheckResultView("V", false)
|
||||
updateLog(false)
|
||||
updatePercentage()
|
||||
if (testStatus.value != 'paused') {
|
||||
@@ -339,12 +345,12 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'Test_Freq_Start':
|
||||
updateCheckResultView("Freq", true)
|
||||
case 'Harm_V_Start':
|
||||
updateCheckResultView("HV", true)
|
||||
updateLog(true)
|
||||
break;
|
||||
case 'Test_Freq_End':
|
||||
updateCheckResultView("Freq", false)
|
||||
case 'Harm_V_End':
|
||||
updateCheckResultView("HV", false)
|
||||
updateLog(false)
|
||||
updatePercentage()
|
||||
if (testStatus.value != 'paused') {
|
||||
@@ -352,12 +358,12 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'Test_Harm_V_Start':
|
||||
updateCheckResultView("Harm_V", true)
|
||||
case 'Harm_I_Start':
|
||||
updateCheckResultView("HI", true)
|
||||
updateLog(true)
|
||||
break;
|
||||
case 'Test_Harm_V_End':
|
||||
updateCheckResultView("Harm_V", false)
|
||||
case 'Harm_I_End':
|
||||
updateCheckResultView("HI", false)
|
||||
updateLog(false)
|
||||
updatePercentage()
|
||||
if (testStatus.value != 'paused') {
|
||||
@@ -365,12 +371,12 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'Test_Harm_I_Start':
|
||||
updateCheckResultView("Harm_I", true)
|
||||
case 'Harm_P_Start':
|
||||
updateCheckResultView("HP", true)
|
||||
updateLog(true)
|
||||
break;
|
||||
case 'Test_Harm_I_End':
|
||||
updateCheckResultView("Harm_I", false)
|
||||
case 'Harm_P_End':
|
||||
updateCheckResultView("HP", false)
|
||||
updateLog(false)
|
||||
updatePercentage()
|
||||
if (testStatus.value != 'paused') {
|
||||
@@ -378,12 +384,12 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'Test_Harm_P_Start':
|
||||
updateCheckResultView("Harm_P", true)
|
||||
case 'InHarm_V_Start':
|
||||
updateCheckResultView("HSV", true)
|
||||
updateLog(true)
|
||||
break;
|
||||
case 'Test_Harm_P_End':
|
||||
updateCheckResultView("Harm_P", false)
|
||||
case 'InHarm_V_End':
|
||||
updateCheckResultView("HSV", false)
|
||||
updateLog(false)
|
||||
updatePercentage()
|
||||
if (testStatus.value != 'paused') {
|
||||
@@ -391,12 +397,12 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'Test_InHarm_V_Start':
|
||||
updateCheckResultView("InHarm_V", true)
|
||||
case 'InHarm_I_Start':
|
||||
updateCheckResultView("HSI", true)
|
||||
updateLog(true)
|
||||
break;
|
||||
case 'Test_InHarm_V_End':
|
||||
updateCheckResultView("InHarm_V", false)
|
||||
case 'InHarm_I_End':
|
||||
updateCheckResultView("HSI", false)
|
||||
updateLog(false)
|
||||
updatePercentage()
|
||||
if (testStatus.value != 'paused') {
|
||||
@@ -404,12 +410,12 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'Test_InHarm_I_Start':
|
||||
updateCheckResultView("InHarm_I", true)
|
||||
case 'Dip_Start':
|
||||
updateCheckResultView("VOLTAGE", true)
|
||||
updateLog(true)
|
||||
break;
|
||||
case 'Test_InHarm_I_End':
|
||||
updateCheckResultView("InHarm_I", false)
|
||||
case 'Dip_End':
|
||||
updateCheckResultView("VOLTAGE", false)
|
||||
updateLog(false)
|
||||
updatePercentage()
|
||||
if (testStatus.value != 'paused') {
|
||||
@@ -417,12 +423,12 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'Test_Dip_Start':
|
||||
updateCheckResultView("Dip", true)
|
||||
case 'CUR_Start':
|
||||
updateCheckResultView("I", true)
|
||||
updateLog(true)
|
||||
break;
|
||||
case 'Test_Dip_End':
|
||||
updateCheckResultView("Dip", false)
|
||||
case 'CUR_End':
|
||||
updateCheckResultView("I", false)
|
||||
updateLog(false)
|
||||
updatePercentage()
|
||||
if (testStatus.value != 'paused') {
|
||||
@@ -430,12 +436,12 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'Test_CUR_Start':
|
||||
updateCheckResultView("CUR", true)
|
||||
case 'MSQI_U_Start':
|
||||
updateCheckResultView("IMBV", true)
|
||||
updateLog(true)
|
||||
break;
|
||||
case 'Test_CUR_End':
|
||||
updateCheckResultView("CUR", false)
|
||||
case 'MSQI_U_End':
|
||||
updateCheckResultView("IMBV", false)
|
||||
updateLog(false)
|
||||
updatePercentage()
|
||||
if (testStatus.value != 'paused') {
|
||||
@@ -443,12 +449,12 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'Test_MSQI_U_Start':
|
||||
updateCheckResultView("MSQI_U", true)
|
||||
case 'MSQI_I_Start':
|
||||
updateCheckResultView("IMBA", true)
|
||||
updateLog(true)
|
||||
break;
|
||||
case 'Test_MSQI_U_End':
|
||||
updateCheckResultView("MSQI_U", false)
|
||||
case 'MSQI_I_End':
|
||||
updateCheckResultView("IMBA", false)
|
||||
updateLog(false)
|
||||
updatePercentage()
|
||||
if (testStatus.value != 'paused') {
|
||||
@@ -456,12 +462,12 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'Test_MSQI_I_Start':
|
||||
updateCheckResultView("MSQI_I", true)
|
||||
case 'Flicker_Start':
|
||||
updateCheckResultView("F", true)
|
||||
updateLog(true)
|
||||
break;
|
||||
case 'Test_MSQI_I_End':
|
||||
updateCheckResultView("MSQI_I", false)
|
||||
case 'Flicker_End':
|
||||
updateCheckResultView("F", false)
|
||||
updateLog(false)
|
||||
updatePercentage()
|
||||
if (testStatus.value != 'paused') {
|
||||
@@ -469,20 +475,7 @@ watch(webMsgSend, function (newValue, oldValue) {
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'Test_Flicker_Start':
|
||||
updateCheckResultView("Flicker", true)
|
||||
updateLog(true)
|
||||
break;
|
||||
case 'Test_Flicker_End':
|
||||
updateCheckResultView("Flicker", false)
|
||||
updateLog(false)
|
||||
updatePercentage()
|
||||
if (testStatus.value != 'paused') {
|
||||
activeIndex++;
|
||||
startTimer()
|
||||
}
|
||||
break;
|
||||
case 'Test_Quit':
|
||||
case 'Quit':
|
||||
updateLog(false)
|
||||
updatePercentage()
|
||||
console.log('检测结束')
|
||||
@@ -514,8 +507,8 @@ let randomUnConnectedDeviceId = -1
|
||||
let randomErrorDataRaw = -1
|
||||
// todo 可移除end
|
||||
|
||||
onBeforeMount(() => {
|
||||
initScriptData()
|
||||
onBeforeMount(async () => {
|
||||
await initScriptData()
|
||||
initDeviceList()
|
||||
initCheckResult()
|
||||
|
||||
@@ -536,40 +529,14 @@ const showTestLog = () => {
|
||||
}
|
||||
|
||||
// 初始化检测脚本数据
|
||||
const initScriptData = () => {
|
||||
let map = new Map<string, string>()
|
||||
map.set('VOL', '电压')
|
||||
.set('Freq', '频率')
|
||||
.set('Harm_V', '谐波电压')
|
||||
.set('Harm_I', '谐波电流')
|
||||
.set('Harm_P', '谐波有功功率')
|
||||
.set('InHarm_V', '间谐波电压')
|
||||
.set('InHarm_I', '间谐波电流')
|
||||
.set('Dip', '暂态')
|
||||
.set('CUR', '电流')
|
||||
.set('MSQI_U', '电压不平衡度')
|
||||
.set('MSQI_I', '电流不平衡度')
|
||||
.set('Flicker', '短时闪变')
|
||||
const initScriptData = async () => {
|
||||
|
||||
let response: CheckData.ScriptItem[] = [
|
||||
{id: '1', code: 'VOL', scriptName: '电压准确度检测'},
|
||||
{id: '2', code: 'Freq', scriptName: '频率准确度检测'},
|
||||
{id: '3', code: 'Harm_V', scriptName: '谐波电压准确度检测'},
|
||||
{id: '4', code: 'Harm_I', scriptName: '谐波电流准确度检测'},
|
||||
{id: '5', code: 'Harm_P', scriptName: '谐波有功功率准确度检测'},
|
||||
{id: '6', code: 'InHarm_V', scriptName: '间谐波电压准确度检测'},
|
||||
{id: '7', code: 'InHarm_I', scriptName: '间谐波电流准确度检测'},
|
||||
{id: '8', code: 'Dip', scriptName: '暂态准确度检测'},
|
||||
{id: '9', code: 'CUR', scriptName: '电流准确度检测'},
|
||||
{id: '10', code: 'MSQI_U', scriptName: '三相电压不平衡度检测'},
|
||||
{id: '11', code: 'MSQI_I', scriptName: '三相电流不平衡度检测'},
|
||||
{id: '12', code: 'Flicker', scriptName: '闪变准确度检测'}
|
||||
]
|
||||
let response: any = await getBigTestItem(checkStore.planId)
|
||||
|
||||
let temp = response.map(item => {
|
||||
let temp = response.data.map(item => {
|
||||
return {
|
||||
...item,
|
||||
scriptName: map.get(item.code) || item.scriptName
|
||||
scriptName: item.scriptName
|
||||
}
|
||||
})
|
||||
|
||||
@@ -811,35 +778,6 @@ const getCheckResult = (scriptId: string) => {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// devices = deviceList.map(item => {
|
||||
//
|
||||
// let tempChnResult: CheckData.ChnCheckResultEnum[] = []
|
||||
// for (let i = 0; i < item.chnNum; i++) {
|
||||
// tempChnResult.push(CheckData.ChnCheckResultEnum.SUCCESS)
|
||||
// }
|
||||
//
|
||||
// let randomNum = getRandomInt(item.chnNum * 2)
|
||||
// if (activeIndex >= 2 && activeIndex <= 8) {
|
||||
// if (randomNum % 3 === 0) {
|
||||
// let a = getRandomInt(2) === 1 ? CheckData.ChnCheckResultEnum.ERRORDATA : CheckData.ChnCheckResultEnum.UNCONNECTED
|
||||
// tempChnResult.splice(tempChnResult.length - 1 - item.chnNum, item.chnNum, CheckData.ChnCheckResultEnum.ERRORDATA)
|
||||
// }else{
|
||||
// if (randomNum < item.chnNum) {
|
||||
// tempChnResult[randomNum] = (randomNum % 2) + 1
|
||||
//
|
||||
// errorCheckItem.push(scriptId)
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// return {
|
||||
// deviceId: item.deviceId,
|
||||
// deviceName: item.deviceName,
|
||||
// chnResult: tempChnResult,
|
||||
// }
|
||||
// })
|
||||
|
||||
let tempScriptChnItem: CheckData.ScriptChnItem = {
|
||||
scriptId,
|
||||
devices,
|
||||
@@ -875,8 +813,8 @@ const handlePauseOrContinue = () => {
|
||||
};
|
||||
|
||||
// 点击查看(设备)通道检测详情。参数1:设备信息,参数2:通道号,-1:代表查看全部通道
|
||||
const handleClick = (scriptId: string, deviceId: any, chnNum: number) => {
|
||||
dataCheckSingleChannelSingleTestPopupRef.value?.open(deviceId, chnNum, scriptId);
|
||||
const handleClick = (deviceId: string, chnNum: string, scriptType: string) => {
|
||||
dataCheckSingleChannelSingleTestPopupRef.value?.open(deviceId, chnNum, scriptType);
|
||||
};
|
||||
|
||||
// todo 可移除
|
||||
@@ -885,152 +823,151 @@ const startTimer = () => {
|
||||
switch (activeIndex) {
|
||||
case 1:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_VOL_Start',
|
||||
requestId: 'FREQ_Start',
|
||||
params: {}
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_VOL_End',
|
||||
requestId: 'FREQ_End',
|
||||
params: {}
|
||||
})
|
||||
}, 2000);
|
||||
break;
|
||||
case 2:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_Freq_Start',
|
||||
requestId: 'VOL_Start',
|
||||
params: {}
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_Freq_End',
|
||||
requestId: 'VOL_End',
|
||||
params: {}
|
||||
})
|
||||
}, 2000);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_Harm_V_Start',
|
||||
requestId: 'Harm_V_Start',
|
||||
params: {}
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_Harm_V_End',
|
||||
requestId: 'Harm_V_End',
|
||||
params: {}
|
||||
})
|
||||
}, 2000)
|
||||
break;
|
||||
case 4:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_Harm_I_Start',
|
||||
requestId: 'Harm_I_Start',
|
||||
params: {}
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_Harm_I_End',
|
||||
requestId: 'Harm_I_End',
|
||||
params: {}
|
||||
})
|
||||
}, 2000)
|
||||
break;
|
||||
case 5:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_Harm_P_Start',
|
||||
requestId: 'Harm_P_Start',
|
||||
params: {}
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_Harm_P_End',
|
||||
requestId: 'Harm_P_End',
|
||||
params: {}
|
||||
})
|
||||
}, 2000)
|
||||
break;
|
||||
case 6:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_InHarm_V_Start',
|
||||
requestId: 'InHarm_V_Start',
|
||||
params: {}
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_InHarm_V_End',
|
||||
requestId: 'InHarm_V_End',
|
||||
params: {}
|
||||
})
|
||||
}, 2000)
|
||||
break;
|
||||
case 7:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_InHarm_I_Start',
|
||||
requestId: 'InHarm_I_Start',
|
||||
params: {}
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_InHarm_I_End',
|
||||
requestId: 'InHarm_I_End',
|
||||
params: {}
|
||||
})
|
||||
}, 2000)
|
||||
break;
|
||||
case 8:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_Dip_Start',
|
||||
requestId: 'Dip_Start',
|
||||
params: {}
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_Dip_End',
|
||||
requestId: 'Dip_End',
|
||||
params: {}
|
||||
})
|
||||
}, 2000)
|
||||
break;
|
||||
case 9:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_CUR_Start',
|
||||
requestId: 'CUR_Start',
|
||||
params: {}
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_CUR_End',
|
||||
requestId: 'CUR_End',
|
||||
params: {}
|
||||
})
|
||||
}, 2000)
|
||||
break;
|
||||
case 10:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_MSQI_U_Start',
|
||||
requestId: 'MSQI_U_Start',
|
||||
params: {}
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_MSQI_U_End',
|
||||
requestId: 'MSQI_U_End',
|
||||
params: {}
|
||||
})
|
||||
}, 2000)
|
||||
break;
|
||||
case 11:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_MSQI_I_Start',
|
||||
requestId: 'MSQI_I_Start',
|
||||
params: {}
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_MSQI_I_End',
|
||||
requestId: 'MSQI_I_End',
|
||||
params: {}
|
||||
}, 2000)
|
||||
})
|
||||
break;
|
||||
case 12:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_Flicker_Start',
|
||||
requestId: 'Flicker_Start',
|
||||
params: {}
|
||||
})
|
||||
setTimeout(() => {
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_Flicker_End',
|
||||
requestId: 'Flicker_End',
|
||||
params: {}
|
||||
})
|
||||
}, 2000)
|
||||
break;
|
||||
case 13:
|
||||
emit('update:webMsgSend', {
|
||||
requestId: 'Test_Quit',
|
||||
requestId: 'Quit',
|
||||
params: {}
|
||||
})
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user