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