Merge remote-tracking branch 'origin/master'
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
VUE_APP_API_BASE_URL=http://boot.jero.com:8080/laws-sinotruk
|
VUE_APP_API_BASE_URL=http://boot.jero.com:8080/byd-structuredplugins-serve
|
||||||
VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
|
VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
|
||||||
VUE_APP_ONLINE_BASE_URL=http://fileview.jero.com/onlinePreview
|
VUE_APP_ONLINE_BASE_URL=http://fileview.jero.com/onlinePreview
|
||||||
VUE_APP_TAG_FLAG=1
|
VUE_APP_TAG_FLAG=1
|
||||||
|
|||||||
+3
-3
@@ -2,8 +2,8 @@
|
|||||||
* 防止打包部署时路径被写死
|
* 防止打包部署时路径被写死
|
||||||
*/
|
*/
|
||||||
window._CONFIG = {}
|
window._CONFIG = {}
|
||||||
window._CONFIG.domianURL = '/laws-sinotruk' // 路由转发 devServer
|
window._CONFIG.domianURL = '/byd-structuredplugins-serve' // 路由转发 devServer
|
||||||
window._CONFIG.domianWebSocketURL = 'http://localhost:8184/laws-sinotruk'
|
window._CONFIG.domianWebSocketURL = 'http://localhost:8184/byd-structuredplugins-serve'
|
||||||
// 单点登录地址
|
// 单点登录地址
|
||||||
window._CONFIG.staticDomainURL = window._CONFIG.domianURL + '/sys/common/download'
|
window._CONFIG.staticDomainURL = window._CONFIG.domianURL + '/sys/common/download'
|
||||||
window._CONFIG.pdfDomainURL = window._CONFIG.domianURL + '/sys/common/pdf/pdfPreviewIframe'
|
window._CONFIG.pdfDomainURL = window._CONFIG.domianURL + '/sys/common/pdf/pdfPreviewIframe'
|
||||||
@@ -15,7 +15,7 @@ window._CONFIG.onlyOfficeUrl = 'http://10.0.10.87:8083'
|
|||||||
// onlyOffice下载文件地址(暂时没用)
|
// onlyOffice下载文件地址(暂时没用)
|
||||||
window._CONFIG.onlyOfficeDownloadFileUrl = 'http://localhost:8184/sys/common/download'
|
window._CONFIG.onlyOfficeDownloadFileUrl = 'http://localhost:8184/sys/common/download'
|
||||||
// onlyOffice文件获取地址
|
// onlyOffice文件获取地址
|
||||||
window._CONFIG.documentUrl = 'http://10.0.10.87:8184/laws-sinotruk/onlyOffice/downLoadFile?path='
|
window._CONFIG.documentUrl = 'http://10.0.10.87:8184/byd-structuredplugins-serve /onlyOffice/downLoadFile?path='
|
||||||
// 管理员角色code,英文逗号拼接
|
// 管理员角色code,英文逗号拼接
|
||||||
window._CONFIG.adminRoleCode = 'admin,BZGLY'
|
window._CONFIG.adminRoleCode = 'admin,BZGLY'
|
||||||
// 水印配置
|
// 水印配置
|
||||||
|
|||||||
@@ -8084,7 +8084,7 @@ UE.Editor.defaultOptions = function(editor){
|
|||||||
/* 发出ajax请求 */
|
/* 发出ajax请求 */
|
||||||
me._serverConfigLoaded = false;
|
me._serverConfigLoaded = false;
|
||||||
|
|
||||||
configUrl && UE.ajax.request('http://localhost:8184/laws-sinotruk/sys/split/file/getImage?fileName=7DS756NXKGimage5.png',{
|
configUrl && UE.ajax.request('http://localhost:8184/byd-structuredplugins-serve /sys/split/file/getImage?fileName=7DS756NXKGimage5.png',{
|
||||||
'method': 'GET',
|
'method': 'GET',
|
||||||
'dataType': isJsonp ? 'jsonp':'',
|
'dataType': isJsonp ? 'jsonp':'',
|
||||||
'onsuccess':function(r){
|
'onsuccess':function(r){
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ export default {
|
|||||||
initWebSocket: function () {
|
initWebSocket: function () {
|
||||||
// WebSocket与普通的请求所用协议有所不同,ws等同于http,wss等同于https
|
// WebSocket与普通的请求所用协议有所不同,ws等同于http,wss等同于https
|
||||||
const userId = store.getters.userInfo.id
|
const userId = store.getters.userInfo.id
|
||||||
const url = window._CONFIG.domianWebSocketURL.replace('https://', 'wss://').replace('http://', 'ws://') + '/laws-sinotruk/websocket/' + userId
|
const url = window._CONFIG.domianWebSocketURL.replace('https://', 'wss://').replace('http://', 'ws://') + '/byd-structuredplugins-serve /websocket/' + userId
|
||||||
// console.log(url);
|
// console.log(url);
|
||||||
this.websock = new WebSocket(url)
|
this.websock = new WebSocket(url)
|
||||||
this.websock.onopen = this.websocketOnopen
|
this.websock.onopen = this.websocketOnopen
|
||||||
|
|||||||
@@ -8,15 +8,15 @@ import { Modal } from 'ant-design-vue'
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 【指定 axios的 baseURL】
|
* 【指定 axios的 baseURL】
|
||||||
* 如果手工指定 baseURL: '/laws-sinotruk'
|
* 如果手工指定 baseURL: '/byd-structuredplugins-serve '
|
||||||
* 则映射后端域名,通过 vue.config.js
|
* 则映射后端域名,通过 vue.config.js
|
||||||
* @type {*|string}
|
* @type {*|string}
|
||||||
*/
|
*/
|
||||||
const apiBaseUrl = window._CONFIG.domianURL || '/laws-sinotruk'
|
const apiBaseUrl = window._CONFIG.domianURL || '/byd-structuredplugins-serve '
|
||||||
// console.log("apiBaseUrl= ",apiBaseUrl)
|
// console.log("apiBaseUrl= ",apiBaseUrl)
|
||||||
// 创建 axios 实例
|
// 创建 axios 实例
|
||||||
const service = axios.create({
|
const service = axios.create({
|
||||||
// baseURL: '/laws-sinotruk',
|
// baseURL: '/byd-structuredplugins-serve ',
|
||||||
baseURL: apiBaseUrl, // api base_url
|
baseURL: apiBaseUrl, // api base_url
|
||||||
timeout: 30 * 60 * 1000 // 请求超时时间
|
timeout: 30 * 60 * 1000 // 请求超时时间
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -24,21 +24,23 @@ export default {
|
|||||||
if (val.id) {
|
if (val.id) {
|
||||||
const oldFileName = '比亚迪企业标准'
|
const oldFileName = '比亚迪企业标准'
|
||||||
const nowTime = new Date().getTime()
|
const nowTime = new Date().getTime()
|
||||||
const standCode = 'x/xx xxxx-xxxx'
|
const serialNumber = 'x/xx xxxx-xxxx'
|
||||||
const standName = '比亚迪企业标准'
|
const standName = '比亚迪企业标准'
|
||||||
const draftingDepartment = '起草部门'
|
const estDepart = '起草部门'
|
||||||
const draftsman = '起草人'
|
const drafts = '起草人'
|
||||||
const assessor = '评审人员'
|
const assessor = '评审人员'
|
||||||
const focalUnit = '归口单位'
|
const focalUnit = '归口单位'
|
||||||
|
const watermark = '比亚迪'
|
||||||
|
const replaceStand = ''
|
||||||
// http://39.98.140.126:8999
|
// http://39.98.140.126:8999
|
||||||
// http://127.0.0.1:8080
|
// http://127.0.0.1:8080
|
||||||
window.open('http://39.98.140.126:8999' + '/editor?fileId=' + val.id + '&pid=' + val.pid +
|
window.open('http://39.98.140.126:8999' + '/editor?fileId=' + val.id + '&pid=' + val.pid +
|
||||||
'&taskIds=' + val.taskId + '&editType=' + val.editType + '&oldFileName=' + oldFileName +
|
'&taskIds=' + val.taskId + '&oldFileName=' + oldFileName + '&assessor=' + assessor +
|
||||||
'&fileType=docx' + '&attId=' + val.id + '&fileUrl=' + val.downLoadUrl +
|
'&fileType=docx' + '&attId=' + val.id + '&fileUrl=' + val.downLoadUrl +
|
||||||
'&key=' + val.id + nowTime + '&filePath=' + val.editFilePath + '&fileName=' + val.fileName +
|
'&key=' + val.id + nowTime + '&filePath=' + val.editFilePath + '&fileName=' + val.fileName +
|
||||||
'&userId=' + val.userId + '&userName=' + 'admin' + '&isEdit=123' + '&standCode=' + standCode +
|
'&userId=' + val.userId + '&userName=admin' + '&serialNumber=' + serialNumber +
|
||||||
'&standName=' + standName + '&draftingDepartment=' + draftingDepartment + '&draftsman=' + draftsman +
|
'&standName=' + standName + '&replaceStand=' + replaceStand + '&drafts=' + drafts +
|
||||||
'&assessor=' + assessor + '&focalUnit=' + focalUnit)
|
'&estDepart=' + estDepart + '&focalUnit=' + focalUnit + '&watermark=' + watermark)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -82,16 +82,16 @@ module.exports = {
|
|||||||
ws: false,
|
ws: false,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'/laws-sinotruk': '' //默认所有请求都加了jero-boot前缀,需要去掉
|
'/byd-structuredplugins-serve ': '' //默认所有请求都加了jero-boot前缀,需要去掉
|
||||||
}
|
}
|
||||||
}, */
|
}, */
|
||||||
'/laws-sinotruk': {
|
'/byd-structuredplugins-serve': {
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
target: 'http://localhost:8184',
|
target: 'http://localhost:8184',
|
||||||
ws: false,
|
ws: false,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
// '/laws-sinotruk': '' // 默认所有请求都加了jero-boot前缀,需要去掉
|
// '/byd-structuredplugins-serve ': '' // 默认所有请求都加了jero-boot前缀,需要去掉
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user