|
@@ -34,6 +34,7 @@ import wordIcon from '@/assets/img/warehouse/wordIcon.png'
|
|
import analysis from '@/api/knowledge/analysis'
|
|
import analysis from '@/api/knowledge/analysis'
|
|
import vabOnlyOffice from '../components/onlyOffice.vue'
|
|
import vabOnlyOffice from '../components/onlyOffice.vue'
|
|
import knowledgeContentInfo from '@/api/knowledge/knowledgeContentInfo'
|
|
import knowledgeContentInfo from '@/api/knowledge/knowledgeContentInfo'
|
|
|
|
+import api from '@/api/knowledge/warehouseIndex'
|
|
import {mapState} from "vuex";
|
|
import {mapState} from "vuex";
|
|
export default {
|
|
export default {
|
|
name: 'knowledgeContentInfo',
|
|
name: 'knowledgeContentInfo',
|
|
@@ -112,7 +113,11 @@ export default {
|
|
this.option.canDownload = true
|
|
this.option.canDownload = true
|
|
this.option.canPrint = true
|
|
this.option.canPrint = true
|
|
this.option.lang = 'zh-CN'
|
|
this.option.lang = 'zh-CN'
|
|
- this.option.url = 'http://www.hkcqjy.com.cn:8088/api/api-system/system/core/sysFile/previewFile?fileId='+this.detailData.attachment
|
|
|
|
|
|
+ let baseUrl = api.url0
|
|
|
|
+ if(location.href.indexOf('10.5.100.101')>-1){
|
|
|
|
+ baseUrl = api.url1
|
|
|
|
+ }
|
|
|
|
+ this.option.url = baseUrl+'/api/api-system/system/core/sysFile/previewFile?fileId='+this.detailData.attachment
|
|
this.option.title = this.detailData.attachmentName.split(".")[0]
|
|
this.option.title = this.detailData.attachmentName.split(".")[0]
|
|
this.option.fileType = this.detailData.attachmentName.split(".").pop()
|
|
this.option.fileType = this.detailData.attachmentName.split(".").pop()
|
|
this.option.isPrint = false
|
|
this.option.isPrint = false
|