Browse Source

提交修改代码

zhangli 1 year ago
parent
commit
d5982dfa87

+ 2 - 1
src/api/knowledge/manage.js

@@ -4,7 +4,8 @@ import apiCommonUrl from './apiCommonUrl'
 export const returnData = {};
 export const returnData = {};
 
 
 returnData.baseUrl= apiCommonUrl;
 returnData.baseUrl= apiCommonUrl;
-
+returnData.url0= 'http://www.hkcqjy.com.cn:8088';
+returnData.url1= 'http://10.5.100.101';
 // 管理列表
 // 管理列表
 returnData.findAllKnowledge = returnData.baseUrl + '/findAllKnowledge'
 returnData.findAllKnowledge = returnData.baseUrl + '/findAllKnowledge'
 
 

+ 6 - 1
src/views/modules/knowledge/warehouse/knowledgeAddUpdate.vue

@@ -494,8 +494,13 @@ export default {
     handleShowClick() {
     handleShowClick() {
       this.option.isEdit = false
       this.option.isEdit = false
       this.option.lang = 'zh-CN'
       this.option.lang = 'zh-CN'
+      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.knowledgeForm.attachment
       // this.option.url = 'http://10.5.100.64:9900/api-system/system/core/sysFile/previewFile?fileId=1597050108435845121'
       // this.option.url = 'http://10.5.100.64:9900/api-system/system/core/sysFile/previewFile?fileId=1597050108435845121'
-      this.option.url = 'http://10.5.100.101/:8088/api/api-system/system/core/sysFile/previewFile?fileId='+ this.knowledgeForm.attachment,
+      //this.option.url = 'http://10.5.100.101/:8088/api/api-system/system/core/sysFile/previewFile?fileId='+ this.knowledgeForm.attachment,
       this.option.title = this.knowledgeForm.attachmentName
       this.option.title = this.knowledgeForm.attachmentName
       this.option.fileType = this.knowledgeForm.attachmentName.split('.').slice(-1)[0]
       this.option.fileType = this.knowledgeForm.attachmentName.split('.').slice(-1)[0]
       this.option.isPrint = false
       this.option.isPrint = false