Skip to content

Commit

Permalink
移除表单最近日期选择重复配置
Browse files Browse the repository at this point in the history
  • Loading branch information
283591387@qq.com committed Sep 18, 2024
1 parent fa3f7e3 commit 2f7f5d1
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions Vol.Vue3.Vite/src/components/basic/VolForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1396,32 +1396,6 @@ export default defineComponent({
getNode( label,node, data){
console.log(label)
},
getShortcuts() {
const end = new Date()
return [
{ name: '今天', value: 0 },
{ name: '昨天', value: 1 },
{ name: '近三天', value: 2 },
{ name: '近一周', value: 6 },
{ name: '近一月', m: true, value: 1 },
{ name: '近三月', m: true, value: 3 },
{ name: '近半年', m: true, value: 6 },
{ name: '近一年', m: true, value: 12 }
].map((x) => {
return {
text: x.name,
value: () => {
const start = new Date()
if (x.m) {
start.setMonth(start.getMonth() - x.value)
return [start.getTime(), end]
}
start.setTime(start.getTime() - 3600 * 1000 * 24 * x.value)
return [start, end]
}
}
})
},
handleImageError($e) {
$e.target.src = this.defaultImg
},
Expand Down

0 comments on commit 2f7f5d1

Please sign in to comment.