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

获证人数排名

上级 b880fdbe
......@@ -26,7 +26,7 @@
<CommonSplitLine></CommonSplitLine>
<CommonTitle title="项目情况排名"></CommonTitle>
<RankingList :certFlag="projectInfo.certFlag" :rankList="(allData && allData.studyRank)"></RankingList>
<ShowAll v-show="allData && allData.studyRank && allData.studyRank.length > 5" @action="gotoPage('/rankedu')"></ShowAll>
<ShowAll v-show="allData && allData.studyRank && allData.studyRank.length > 5" @action="gotoPage('/rankedu', true)"></ShowAll>
<CommonSplitLine></CommonSplitLine>
<CommonTitleWithWhat @tipsClick="tipsRankingItemClick" title="完成天数排名"></CommonTitleWithWhat>
<RankingItemDays :rankList="(allData && allData.costRank)"></RankingItemDays>
......@@ -599,8 +599,11 @@ export default {
},
// 通用跳转页面
gotoPage(subUrl) {
gotoPage(subUrl, hasCert) {
let subUrlAndParams = `${subUrl}?token=${this.token}&projectId=${this.queryGDParams.projectId}&regionId=${this.queryGDParams.regionId}&hospitalIdList=${this.queryGDParams.hospitalIdList.join(',')}`
if(hasCert) {
subUrlAndParams += `&certFlag=${this.projectInfo.certFlag}`
}
if (this.$rocNative.isWeb) {
this.$router.push(subUrlAndParams);
} else {
......
<template>
<section>
<CommonHeader title="完成天数排名"></CommonHeader>
<CommonTitleMiniWithDropdown :dataList="dataList" :title="listTitle" @selectSortItem="selectSortItem"></CommonTitleMiniWithDropdown>
<CommonTitleMiniWithDropdown :title="listTitle" @selectSortItem="selectSortItem"></CommonTitleMiniWithDropdown>
<RankingItemDays :rankList="rankList"></RankingItemDays>
<CommonNoMore class="mt-10"></CommonNoMore>
</section>
......@@ -36,16 +36,16 @@ export default {
type: 1
}
},
dataList: [{
desc: '按获证比例排名',
type: 1
},{
desc: '按获证人数排名',
type: 2
},{
desc: '按参与人数排名',
type: 3
}],
// dataList: [{
// desc: '按获证比例排名',
// type: 1
// },{
// desc: '按获证人数排名',
// type: 2
// },{
// desc: '按参与人数排名',
// type: 3
// }],
};
},
components: {
......
......@@ -2,7 +2,7 @@
<section>
<CommonHeader title="项目情况排名"></CommonHeader>
<CommonTitleWithDropdown :dataList="dropdownList" :title="title" :needRightBtn="needRightBtn" @selectSortItem="selectSortItem"></CommonTitleWithDropdown>
<RankingList :rankList="rankList"></RankingList>
<RankingList :certFlag="certFlag" :rankList="rankList"></RankingList>
<CommonNoMore class="mt-10"></CommonNoMore>
</section>
</template>
......@@ -47,6 +47,7 @@ export default {
desc: '按参与人数排名',
type: 3
}],
certFlag: 0
};
},
components: {
......@@ -63,6 +64,19 @@ export default {
this.queryGDParams.projectId = cQuery.projectId || '';
this.queryGDParams.regionId = cQuery.regionId || '';
this.queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || [];
this.certFlag = cQuery.certFlag;
if(!this.certFlag) {
this.dropdownList = [{
desc: '按完成比例排名',
type: 1
},{
desc: '按完成人数排名',
type: 2
},{
desc: '按参与人数排名',
type: 3
}]
}
cookies.set("token", cQuery.token || '');
this.getStudyRankData(this.queryGDParams);
console.log(this.queryGDParams)
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册