Commit 8f9c00c1 authored by “yiyousong”'s avatar “yiyousong”

pref:修改申诉分值接口

parent cef93705
......@@ -288,14 +288,13 @@ export default {
},
mounted() {
this.drawCorePie();
this.staffStatList();
this.getException();
this.depStatList();
this.getAttendanceRules();
this.getFeedback();
this.autoUpdata();
this.getAppealTotal();
},
methods: {
......@@ -390,6 +389,20 @@ export default {
}
});
},
// 获取申诉分布情况统计数据
getAppealTotal() {
this.$post("/perform/attend/appeal/perform/summary", {
summaryType: this.appealDate,
}).then((res) => {
const { code, data } = res;
if (code == 1) {
console.log(res);
// this.$nextTick(() => {
// });
}
});
},
// 异常分值分布情况echarts
drawLeiDa(names = [], add = [], sub = []) {
// 基于dom,初始化echarts实例
......@@ -560,10 +573,15 @@ export default {
});
window.addEventListener("resize", this.adapterEcharts);
},
// 申诉分值分布情况echarts
drawCorePie() {
// 基于dom,初始化echarts实例
let myChart = this.$echarts.init(document.getElementById("shensuPie"));
myChart.setOption({
let chartDom = document.getElementById("shensuPie");
// 避免刷新数据时重新初始化图表
this.shensuPie = this.$echarts.getInstanceByDom(chartDom);
if (!this.shensuPie) {
this.shensuPie = this.$echarts.init(chartDom);
}
this.shensuPie.setOption({
tooltip: {
trigger: "item",
},
......@@ -653,6 +671,7 @@ export default {
},
],
});
window.addEventListener("resize", this.adapterEcharts);
},
// 反馈记录整体情况echarts
drawRecordPie(names = [], values = []) {
......
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