|
|
@@ -702,7 +702,9 @@ const nodeIds = ref('')
|
|
|
const treecontractId = ref('')
|
|
|
//自动展开缓存
|
|
|
const treeAutoExpandKeys = ref(getStoreValue('wbsTreeExpandKeys') || [])
|
|
|
+const checkTreeData = ref(null)
|
|
|
const projectTreeClick = ({ data, keys }) => {
|
|
|
+ checkTreeData.value = data
|
|
|
setStoreValue('wbsTreeExpandKeys', keys)
|
|
|
treeAutoExpandKeys.value = keys || []
|
|
|
nodeIds.value = data.id || ''
|
|
|
@@ -1343,8 +1345,13 @@ const movesModalClose = () => {
|
|
|
const sortModal = ref(false)
|
|
|
//显示
|
|
|
const tableSortClick = () => {
|
|
|
+ const { hasChildren } = checkTreeData.value
|
|
|
+ if (hasChildren) {
|
|
|
+ window.$message?.error('仅支持最小存储节点内进行排序,若需跨节点排序,请使用【跨目录移动】按钮')
|
|
|
+ return
|
|
|
+ }
|
|
|
sortModal.value = true
|
|
|
- getSortTableData()
|
|
|
+ getSortTableData()
|
|
|
}
|
|
|
|
|
|
//搜索表单
|