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

几个新bug修复

上级 f040e37b
...@@ -103,7 +103,7 @@ export default { ...@@ -103,7 +103,7 @@ export default {
legend: { legend: {
type: "scroll", type: "scroll",
type: "plain", // 普通图例 // type: "plain", // 普通图例
orient: "vertical", orient: "vertical",
itemWidth: 9, itemWidth: 9,
itemHeight: 9, itemHeight: 9,
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</div> </div>
<div class="ratio"> <div class="ratio">
<span class="desc-1">{{(item.certRate * 100).toFixed(1)}}%</span> <span class="desc-1">{{(item.certRate * 100).toFixed(1)}}%</span>
<span class="desc-2">完成比例</span> <span class="desc-2">{{certFlag ? '获证比例' : '完成比例'}}</span>
</div> </div>
</li> </li>
</ul> </ul>
......
...@@ -25,12 +25,12 @@ ...@@ -25,12 +25,12 @@
<ChartColumnStack v-if="projectInfo.certFlag" :certFlag="projectInfo.certFlag" :echartsData="echartsData"></ChartColumnStack> <ChartColumnStack v-if="projectInfo.certFlag" :certFlag="projectInfo.certFlag" :echartsData="echartsData"></ChartColumnStack>
<CommonSplitLine></CommonSplitLine> <CommonSplitLine></CommonSplitLine>
<CommonTitle title="项目情况排名"></CommonTitle> <CommonTitle title="项目情况排名"></CommonTitle>
<RankingList :certFlag="projectInfo.certFlag" :rankList="(allData && allData.studyRank)"></RankingList> <RankingList :certFlag="projectInfo.certFlag" :rankList="studyRankList.slice(0, 5)"></RankingList>
<ShowAll v-show="allData && allData.studyRank && allData.studyRank.length > 5" @action="gotoPage('/rankedu', true)"></ShowAll> <ShowAll v-show="studyRankList.length > 5" @action="gotoPage('/rankedu', true)"></ShowAll>
<CommonSplitLine></CommonSplitLine> <CommonSplitLine></CommonSplitLine>
<CommonTitleWithWhat @tipsClick="tipsRankingItemClick" title="完成天数排名"></CommonTitleWithWhat> <CommonTitleWithWhat @tipsClick="tipsRankingItemClick" title="完成天数排名"></CommonTitleWithWhat>
<RankingItemDays :rankList="(allData && allData.costRank)"></RankingItemDays> <RankingItemDays :rankList="costRankList.slice(0, 5)"></RankingItemDays>
<ShowAll v-show="allData && allData.costRank && allData.costRank.length > 5" @action="gotoPage('/rankdays')"></ShowAll> <ShowAll v-show="costRankList.length > 5" @action="gotoPage('/rankdays')"></ShowAll>
</div> </div>
<div v-show="isSingleOrg"> <div v-show="isSingleOrg">
<CommonTitle title="培训机构情况"></CommonTitle> <CommonTitle title="培训机构情况"></CommonTitle>
...@@ -218,9 +218,11 @@ export default { ...@@ -218,9 +218,11 @@ export default {
} }
], ],
allData: {}, allData: {},
studyRankList: [],
costRankList: [],
projectId: "", projectId: "",
token: token:
"A5021C99F35540B7A3102004018E1A56" || "0CFC560350E4499A902C4B02C2683ADE" ||
"A220943B006347799F277CC524EBB662" || "A220943B006347799F277CC524EBB662" ||
"B10441890E2940499621C76667675B2D" || "B10441890E2940499621C76667675B2D" ||
// "17B31C94D44947829097A953BC7C2732" || // "17B31C94D44947829097A953BC7C2732" ||
...@@ -317,11 +319,7 @@ export default { ...@@ -317,11 +319,7 @@ export default {
} else { } else {
return value return value
} }
}, }
// convert: function (value, unitName = '分钟') {
// if(!value) return 0 + unitName;
// return Math.ceil(value / 60) + unitName
// },
}, },
computed: { computed: {
...mapGetters({ ...mapGetters({
...@@ -420,6 +418,8 @@ export default { ...@@ -420,6 +418,8 @@ export default {
await getGeneralPersonal(params).then(res => { await getGeneralPersonal(params).then(res => {
if (res.code === "000000") { if (res.code === "000000") {
this.allData = res.data; this.allData = res.data;
this.studyRankList = this.allData.studyRank || [];
this.costRankList = this.allData.costRank || [];
if (params.pageCfg.type === 1) { if (params.pageCfg.type === 1) {
this.orgDoctorTabData.certUserList = res.data.personData; this.orgDoctorTabData.certUserList = res.data.personData;
} else if (params.pageCfg.type === 2) { } else if (params.pageCfg.type === 2) {
...@@ -436,6 +436,8 @@ export default { ...@@ -436,6 +436,8 @@ export default {
await getGeneralData(queryData).then(res => { await getGeneralData(queryData).then(res => {
if (res.code === "000000") { if (res.code === "000000") {
this.allData = res.data; this.allData = res.data;
this.studyRankList = this.allData.studyRank || []
this.costRankList = this.allData.costRank || [];
this.echartsData = res.data.eduData; this.echartsData = res.data.eduData;
} }
}); });
...@@ -533,8 +535,9 @@ export default { ...@@ -533,8 +535,9 @@ export default {
this.setAreaDegree(selData.areaDegree); this.setAreaDegree(selData.areaDegree);
// orgConfirm // orgConfirm
if(selData.townName || selData.countyName || selData.cityName || selData.provinceName) { if(selData.townName || selData.countyName || selData.cityName || selData.provinceName) {
this.areaName = selData.townName || selData.countyName || selData.cityName || selData.provinceName this.areaName = this.shortName(selData.townName || selData.countyName || selData.cityName || selData.provinceName, 6)
} }
// this.shortName()
console.log(selData) console.log(selData)
// this. = hospitalNames[0] || this.orgName // this. = hospitalNames[0] || this.orgName
// this.getGeneralData(this.queryGDParams); // this.getGeneralData(this.queryGDParams);
...@@ -564,7 +567,7 @@ export default { ...@@ -564,7 +567,7 @@ export default {
this.getGeneralData(this.queryGDParams); this.getGeneralData(this.queryGDParams);
} }
this.isShowOrg = false; this.isShowOrg = false;
this.orgName = hospitalNames[0] || '全部机构' this.orgName = this.shortName(hospitalNames[0] || '全部机构', 6);
this.getGeneralExam(this.queryGDParams); this.getGeneralExam(this.queryGDParams);
this.getUserAnalysis(this.queryGDParams); this.getUserAnalysis(this.queryGDParams);
this.getGeneralCourse(this.queryGDParams); this.getGeneralCourse(this.queryGDParams);
...@@ -654,6 +657,13 @@ export default { ...@@ -654,6 +657,13 @@ export default {
clickTips() { clickTips() {
this.isShowTips = false this.isShowTips = false
}, },
shortName: function (value, length = 15, append = '...') {
if (value && value.length > length) {
return value.substring(0, length) + append
} else {
return value
}
},
// 映射Store中的Actions // 映射Store中的Actions
...mapActions({ ...mapActions({
setProjectId: "setProjectId", setProjectId: "setProjectId",
......
...@@ -37,12 +37,22 @@ export default { ...@@ -37,12 +37,22 @@ export default {
type: 1 type: 1
} }
}, },
// dropdownList: [{
// desc: '按获证比例排名',
// type: 1
// },{
// desc: '按获证人数排名',
// type: 2
// },{
// desc: '按参与人数排名',
// type: 3
// }],
dropdownList: [{ dropdownList: [{
desc: '按获证比例排名',
type: 1
},{
desc: '按获证人数排名', desc: '按获证人数排名',
type: 2 type: 2
},{
desc: '按获证比例排名',
type: 1
},{ },{
desc: '按参与人数排名', desc: '按参与人数排名',
type: 3 type: 3
...@@ -66,12 +76,22 @@ export default { ...@@ -66,12 +76,22 @@ export default {
this.queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || []; this.queryGDParams.hospitalIdList = hospitalIdList && hospitalIdList.split(',') || [];
this.certFlag = cQuery.certFlag; this.certFlag = cQuery.certFlag;
if(!this.certFlag) { if(!this.certFlag) {
// this.dropdownList = [{
// desc: '按完成比例排名',
// type: 1
// },{
// desc: '按完成人数排名',
// type: 2
// },{
// desc: '按参与人数排名',
// type: 3
// }]
this.dropdownList = [{ this.dropdownList = [{
desc: '按完成比例排名',
type: 1
},{
desc: '按完成人数排名', desc: '按完成人数排名',
type: 2 type: 2
},{
desc: '按完成比例排名',
type: 1
},{ },{
desc: '按参与人数排名', desc: '按参与人数排名',
type: 3 type: 3
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册