Commit c1d0677e authored by “yiyousong”'s avatar “yiyousong”

feat: 评价系统数据接口调试

parent 21364fc1
This diff is collapsed.
......@@ -151,7 +151,7 @@ export default {
let index = {
label: "排序",
type: "index",
lign: "center",
align: "center",
index: (index) => {
return (this.current - 1) * this.size + index + 1;
},
......@@ -162,7 +162,7 @@ export default {
let index = {
label: "排序",
type: "index",
lign: "center",
align: "center",
index: (index) => {
return (this.current - 1) * this.size + index + 6;
},
......
......@@ -191,24 +191,30 @@ export default {
let { data } = res.data;
let { thirtyPhStatList, thirtyPjStatList, thirtyStatList } = data;
this.homeData = data;
this.totalDataset.source = thirtyStatList.map((item) => {
this.totalDataset.source = thirtyStatList
.map((item) => {
return {
name: `${item.month}-${item.day}`,
value: item.count,
};
});
this.phDataset.source = thirtyPhStatList.map((item) => {
})
.reverse();
this.phDataset.source = thirtyPhStatList
.map((item) => {
return {
name: `${item.month}-${item.day}`,
value: item.phCount,
};
});
this.pjDataset.source = thirtyPjStatList.map((item) => {
})
.reverse();
this.pjDataset.source = thirtyPjStatList
.map((item) => {
return {
name: `${item.month}-${item.day}`,
value: item.pjCount,
};
});
})
.reverse();
}
},
},
......
......@@ -29,6 +29,9 @@ export default {
handler(newVal) {
this.$nextTick(() => {
this.initChart(newVal);
this.myChart.on("click", () => {
console.log(111);
});
});
},
deep: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment