This commit is contained in:
shijingjing
2022-07-21 09:33:17 +08:00
parent 3958df4f29
commit 65673d30e1
4 changed files with 46 additions and 20 deletions

View File

@@ -554,6 +554,7 @@ export default {
],
});
},
// ...mapActions(['initOpenData', 'transCanvas']),
// 宣发明细
getColData() {
this.$http
@@ -563,13 +564,27 @@ export default {
},
})
.then((res) => {
if (res?.data) {
console.log(res);
this.colData = res.data;
}
// if(res.data && res.data.length) {
// this.isDepartData = true
// let items = [], xData = [], yData = []
// res.data.map((item) => {
// var i = {type: 'departmentName', id: item.deptId, corpid: this.user.info.corpId}
// items.push(i)
// yData.push(item.taskCount)
// })
// this.initOpenData({canvas:true})
// this.transCanvas(items).then((data) => {
// data.items.map((i) => {
// xData.push(i.data)
// })
// this.getColumnarEcharts(xData, yData)
// })
// }else {
// this.isDepartData = false
// }
});
},
getColumnarEcharts() {
getColumnarEcharts(xData, yData) {
this.columnarEcharts = echarts.init(
document.getElementById("columnarEcharts")
);
@@ -589,7 +604,7 @@ export default {
axisLine: {
show: false,
},
data: ["卫健委", "法院", "团委", "扶贫办", "警察局"],
data: xData,
},
yAxis: {
type: "value",
@@ -602,7 +617,7 @@ export default {
},
series: [
{
data: [120, 200, 150, 80, 70, 110, 130],
data: yData,
itemStyle: {
normal: {
color: "#5087ec",