祁鹏飞 1 mesiac pred
rodič
commit
7be10ea0f8

+ 2 - 2
src/components/SearchForm/index.vue

@@ -30,7 +30,7 @@
       </ElCol>
       <ElCol :md="isOffset ? span : span / 2" :offset="btnOffset">
         <ElFormItem>
-          <div class="flex j-end" style="width: 100%;">
+          <div class="flex justify-end" style="width: 100%;">
             <el-button type="primary" @click="handleSearch">
               <template #icon>
                 <SvgIcon name="i-ep:search" />
@@ -74,7 +74,7 @@ const props = withDefaults(defineProps<{
   isOffset?: boolean; // 是否正规化按钮位置,而不是紧贴formItem后面
 }>(), {
   span: 8,
-  isOffset: false,
+  isOffset: true,
   filterable: false
 });
 

+ 10 - 9
src/views/quoteConfig/dispatch/components/rule.vue

@@ -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";
 };
 
 // 运算符切换时重置值