Browse Source

修改卡的回显问题

wxy 4 months ago
parent
commit
b272b7f600
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/views/flowPool/components/add.vue

+ 5 - 1
src/views/flowPool/components/add.vue

@@ -156,12 +156,16 @@ watch(() => record.value, val => {
   const datas = JSON.parse(JSON.stringify(val))
   if (props.typeCurrent == 2) {
     formState.value = datas
+    formState.value.iccids = []
     updateCardList({ id: val.simTariffId }).then(res => {
       if (res.code === 200) {
-        formState.value.iccids = val.iccids
+        val.iccids.forEach(res => {
+          formState.value.iccids.push(res.iccid)
+        })
         card.value = res.data
       }
     })
+    console.log(formState.value.iccids);
   }
 }, { deep: true })