Procházet zdrojové kódy

1. 奖罚金,不限制仅新增人和原报可删除数据
2. 导入计价,新增重启公路(2018)

MaiXinRong před 1 dnem
rodič
revize
949f039214
2 změnil soubory, kde provedl 1 přidání a 6 odebrání
  1. 1 1
      app/lib/dsk.js
  2. 0 5
      app/public/js/se_bonus.js

+ 1 - 1
app/lib/dsk.js

@@ -72,7 +72,7 @@ class DSK {
     }
     }
 
 
     async getCompilation() {
     async getCompilation() {
-        const validName = ['全国公路(2018)', '广东公路(2023)', '浙江公路(2025)', '重庆建设(2018)', '广东建设(2018)'];
+        const validName = ['全国公路(2018)', '广东公路(2023)', '浙江公路(2025)', '重庆建设(2018)', '广东建设(2018)', '重庆公路(2018)'];
         const url = this.url + 'api/compilation/external/list';
         const url = this.url + 'api/compilation/external/list';
         const postData = {};
         const postData = {};
         const result = this.dealWith(await this.ctx.helper.sendRequest(url, postData, 'GET', 'json', true));
         const result = this.dealWith(await this.ctx.helper.sendRequest(url, postData, 'GET', 'json', true));

+ 0 - 5
app/public/js/se_bonus.js

@@ -413,7 +413,6 @@ $(document).ready(() => {
                 if (!sels || !sels[0]) return;
                 if (!sels || !sels[0]) return;
                 const hint = {
                 const hint = {
                     isOld: {type: 'warning', msg: '本项为往期数据,不可删除'},
                     isOld: {type: 'warning', msg: '本项为往期数据,不可删除'},
-                    invalidDel: {type: 'warning', msg: '本项不是您新增的,只有原报和新增人可删除'},
                 };
                 };
 
 
                 for (let iRow = sels[0].row, iLen = sels[0].row + sels[0].rowCount; iRow < iLen; iRow++) {
                 for (let iRow = sels[0].row, iLen = sels[0].row + sels[0].rowCount; iRow < iLen; iRow++) {
@@ -422,10 +421,6 @@ $(document).ready(() => {
                         toastMessageUniq(hint.isOld);
                         toastMessageUniq(hint.isOld);
                         continue;
                         continue;
                     } else {
                     } else {
-                        if (node.uid !== userID && stageUserId !== userID) {
-                            toastMessageUniq(hint.invalidDel);
-                            continue;
-                        }
                         datas.push(node.id);
                         datas.push(node.id);
                     }
                     }
                 }
                 }