Commit 9fee3e9cb917005fbafdd0c3dd02d0271f2a5599

Authored by 刘淇
1 parent 13203a04

首页日期 可以选今日

pages/index/index.vue
@@ -248,7 +248,7 @@ const msgCount = ref(0); @@ -248,7 +248,7 @@ const msgCount = ref(0);
248 const currentTabValue = ref(0); 248 const currentTabValue = ref(0);
249 const dateRange = ref<string[]>([]); 249 const dateRange = ref<string[]>([]);
250 const yesterday = new Date(); 250 const yesterday = new Date();
251 -yesterday.setDate(yesterday.getDate() - 1); 251 +// yesterday.setDate(yesterday.getDate() - 1);
252 const maxDate = ref(timeFormat(yesterday, 'yyyy-mm-dd')); 252 const maxDate = ref(timeFormat(yesterday, 'yyyy-mm-dd'));
253 // const minDate = '2026-01-06'; 253 // const minDate = '2026-01-06';
254 const isDatePickerOpen = ref(false); 254 const isDatePickerOpen = ref(false);
@@ -512,10 +512,11 @@ const loadAllTaskByDept = async () =&gt; { @@ -512,10 +512,11 @@ const loadAllTaskByDept = async () =&gt; {
512 } 512 }
513 } else if (mainTab.value === 'workorder') { 513 } else if (mainTab.value === 'workorder') {
514 // ========= 工单tab,后续对接工单接口,先置空列表占位 ========= 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 const getCurrentLocation = (): Promise<{ lon: string; lat: string }> => { 522 const getCurrentLocation = (): Promise<{ lon: string; lat: string }> => {
@@ -628,7 +629,7 @@ $card-bg: #fff; @@ -628,7 +629,7 @@ $card-bg: #fff;
628 $border-radius: 16rpx; 629 $border-radius: 16rpx;
629 $card-radius: 5rpx; 630 $card-radius: 5rpx;
630 $spacing-sm: 5rpx; 631 $spacing-sm: 5rpx;
631 -$spacing-md: 10rpx; 632 +$spacing-md: 12rpx;
632 $spacing-lg: 15rpx; 633 $spacing-lg: 15rpx;
633 $border-color: #e5e5e5; 634 $border-color: #e5e5e5;
634 .page-container { 635 .page-container {
@@ -804,7 +805,7 @@ $border-color: #e5e5e5; @@ -804,7 +805,7 @@ $border-color: #e5e5e5;
804 .task-list-container { 805 .task-list-container {
805 width: 100%; 806 width: 100%;
806 height: 100%; 807 height: 100%;
807 - padding-bottom: 300rpx; 808 + padding-bottom: 220rpx;
808 box-sizing: border-box; 809 box-sizing: border-box;
809 } 810 }
810 .empty-box { 811 .empty-box {
蓝信H5改造工作量评估.xlsx deleted
No preview for this file type