|
|
@@ -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
|
|
|
}
|
|
|
}
|