提交 0170a8f3 编写于 作者: guangjun.yang's avatar guangjun.yang

使用原生跳转,自己传originalFlag

上级 a3911d5c
流水线 #38859 已失败 于阶段
......@@ -77,7 +77,7 @@ export default {
let hospitalIdList = cQuery.hospitalIdList || ''
this.queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || [];
cookies.set("lreporttoken", cQuery.token || '');
this.queryGDParams.originalFlag = this.originalFlag;
this.queryGDParams.originalFlag = cQuery.originalFlag;
this.getGeneralExam(this.queryGDParams);
}
}
......
......@@ -66,7 +66,7 @@ export default {
this.queryGDParams.regionId = cQuery.regionId || '';
this.queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || [];
cookies.set("lreporttoken", cQuery.token || '');
this.queryGDParams.originalFlag = this.originalFlag;
this.queryGDParams.originalFlag = cQuery.originalFlag;
this.getGeneralExam(this.queryGDParams);
}
}
......
......@@ -206,7 +206,7 @@ export default {
studyRankList: [],
costRankList: [],
projectId: "",
token: "EDEE2B73649A4B0D98851406DDD6007E",
token: "C519A26F3F9942C6B622BCC4201445AA",
isOrgStat: false,
// 区域选择通用接口参数
queryParams: {
......@@ -303,7 +303,8 @@ export default {
computed: {
...mapGetters({
orgList: "orgList",
areaDegree: "areaDegree"
areaDegree: "areaDegree",
originalFlag: "originalFlag"
}),
},
asyncData() {
......@@ -617,18 +618,16 @@ export default {
// 通用跳转页面
gotoPage(subUrl, hasCert) {
let subUrlAndParams = `${subUrl}?token=${this.token}&projectId=${this.queryGDParams.projectId}&regionId=${this.queryGDParams.regionId}&hospitalIdList=${this.queryGDParams.hospitalIdList.join(',')}`
let subUrlAndParams = `${subUrl}?token=${this.token}&projectId=${this.queryGDParams.projectId}&regionId=${this.queryGDParams.regionId}&hospitalIdList=${this.queryGDParams.hospitalIdList.join(',')}&originalFlag=${this.originalFlag}`
if (hasCert) {
subUrlAndParams += `&certFlag=${this.projectInfo.certFlag}`
}
// if (this.$rocNative.isWeb) {
// this.$router.push(subUrlAndParams);
// } else {
// let nativeUrl = `/lreport_ssr${subUrlAndParams}`
// goPageByNative(this, nativeUrl);
// }
// 原生跳转时,取不到store里的东西
this.$router.push(subUrlAndParams);
if (this.$rocNative.isWeb) {
this.$router.push(subUrlAndParams);
} else {
let nativeUrl = `/lreport_ssr${subUrlAndParams}`
goPageByNative(this, nativeUrl);
}
},
// 人员学历情况切换按钮
......
......@@ -65,7 +65,7 @@ export default {
this.queryGDParams.regionId = cQuery.regionId || "";
this.queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || [];
cookies.set("lreporttoken", cQuery.token || "");
this.queryGDParams.originalFlag = this.originalFlag;
this.queryGDParams.originalFlag = cQuery.originalFlag;
this.getStudyEffect(this.queryGDParams);
}
}
......
......@@ -63,7 +63,7 @@ export default {
(hospitalIdList && hospitalIdList.split(",")) || [];
// cookies.remove("token");
cookies.set("lreporttoken", cQuery.token || "");
this.queryGDParams.originalFlag = this.originalFlag;
this.queryGDParams.originalFlag = cQuery.originalFlag;
this.getStudyTimeData(this.queryGDParams);
}
},
......
......@@ -87,7 +87,7 @@ export default {
}]
}
cookies.set("lreporttoken", cQuery.token || '');
this.queryGDParams.originalFlag = this.originalFlag;
this.queryGDParams.originalFlag = cQuery.originalFlag;
this.getStudyRankData(this.queryGDParams);
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册