This commit is contained in:
caozehui
2025-08-21 10:42:09 +08:00
parent 8e3368bd29
commit 7bcd88c3a7
3 changed files with 6 additions and 4 deletions

View File

@@ -441,7 +441,7 @@ const sendResume = () => {
console.log('发起继续检测请求') console.log('发起继续检测请求')
resumeTest({ resumeTest({
userPageId: 'cdf', userPageId: JwtUtil.getLoginName(),
devIds: checkStore.devices.map(item => item.deviceId), devIds: checkStore.devices.map(item => item.deviceId),
planId: checkStore.plan.id, planId: checkStore.plan.id,
reCheckType: '2', // 0:'系数校验''1'为预检测、2为正式检测、'8'为不合格项复检 reCheckType: '2', // 0:'系数校验''1'为预检测、2为正式检测、'8'为不合格项复检

View File

@@ -230,6 +230,7 @@ import { scriptDtlsCheckDataList } from '@/api/device/testScript/index'
import ViewRow from '@/views/machine/testScript/components/viewRow.vue' import ViewRow from '@/views/machine/testScript/components/viewRow.vue'
import { startSimulateTest, closeSimulateTest } from '@/api/device/controlSource/index.ts' import { startSimulateTest, closeSimulateTest } from '@/api/device/controlSource/index.ts'
import { controlSource } from '@/api/device/interface/controlSource' import { controlSource } from '@/api/device/interface/controlSource'
import {JwtUtil} from "@/utils/jwtUtil";
interface TabOption { interface TabOption {
label?: string label?: string
name?: string name?: string
@@ -464,7 +465,7 @@ const startLoading = async () => {
emit('update:pauseDisabled', true) emit('update:pauseDisabled', true)
ElMessage.success({ message: '启动中...', duration: 6000 }) ElMessage.success({ message: '启动中...', duration: 6000 })
// 启动加载逻辑 // 启动加载逻辑
controlContent.value.userPageId = 'cdf' controlContent.value.userPageId = JwtUtil.getLoginName()
controlContent.value.scriptId = props.formControl.scriptId controlContent.value.scriptId = props.formControl.scriptId
controlContent.value.scriptIndex = childActiveIndex.value controlContent.value.scriptIndex = childActiveIndex.value
controlContent.value.sourceId = props.formControl.sourceId controlContent.value.sourceId = props.formControl.sourceId
@@ -476,7 +477,7 @@ const startLoading = async () => {
// 定义 startLoading 方法 // 定义 startLoading 方法
const stopLoading = async () => { const stopLoading = async () => {
// 启动加载逻辑 // 启动加载逻辑
controlContent.value.userPageId = 'cdf' controlContent.value.userPageId = JwtUtil.getLoginName()
controlContent.value.scriptId = props.formControl.scriptId controlContent.value.scriptId = props.formControl.scriptId
controlContent.value.scriptIndex = childActiveIndex.value controlContent.value.scriptIndex = childActiveIndex.value
controlContent.value.sourceId = props.formControl.sourceId controlContent.value.sourceId = props.formControl.sourceId

View File

@@ -67,6 +67,7 @@ import socketClient from '@/utils/webSocketClient'
import { checkSimulate } from '@/api/device/controlSource/index.ts' import { checkSimulate } from '@/api/device/controlSource/index.ts'
import { controlSource } from '@/api/device/interface/controlSource' import { controlSource } from '@/api/device/interface/controlSource'
import {getPqScriptList} from '@/api/plan/plan.ts' import {getPqScriptList} from '@/api/plan/plan.ts'
import {JwtUtil} from "@/utils/jwtUtil";
const show = ref(false) const show = ref(false)
const router = useRouter() const router = useRouter()
@@ -322,7 +323,7 @@ const handleScriptChange = (value: string) => {
} }
const start = async () => { const start = async () => {
controlContent.value.userPageId = 'cdf' controlContent.value.userPageId = JwtUtil.getLoginName()
controlContent.value.scriptIndex = scriptIndex.value controlContent.value.scriptIndex = scriptIndex.value
await checkSimulate(controlContent.value) await checkSimulate(controlContent.value)
} }