|
@@ -76,23 +76,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
mixins: [FixHeight],
|
|
mixins: [FixHeight],
|
|
|
data() {
|
|
data() {
|
|
|
- const extType = [
|
|
|
|
|
- 'txt',
|
|
|
|
|
- 'pdf',
|
|
|
|
|
- 'doc',
|
|
|
|
|
- 'docx',
|
|
|
|
|
- 'xls',
|
|
|
|
|
- 'xlsx',
|
|
|
|
|
- 'ppt',
|
|
|
|
|
- 'pptx',
|
|
|
|
|
- 'wps',
|
|
|
|
|
- 'jpg',
|
|
|
|
|
- 'jpeg',
|
|
|
|
|
- 'png',
|
|
|
|
|
- 'gif',
|
|
|
|
|
- 'mp3',
|
|
|
|
|
- 'mp4'
|
|
|
|
|
- ]
|
|
|
|
|
return {
|
|
return {
|
|
|
dialogFormVisible: false, // 弹窗
|
|
dialogFormVisible: false, // 弹窗
|
|
|
modifyNameVisible: false,
|
|
modifyNameVisible: false,
|
|
@@ -114,8 +97,32 @@ export default {
|
|
|
|
|
|
|
|
listData: [],
|
|
listData: [],
|
|
|
pagination: {},
|
|
pagination: {},
|
|
|
- sorts: {},
|
|
|
|
|
- listConfig: {
|
|
|
|
|
|
|
+ sorts: {}
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ setting() {
|
|
|
|
|
+ return this.$store.getters.setting
|
|
|
|
|
+ },
|
|
|
|
|
+ listConfig() {
|
|
|
|
|
+ const extType = [
|
|
|
|
|
+ 'txt',
|
|
|
|
|
+ 'pdf',
|
|
|
|
|
+ 'doc',
|
|
|
|
|
+ 'docx',
|
|
|
|
|
+ 'xls',
|
|
|
|
|
+ 'xlsx',
|
|
|
|
|
+ 'ppt',
|
|
|
|
|
+ 'pptx',
|
|
|
|
|
+ 'wps',
|
|
|
|
|
+ 'jpg',
|
|
|
|
|
+ 'jpeg',
|
|
|
|
|
+ 'png',
|
|
|
|
|
+ 'gif',
|
|
|
|
|
+ 'mp3',
|
|
|
|
|
+ 'mp4'
|
|
|
|
|
+ ]
|
|
|
|
|
+ return {
|
|
|
toolbars: [
|
|
toolbars: [
|
|
|
{
|
|
{
|
|
|
key: 'search'
|
|
key: 'search'
|
|
@@ -123,7 +130,8 @@ export default {
|
|
|
{
|
|
{
|
|
|
key: 'upLoad',
|
|
key: 'upLoad',
|
|
|
label: '上传',
|
|
label: '上传',
|
|
|
- icon: 'ibps-icon-upload'
|
|
|
|
|
|
|
+ icon: 'ibps-icon-upload',
|
|
|
|
|
+ visible: !this.setting.hiddenSysFile
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
key: 'downloadZip',
|
|
key: 'downloadZip',
|
|
@@ -131,7 +139,8 @@ export default {
|
|
|
icon: 'ibps-icon-download'
|
|
icon: 'ibps-icon-download'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- key: 'remove'
|
|
|
|
|
|
|
+ key: 'remove',
|
|
|
|
|
+ visible: !this.setting.hiddenSysFile
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
searchForm: {
|
|
searchForm: {
|
|
@@ -188,7 +197,8 @@ export default {
|
|
|
icon: 'ibps-icon-download'
|
|
icon: 'ibps-icon-download'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- key: 'remove'
|
|
|
|
|
|
|
+ key: 'remove',
|
|
|
|
|
+ visible: !this.setting.hiddenSysFile
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
}
|
|
}
|
|
@@ -292,7 +302,11 @@ export default {
|
|
|
newTab.document.write('<style>body { margin: 0px; }</style>')
|
|
newTab.document.write('<style>body { margin: 0px; }</style>')
|
|
|
newTab.document.head.appendChild(link)
|
|
newTab.document.head.appendChild(link)
|
|
|
newTab.document.write(
|
|
newTab.document.write(
|
|
|
- `<iframe src="${this.$baseUrl}lib/pdfjs-dist/web/viewer.html?file=${encodeURIComponent(url)}&hasRole=${hasRole}" style="width:100%; height:100%;" frameborder="0";>`
|
|
|
|
|
|
|
+ `<iframe src="${
|
|
|
|
|
+ this.$baseUrl
|
|
|
|
|
+ }lib/pdfjs-dist/web/viewer.html?file=${encodeURIComponent(
|
|
|
|
|
+ url
|
|
|
|
|
+ )}&hasRole=${hasRole}" style="width:100%; height:100%;" frameborder="0";>`
|
|
|
)
|
|
)
|
|
|
})
|
|
})
|
|
|
} else {
|
|
} else {
|