Pārlūkot izejas kodu

规则配置-选择分类样式修改

liyanyan 5 dienas atpakaļ
vecāks
revīzija
690f375778
1 mainītis faili ar 7 papildinājumiem un 4 dzēšanām
  1. 7 4
      src/views/rule/config/components/CreateDialog.vue

+ 7 - 4
src/views/rule/config/components/CreateDialog.vue

@@ -1317,6 +1317,7 @@
               v-for="(tag) in item.child"
               :key="tag.field"
               size="large"
+              type="info"
               @click="handleSubCategorySelect(tag)"
             >
               {{ tag.field_name }}
@@ -1961,15 +1962,17 @@ export default {
       const { qztj } = this.ruleForm
       let result = true
       const e_index = []
+      console.log('>>>>>>>>>>', qztj)
 
       if (qztj.length) {
         for (let i = 0; i < qztj.length; i++) {
           qztj[i].condition_content.forEach(item => {
             // 检查必填项
-            const isEmpty = !item.param1 ||
-              (Array.isArray(item.param2) ? item.param2.length === 0 : !item.param2) ||
-              !item.condition
-
+            // const isEmpty = !item.param1 ||
+            //   (Array.isArray(item.param2) ? item.param2.length === 0 : !item.param2) ||
+            //   !item.condition
+            // 检查必填项
+            const isEmpty = !item.param1 || !item.condition
             if (isEmpty) {
               e_index.push(i + 1)
             }