提交 51aa7e2a 编写于 作者: changdi.hao's avatar changdi.hao

优化

上级 0db3c2fb
...@@ -86,35 +86,33 @@ export default { ...@@ -86,35 +86,33 @@ export default {
}), }),
}, },
created() { created() {
if (this.$rocNative.isWeb) { if (this.$route && this.$route.query) {
if (this.$route && this.$route.query) { const cQuery = this.$route.query;
const cQuery = this.$route.query; const hospitalIdList = cQuery.hospitalIdList || '';
const hospitalIdList = cQuery.hospitalIdList || ''; this.queryGDParams.projectId = cQuery.projectId || '';
this.queryGDParams.projectId = cQuery.projectId || ''; this.queryGDParams.regionId = cQuery.regionId || '';
this.queryGDParams.regionId = cQuery.regionId || ''; this.queryGDParams.hospitalIdList =
this.queryGDParams.hospitalIdList = (hospitalIdList && hospitalIdList.split(',')) || [];
(hospitalIdList && hospitalIdList.split(',')) || []; this.certFlag = cQuery.certFlag - 0;
this.certFlag = cQuery.certFlag - 0; if (!this.certFlag) {
if (!this.certFlag) { this.dropdownList = [
this.dropdownList = [ {
{ desc: '按完成人数排名',
desc: '按完成人数排名', type: 1,
type: 1, },
}, {
{ desc: '按完成比例排名',
desc: '按完成比例排名', type: 2,
type: 2, },
}, {
{ desc: '按参与人数排名',
desc: '按参与人数排名', type: 3,
type: 3, },
}, ];
];
}
cookies.set('conslToken', cQuery.token || '');
this.queryGDParams.originalFlag = cQuery.originalFlag;
this.getStudyRankData(this.queryGDParams);
} }
cookies.set('conslToken', cQuery.token || '');
this.queryGDParams.originalFlag = cQuery.originalFlag;
this.getStudyRankData(this.queryGDParams);
} }
}, },
methods: { methods: {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册