ソースを参照

修复变更和多人协同bug

laiguoran 4 年 前
コミット
a223943f3a
2 ファイル変更7 行追加1 行削除
  1. 6 1
      app/public/js/change.js
  2. 1 0
      app/service/ledger_cooperation.js

+ 6 - 1
app/public/js/change.js

@@ -274,7 +274,12 @@ $(document).ready(() => {
        if (status !== 0) {
            url += '/status/'+ status;
        }
-       window.location.href = url + window.location.search;
+       let orderSetting = getLocalCache('change-'+ $('#tenderId').val() +'-list-order');
+       if (orderSetting) {
+           const orders = orderSetting.split('|');
+           url += '?sort=' + orders[0] + '&order=' + orders[1];
+       }
+       window.location.href = url;
     });
     // 不再显示首次使用
     $('#changeFirst').click(function () {

+ 1 - 0
app/service/ledger_cooperation.js

@@ -34,6 +34,7 @@ module.exports = app => {
                 const result = await this.db.insert(this.tableName, data);
                 data.id = result.insertId;
                 data.sign_path = null;
+                data.company = '';
                 data.status = 1;
                 // }
             } else if (data.pwd !== '' && info) {