This commit is contained in:
caozehui
2025-03-08 16:56:57 +08:00
parent b6a2c42feb
commit 3398b414ca
3 changed files with 8 additions and 2 deletions

View File

@@ -11,5 +11,6 @@ export namespace controlSource {
scriptId: string;
scriptIndex: number;
sourceId: string;
valueType:number // 1为绝对值脚本、2为相对值脚本
}
}

View File

@@ -252,6 +252,7 @@ const controlContent = ref<controlSource.ResControl>({
scriptId: '',
scriptIndex: 0,
sourceId: '',
valueType:-1
})
// 获取树
const getTree = () => {
@@ -393,6 +394,7 @@ const startLoading = async () => {
controlContent.value.scriptId = '9ff96807cf8c7524587982ed8baa8b57'
controlContent.value.scriptIndex = childActiveIndex.value
controlContent.value.sourceId = props.formControl.sourceId
controlContent.value.valueType = 2
setTimeout(async () => {
await startSimulateTest(controlContent.value)
},3000)
@@ -405,6 +407,7 @@ const stopLoading = async () => {
controlContent.value.scriptId = '9ff96807cf8c7524587982ed8baa8b57'
controlContent.value.scriptIndex = childActiveIndex.value
controlContent.value.sourceId = props.formControl.sourceId
controlContent.value.valueType = 2
await closeSimulateTest(controlContent.value)
emit('update:pauseDisabled', true)
emit('update:startDisabeld', true)

View File

@@ -83,6 +83,7 @@ const controlContent = ref<controlSource.ResControl>({
scriptId: '',
scriptIndex: 0,
sourceId: '',
valueType: -1,
})
//开始创建webSocket客户端
const dataSocket = reactive({
@@ -267,6 +268,7 @@ const start = async () => {
controlContent.value.userPageId = 'cdf'
controlContent.value.scriptId = '9ff96807cf8c7524587982ed8baa8b57'
controlContent.value.scriptIndex = scriptIndex.value
controlContent.value.valueType = 2
await checkSimulate(controlContent.value)
}