瀏覽代碼

提交修改代码

zhangli 1 年之前
父節點
當前提交
d5982dfa87
共有 2 個文件被更改,包括 8 次插入2 次删除
  1. 2 1
      src/api/knowledge/manage.js
  2. 6 1
      src/views/modules/knowledge/warehouse/knowledgeAddUpdate.vue

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

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

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

@@ -494,8 +494,13 @@ export default {
     handleShowClick() {
       this.option.isEdit = false
       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.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.fileType = this.knowledgeForm.attachmentName.split('.').slice(-1)[0]
       this.option.isPrint = false