解决编辑数据产品时未反显
Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -579,6 +579,7 @@ onBeforeMount(() => { | ... | @@ -579,6 +579,7 @@ onBeforeMount(() => { |
| 579 | productName: detailInfo.value?.damName, | 579 | productName: detailInfo.value?.damName, |
| 580 | description: detailInfo.value.propertyDescription | 580 | description: detailInfo.value.propertyDescription |
| 581 | }); | 581 | }); |
| 582 | baseInfoFormItems.value[0].options = catalogProductList.value; | ||
| 582 | } | 583 | } |
| 583 | } | 584 | } |
| 584 | if (item.field == 'subjectDomain') { | 585 | if (item.field == 'subjectDomain') { |
| ... | @@ -671,7 +672,6 @@ onBeforeMount(() => { | ... | @@ -671,7 +672,6 @@ onBeforeMount(() => { |
| 671 | catalogProductList.value = []; | 672 | catalogProductList.value = []; |
| 672 | if (res.code == proxy.$passCode) { | 673 | if (res.code == proxy.$passCode) { |
| 673 | catalogProductList.value = res.data || []; | 674 | catalogProductList.value = res.data || []; |
| 674 | baseInfoFormItems.value[0].options = catalogProductList.value; | ||
| 675 | if (detailInfo.value?.productCode) { | 675 | if (detailInfo.value?.productCode) { |
| 676 | let item = catalogProductList.value.find(c => c.productId == detailInfo.value?.productCode); | 676 | let item = catalogProductList.value.find(c => c.productId == detailInfo.value?.productCode); |
| 677 | !item && catalogProductList.value.push({ | 677 | !item && catalogProductList.value.push({ |
| ... | @@ -680,6 +680,7 @@ onBeforeMount(() => { | ... | @@ -680,6 +680,7 @@ onBeforeMount(() => { |
| 680 | description: detailInfo.value?.propertyDescription | 680 | description: detailInfo.value?.propertyDescription |
| 681 | }); | 681 | }); |
| 682 | } | 682 | } |
| 683 | baseInfoFormItems.value[0].options = catalogProductList.value; | ||
| 683 | } else { | 684 | } else { |
| 684 | proxy.$ElMessage.error(res.msg); | 685 | proxy.$ElMessage.error(res.msg); |
| 685 | } | 686 | } | ... | ... |
-
Please register or sign in to post a comment