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

使用原生跳转,自己传originalFlag

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