Browse Source

修改清单名称,调试造价书选中树节点,数组属性中多出3段奇怪的代码。

chenshilong 2 năm trước cách đây
mục cha
commit
510dda4c4c
1 tập tin đã thay đổi với 0 bổ sung17 xóa
  1. 0 17
      public/web/common_util.js

+ 0 - 17
public/web/common_util.js

@@ -24,23 +24,6 @@ function parseFloatPlus(value) {
   return isNaN(rst) ? 0 : rst;
 }
 
-// 数组合并,并去重复。
-Array.prototype.merge = function (arr) {
-  if (arr.length > 0) {
-    for (let e of arr) {
-      if (!this.includes(e)) this.push(e);
-    }
-  }
-};
-
-function mergeArr(arr1, arr2) { // 
-    if (arr2.length > 0) {
-      for (let e of arr2) {
-        if (arr1.includes(e)) arr1.push(e);
-      }
-    }
-  };
-
 function seqString(num, length) {
   var numstr = num.toString();
   var l = numstr.length;