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

个人数据的bug

上级 d7ab01c9
......@@ -49,16 +49,16 @@ export default {
// }
// },
watch: {
valueObj: {
processDataObj: {
handler(newVal) {
if(process.client) {
let clientWidth = window.outerWidth || document.body.clientWidth || document.documentElement.clientWidth;
let maxWidth = clientWidth - this.valueDescWidth;
let ratio = 1;
if(this.processDataObj.value && this.processDataObj.value < this.processDataObj.maxValue) {
ratio = this.processDataObj.value / this.processDataOb.maxValue;
if(this.processDataObj.maxDuration && this.processDataObj.maxDuration < this.processDataObj.avgDuration) {
ratio = this.processDataObj.maxDuration / this.processDataObj.avgDuration;
}
if(!this.processDataObj.value) {
if(!this.processDataObj.maxDuration) {
ratio = 0.01;
}
this.maxPocessWidth = Math.round(ratio * maxWidth) + 'px'
......@@ -74,8 +74,8 @@ export default {
// let clientWidth = window.outerWidth || document.body.clientWidth || document.documentElement.clientWidth;
// let maxWidth = clientWidth - this.valueDescWidth;
// let ratio = 1;
// if(this.value && this.value < this.maxValue) {
// ratio = this.value / this.maxValue;
// if(this.value && this.value < this.avgDuration) {
// ratio = this.value / this.avgDuration;
// }
// if(!this.value) {
// ratio = 0.01;
......
......@@ -55,7 +55,7 @@
<!-- 课程分析 -->
<article v-show="(cIndex === 2) && (projectInfo.existCourse == 1)" style="padding-top: 8px;">
<CourseTimesStat ::processDataObj="processDataObj" :totalSize="courseInfo.totalSize" :maxDuration="courseInfo.pCourseTotalTime" :avgDuration="courseInfo.pCourseAvg"></CourseTimesStat>
<CourseTimesStat :processDataObj="processDataObj" :totalSize="courseInfo.totalSize" :maxDuration="courseInfo.pCourseTotalTime" :avgDuration="courseInfo.pCourseAvg"></CourseTimesStat>
<CommonSplitLine></CommonSplitLine>
<CommonTitle title="课程列表"></CommonTitle>
<CourseTimesList :dataList="courseInfo.pCourseList"></CourseTimesList>
......@@ -217,6 +217,7 @@ export default {
allData: {},
projectId: "",
token:
// "17B31C94D44947829097A953BC7C2732" ||
"A0E52265D31B4D2380C7CFC9E1ACCDCE" ||
"A7F0A8A4BB5C4EC4B78E71261B753C9C" ||
"4281940A6A0C49F69F06BBC9E83DA90D" ||
......@@ -397,6 +398,7 @@ export default {
async getGeneralPersonal(params) {
await getGeneralPersonal(params).then(res => {
if (res.code === "000000") {
this.allData = res.data;
if (params.pageCfg.type === 1) {
this.orgDoctorTabData.certUserList = res.data.personData;
} else if (params.pageCfg.type === 2) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册