diff --git a/src/utils/api.js b/src/utils/api.js index 877bbcc..11059a8 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -13,7 +13,7 @@ if(isKd){ }else if(url.includes('10.196.131.73')){ host = 'http://10.196.131.73'; // 河海版 }else if (url.includes('124.71.12.62')) { - host = 'http://124.71.12.62/'; // 巢湖版 + host = 'http://124.71.12.62'; // 巢湖版 } else if (url.includes('39.108.250.202')) { host = 'http://39.108.250.202:9000'; // 中台测试服 } else { @@ -21,7 +21,7 @@ if(isKd){ host = 'http://39.108.250.202:9000'; } - host = 'http://192.168.31.137:9000' // 坤 + // host = 'http://192.168.31.137:9000' // 坤 } let host1 = 'http://39.108.250.202:8080'; let uploadURL = 'http://8.134.8.197:8001'; @@ -60,17 +60,21 @@ export default { // 职站 - // QueryPointOfJudgement: `${host}/judgment/pointOfJudgement/queryPointOfJudgement`, //判分点列表查询 - // DeletePointOfJudgement: `${host}/judgment/pointOfJudgement/deletePointOfJudgement`, //判分点列表删除 - // QueryPfdInformation: `${host}/judgment/pointOfJudgement/queryPfdInformation`, //判分点详细信息 - // UpdatePointOfJudgement: `${host}/judgment/pointOfJudgement/updatePointOfJudgement`, //编辑判分点基本信息 - // UpdatePointOfJudgementRule: `${host}/judgment/pointOfJudgement/updatePointOfJudgementRule`, //编辑判分点规则 - // AddPfdgzInformation: `${host}/judgment/pointOfJudgement/addPfdgzInformation`, //新增判分规则 - // AddPfdInformation: `${host}/judgment/pointOfJudgement/addPfdInformation`, //新增判分点基本信息 - // QueryPfdgzInformation: `${host}/judgment/pointOfJudgement/queryPfdgzInformation`, //判分点规则信息查询 - // QueryAddgz: `${host}/judgment/pointOfJudgement/queryAddgz`, //查询新增判分点规则新增的数据 - // DeletePointOfJudgementRule: `${host}/judgment/pointOfJudgement/deletePointOfJudgementRule`, //删除判分点规则 - // JudgmentPointNameRepetition: `${host}/judgment/pointOfJudgement/JudgmentPointNameRepetition`, + QueryPointOfJudgement: `${host}/judgment/pointOfJudgement/queryPointOfJudgement`, //判分点列表查询 + DeletePointOfJudgement: `${host}/judgment/pointOfJudgement/deletePointOfJudgement`, //判分点列表删除 + QueryPfdInformation: `${host}/judgment/pointOfJudgement/queryPfdInformation`, //判分点详细信息 + UpdatePointOfJudgement: `${host}/judgment/pointOfJudgement/updatePointOfJudgement`, //编辑判分点基本信息 + UpdatePointOfJudgementRule: `${host}/judgment/pointOfJudgement/updatePointOfJudgementRule`, //编辑判分点规则 + AddPfdgzInformation: `${host}/judgment/pointOfJudgement/addPfdgzInformation`, //新增判分规则 + AddPfdInformation: `${host}/judgment/pointOfJudgement/addPfdInformation`, //新增判分点基本信息 + QueryPfdgzInformation: `${host}/judgment/pointOfJudgement/queryPfdgzInformation`, //判分点规则信息查询 + QueryAddgz: `${host}/judgment/pointOfJudgement/queryAddgz`, //查询新增判分点规则新增的数据 + DeletePointOfJudgementRule: `${host}/judgment/pointOfJudgement/deletePointOfJudgementRule`, //删除判分点规则 + JudgmentPointNameRepetition: `${host}/judgment/pointOfJudgement/JudgmentPointNameRepetition`, + + + + UpdateIsOpen: `${host}/judgment/pointOfJudgement/updateIsOpen`, //修改判分点状态 queryUserIds:`${host}/liuwanr/userInfo/queryUserIds`, diff --git a/src/views/Home.vue b/src/views/Home.vue index 6ad4059..f6ba220 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -117,7 +117,6 @@ export default { console.log('当前地址=', location.host); console.log("token=", this.$route.query.token) console.log("systemId=", this.$route.query.systemId) - this.$route.query.token && this.$store.commit('setParam', { token: atob(decodeURI(this.$route.query.token)), referrer: atob(decodeURI(this.$route.query.referrer)) @@ -145,7 +144,11 @@ export default { this.getProcessClassData(params); } else { // 编程类 - this.getProgrammingClassData(params); + if (location.host == 'http://124.71.12.62' || location.host == 'http://occupationlab.com'){ + this.getCHProgrammingClassData(params); + }else{ + this.getProgrammingClassData(params); + } } }, getProcessClassData(params) { // 获取流程类判分点列表数据 @@ -215,9 +218,22 @@ export default { this.tableData = res.message.records; this.dataTotal = res.message.total; }).catch(err => { - console.log(err); }); }, + getCHProgrammingClassData(){ + let systemId = this.$route.query.systemId + let userId = this.$route.query.userId + let pageNum = this.$route.query.pageNum + let pageSize = this.$route.query.pageSize + let queryName = this.$route.query.queryName + let userIdList = this.$route.query.userIdList + this.$post(`${this.api.QueryPointOfJudgement}?systemId=${systemId}&userId=${userId}&pageNum=${pageNum}&pageSize=${pageSize}&queryName=${queryName}&userIdList=${userIdList}`).then(res => { + this.tableData = res.message.records; + this.dataTotal = res.message.total; + }).catch(err => { + console.log(err); + }); + }, HomepageJump() { //新增 if (this.systemId == 11) { // 交易类 diff --git a/src/views/Transaction.vue b/src/views/Transaction.vue index b7aeaac..e07fb7d 100644 --- a/src/views/Transaction.vue +++ b/src/views/Transaction.vue @@ -106,7 +106,7 @@