zhangyu hace 5 años
padre
commit
8863521020
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  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);
             }
           }
         })