Преглед изворни кода

Merge branch 'master' of http://110.41.163.243:9980/kd-aiot/kd-aiot-frontend-qms into dengfei

695593266@qq.com пре 10 месеци
родитељ
комит
d12790239f
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      src/views/inspectionPlan/components/new-edit.vue

+ 4 - 1
src/views/inspectionPlan/components/new-edit.vue

@@ -645,9 +645,12 @@
           if (newVal && newVal.length > 0 && !newVal[0].sampleCode) {
             let count = newVal ? newVal.length : 0;
             const codeList = await this.batchCodes(count);
+            console.log(codeList, 'codeList 0000');
+            console.log(newVal, 'newVal');
             newVal.map(async (el, index) => {
               if (!el.sampleCode) {
-                el.sampleCode = codeList[index];
+                this.$set(el, 'sampleCode', codeList[index]);
+                // el.sampleCode = codeList[index];
               }
             });
           }