浏览代码

Merge branch 'fix-2.0' of eta_mini/eta_mini_crm_front into master_ht

leichen 3 月之前
父节点
当前提交
7e6ac54e2f

+ 6 - 1
src/views/riskLevel/RelationShip/components/EditRelation.vue

@@ -17,6 +17,12 @@ watch(
     if(n&&props.editData){
       formState.userLevel=props.editData.CustomerRisk
       formState.productLevel=props.editData.ProductRisk
+    } else{
+      formState.userLevel=''
+      formState.productLevel=''
+    }
+    if(n){
+      getProductRiskLevelOpts()
     }
   }
 )
@@ -45,7 +51,6 @@ async function getProductRiskLevelOpts() {
     })
   }
 }
-getProductRiskLevelOpts()
 
 const formRef=ref(null)
 const formRules = {

+ 3 - 1
src/views/riskLevel/product/components/SetRisk.vue

@@ -17,6 +17,9 @@ watch(
     if(n&&props.editData){
       formState.riskLevel=props.editData.riskLevel
     }
+    if(n){
+      getProductRiskLevelOpts()
+    }
   }
 )
 
@@ -35,7 +38,6 @@ async function getProductRiskLevelOpts() {
     })
   }
 }
-getProductRiskLevelOpts()
 
 const formRef=ref(null)
 const formRules = {