فهرست منبع

方案配置-自选方案-商业险弹窗空白

@dongkboy 5 ماه پیش
والد
کامیت
4e9cf5e853
1فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 5 5
      src/layouts/components/InsuranceType/index.vue

+ 5 - 5
src/layouts/components/InsuranceType/index.vue

@@ -123,7 +123,7 @@ let editIndex = ref(0)
 const initEditData = (data, index, type, productId) => {
   editIndex.value = index
   insuranceType.value = type
-    console.log('选择好的数据', data)
+    // console.log('选择好的数据', data)
   api.projectApi.getBusinessInsurance(productId).then(res => {
     if(res.code == 200) {
       if(res.data&&res.data.length>0) {
@@ -142,12 +142,12 @@ const initEditData = (data, index, type, productId) => {
             item.checked = true
             item?.options?.forEach(sub => {
                 sub.checked = false
-                if(type === 1) {
-                    if(item.optionId === sub.id) {
+                if(type == 1) {
+                    if(item.moneyId === sub.id) {
                         sub.checked = true
                     }
-                } else if(type === 2) {
-                    if(item.optionId.includes(sub.id)) {
+                } else if(type == 2) {
+                    if(item.moneyId.includes(sub.id)) {
                         sub.checked = true
                     }
                 }