瀏覽代碼

变更增加清单更新按钮

ellisran 1 月之前
父節點
當前提交
3dcecc837a
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/public/js/change_information.js

+ 3 - 3
app/public/js/change_information.js

@@ -6352,15 +6352,15 @@ function checkAndChange(changeListData, showTips = false) {
             }, function () {
             });
         }
-        if(removeList.length > 0) {
+        if(removeList.length > 0 && (!readOnly || shenpiPower)) {
             console.log(removeList);
             _.pullAll(changeList, removeList);
             postData(window.location.pathname + '/save', { type:'remove_list', updateData: removeList }, function (result) {
             }, function () {
             });
         }
-        if (showTips && (removeList.length > 0 || updateList.length > 0)) {
-            if (removeList.length > 0) {
+        if (showTips && ((removeList.length > 0 && (!readOnly || shenpiPower)) || updateList.length > 0)) {
+            if ((removeList.length > 0 && (!readOnly || shenpiPower))) {
                 toastr.error('已移除'+ removeList.length +'条变更清单数据');
             }
             if (updateList.length > 0) {