|
@@ -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 = {
|