This commit is contained in:
shijingjing
2022-07-25 11:35:50 +08:00
parent 81752640f2
commit 2b8cf60742
2 changed files with 32 additions and 28 deletions

View File

@@ -43,9 +43,14 @@ export default {
components: {
uniCalendar
},
created() {
onLoad() {
this.getNowDay()
this.getData()
// if(this.month > 9) {
// this.yyyyMM = this.year + '-' + this.month
// } else {
// this.yyyyMM = this.year + '-' + '0' + this.month
// }
this.getData()
},
methods: {
changeMonth(e) {
@@ -65,6 +70,7 @@ export default {
const date = new Date()
this.year = date.getFullYear()
this.month = date.getMonth() + 1
this.day = date.getDate()
},
toGroup() {
uni.navigateTo({url: './groupSendResident'})
@@ -81,7 +87,6 @@ export default {
let arr = Object.keys(res.data).map(key => (res.data[key]))
this.list = arr[this.day - 1]?.taskList
let calList = arr.filter(item=> (item.taskList && item.taskList.length > 0))
console.log(calList);
this.selected = calList.map(item=> {
if(item.day>=1 && item.day<=9) {
if(this.month>=1 && this.month <=9) {