bug
This commit is contained in:
@@ -218,7 +218,7 @@ export default {
|
||||
nowDate: "",
|
||||
calendarList: [],
|
||||
colData: {},
|
||||
detailType: 0,
|
||||
detailType: '0',
|
||||
timeType: "",
|
||||
departId: "",
|
||||
startTime: "",
|
||||
@@ -234,6 +234,7 @@ export default {
|
||||
peopleNum: "",
|
||||
sendNum: "",
|
||||
predictNum: "",
|
||||
isDepartData: false,
|
||||
};
|
||||
},
|
||||
|
||||
@@ -243,7 +244,6 @@ export default {
|
||||
this.getData();
|
||||
this.getColData();
|
||||
this.getNowDate();
|
||||
// console.log(WWOpenData);
|
||||
},
|
||||
mounted() {
|
||||
this.getBrokenEcharts1();
|
||||
@@ -255,6 +255,7 @@ export default {
|
||||
...mapState(['user'])
|
||||
},
|
||||
methods: {
|
||||
...mapActions(['initOpenData', 'transCanvas']),
|
||||
checkTime(index) {
|
||||
if (index == 3) {
|
||||
this.timeSelect = index;
|
||||
@@ -295,6 +296,7 @@ export default {
|
||||
confirmStart(val) {
|
||||
this.startTime = val.year + "-" + val.month + "-" + val.day;
|
||||
},
|
||||
|
||||
confirmEnd(val) {
|
||||
this.endTime = val.year + "-" + val.month + "-" + val.day;
|
||||
},
|
||||
@@ -376,7 +378,6 @@ export default {
|
||||
this.getBrokenEcharts1();
|
||||
this.getBrokenEcharts2();
|
||||
this.getBrokenEcharts3();
|
||||
this.getColumnarEcharts();
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -551,47 +552,33 @@ export default {
|
||||
],
|
||||
});
|
||||
},
|
||||
...mapActions(['initOpenData', 'transCanvas']),
|
||||
|
||||
// 宣发明细
|
||||
getColData() {
|
||||
this.$http
|
||||
.post(`/app/appmasssendingtask/statisticsDepart`, null, {
|
||||
this.$http.post(`/app/appmasssendingtask/statisticsDepart`, null, {
|
||||
params: {
|
||||
type: this.detailType,
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
if(res?.data) {
|
||||
let data = [
|
||||
{taskCount: 4, deptId: "10"},
|
||||
{taskCount: 6, deptId: "13"},
|
||||
{taskCount: 24, deptId: "5"},
|
||||
{taskCount: 14, deptId: "22"},
|
||||
{taskCount: 12, deptId: "20"},
|
||||
{taskCount: 11, deptId: "15"}
|
||||
]
|
||||
let items = [], xData = [], yData = []
|
||||
// res.data.map((item) => {
|
||||
// var i = {type: 'departmentName', id: item.deptId, corpid: this.user.corpId}
|
||||
// items.push(i)
|
||||
// yData.push(item.taskCount)
|
||||
// })
|
||||
data.map((item) => {
|
||||
var i = {type: 'departmentName', id: item.deptId, corpid: this.user.corpId}
|
||||
res.data.map((item) => {
|
||||
const i = {type: 'departmentName', id: item.deptId, corpid: this.user.corpId}
|
||||
items.push(i)
|
||||
// xData.push(item.deptId)
|
||||
yData.push(item.taskCount)
|
||||
})
|
||||
|
||||
|
||||
this.initOpenData({canvas:true})
|
||||
|
||||
this.transCanvas(items).then((data) => {
|
||||
console.log(data,'data哈哈哈');
|
||||
data.items.map((i) => {
|
||||
xData.push(i.data)
|
||||
console.log(data.items,"data.items");
|
||||
data.items.map((a) => {
|
||||
xData.push(a.data)
|
||||
})
|
||||
console.log(xData, yData, '111222');
|
||||
this.getColumnarEcharts(xData, yData)
|
||||
})
|
||||
// this.getColumnarEcharts(xData, yData)
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user