|
@@ -167,7 +167,9 @@
|
|
|
<HcTooltip keys="wbs_views_sort_btn">
|
|
|
<el-button
|
|
|
v-if="nodeDataInfo?.nodeClass !== 2"
|
|
|
- :disabled="ListItemDatas.length <= 0"
|
|
|
+ :disabled="ListItemDatas.length <= 0 || (nodeDataInfo?.colorStatus !== 1 && nodeDataInfo?.colorStatus !== 2)"
|
|
|
+
|
|
|
+
|
|
|
hc-btn
|
|
|
type="primary"
|
|
|
@click="sortFormClick"
|
|
@@ -1995,15 +1997,7 @@ 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') {
|