duy 1 сар өмнө
parent
commit
eb156c31a3

+ 9 - 0
src/views/data-fill/wbs.vue

@@ -1995,6 +1995,15 @@ const setTreeMenuDataClick = ({ key, node, data }) => {
             window?.$message?.warning('该节点已存在上报数据,不允许删除')
         }
     } else if (key === 'sort') {
+            if (
+            data['colorStatus'] !== 1 || data['colorStatus'] === 2 || data['colorStatus'] === null
+            || data['colorStatus'] === -1
+           
+        ) {
+             window?.$message?.warning('该节点已存在上报数据,不允许排序节点数据')
+             return
+
+        }
         let nodes = [],
             childNodes = []
         if (tabKey === 'tree') {