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

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

parent 21364fc1
This diff is collapsed.
...@@ -151,7 +151,7 @@ export default { ...@@ -151,7 +151,7 @@ export default {
let index = { let index = {
label: "排序", label: "排序",
type: "index", type: "index",
lign: "center", align: "center",
index: (index) => { index: (index) => {
return (this.current - 1) * this.size + index + 1; return (this.current - 1) * this.size + index + 1;
}, },
...@@ -162,7 +162,7 @@ export default { ...@@ -162,7 +162,7 @@ export default {
let index = { let index = {
label: "排序", label: "排序",
type: "index", type: "index",
lign: "center", align: "center",
index: (index) => { index: (index) => {
return (this.current - 1) * this.size + index + 6; return (this.current - 1) * this.size + index + 6;
}, },
......
...@@ -191,24 +191,30 @@ export default { ...@@ -191,24 +191,30 @@ export default {
let { data } = res.data; let { data } = res.data;
let { thirtyPhStatList, thirtyPjStatList, thirtyStatList } = data; let { thirtyPhStatList, thirtyPjStatList, thirtyStatList } = data;
this.homeData = data; this.homeData = data;
this.totalDataset.source = thirtyStatList.map((item) => { this.totalDataset.source = thirtyStatList
return { .map((item) => {
name: `${item.month}-${item.day}`, return {
value: item.count, name: `${item.month}-${item.day}`,
}; value: item.count,
}); };
this.phDataset.source = thirtyPhStatList.map((item) => { })
return { .reverse();
name: `${item.month}-${item.day}`, this.phDataset.source = thirtyPhStatList
value: item.phCount, .map((item) => {
}; return {
}); name: `${item.month}-${item.day}`,
this.pjDataset.source = thirtyPjStatList.map((item) => { value: item.phCount,
return { };
name: `${item.month}-${item.day}`, })
value: item.pjCount, .reverse();
}; this.pjDataset.source = thirtyPjStatList
}); .map((item) => {
return {
name: `${item.month}-${item.day}`,
value: item.pjCount,
};
})
.reverse();
} }
}, },
}, },
......
...@@ -29,6 +29,9 @@ export default { ...@@ -29,6 +29,9 @@ export default {
handler(newVal) { handler(newVal) {
this.$nextTick(() => { this.$nextTick(() => {
this.initChart(newVal); this.initChart(newVal);
this.myChart.on("click", () => {
console.log(111);
});
}); });
}, },
deep: true, 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