|
@@ -162,9 +162,9 @@ const selectAction = (val: string) => {
|
|
getAction(val);
|
|
getAction(val);
|
|
}
|
|
}
|
|
|
|
|
|
-function changeFunc(functionName: string) {
|
|
|
|
|
|
+function changeFunc(functionName: string, notSave?: boolean) {
|
|
inputs.value = functionCallList.value.find(item => item.key === functionName)?.inputs || []
|
|
inputs.value = functionCallList.value.find(item => item.key === functionName)?.inputs || []
|
|
- saveData()
|
|
|
|
|
|
+ if (!notSave) saveData()
|
|
}
|
|
}
|
|
|
|
|
|
//获取类型数据
|
|
//获取类型数据
|
|
@@ -174,7 +174,7 @@ const getAction = (val: string) => {
|
|
functionCallList.value = []
|
|
functionCallList.value = []
|
|
product.tabDeviceFucntion.getList({ productKey: productKey.value }).then((res: any) => {
|
|
product.tabDeviceFucntion.getList({ productKey: productKey.value }).then((res: any) => {
|
|
functionCallList.value = res
|
|
functionCallList.value = res
|
|
- if (fromData.value.functionCall?.functionName) changeFunc(fromData.value.functionCall?.functionName)
|
|
|
|
|
|
+ if (fromData.value.functionCall?.functionName) changeFunc(fromData.value.functionCall?.functionName, true)
|
|
})
|
|
})
|
|
break;
|
|
break;
|
|
case 'getProperties':
|
|
case 'getProperties':
|