This commit is contained in:
liuye
2022-07-19 15:24:32 +08:00
18 changed files with 150 additions and 106 deletions

View File

@@ -16,7 +16,7 @@
</div>
</div>
<el-calendar v-model="calendarDate">
<template
<template
slot="dateCell"
slot-scope="{date, data}" >
<div class="flex-date">
@@ -168,7 +168,7 @@
if(this.chooseMonth != month) { // 日历点击不同月
this.searchMonth = ''
}
}
this.chooseDay = date
@@ -181,11 +181,11 @@
this.chooseMonth = month
this.chooseYear = year
}
},
created() {
this.$initWxOpenData()
this.$store.dispatch('initOpenData')
var year = this.calendarDate.getFullYear();
var month = this.calendarDate.getMonth() + 1;
var date = this.calendarDate.getDate()
@@ -225,7 +225,7 @@
if (res.code == 0) {
this.dateList = res.data
this.getTaskList(this.chooseDay)
}
}
})
},
getTaskList(day) {
@@ -256,7 +256,7 @@
this.setLineChart(xData, createData, 'createChart', ['#2891FF'])
this.setLineChart(xData, executeData, 'executeChart', ['#FFB865'])
this.setLineChart(xData, receiveData, 'receiveChart', ['#26D52B'])
}
}
})
},
setLineChart(xData, yData, id, colorList) {
@@ -307,9 +307,9 @@
if (res.code == 0) {
// this.dateList = res.data
// this.getTaskList(this.chooseDay)
this.setBarChart()
}
}
})
// var items = [{type: 'departmentName', id: '10', corpid: 'ww596787bb70f08288'}]
@@ -319,7 +319,7 @@
// }
// console.log(data)
// })
},
setBarChart() {
this.departBarChart = echarts.init(document.querySelector(`#departBarChart`))
@@ -381,7 +381,7 @@
}
]
};
// {
// tooltip: {
// trigger: 'axis',
@@ -595,16 +595,16 @@
}
}
}
}
#departBarChart{
width: 100%;
height: 300px;
}
}
::v-deep .el-calendar-table:not(.is-range) td.next,
::v-deep .el-calendar-table:not(.is-range) td.next,
::v-deep .el-calendar-table:not(.is-range) td.prev {
color: #ccc;
}
@@ -641,7 +641,7 @@
border-right: 1px solid #eee;
}
::v-deep .el-timeline-item__timestamp.is-top{
margin-bottom: 0;
margin-bottom: 0;
padding-top: 0;
}
::v-deep .el-timeline-item__node{