接口切换

master
yujialong 4 years ago
parent a64c4a8264
commit dd696fd2e2
  1. 1
      src/components/quill/index.vue
  2. 51
      src/utils/api.js
  3. 2
      src/views/Home.vue
  4. 2
      src/views/List.vue

@ -126,7 +126,6 @@
// //
this.Quill = new Quill(editor, this.options); this.Quill = new Quill(editor, this.options);
this.quillArr.push(this.Quill) this.quillArr.push(this.Quill)
console.log(22,this.toref,this.Quill,this.quillArr)
// //
this.Quill.pasteHTML(this.currentValue); this.Quill.pasteHTML(this.currentValue);

@ -1,14 +1,17 @@
// let host = 'http://192.168.31.117:8080'
// let host1 = 'http://192.168.31.152:8080'
// let host2 = 'http://192.168.31.152:9000'//榕
let host = '' let host = ''
let host2 = '' // 科大接口切换,参数里带host的为科大,否则就是职站中台
if(location.host.includes('liuwanr.cn')){ let isKd = /&host=(\d)/.exec(location.hash) //host:{1:测试环境,2:正式环境}
host = 'http://www.liuwanr.cn' if(isKd){
host2 = 'http://122.9.154.146' host = isKd[1] == 1 ? 'http://122.9.154.146' : 'http://116.63.168.79'
}else{ }else{
// 职站中台接口切换
if(location.host.includes('liuwanr.cn')){
host = 'http://www.liuwanr.cn'
}else if(location.host.includes('occupationlab.com')){
host = 'http://www.occupationlab.com' host = 'http://www.occupationlab.com'
host2 = 'http://116.63.168.79' }else{
host = 'http://39.108.250.202'
}
} }
let host1 = 'http://39.108.250.202:8080' let host1 = 'http://39.108.250.202:8080'
@ -16,6 +19,7 @@ let uploadURL = 'http://8.134.8.197:8001'
export default { export default {
fileupload: `${uploadURL}/oss/manage/fileupload`, fileupload: `${uploadURL}/oss/manage/fileupload`,
// 职站
QueryPointOfJudgement: `${host}/judgment/pointOfJudgement/queryPointOfJudgement`, //判分点列表查询 QueryPointOfJudgement: `${host}/judgment/pointOfJudgement/queryPointOfJudgement`, //判分点列表查询
DeletePointOfJudgement: `${host}/judgment/pointOfJudgement/deletePointOfJudgement`, //判分点列表删除 DeletePointOfJudgement: `${host}/judgment/pointOfJudgement/deletePointOfJudgement`, //判分点列表删除
QueryPfdInformation: `${host}/judgment/pointOfJudgement/queryPfdInformation`, //判分点详细信息 QueryPfdInformation: `${host}/judgment/pointOfJudgement/queryPfdInformation`, //判分点详细信息
@ -28,24 +32,25 @@ export default {
DeletePointOfJudgementRule: `${host}/judgment/pointOfJudgement/deletePointOfJudgementRule`, //删除判分点规则 DeletePointOfJudgementRule: `${host}/judgment/pointOfJudgement/deletePointOfJudgementRule`, //删除判分点规则
UpdateIsOpen: `${host}/judgment/pointOfJudgement/updateIsOpen`, //修改判分点状态 UpdateIsOpen: `${host}/judgment/pointOfJudgement/updateIsOpen`, //修改判分点状态
JudgmentPointNameRepetition: `${host}/judgment/pointOfJudgement/JudgmentPointNameRepetition`, JudgmentPointNameRepetition: `${host}/judgment/pointOfJudgement/JudgmentPointNameRepetition`,
queryUserIds:`/liuwanr/userInfo/queryUserIds`, queryUserIds:`${host}/liuwanr/userInfo/queryUserIds`,
// 科大 // 科大子系统
queryPoint: `${host2}/kdSys/queryPoint`, queryPoint: `${host}/kdSys/queryPoint`,
querySubject: `${host2}/kdSys/querySubject`, querySubject: `${host}/kdSys/querySubject`,
queryItem: `${host2}/kdSys/queryItem`, queryItem: `${host}/kdSys/queryItem`,
// 川大 // 科大平台
queryListTrading: `${host}/judgment/tradingJudgmentPoints/query`,
deleteTrading: `${host}/judgment/tradingJudgmentPoints/delete`,
addTrading: `${host}/judgment/tradingJudgmentPoints/add`,
queryDetailsTrading: `${host}/judgment/tradingJudgmentPoints/queryDetails`,
updateTrading: `${host}/judgment/tradingJudgmentPoints/update`,
updateRuleTrading: `${host}/judgment/tradingJudgmentPoints/updateRule`,
deleteRuleTrading: `${host}/judgment/tradingJudgmentPoints/deleteRule`,
addRule: `${host}/judgment/tradingJudgmentPoints/addRule`,
// 川大子系统
firstLevel: `${host1}/sichuan/point/firstLevel`, firstLevel: `${host1}/sichuan/point/firstLevel`,
secondaryLevel: `${host1}/sichuan/point/secondaryLevel`, secondaryLevel: `${host1}/sichuan/point/secondaryLevel`,
thirdLevel: `${host1}/sichuan/point/thirdLevel`, thirdLevel: `${host1}/sichuan/point/thirdLevel`,
queryListTrading: `${host2}/judgment/tradingJudgmentPoints/query`,
deleteTrading: `${host2}/judgment/tradingJudgmentPoints/delete`,
addTrading: `${host2}/judgment/tradingJudgmentPoints/add`,
queryDetailsTrading: `${host2}/judgment/tradingJudgmentPoints/queryDetails`,
updateTrading: `${host2}/judgment/tradingJudgmentPoints/update`,
updateRuleTrading: `${host2}/judgment/tradingJudgmentPoints/updateRule`,
deleteRuleTrading: `${host2}/judgment/tradingJudgmentPoints/deleteRule`,
addRule: `${host2}/judgment/tradingJudgmentPoints/addRule`,
} }

@ -124,7 +124,7 @@ export default {
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.$get(`${this.host}${this.api.queryUserIds}`).then(res => { this.$get(`${this.api.queryUserIds}`).then(res => {
this.pageNo = val; this.pageNo = val;
this.systemId = this.getCookie("systemId"); this.systemId = this.getCookie("systemId");
this.systemId = this.systemId ? this.systemId : 1 this.systemId = this.systemId ? this.systemId : 1

@ -116,7 +116,7 @@ export default {
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.$get(`${this.host}${this.api.queryUserIds}`).then(res => { this.$get(`${this.api.queryUserIds}`).then(res => {
this.pageNo = val; this.pageNo = val;
let data = { let data = {
systemId: this.systemId, systemId: this.systemId,

Loading…
Cancel
Save