|
@@ -134,6 +134,7 @@ import PopupManager from '@/utils/popup'
|
|
|
import IbpsContextmenu from '@/components/ibps-contextmenu'
|
|
import IbpsContextmenu from '@/components/ibps-contextmenu'
|
|
|
import IbpsContextmenuList from '@/components/ibps-contextmenu/components/contentmenu-list'
|
|
import IbpsContextmenuList from '@/components/ibps-contextmenu/components/contentmenu-list'
|
|
|
import filePng from '@/assets/images/form/file.png'
|
|
import filePng from '@/assets/images/form/file.png'
|
|
|
|
|
+import { getSetting } from '@/utils/query'
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
IbpsContextmenu,
|
|
IbpsContextmenu,
|
|
@@ -435,8 +436,11 @@ export default {
|
|
|
this.handleReferenceContextmenu(event)
|
|
this.handleReferenceContextmenu(event)
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- handleContextmenuList(data) {
|
|
|
|
|
|
|
+ async handleContextmenuList(data) {
|
|
|
this.contextmenuList = []
|
|
this.contextmenuList = []
|
|
|
|
|
+ const res = await getSetting('fileLeftTree')
|
|
|
|
|
+ const privateShow =
|
|
|
|
|
+ res && res.privateShow !== undefined ? res.privateShow : true
|
|
|
const isRoot = data[this.pidKey] === this.rootPId
|
|
const isRoot = data[this.pidKey] === this.rootPId
|
|
|
this.contextmenus.forEach((menu) => {
|
|
this.contextmenus.forEach((menu) => {
|
|
|
if (!menu.rights) {
|
|
if (!menu.rights) {
|
|
@@ -447,7 +451,7 @@ export default {
|
|
|
this.contextmenuList.push(menu)
|
|
this.contextmenuList.push(menu)
|
|
|
}
|
|
}
|
|
|
} else if (typeof menu.rights === 'function') {
|
|
} else if (typeof menu.rights === 'function') {
|
|
|
- if (menu.rights.call(this, menu, data, isRoot)) {
|
|
|
|
|
|
|
+ if (menu.rights.call(this, menu, data, isRoot, privateShow)) {
|
|
|
this.contextmenuList.push(menu)
|
|
this.contextmenuList.push(menu)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|