Browse Source

设备表格编辑置空修改为空字符串

zhangyu 5 years ago
parent
commit
52a917846c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/components/handsontables/device.vue

+ 2 - 1
src/components/handsontables/device.vue

@@ -935,7 +935,8 @@ export default {
       data.map((item, index) => {
         let arr = change[index][1].split(".");
         let info = {};
-        info[arr[1]] = [{ value: item[arr[0]][arr[1]] != "" ? item[arr[0]][arr[1]] : null }];
+        // info[arr[1]] = [{ value: item[arr[0]][arr[1]] != "" ? item[arr[0]][arr[1]] : null }];
+        info[arr[1]] = [{ value: item[arr[0]][arr[1]]}];
         param.data.criterias.push({
           id: item.id,
           infos: info