Commit 38cf6027 by 李伟康

增加日期过滤

1 parent 9f2fdbdf
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
{ {
label: '更新时间', label: '更新时间',
width: 210, width: 210,
prop:'chatTime' prop: 'chatTime'
// formatter: cellVal => { // formatter: cellVal => {
// return dayjs(cellVal.chatTime).format('YYYY-MM-DD HH:mm') // return dayjs(cellVal.chatTime).format('YYYY-MM-DD HH:mm')
// } // }
...@@ -98,11 +98,7 @@ export default { ...@@ -98,11 +98,7 @@ export default {
}, },
] ]
}, },
beforeRangePickerOptions: { beforeRangePickerOptions: {},
disabledDate (date) {
return date > new Date()
}
},
staffDetail: { staffDetail: {
staffName: '', staffName: '',
merchantName: '', merchantName: '',
...@@ -125,6 +121,19 @@ export default { ...@@ -125,6 +121,19 @@ export default {
staffUuid: this.$route.query.id staffUuid: this.$route.query.id
}) })
this.staffDetail = res || {} 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 { ...@@ -206,5 +215,4 @@ export default {
} }
} }
} }
</style> </style>
\ No newline at end of file \ 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!