-
昨天{{ calendarList[nowDate - 1] }}
-
晴风小区志愿者活动
+
昨天{{ nowMonth }}.{{ nowDate - 1 }}
+
+
-
今天11:51
-
晴风小区志愿者活动
+
今天{{ nowMonth }}.{{ nowDate }}
+
+
-
明天11:51
-
晴风小区志愿者活动
+
明天{{ nowMonth }}.{{ nowDate + 1 }}
+
+
{{ isShow ? '收起' : '展开' }}
@@ -128,6 +130,7 @@ export default {
start: '',
end: '',
deptList: [],
+ nowMonth: '',
nowDate: '',
calendarList: [],
colData: {},
@@ -136,20 +139,22 @@ export default {
departId: '',
startTime: '',
endTime: '',
+ x: [],
}
},
onShow() {
document.title = '宣发统计'
this.getData()
+ this.getColData()
this.getNowDate()
+ this.getBrokenDate()
},
mounted() {
this.getBrokenEcharts1()
this.getBrokenEcharts2()
this.getBrokenEcharts3()
this.getColumnarEcharts()
- this.getColData()
},
methods: {
showMore() {},
@@ -197,14 +202,12 @@ export default {
getNowDate() {
let date = new Date()
this.nowDate = date.getDate()
- // console.log(this.nowDate);
+ this.nowMonth = date.getMonth() + 1
},
// 宣发日历
getData() {
this.$http.post(`/app/appmasssendingtask/statisticsCalendar`, null, {
- params: {
-
- }
+ params: {}
}).then((res)=> {{
if(res?.data) {
this.calendarList = res.data
@@ -220,11 +223,19 @@ export default {
type: this.timeSelect,
startTime: this.startTime,
endTime: this.endTime,
- departId: this.departId
+ // departId: this.departId
}
}).then(res=>{
if(res?.data) {
- console.log(res);
+ if(this.timeType == 0) {
+ this.x = res.data.trend.map(e=> e.ymd.substring(5,7) + '月' + e.ymd.substring(8,10) + '日')
+ } else if (this.timeType == 1) {
+ this.x = res.data.trend.map(e=> e.ymd.substring(5,7) + '月' + e.ymd.substring(8,10) + '日')
+ } else if (this.timeType == 2) {
+ this.x = res.data.trend.map(e=> e.ymd.substring(0,4) + '年' + e.ymd.substring(5,7) + '月')
+ }
+
+
}
})
},
@@ -258,7 +269,7 @@ export default {
axisLine: {
show: false,
},
- data: ['2月', '3月', '4月', '5月', '6月', '7月']
+ data: this.x
},
yAxis: {
type: 'value',
@@ -400,7 +411,7 @@ export default {
type: this.detailType
}
}).then(res=> {
- console.log(res);
+ // console.log(res);
if(res?.data) {
console.log(res);
this.colData = res.data