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

解决为值0的情况

上级 fc4bba2f
...@@ -40,6 +40,7 @@ export default { ...@@ -40,6 +40,7 @@ export default {
}), }),
isNotVisible() { isNotVisible() {
if(this.orgList.length == 0 || this.areaDegree == 0 || this.areaDegree == 1 || this.areaDegree == 2) { if(this.orgList.length == 0 || this.areaDegree == 0 || this.areaDegree == 1 || this.areaDegree == 2) {
// if(this.areaDegree == 0 || this.areaDegree == 1 || this.areaDegree == 2) {
return true; return true;
} else { } else {
return false; return false;
......
...@@ -58,8 +58,12 @@ export default { ...@@ -58,8 +58,12 @@ export default {
} }
if(this.value && this.maxValue > this.value) { if(this.value && this.maxValue > this.value) {
ratio = this.value / this.maxValue; ratio = this.value / this.maxValue;
} }
this.maxPocessWidth = Math.round(ratio * maxWidth) + 'px' if(this.value <= 1 || this.maxValue <= 1) {
this.maxPocessWidth = '1px'
} else {
this.maxPocessWidth = Math.round(ratio * maxWidth) + 'px'
}
} }
}, },
deep: true deep: true
......
...@@ -496,7 +496,15 @@ export default { ...@@ -496,7 +496,15 @@ export default {
tabClicked(index) { tabClicked(index) {
this.cIndex = index; this.cIndex = index;
}, },
// 清空参数
clearParams() {
this.orgName = '全部机构';
this.queryGDParams.hospitalIdList = [];
// this.setOrgList([]);
// this.setRegionId
},
areaConfirm(selData) { areaConfirm(selData) {
this.clearParams();
this.queryGDParams.regionId = selData.regionId; this.queryGDParams.regionId = selData.regionId;
this.CNTParams.regionId = selData.regionId; this.CNTParams.regionId = selData.regionId;
this.getHospitalsCNT(this.CNTParams); this.getHospitalsCNT(this.CNTParams);
...@@ -534,7 +542,10 @@ export default { ...@@ -534,7 +542,10 @@ export default {
} }
this.isShowOrg = false; this.isShowOrg = false;
this.orgName = hospitalNames[0] || this.orgName this.orgName = hospitalNames[0] || this.orgName
console.log(selData, hospitalIds); this.getGeneralExam(this.queryGDParams);
this.getUserAnalysis(this.queryGDParams);
this.getGeneralCourse(this.queryGDParams);
this.getStudyEffect(this.queryGDParams);
}, },
orgCancel() { orgCancel() {
this.isShowOrg = false; this.isShowOrg = false;
...@@ -621,7 +632,8 @@ export default { ...@@ -621,7 +632,8 @@ export default {
setUserToken: "setUserToken", setUserToken: "setUserToken",
setProvinceList: "setProvinceList", setProvinceList: "setProvinceList",
setExamTimesList: "setExamTimesList", setExamTimesList: "setExamTimesList",
setExamScoreList: "setExamScoreList" setExamScoreList: "setExamScoreList",
setOrgList: "setOrgList"
}) })
} }
}; };
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册