修改接口

This commit is contained in:
范强强
2024-03-12 11:09:54 +08:00
parent a244ea27e1
commit 0773d4ab11
7 changed files with 21 additions and 19 deletions
@@ -198,7 +198,7 @@ export default {
initWebSocket: function () {
// WebSocket与普通的请求所用协议有所不同,ws等同于http,wss等同于https
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);
this.websock = new WebSocket(url)
this.websock.onopen = this.websocketOnopen
+3 -3
View File
@@ -8,15 +8,15 @@ import { Modal } from 'ant-design-vue'
/**
* 【指定 axios的 baseURL】
* 如果手工指定 baseURL: '/laws-sinotruk'
* 如果手工指定 baseURL: '/byd-structuredplugins-serve '
* 则映射后端域名,通过 vue.config.js
* @type {*|string}
*/
const apiBaseUrl = window._CONFIG.domianURL || '/laws-sinotruk'
const apiBaseUrl = window._CONFIG.domianURL || '/byd-structuredplugins-serve '
// console.log("apiBaseUrl= ",apiBaseUrl)
// 创建 axios 实例
const service = axios.create({
// baseURL: '/laws-sinotruk',
// baseURL: '/byd-structuredplugins-serve ',
baseURL: apiBaseUrl, // api base_url
timeout: 30 * 60 * 1000 // 请求超时时间
})
+9 -7
View File
@@ -24,21 +24,23 @@ export default {
if (val.id) {
const oldFileName = '比亚迪企业标准'
const nowTime = new Date().getTime()
const standCode = 'x/xx xxxx-xxxx'
const serialNumber = 'x/xx xxxx-xxxx'
const standName = '比亚迪企业标准'
const draftingDepartment = '起草部门'
const draftsman = '起草人'
const estDepart = '起草部门'
const drafts = '起草人'
const assessor = '评审人员'
const focalUnit = '归口单位'
const watermark = '比亚迪'
const replaceStand = ''
// http://39.98.140.126:8999
// http://127.0.0.1:8080
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 +
'&key=' + val.id + nowTime + '&filePath=' + val.editFilePath + '&fileName=' + val.fileName +
'&userId=' + val.userId + '&userName=' + 'admin' + '&isEdit=123' + '&standCode=' + standCode +
'&standName=' + standName + '&draftingDepartment=' + draftingDepartment + '&draftsman=' + draftsman +
'&assessor=' + assessor + '&focalUnit=' + focalUnit)
'&userId=' + val.userId + '&userName=admin' + '&serialNumber=' + serialNumber +
'&standName=' + standName + '&replaceStand=' + replaceStand + '&drafts=' + drafts +
'&estDepart=' + estDepart + '&focalUnit=' + focalUnit + '&watermark=' + watermark)
}
})
} else {