|
|
@@ -27,6 +27,7 @@ const mainloing = ref(false)
|
|
27
|
27
|
const GasStationId = ref('')
|
|
28
|
28
|
const currentMonth = ref(new Date())
|
|
29
|
29
|
const isExpanded = ref(false)
|
|
|
30
|
+const isBoxExpanded = ref(true) // 控制悬浮框展开/折叠状态
|
|
30
|
31
|
const radioActive = ref('日')
|
|
31
|
32
|
const selectedDate = ref(new Date())
|
|
32
|
33
|
const overduedaylist = ref([]) as any // 逾期任务列表
|
|
|
@@ -371,44 +372,64 @@ const handletabs = async (val) => {
|
|
371
|
372
|
</view>
|
|
372
|
373
|
</view>
|
|
373
|
374
|
<view class="box-rigth-fixed">
|
|
374
|
|
- <view
|
|
375
|
|
- @click="addtodoaskslistfn('油站')"
|
|
376
|
|
- style="
|
|
377
|
|
- display: flex;
|
|
378
|
|
- gap: 14rpx;
|
|
379
|
|
- flex-direction: column;
|
|
380
|
|
- align-items: center;
|
|
381
|
|
- color: #31373d;
|
|
382
|
|
- "
|
|
383
|
|
- >
|
|
384
|
|
- <wd-icon name="add1" size="22px"></wd-icon>
|
|
385
|
|
- <text style="font-size: 24rpx; font-weight: 400">油站</text>
|
|
386
|
|
- </view>
|
|
387
|
|
- <view
|
|
388
|
|
- @click="addtodoaskslistfn('访客')"
|
|
|
375
|
+ <!-- 展开/折叠按钮 -->
|
|
|
376
|
+ <view
|
|
|
377
|
+ class="toggle-btn"
|
|
|
378
|
+ @click="isBoxExpanded = !isBoxExpanded"
|
|
389
|
379
|
style="
|
|
390
|
380
|
display: flex;
|
|
391
|
|
- gap: 14rpx;
|
|
392
|
|
- flex-direction: column;
|
|
|
381
|
+ justify-content: center;
|
|
393
|
382
|
align-items: center;
|
|
394
|
|
- color: #31373d;
|
|
|
383
|
+ padding-top: 16rpx;
|
|
395
|
384
|
"
|
|
396
|
385
|
>
|
|
397
|
|
- <wd-icon name="user" size="22px"></wd-icon>
|
|
398
|
|
- <text style="font-size: 24rpx; font-weight: 400">访客</text>
|
|
|
386
|
+ <wd-icon :name="isBoxExpanded ? 'arrow-up' : 'arrow-down'" size="20px" />
|
|
399
|
387
|
</view>
|
|
400
|
|
- <view
|
|
401
|
|
- style="
|
|
402
|
|
- display: flex;
|
|
403
|
|
- gap: 14rpx;
|
|
404
|
|
- flex-direction: column;
|
|
405
|
|
- align-items: center;
|
|
406
|
|
- color: #31373d;
|
|
407
|
|
- "
|
|
408
|
|
- @click="navigateToCreateOrder"
|
|
409
|
|
- >
|
|
410
|
|
- <wd-icon name="list" size="22px"></wd-icon>
|
|
411
|
|
- <text style="font-size: 24rpx; font-weight: 400">工单</text>
|
|
|
388
|
+
|
|
|
389
|
+ <!-- 悬浮框内容 -->
|
|
|
390
|
+ <view v-if="isBoxExpanded" class="box-content">
|
|
|
391
|
+ <view
|
|
|
392
|
+ @click="addtodoaskslistfn('油站')"
|
|
|
393
|
+ style="
|
|
|
394
|
+ display: flex;
|
|
|
395
|
+ gap: 14rpx;
|
|
|
396
|
+ flex-direction: column;
|
|
|
397
|
+ align-items: center;
|
|
|
398
|
+ color: #31373d;
|
|
|
399
|
+ padding: 10rpx 0;
|
|
|
400
|
+ "
|
|
|
401
|
+ >
|
|
|
402
|
+ <wd-icon name="add1" size="22px"></wd-icon>
|
|
|
403
|
+ <text style="font-size: 24rpx; font-weight: 400">油站</text>
|
|
|
404
|
+ </view>
|
|
|
405
|
+ <view
|
|
|
406
|
+ @click="addtodoaskslistfn('访客')"
|
|
|
407
|
+ style="
|
|
|
408
|
+ display: flex;
|
|
|
409
|
+ gap: 14rpx;
|
|
|
410
|
+ flex-direction: column;
|
|
|
411
|
+ align-items: center;
|
|
|
412
|
+ color: #31373d;
|
|
|
413
|
+ padding: 10rpx 0;
|
|
|
414
|
+ "
|
|
|
415
|
+ >
|
|
|
416
|
+ <wd-icon name="user" size="22px"></wd-icon>
|
|
|
417
|
+ <text style="font-size: 24rpx; font-weight: 400">访客</text>
|
|
|
418
|
+ </view>
|
|
|
419
|
+ <view
|
|
|
420
|
+ style="
|
|
|
421
|
+ display: flex;
|
|
|
422
|
+ gap: 14rpx;
|
|
|
423
|
+ flex-direction: column;
|
|
|
424
|
+ align-items: center;
|
|
|
425
|
+ color: #31373d;
|
|
|
426
|
+ padding: 10rpx 0;
|
|
|
427
|
+ "
|
|
|
428
|
+ @click="navigateToCreateOrder"
|
|
|
429
|
+ >
|
|
|
430
|
+ <wd-icon name="list" size="22px"></wd-icon>
|
|
|
431
|
+ <text style="font-size: 24rpx; font-weight: 400">工单</text>
|
|
|
432
|
+ </view>
|
|
412
|
433
|
</view>
|
|
413
|
434
|
</view>
|
|
414
|
435
|
<view class="Calendar-content">
|
|
|
@@ -560,7 +581,7 @@ body {
|
|
560
|
581
|
}
|
|
561
|
582
|
.box-rigth-fixed {
|
|
562
|
583
|
width: 96rpx;
|
|
563
|
|
- height: 364rpx;
|
|
|
584
|
+ min-height: 60rpx;
|
|
564
|
585
|
background-color: #ffffff;
|
|
565
|
586
|
// border: 1px solid red;
|
|
566
|
587
|
position: fixed;
|
|
|
@@ -569,11 +590,21 @@ body {
|
|
569
|
590
|
z-index: 100;
|
|
570
|
591
|
display: flex;
|
|
571
|
592
|
flex-direction: column;
|
|
572
|
|
- justify-content: space-around;
|
|
573
|
593
|
border: 1px solid #ebeef5;
|
|
574
|
594
|
border-radius: 12px;
|
|
575
|
595
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
576
|
|
- // align-items: center;
|
|
|
596
|
+ overflow: hidden;
|
|
|
597
|
+ }
|
|
|
598
|
+
|
|
|
599
|
+ .box-content {
|
|
|
600
|
+ display: flex;
|
|
|
601
|
+ flex-direction: column;
|
|
|
602
|
+ justify-content: space-around;
|
|
|
603
|
+ padding: 10rpx 0;
|
|
|
604
|
+ }
|
|
|
605
|
+
|
|
|
606
|
+ .toggle-btn {
|
|
|
607
|
+ cursor: pointer;
|
|
577
|
608
|
}
|
|
578
|
609
|
.Calendar-content {
|
|
579
|
610
|
padding-top: 346rpx;
|