宣发统计

This commit is contained in:
shijingjing
2022-08-22 16:51:39 +08:00
parent 0894a93782
commit f5f34da7f6

View File

@@ -550,26 +550,13 @@ export default {
.then((res) => {
if (res.code ===0) {
if(res.data && res.data.length) {
let xData = res.data.map(e=> e.deptName)
let yData = res.data.map(e=> e.taskCount)
this.colData = res.data
let xData = [], yData = []
res.data.forEach((item) => {
xData.push(item.deptName)
yData.push(item.taskCount)
})
this.getColumnarEcharts(xData, yData)
// this.colData = res.data
// let items = [], xData = [], yData = []
// res.data.forEach((item) => {
// const i = {type: 'departmentName', id: item.deptId, corpid: this.user.corpId}
// items.push(i)
// yData.push(item.taskCount)
// })
// this.initOpenData({canvas:true})
// setTimeout(() => {
// this.transCanvas(items).then((data) => {
// data.items.map((a) => {
// xData.push(a.data)
// })
// this.getColumnarEcharts(xData, yData)
// })
// }, 2000)
}
}
});