|
@@ -581,22 +581,50 @@ const ElTreeMenuClick = async ({ data, keys }) => {
|
|
|
setStoreValue('wbsTreeExpandKeys', keys)
|
|
|
treeAutoExpandKeys.value = keys || []
|
|
|
if (data?.extType === 2) {
|
|
|
- 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' },
|
|
|
- ]
|
|
|
+ // 声像节点显示声像文件同步菜单
|
|
|
+ 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' },
|
|
|
+ ]
|
|
|
+ }
|
|
|
+
|
|
|
} 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' },
|
|
|
- ]
|
|
|
+ // 声像节点显示声像文件同步菜单
|
|
|
+ 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: 'sort-asc', label: '排序', key: 'sort' },
|
|
|
+ ]
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
//回车搜索
|