瀏覽代碼

feat:项目管理多页面推送提示,只读处理

vian 5 年之前
父節點
當前提交
42de7f2c32
共有 3 個文件被更改,包括 15 次插入0 次删除
  1. 2 0
      public/web/socket/connection.js
  2. 9 0
      web/building_saas/pm/js/pm_newMain.js
  3. 4 0
      web/common/html/header.html

+ 2 - 0
public/web/socket/connection.js

@@ -100,6 +100,8 @@ socketObject = {
             if (isActive) {
             if (isActive) {
                 $("#message").html(`树结构发生变化,请<a href="javascript:void(0);" id="load-data">点击刷新列表</a>`);
                 $("#message").html(`树结构发生变化,请<a href="javascript:void(0);" id="load-data">点击刷新列表</a>`);
                 $('#load-data').on('click', () => projTreeObj.handleNotifyClick(expandState, selection));
                 $('#load-data').on('click', () => projTreeObj.handleNotifyClick(expandState, selection));
+                $('#notify > button').hide();
+                $('#empty-modal').modal('show');
                 $("#notify").show();
                 $("#notify").show();
             }
             }
         });
         });

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

@@ -515,6 +515,10 @@ const projTreeObj = {
     },
     },
     //升级后选中节点的后兄弟节点不成为其子节点,因为有层级类型限制(相当于选中节点移动到父项后成为其后兄弟)
     //升级后选中节点的后兄弟节点不成为其子节点,因为有层级类型限制(相当于选中节点移动到父项后成为其后兄弟)
     upLevel: function () {
     upLevel: function () {
+        if (STATE.moving) {
+            return;
+        }
+        STATE.moving = true;
         let selected = projTreeObj.tree.selected,
         let selected = projTreeObj.tree.selected,
             parent = selected.parent.parent,
             parent = selected.parent.parent,
             next = selected.parent.nextSibling,
             next = selected.parent.nextSibling,
@@ -531,6 +535,10 @@ const projTreeObj = {
         this.doAfterTreeOpr({selected, parent, next, projectMap});
         this.doAfterTreeOpr({selected, parent, next, projectMap});
     },
     },
     downLevel: function () {
     downLevel: function () {
+        if (STATE.moving) {
+            return;
+        }
+        STATE.moving = true;
         let selected = projTreeObj.tree.selected,
         let selected = projTreeObj.tree.selected,
             parent = null,
             parent = null,
             next = null,
             next = null,
@@ -1660,6 +1668,7 @@ const projTreeObj = {
         init(refresh, callback, expandCallback);
         init(refresh, callback, expandCallback);
     },
     },
     handleNotifyClick: function (expandState, selection) {
     handleNotifyClick: function (expandState, selection) {
+        $('#empty-modal').modal('hide');
         $('#notify').hide();
         $('#notify').hide();
         const callback = () => {
         const callback = () => {
             const sheet = this.workBook.getSheet(0);
             const sheet = this.workBook.getSheet(0);

+ 4 - 0
web/common/html/header.html

@@ -194,6 +194,10 @@
         </div>
         </div>
     </div>
     </div>
 </div>
 </div>
+<div class="modal fade" id="empty-modal" data-backdrop="static" style="display: none;" aria-hidden="true">
+    <div class="modal-dialog" role="document">
+    </div>
+</div>
 <!--激活产品 & 售后服务 & 联系客服-->
 <!--激活产品 & 售后服务 & 联系客服-->
 <!--办事处客服列表-->
 <!--办事处客服列表-->
 <div class="modal fade z-index-3000" id="activ" data-backdrop="static" style="display: none; overflow: auto;" aria-hidden="true">
 <div class="modal fade z-index-3000" id="activ" data-backdrop="static" style="display: none; overflow: auto;" aria-hidden="true">