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

优化

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