微调
This commit is contained in:
@@ -11,5 +11,6 @@ export namespace controlSource {
|
||||
scriptId: string;
|
||||
scriptIndex: number;
|
||||
sourceId: string;
|
||||
valueType:number // 1为绝对值脚本、2为相对值脚本
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user