测试正式环境切换

master
yujialong 4 years ago
parent 148c6df2bb
commit a64c4a8264
  1. 7
      src/utils/api.js
  2. 5
      src/views/Home.vue
  3. 5
      src/views/List.vue
  4. 1
      src/views/ProgramOptions.vue

@ -2,12 +2,15 @@
// let host1 = 'http://192.168.31.152:8080'
// let host2 = 'http://192.168.31.152:9000'//榕
let host = ''
let host2 = ''
if(location.host.includes('liuwanr.cn')){
host = 'http://www.liuwanr.cn'
host2 = 'http://122.9.154.146'
}else{
host = 'http://www.occupationlab.com'
host2 = 'http://116.63.168.79'
}
let host2 = 'http://116.63.168.79'
let host1 = 'http://39.108.250.202:8080'
let uploadURL = 'http://8.134.8.197:8001'
export default {
@ -25,7 +28,7 @@ export default {
DeletePointOfJudgementRule: `${host}/judgment/pointOfJudgement/deletePointOfJudgementRule`, //删除判分点规则
UpdateIsOpen: `${host}/judgment/pointOfJudgement/updateIsOpen`, //修改判分点状态
JudgmentPointNameRepetition: `${host}/judgment/pointOfJudgement/JudgmentPointNameRepetition`,
queryUserIds:`${host}/liuwanr/userInfo/queryUserIds`,
queryUserIds:`/liuwanr/userInfo/queryUserIds`,
// 科大
queryPoint: `${host2}/kdSys/queryPoint`,

@ -92,7 +92,8 @@ export default {
currentPage: 1,
systemId: "",
userId: "",
systemName: ""
systemName: "",
host: location.host.includes('liuwanr.cn') ? 'http://www.liuwanr.cn' : 'http://www.occupationlab.com'
};
},
components: {quill},
@ -123,7 +124,7 @@ export default {
},
handleCurrentChange(val) {
this.$get(this.api.queryUserIds).then(res => {
this.$get(`${this.host}${this.api.queryUserIds}`).then(res => {
this.pageNo = val;
this.systemId = this.getCookie("systemId");
this.systemId = this.systemId ? this.systemId : 1

@ -83,7 +83,8 @@ export default {
userId: this.$route.query.userId,
pattern: this.$route.query.pattern,
systemName: "",
searchTimer: null
searchTimer: null,
host: this.$route.query.host == 1 ? 'http://122.9.154.146' : 'http://116.63.168.79'
};
},
components: {quill},
@ -115,7 +116,7 @@ export default {
},
handleCurrentChange(val) {
this.$get(this.api.queryUserIds).then(res => {
this.$get(`${this.host}${this.api.queryUserIds}`).then(res => {
this.pageNo = val;
let data = {
systemId: this.systemId,

@ -493,6 +493,7 @@ export default {
}
},
getData() {
// pattern: 01
this.$post(`${this.api.queryPoint}?challenge=${this.pattern}`)
.then((res) => {
this.stepList = res.subject

Loading…
Cancel
Save