y595705120 před 3 roky
rodič
revize
e4c6bc9c3f

+ 1 - 1
src/components/Tinymce/components/EditorFile.vue

@@ -64,7 +64,7 @@ export default {
         hasSuccess: true,
         width: file.width,
         height: file.height,
-        url : "http://smoa.ndjsxh.cn:8888/preview/"+ uid
+        url : "https://oa.hqedust.com/preview/"+ uid
         // url : "http://localhost:8000/api/preview/"+ uid
       }
     },

+ 1 - 1
src/components/Tinymce/components/EditorImage.vue

@@ -76,7 +76,7 @@ export default {
         hasSuccess: true,
         width: file.width,
         height: file.height,
-        url : "http://smoa.ndjsxh.cn:8888/attach/"+ uid
+        url : "https://oa.hqedust.com/attach/"+ uid
       }
     },
     handleRemove(file) {

+ 3 - 3
src/components/Tinymce/index.vue

@@ -169,7 +169,7 @@ export default {
         code_dialog_width: 900,
         advlist_bullet_styles: 'square',
         advlist_number_styles: 'default',
-        imagetools_cors_hosts:  ['smoa.ndjsxh.cn:8888'],
+        imagetools_cors_hosts:  ['oa.hqedust.com'],
         default_link_target: '_blank',
         table_default_styles: {
         	width: '950px',
@@ -249,7 +249,7 @@ export default {
       console.log( res, file.name )
       if (res.code === 200) {
         window.tinymce.get(this.tinymceId).insertContent(
-        `<p><a target="_blank" style="cursor:hand;color:blue;display: block;" href="http://smoa.ndjsxh.cn:8888/preview/${res.data.filename}">${file.name}</a></p>`)
+        `<p><a target="_blank" style="cursor:hand;color:blue;display: block;" href="https://oa.hqedust.com/preview/${res.data.filename}">${file.name}</a></p>`)
       } else {
         this.$message.error('图片上传失败')
       }
@@ -274,7 +274,7 @@ export default {
       // 上传图片
       axios.post(this.uploadUrl, formData, { headers: this.headers }).then(res => {
       if (res.data.code === 200) {
-        window.tinymce.get(this.tinymceId).insertContent(`<img style="width:100%" src="http://smoa.ndjsxh.cn:8888/preview/${res.data.data.filename}" >`)
+        window.tinymce.get(this.tinymceId).insertContent(`<img style="width:100%" src="https://oa.hqedust.com/preview/${res.data.data.filename}" >`)
       } else {
         this.$message.error('图片上传失败,联系开发人员')
         }

+ 1 - 1
src/pages/data/data.js

@@ -13,7 +13,7 @@ import {
 
 export default {
   departs:[],
-  preview:"http://smoa.ndjsxh.cn:8888/preview/",
+  preview:"https://oa.hqedust.com/preview/",
   categorys: {
     laws: "法律法规",
     mechanism: "机制制度类",

+ 3 - 2
src/pages/other/file-add.vue

@@ -58,7 +58,8 @@
 
 
          <el-form-item label="" class="mt20" prop="brief" label-width="0">
-           <tinymce v-model="info.brief" :height="900" :width="980" :headers="headers" upload-url="http://smoa.ndjsxh.cn:8888/api/artical/uploadImage" />
+           <tinymce v-model="info.brief" :height="900" :width="980" :headers="headers"
+           upload-url="https://oa.hqedust.com/preview/api/artical/uploadImage" />
              <!-- <el-input class="ipt-select" type="textarea" v-model="info.brief"></el-input> -->
          </el-form-item>
 
@@ -206,7 +207,7 @@
          });
       },
       preview(filename){
-        window.open( "http://smoa.ndjsxh.cn:8888/preview/"+filename)
+        window.open( "https://oa.hqedust.com/preview/"+filename)
       },
       gotoDetail(info){
         let query= {articalId: info.articalId }

+ 2 - 2
vue.config.js

@@ -1,7 +1,7 @@
 'use strict'
 const path = require('path')
 const defaultSettings = require('./src/settings.js')
-const HOST = "http://smoa.ndjsxh.cn:8888"
+const HOST = "http://fjopen.ndjsxh.cn:8888"
 // const HOST = "http://localhost:8000"
 function resolve(dir) {
   return path.join(__dirname, dir)
@@ -43,7 +43,7 @@ module.exports = {
         changeOrigin: true,
         // pathRewrite: { '^/rental': '' },
       },
-	   '/api': {
+	   '/fjopen': {
         target: HOST,
         changeOrigin: true,
 	    // pathRewrite: { '^/rental': '' },