|
|
@@ -442,9 +442,9 @@ const getOptions = (conditionValue: string) => {
|
|
|
const target = dispatchList.value.find(
|
|
|
(item) => item.attrCode === conditionValue
|
|
|
);
|
|
|
- let arr = target?.dictLabal || []
|
|
|
- if (conditionValue === 'InsruanceProduct') arr = arr.map(v => ({ ...v, idStr: v.code }))
|
|
|
- return arr;
|
|
|
+ let arr=target?.dictLabal || []
|
|
|
+ if(conditionValue==='InsruanceProduct') arr=arr.map(v=>({...v,idStr:v.code}))
|
|
|
+ return target?.dictLabal || [];
|
|
|
};
|
|
|
|
|
|
// 工具函数:根据条件类型获取输入组件类型
|
|
|
@@ -455,13 +455,14 @@ const getConditionType = (conditionValue: string) => {
|
|
|
return target?.attrType || "input";
|
|
|
};
|
|
|
|
|
|
-// 条件切换时的处 const target = dispatchList.value.find(
|
|
|
-(item) => item.attrCode === conditionValue
|
|
|
- );
|
|
|
-ator = "";
|
|
|
-domain.checkAll = false;
|
|
|
-domain.indeterminate = false
|
|
|
-domain.attrType = target?.attrType || "input";
|
|
|
+// 条件切换时的处理
|
|
|
+const handleConditionChange = (domain: ConditionRow, val: string) => {
|
|
|
+ const target = dispatchList.value.find((item: any) => item.attrCode == val)
|
|
|
+ domain.max = null;
|
|
|
+ domain.operator = "";
|
|
|
+ domain.checkAll = false;
|
|
|
+ domain.indeterminate = false
|
|
|
+ domain.attrType = target?.attrType || "input";
|
|
|
};
|
|
|
|
|
|
// 运算符切换时重置值
|