|
|
@@ -142,11 +142,15 @@
|
|
|
<l-popup v-model="showDatePickerPopup" position="bottom">
|
|
|
<view class="date-picker-popup">
|
|
|
<view class="popup-header">
|
|
|
- <text class="popup-title">选择时间范围</text>
|
|
|
- <view class="popup-actions">
|
|
|
- <text class="confirm-btn" @click="confirmCustomDate">确定</text>
|
|
|
- <text class="cancel-btn" @click="closeDatePicker">取消</text>
|
|
|
- </view>
|
|
|
+ <text class="popup-title">选择时间范围</text>
|
|
|
+ <view class="popup-actions">
|
|
|
+ <view class="popup-btn">
|
|
|
+ <text class="confirm-btn" @click="confirmCustomDate">确定</text>
|
|
|
+ </view>
|
|
|
+ <view class="popup-btn">
|
|
|
+ <text class="cancel-btn" @click="closeDatePicker">取消</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
<view class="date-picker-container">
|
|
|
@@ -199,7 +203,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="uts">
|
|
|
-import { ref, computed, onLoad, onBeforeUnmount } from 'vue'
|
|
|
+import { ref, computed, onMounted, onBeforeUnmount } from 'vue'
|
|
|
import { listOrderHours, getOrderHourStatistics } from '@/api/worktime/index'
|
|
|
import { getDictDataByType } from '@/api/dict/index'
|
|
|
import type { SysDictData } from '@/types/dict'
|
|
|
@@ -831,7 +835,7 @@ function getWorkOrderTypeInfo(item: any | null): string {
|
|
|
}
|
|
|
|
|
|
// 生命周期
|
|
|
-onLoad((options) => {
|
|
|
+onMounted(() => {
|
|
|
loadStatusDictList()
|
|
|
loadInspectionTypeDictList()
|
|
|
loadMaintenanceTypeDictList()
|
|
|
@@ -1153,6 +1157,10 @@ onBeforeUnmount(() => {
|
|
|
.popup-actions {
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
+ // white-space: nowrap;
|
|
|
+}
|
|
|
+
|
|
|
+.popup-btn {
|
|
|
white-space: nowrap;
|
|
|
}
|
|
|
|