|
@@ -600,30 +600,11 @@ const projectTreeClick = ({ data, keys }) => {
|
|
}
|
|
}
|
|
//树菜单被点击
|
|
//树菜单被点击
|
|
const ElTreeMenuClick = async ({ data, keys }) => {
|
|
const ElTreeMenuClick = async ({ data, keys }) => {
|
|
|
|
+ // debugger
|
|
setStoreValue('wbsTreeExpandKeys', keys)
|
|
setStoreValue('wbsTreeExpandKeys', keys)
|
|
treeAutoExpandKeys.value = keys || []
|
|
treeAutoExpandKeys.value = keys || []
|
|
if (data?.extType === 2) {
|
|
if (data?.extType === 2) {
|
|
// 声像节点显示声像文件同步菜单
|
|
// 声像节点显示声像文件同步菜单
|
|
- // if (data?.storageType === 5 && data?.associationType === 3) {
|
|
|
|
- // ElTreeMenu.value = [
|
|
|
|
- // { icon: 'add-circle', label: '新增', key: 'add' },
|
|
|
|
- // { icon: 'draft', label: '编辑', key: 'edit' },
|
|
|
|
- // { icon: 'delete-bin', label: '删除', key: 'del' },
|
|
|
|
- // { icon: 'refresh', label: '目录同步', key: 'sync' },
|
|
|
|
- // { icon: 'refresh', label: '文件同步', key: 'fileSync' },
|
|
|
|
- // { icon: 'sort-asc', label: '排序', key: 'sort' },
|
|
|
|
- // { icon: 'refresh', label: '声像文件同步', key: 'syncVocie' },
|
|
|
|
- // ]
|
|
|
|
- // } else {
|
|
|
|
- // ElTreeMenu.value = [
|
|
|
|
- // { icon: 'add-circle', label: '新增', key: 'add' },
|
|
|
|
- // { icon: 'draft', label: '编辑', key: 'edit' },
|
|
|
|
- // { icon: 'delete-bin', label: '删除', key: 'del' },
|
|
|
|
- // { icon: 'refresh', label: '目录同步', key: 'sync' },
|
|
|
|
- // { icon: 'refresh', label: '文件同步', key: 'fileSync' },
|
|
|
|
- // { icon: 'sort-asc', label: '排序', key: 'sort' },
|
|
|
|
- // ]
|
|
|
|
- // }
|
|
|
|
ElTreeMenu.value = [
|
|
ElTreeMenu.value = [
|
|
{ icon: 'add-circle', label: '新增', key: 'add' },
|
|
{ icon: 'add-circle', label: '新增', key: 'add' },
|
|
{ icon: 'draft', label: '编辑', key: 'edit' },
|
|
{ icon: 'draft', label: '编辑', key: 'edit' },
|
|
@@ -631,36 +612,45 @@ const ElTreeMenuClick = async ({ data, keys }) => {
|
|
{ icon: 'refresh', label: '目录同步', key: 'sync' },
|
|
{ icon: 'refresh', label: '目录同步', key: 'sync' },
|
|
{ icon: 'refresh', label: '文件同步', key: 'fileSync' },
|
|
{ icon: 'refresh', label: '文件同步', key: 'fileSync' },
|
|
{ icon: 'sort-asc', label: '排序', key: 'sort' },
|
|
{ icon: 'sort-asc', label: '排序', key: 'sort' },
|
|
-
|
|
|
|
]
|
|
]
|
|
|
|
|
|
} else {
|
|
} else {
|
|
// 声像节点显示声像文件同步菜单
|
|
// 声像节点显示声像文件同步菜单
|
|
- // if (data?.storageType === 5 && data?.associationType === 3) {
|
|
|
|
- // ElTreeMenu.value = [
|
|
|
|
- // { icon: 'add-circle', label: '新增', key: 'add' },
|
|
|
|
- // { icon: 'draft', label: '编辑', key: 'edit' },
|
|
|
|
- // { icon: 'delete-bin', label: '删除', key: 'del' },
|
|
|
|
- // { icon: 'refresh', label: '目录同步', key: 'sync' },
|
|
|
|
- // { icon: 'sort-asc', label: '排序', key: 'sort' },
|
|
|
|
- // { icon: 'refresh', label: '声像文件同步', key: 'syncVocie' },
|
|
|
|
- // ]
|
|
|
|
- // } else {
|
|
|
|
- // ElTreeMenu.value = [
|
|
|
|
- // { icon: 'add-circle', label: '新增', key: 'add' },
|
|
|
|
- // { icon: 'draft', label: '编辑', key: 'edit' },
|
|
|
|
- // { icon: 'delete-bin', label: '删除', key: 'del' },
|
|
|
|
- // { icon: 'refresh', label: '目录同步', key: 'sync' },
|
|
|
|
- // { icon: 'sort-asc', label: '排序', key: 'sort' },
|
|
|
|
- // ]
|
|
|
|
- // }
|
|
|
|
- ElTreeMenu.value = [
|
|
|
|
- { icon: 'add-circle', label: '新增', key: 'add' },
|
|
|
|
- { icon: 'draft', label: '编辑', key: 'edit' },
|
|
|
|
- { icon: 'delete-bin', label: '删除', key: 'del' },
|
|
|
|
- { icon: 'refresh', label: '目录同步', key: 'sync' },
|
|
|
|
- { icon: 'sort-asc', label: '排序', key: 'sort' },
|
|
|
|
- ]
|
|
|
|
|
|
+ if (data?.associationType === 3) {
|
|
|
|
+ ElTreeMenu.value = [
|
|
|
|
+ { icon: 'add-circle', label: '新增', key: 'add' },
|
|
|
|
+ { icon: 'draft', label: '编辑', key: 'edit' },
|
|
|
|
+ { icon: 'delete-bin', label: '删除', key: 'del' },
|
|
|
|
+ { icon: 'refresh', label: '目录同步', key: 'sync' },
|
|
|
|
+ { icon: 'sort-asc', label: '排序', key: 'sort' },
|
|
|
|
+ { icon: 'refresh', label: '声像文件同步', key: 'syncVocie' },
|
|
|
|
+ ]
|
|
|
|
+ } else if (data?.associationType === 6) {
|
|
|
|
+ ElTreeMenu.value = [
|
|
|
|
+ { icon: 'add-circle', label: '新增', key: 'add' },
|
|
|
|
+ { icon: 'draft', label: '编辑', key: 'edit' },
|
|
|
|
+ { icon: 'delete-bin', label: '删除', key: 'del' },
|
|
|
|
+ { icon: 'refresh', label: '目录同步', key: 'sync' },
|
|
|
|
+ { icon: 'sort-asc', label: '排序', key: 'sort' },
|
|
|
|
+ { icon: 'refresh', label: '日志文件同步', key: 'syncVocie' },
|
|
|
|
+ ]
|
|
|
|
+ } else {
|
|
|
|
+ ElTreeMenu.value = [
|
|
|
|
+ { icon: 'add-circle', label: '新增', key: 'add' },
|
|
|
|
+ { icon: 'draft', label: '编辑', key: 'edit' },
|
|
|
|
+ { icon: 'delete-bin', label: '删除', key: 'del' },
|
|
|
|
+ { icon: 'refresh', label: '目录同步', key: 'sync' },
|
|
|
|
+ { icon: 'sort-asc', label: '排序', key: 'sort' },
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ // ElTreeMenu.value = [
|
|
|
|
+ // { icon: 'add-circle', label: '新增', key: 'add' },
|
|
|
|
+ // { icon: 'draft', label: '编辑', key: 'edit' },
|
|
|
|
+ // { icon: 'delete-bin', label: '删除', key: 'del' },
|
|
|
|
+ // { icon: 'refresh', label: '目录同步', key: 'sync' },
|
|
|
|
+ // { icon: 'sort-asc', label: '排序', key: 'sort' },
|
|
|
|
+ // { icon: 'refresh', label: '声像文件同步', key: 'syncVocie' },
|
|
|
|
+ // ]
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|