宣发统计
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user