解决中台进入项目管理后点击判分点页面跳转失败

dev
yujialong 3 years ago
parent 2c684b10fc
commit 52b4308a0b
  1. 3
      src/setting.js
  2. 2
      src/views/serve/Configure.vue
  3. 25
      src/views/serve/projectAdd.vue

@ -9,10 +9,11 @@ const isPro = url.includes('120.78.127.12'); //正式服
let jumpPath = ""; let jumpPath = "";
let host = ""; let host = "";
if (isDev) { if (isDev) {
jumpPath = "http://192.168.31.154:8087/"; // 本地需要启动判分点系统 // jumpPath = "http://192.168.31.154:8087/"; // 本地调试-需要启动本地判分点系统
// host = 'http://192.168.31.216:9000'// 榕 // host = 'http://192.168.31.216:9000'// 榕
// host = 'http://192.168.31.125:9000'// 坤 // host = 'http://192.168.31.125:9000'// 坤
// host = 'http://192.168.31.137:9000'// 赓 // host = 'http://192.168.31.137:9000'// 赓
jumpPath = "http://39.108.250.202/judgmentPoint/";
host = "http://39.108.250.202:9000"; host = "http://39.108.250.202:9000";
} else if (isTest) { } else if (isTest) {
jumpPath = "http://39.108.250.202/judgmentPoint/"; jumpPath = "http://39.108.250.202/judgmentPoint/";

@ -185,7 +185,7 @@ export default {
this.$router.push("/addconfigure"); this.$router.push("/addconfigure");
}, },
getIntoProject(row) { getIntoProject(row) {
this.$router.push(`/projectList/?systemId=${row.systemId}&show=1`) this.$router.push(`/projectList?systemId=${row.systemId}&show=1`)
}, },
getIntoJudgement(row) { getIntoJudgement(row) {
// console.log(`${Setting.jumpPath}#/?systemId=${row.systemId}&token=${this.token}&referrer=${btoa(location.href)}`); // console.log(`${Setting.jumpPath}#/?systemId=${row.systemId}&token=${this.token}&referrer=${btoa(location.href)}`);

@ -221,7 +221,6 @@ export default {
}, },
data() { data() {
return { return {
host: Setting.apiBaseURL,
projectId: this.$route.query.projectId, projectId: this.$route.query.projectId,
systemList: Setting.systemList, systemList: Setting.systemList,
token: btoa(sessionStorage.getItem('token')), token: btoa(sessionStorage.getItem('token')),
@ -608,42 +607,42 @@ export default {
}, },
toJudgePoint(type, row) { // toJudgePoint(type, row) { //
this.handleCacheData(); this.handleCacheData();
// let host = this.host; let jumpPath = Setting.jumpPath;
let host = "http://192.168.31.154:8087/"; // // let jumpPath = "http://192.168.31.154:8087/"; //
let { systemId } = this.projectManage; let { systemId } = this.projectManage;
let href = ""; let href = "";
if (type === "view") { if (type === "view") {
// //
if (systemId == 2) { if (systemId == 2) {
href = `${host}jdTrials/#/programOption?id=${row.judgmentPointsId}`; href = `${jumpPath}/#/programOption?id=${row.judgmentPointsId}`;
} else if (systemId == 3) { } else if (systemId == 3) {
href = `${host}jdTrials/#/programOptions?id=${row.judgmentPointsId}`; href = `${jumpPath}/#/programOptions?id=${row.judgmentPointsId}`;
} else if (systemId == 11) { } else if (systemId == 11) {
// //
href = `${host}jdTrials/#/Transaction?isView=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; href = `${jumpPath}/#/Transaction?isView=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`;
} else { } else {
// python // python
href = `${host}jdTrials/#/program?isView=true&systemId=${systemId}&bcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; href = `${jumpPath}/#/program?isView=true&systemId=${systemId}&bcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`;
} }
} else if (type === "edit") { } else if (type === "edit") {
// //
if (systemId == 2) { if (systemId == 2) {
href = `${host}jdTrials/#/programOption?id=${row.judgmentPointsId}`; href = `${jumpPath}/#/programOption?id=${row.judgmentPointsId}`;
} else if (systemId == 3) { } else if (systemId == 3) {
href = `${host}jdTrials/#/programOptions?id=${row.judgmentPointsId}`; href = `${jumpPath}/#/programOptions?id=${row.judgmentPointsId}`;
} else if (systemId == 11) { } else if (systemId == 11) {
// //
href = `${host}jdTrials/#/Transaction?isEdit=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; href = `${jumpPath}/#/Transaction?isEdit=true&systemId=${systemId}&lcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`;
} else { } else {
// python // python
href = `${host}jdTrials/#/program?isEdit=true&systemId=${systemId}&bcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`; href = `${jumpPath}/#/program?isEdit=true&systemId=${systemId}&bcId=${row.judgmentId}&token=${this.token}&referrer=${btoa(location.href)}`;
} }
} else if (type === 'home') { } else if (type === 'home') {
if (systemId == 2 || systemId == 3) { if (systemId == 2 || systemId == 3) {
href = `${host}jdTrials/#/list`; href = `${jumpPath}/#/list`;
} else { } else {
// //
href = `${host}#/?systemId=${systemId}&token=${this.token}&referrer=${btoa(location.href)}`; href = `${jumpPath}#/?systemId=${systemId}&token=${this.token}&referrer=${btoa(location.href)}`;
} }
} }
location.href = href; location.href = href;

Loading…
Cancel
Save