Forráskód Böngészése

fix: 清单规则编辑器,插入空行复制已有单元格的内容,粘贴到空行位置,再次编辑修改,刷新后新增的数据不应变化 (#GLY-5260)

vian 3 napja
szülő
commit
02b6c620ce
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      web/maintain/bills_lib/html/qingdan.html

+ 4 - 0
web/maintain/bills_lib/html/qingdan.html

@@ -936,6 +936,10 @@
             let curData;
             info.changedCells.forEach(({ row, col }) => {
                 const node = controller.tree.items[row];
+                // 拖动填充的时候tag也会被覆盖,重新设置
+                if (col === 0 && node) {
+                    sheet.setTag(row, col, node.data.ID);
+                }
                 if (curRow !== row) {
                     curData = { ID: node.data.ID };
                     postData.push(curData);