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

pref:修改申诉分值接口

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