Commit 9fee3e9cb917005fbafdd0c3dd02d0271f2a5599
1 parent
13203a04
首页日期 可以选今日
Showing
2 changed files
with
8 additions
and
7 deletions
pages/index/index.vue
| ... | ... | @@ -248,7 +248,7 @@ const msgCount = ref(0); |
| 248 | 248 | const currentTabValue = ref(0); |
| 249 | 249 | const dateRange = ref<string[]>([]); |
| 250 | 250 | const yesterday = new Date(); |
| 251 | -yesterday.setDate(yesterday.getDate() - 1); | |
| 251 | +// yesterday.setDate(yesterday.getDate() - 1); | |
| 252 | 252 | const maxDate = ref(timeFormat(yesterday, 'yyyy-mm-dd')); |
| 253 | 253 | // const minDate = '2026-01-06'; |
| 254 | 254 | const isDatePickerOpen = ref(false); |
| ... | ... | @@ -512,10 +512,11 @@ const loadAllTaskByDept = async () => { |
| 512 | 512 | } |
| 513 | 513 | } else if (mainTab.value === 'workorder') { |
| 514 | 514 | // ========= 工单tab,后续对接工单接口,先置空列表占位 ========= |
| 515 | - todoFullList.value = []; | |
| 516 | - doneFullList.value = []; | |
| 517 | - todoTotal.value = 0; | |
| 518 | - doneTotal.value = 0; | |
| 515 | + if (useDistanceApi.value) { | |
| 516 | + await loadDistanceApiTask(loc.lon, loc.lat, 'workorder'); | |
| 517 | + } else { | |
| 518 | + await loadSmartSortTask(loc.lon, loc.lat, 'workorder'); | |
| 519 | + } | |
| 519 | 520 | } |
| 520 | 521 | }; |
| 521 | 522 | const getCurrentLocation = (): Promise<{ lon: string; lat: string }> => { |
| ... | ... | @@ -628,7 +629,7 @@ $card-bg: #fff; |
| 628 | 629 | $border-radius: 16rpx; |
| 629 | 630 | $card-radius: 5rpx; |
| 630 | 631 | $spacing-sm: 5rpx; |
| 631 | -$spacing-md: 10rpx; | |
| 632 | +$spacing-md: 12rpx; | |
| 632 | 633 | $spacing-lg: 15rpx; |
| 633 | 634 | $border-color: #e5e5e5; |
| 634 | 635 | .page-container { |
| ... | ... | @@ -804,7 +805,7 @@ $border-color: #e5e5e5; |
| 804 | 805 | .task-list-container { |
| 805 | 806 | width: 100%; |
| 806 | 807 | height: 100%; |
| 807 | - padding-bottom: 300rpx; | |
| 808 | + padding-bottom: 220rpx; | |
| 808 | 809 | box-sizing: border-box; |
| 809 | 810 | } |
| 810 | 811 | .empty-box { | ... | ... |
蓝信H5改造工作量评估.xlsx deleted
No preview for this file type