Commit 38cf6027 by 李伟康

增加日期过滤

1 parent 9f2fdbdf
......@@ -87,7 +87,7 @@ export default {
{
label: '更新时间',
width: 210,
prop:'chatTime'
prop: 'chatTime'
// formatter: cellVal => {
// return dayjs(cellVal.chatTime).format('YYYY-MM-DD HH:mm')
// }
......@@ -98,11 +98,7 @@ export default {
},
]
},
beforeRangePickerOptions: {
disabledDate (date) {
return date > new Date()
}
},
beforeRangePickerOptions: {},
staffDetail: {
staffName: '',
merchantName: '',
......@@ -125,6 +121,19 @@ export default {
staffUuid: this.$route.query.id
})
this.staffDetail = res || {}
this.beforeRangePickerOptions = {
disabledDate (date) {
let disabled = true
try {
res.dateList.map(e => {
if (dayjs(date).format('YYYY-MM-DD') == e) throw false
})
} catch (error) {
disabled = false
}
return disabled
}
}
}
}
}
......@@ -206,5 +215,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!