zhangyu 5 yıl önce
ebeveyn
işleme
8863521020
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. 3 2
      src/components/data_admin/zoneInput.vue

+ 3 - 2
src/components/data_admin/zoneInput.vue

@@ -22,6 +22,7 @@
 </template>
 
 <script>
+import tools from "@/utils/scan/tools";
 export default {
   data() {
     return {
@@ -107,10 +108,10 @@ export default {
         this.inputTypeList[key].map(item => {
           if (item.inputValue != '' && item.inputValue != null) {
             if (item.inputValue instanceof Array) {
-              f[item.InfoPointCode] = item.inputValue.pop();
+              tools.setDataForKey(f, item.Path, item.inputValue.pop());
             }
             else {
-              f[item.InfoPointCode] = item.inputValue;
+              tools.setDataForKey(f, item.Path, item.inputValue);
             }
           }
         })