Browse Source

feat: 新建分段也需要限制

vian 1 year ago
parent
commit
e4a3315a91
1 changed files with 4 additions and 0 deletions
  1. 4 0
      web/building_saas/pm/js/pm_newMain.js

+ 4 - 0
web/building_saas/pm/js/pm_newMain.js

@@ -340,6 +340,10 @@ const projTreeObj = {
         return projTreeObj.getAddBtnDisabled(projectType.tender);
       },
       callback: function (key, opt) {
+        if (isStopCreate()) {
+          $('#stop-create-dialog').modal('show');
+          return;
+        }
         //弹出新建单位工程之前,判断当前使用版本,且当前使用单位工程数是否已到最大值
         let selectedItem = projTreeObj.tree.selected;
         $("#add-tender-dialog").modal("show");