日历
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user