|
|
@@ -1,6 +1,7 @@
|
|
|
import * as Vue from 'vue'
|
|
|
import router from '@/router'
|
|
|
import config from '@/config/reSource'
|
|
|
+import configEdu from '@/config'
|
|
|
import { message } from 'ant-design-vue'
|
|
|
import { fileImgMap, unknownImg, fileSuffixCodeModeMap, markdownFileType } from '@/libs/map.js'
|
|
|
import { officeFileType } from '@/libs/map.js'
|
|
|
@@ -84,14 +85,7 @@ const fileFunction = {
|
|
|
}&extractionCode=${row.extractionCode == null ? '' : row.extractionCode}&admin=true`
|
|
|
},
|
|
|
getDownloadFilePath3(row) {
|
|
|
-
|
|
|
- // console.log("下载地址",`${config.baseContext}/resourceFile/downloadfile?userFileId=${row.fileId}&shareBatchNum=${
|
|
|
- // row.shareBatchNum == null ? '' : row.shareBatchNum
|
|
|
- // }&extractionCode=${row.extractionCode == null ? '' : row.extractionCode}&admin=true`)
|
|
|
-
|
|
|
- return `${config.baseContext}/resourceFile/downloadfile?userFileId=${row.fileId}&shareBatchNum=${
|
|
|
- row.shareBatchNum == null ? '' : row.shareBatchNum
|
|
|
- }&extractionCode=${row.extractionCode == null ? '' : row.extractionCode}&admin=true`
|
|
|
+ return `${configEdu.FILE_URL}${row.fileUrl}`
|
|
|
},
|
|
|
/**
|
|
|
* 获取 Onlyoffice 文件创建路径
|
|
|
@@ -363,7 +357,7 @@ const fileFunction = {
|
|
|
}
|
|
|
// 若当前点击项是pdf
|
|
|
if (row.extendName.toLowerCase() === 'pdf') {
|
|
|
- // window.open(this.getViewFilePath(row), '_blank')
|
|
|
+ window.open(this.getViewFilePath(row), '_blank')
|
|
|
}
|
|
|
// 若当前点击项是代码或文本文件
|
|
|
let codeFileSuffix = row.extendName.toLowerCase()
|