Ver Fonte

核保因子条件配置

lihongxiao há 2 anos atrás
pai
commit
970bc5054b

+ 17 - 9
src/views/AgreementManage/CarInsurance/components/PremiumFactor.vue

@@ -9,7 +9,7 @@
       >
     </div>
     <el-form ref="CostfactorForm" :model="formData" label-width="190px">
-      <div v-for="(item, index) in circularContent" :key="index">
+      <div v-for="(item, index) in circular" :key="index">
         <el-card
           class="box-card"
           :body-style="{ display: item.hideAll ? 'block' : 'none' }"
@@ -568,11 +568,7 @@ export default {
       licenseOptions: [],
       energyTypeoptions: [],
       circularContentPro:[],
-    };
-  },
-  computed: {
-    circularContent() {
-      return [
+      circularContent:[
         {
           title: "车险预核条件",
           hideAll: true,
@@ -925,7 +921,19 @@ export default {
             },
           ],
         },
-      ];
+      ]
+    };
+  },
+  computed: {
+    circular:{
+      get: function () {
+        if (this.circularContent) {
+          return this.circularContent
+        }
+      },
+      set: function (newValue) {
+        this.circularContent=newValue
+      },
     },
   },
   created() {
@@ -1039,8 +1047,8 @@ export default {
     },
     addConditions(type) {
       this.dialogVisible = true;
-      console.log(this.circularContentPro,this.circularContent,111111111)
-
+      this.circular=[]
+      this.circular=JSON.parse(JSON.stringify(this.circularContentPro)) 
       if (type == "1") {
         this.dialogTitle = "条件配置";
       } else {