table,已选中人员回显 重置

This commit is contained in:
shijingjing
2022-07-26 10:32:07 +08:00
parent faea4c65bd
commit 601640eea1
6 changed files with 35 additions and 32 deletions

View File

@@ -218,7 +218,7 @@ export default {
nowDate: "",
calendarList: [],
colData: {},
detailType: '0',
detailType: 0,
timeType: "",
departId: "",
startTime: "",
@@ -278,6 +278,8 @@ export default {
this.end = "";
this.departId = "";
this.departmentId = "";
this.getBrokenDate()
this.filterShow = false;
},
selectConfirm() {
@@ -286,7 +288,7 @@ export default {
this.start = this.startTime;
this.end = this.endTime;
} else {
this.detailType = this.timeSelect;
this.detailType = this.timeSelect || 0;
}
this.departId = this.departmentId
this.getBrokenDate();
@@ -563,7 +565,7 @@ export default {
.then((res) => {
if(res?.data) {
let items = [], xData = [], yData = []
res.data.map((item) => {
res.data.forEach((item) => {
const i = {type: 'departmentName', id: item.deptId, corpid: this.user.corpId}
items.push(i)
yData.push(item.taskCount)
@@ -572,9 +574,10 @@ export default {
this.initOpenData({canvas:true})
this.transCanvas(items).then((data) => {
console.log(data.items,"data.items");
// console.log(data.items,"data.items");
data.items.map((a) => {
xData.push(a.data)
console.log( xData)
})
console.log(xData, yData, '111222');
this.getColumnarEcharts(xData, yData)