bug
This commit is contained in:
@@ -507,7 +507,7 @@ export default {
|
|||||||
foreignWorkersAddress: '',
|
foreignWorkersAddress: '',
|
||||||
houseIdNumber: '',
|
houseIdNumber: '',
|
||||||
familyCount: '',
|
familyCount: '',
|
||||||
houseType: '',
|
houseType: '1',
|
||||||
},
|
},
|
||||||
$areaId: '',
|
$areaId: '',
|
||||||
girdInfo: {},
|
girdInfo: {},
|
||||||
|
|||||||
@@ -2,20 +2,22 @@
|
|||||||
<div class="AppPropagandaStatistics">
|
<div class="AppPropagandaStatistics">
|
||||||
<div class="calendar_header">
|
<div class="calendar_header">
|
||||||
<u-section title="宣发日历" :show-line="false" sub-title="查看更多" @click="readMore"></u-section>
|
<u-section title="宣发日历" :show-line="false" sub-title="查看更多" @click="readMore"></u-section>
|
||||||
<!-- <div>{{ calendarList[nowDate - 1] }}</div> -->
|
|
||||||
</div>
|
</div>
|
||||||
<div class="threeDays">
|
<div class="threeDays">
|
||||||
<div class="yesterday">
|
<div class="yesterday">
|
||||||
<div class="itemYesterday">昨天<span>{{ calendarList[nowDate - 1] }}</span></div>
|
<div class="itemYesterday">昨天<span>{{ nowMonth }}.{{ nowDate - 1 }}</span></div>
|
||||||
<div>晴风小区志愿者活动</div>
|
<!-- <div v-if="calendarList[nowDate - 1].taskList">晴风小区志愿者活动</div> -->
|
||||||
|
<!-- <div v-if="!calendarList[nowDate - 1].taskList">今日暂无宣发任务</div> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="today">
|
<div class="today">
|
||||||
<div class="itemToday">今天<span>11:51</span></div>
|
<div class="itemToday">今天<span>{{ nowMonth }}.{{ nowDate }}</span></div>
|
||||||
<div>晴风小区志愿者活动</div>
|
<!-- <div v-if="calendarList[nowDate].taskList">晴风小区志愿者活动</div> -->
|
||||||
|
<!-- <div v-if="!calendarList[nowDate].taskList">今日暂无宣发任务</div> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="tomorrow">
|
<div class="tomorrow">
|
||||||
<div class="itemTomorrow">明天<span>11:51</span></div>
|
<div class="itemTomorrow">明天<span>{{ nowMonth }}.{{ nowDate + 1 }}</span></div>
|
||||||
<div @click="showMore(index)">晴风小区志愿者活动</div>
|
<!-- <div v-if="calendarList[nowDate + 1].taskList">晴风小区志愿者活动</div> -->
|
||||||
|
<!-- <div v-if="!calendarList[nowDate + 1].taskList">今日暂无宣发任务</div> -->
|
||||||
<div class="isShow" @click="showMore()">{{ isShow ? '收起' : '展开' }}</div>
|
<div class="isShow" @click="showMore()">{{ isShow ? '收起' : '展开' }}</div>
|
||||||
<span></span>
|
<span></span>
|
||||||
</div>
|
</div>
|
||||||
@@ -128,6 +130,7 @@ export default {
|
|||||||
start: '',
|
start: '',
|
||||||
end: '',
|
end: '',
|
||||||
deptList: [],
|
deptList: [],
|
||||||
|
nowMonth: '',
|
||||||
nowDate: '',
|
nowDate: '',
|
||||||
calendarList: [],
|
calendarList: [],
|
||||||
colData: {},
|
colData: {},
|
||||||
@@ -136,20 +139,22 @@ export default {
|
|||||||
departId: '',
|
departId: '',
|
||||||
startTime: '',
|
startTime: '',
|
||||||
endTime: '',
|
endTime: '',
|
||||||
|
x: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = '宣发统计'
|
document.title = '宣发统计'
|
||||||
this.getData()
|
this.getData()
|
||||||
|
this.getColData()
|
||||||
this.getNowDate()
|
this.getNowDate()
|
||||||
|
this.getBrokenDate()
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getBrokenEcharts1()
|
this.getBrokenEcharts1()
|
||||||
this.getBrokenEcharts2()
|
this.getBrokenEcharts2()
|
||||||
this.getBrokenEcharts3()
|
this.getBrokenEcharts3()
|
||||||
this.getColumnarEcharts()
|
this.getColumnarEcharts()
|
||||||
this.getColData()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
showMore() {},
|
showMore() {},
|
||||||
@@ -197,14 +202,12 @@ export default {
|
|||||||
getNowDate() {
|
getNowDate() {
|
||||||
let date = new Date()
|
let date = new Date()
|
||||||
this.nowDate = date.getDate()
|
this.nowDate = date.getDate()
|
||||||
// console.log(this.nowDate);
|
this.nowMonth = date.getMonth() + 1
|
||||||
},
|
},
|
||||||
// 宣发日历
|
// 宣发日历
|
||||||
getData() {
|
getData() {
|
||||||
this.$http.post(`/app/appmasssendingtask/statisticsCalendar`, null, {
|
this.$http.post(`/app/appmasssendingtask/statisticsCalendar`, null, {
|
||||||
params: {
|
params: {}
|
||||||
|
|
||||||
}
|
|
||||||
}).then((res)=> {{
|
}).then((res)=> {{
|
||||||
if(res?.data) {
|
if(res?.data) {
|
||||||
this.calendarList = res.data
|
this.calendarList = res.data
|
||||||
@@ -220,11 +223,19 @@ export default {
|
|||||||
type: this.timeSelect,
|
type: this.timeSelect,
|
||||||
startTime: this.startTime,
|
startTime: this.startTime,
|
||||||
endTime: this.endTime,
|
endTime: this.endTime,
|
||||||
departId: this.departId
|
// departId: this.departId
|
||||||
}
|
}
|
||||||
}).then(res=>{
|
}).then(res=>{
|
||||||
if(res?.data) {
|
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: {
|
axisLine: {
|
||||||
show: false,
|
show: false,
|
||||||
},
|
},
|
||||||
data: ['2月', '3月', '4月', '5月', '6月', '7月']
|
data: this.x
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
type: 'value',
|
type: 'value',
|
||||||
@@ -400,7 +411,7 @@ export default {
|
|||||||
type: this.detailType
|
type: this.detailType
|
||||||
}
|
}
|
||||||
}).then(res=> {
|
}).then(res=> {
|
||||||
console.log(res);
|
// console.log(res);
|
||||||
if(res?.data) {
|
if(res?.data) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.colData = res.data
|
this.colData = res.data
|
||||||
|
|||||||
Reference in New Issue
Block a user