diff --git a/src/views/bigScreen/drivingCabin/left1.vue b/src/views/bigScreen/drivingCabin/left1.vue index 8f3ad3c..506d04c 100644 --- a/src/views/bigScreen/drivingCabin/left1.vue +++ b/src/views/bigScreen/drivingCabin/left1.vue @@ -106,11 +106,12 @@ export default { start() { // 每隔一段时间,页码+1,判断是否到最后一页,是则将页码重设为1 this.time = setInterval(() => { - this.currentPage1 = this.currentPage1 + 1; - this.handleCurrentChange(this.currentPage1); if (this.currentPage1 >= this.total / this.pageSize) { - this.currentPage1 = 0; + this.currentPage1 = 1; + } else { + this.currentPage1 = this.currentPage1 + 1; } + this.handleCurrentChange(this.currentPage1); }, 5000); }, end() { @@ -130,15 +131,70 @@ export default { url: "/hx/cockpitOverview/businessResponsibility", method: "get", }).then((res) => { + // this.res = { + // list: [ + // { + // targetTasks: 2, + // cate: 100, + // completedTasks: 2, + // indicator_name: "类别1", + // }, + // { + // targetTasks: 2, + // cate: 50, + // completedTasks: 1, + // indicator_name: "类别2", + // }, + // { + // targetTasks: 2, + // cate: 50, + // completedTasks: 1, + // indicator_name: "类别3", + // }, + // { + // targetTasks: 2, + // cate: 50, + // completedTasks: 1, + // indicator_name: "类别4", + // }, + // { + // targetTasks: 2, + // cate: 50, + // completedTasks: 1, + // indicator_name: "类别5", + // }, + // { + // targetTasks: 2, + // cate: 50, + // completedTasks: 1, + // indicator_name: "类别6", + // }, + // { + // targetTasks: 2, + // cate: 50, + // completedTasks: 1, + // indicator_name: "类别7", + // }, + // { + // targetTasks: 2, + // cate: 50, + // completedTasks: 1, + // indicator_name: "类别8", + // }, + // ], + // map: null, + // }; this.res = res.data; - // console.log(res.data); + // TODO: 分页 this.total = this.res.list.length; for (let i = 0; i < this.res.list.length; i++) { const item = this.res.list[i]; this.titData.push(item.indicator_name); this.valData.push({ - value: item.cate, + // TODO: + // value: item.rate, + value: item.completedTasks, name: item.indicator_name, tooltip: { trigger: "item", diff --git a/src/views/bigScreen/drivingCabin/right1.vue b/src/views/bigScreen/drivingCabin/right1.vue index 8b5a385..662a721 100644 --- a/src/views/bigScreen/drivingCabin/right1.vue +++ b/src/views/bigScreen/drivingCabin/right1.vue @@ -94,7 +94,8 @@ export default { this.chart.setOption({ tooltip: { trigger: "item", - formatter: "{a}
{b}: {c} ({d}%)", + // formatter: "{a}
{b}: {c} ({d}%)", + formatter: "{a}
{b}: {c}", }, color: this.colorList, legend: { diff --git a/src/views/bigScreen/information/left1.vue b/src/views/bigScreen/information/left1.vue index f11de09..69ea24b 100644 --- a/src/views/bigScreen/information/left1.vue +++ b/src/views/bigScreen/information/left1.vue @@ -25,10 +25,11 @@ background: rgba(0, 255, 255, 0.3); " > - - 责任令 - 部门 - 完成情况 + 序号 + 月份 + 责任令 + 部门 + 完成情况