Selaa lähdekoodia

fix: 信息价空数据ai填值后操作bug

vian 7 kuukautta sitten
vanhempi
commit
009207f586
1 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  1. 9 0
      web/maintain/price_info_lib/js/common.js

+ 9 - 0
web/maintain/price_info_lib/js/common.js

@@ -73,6 +73,15 @@ function getRowDiffData(curRowData, cacheRowData, headers) {
   return item;
 }
 
+function getRowAllData(curRowData, headers) {
+  let item = {};
+  headers.forEach(({ dataCode }) => {
+    const curValue = curRowData[dataCode];
+    item[dataCode] = curValue || '';
+  });
+  return item;
+}
+
 const TIME_OUT = 1000 * 20;
 const libID = window.location.search.match(/libID=([^&]+)/)[1];