diff --git a/apps/web-antd/src/views/ops/cleaning/work-order/components/cleaning-actions.vue b/apps/web-antd/src/views/ops/cleaning/work-order/components/cleaning-actions.vue
index 331166bf1..c95d33254 100644
--- a/apps/web-antd/src/views/ops/cleaning/work-order/components/cleaning-actions.vue
+++ b/apps/web-antd/src/views/ops/cleaning/work-order/components/cleaning-actions.vue
@@ -3,13 +3,11 @@ import type { OpsOrderCenterApi } from '#/api/ops/order-center';
import { IconifyIcon } from '@vben/icons';
-import { Button } from 'ant-design-vue';
+import { Button, message } from 'ant-design-vue';
import { sendDeviceMessage } from '#/api/iot/device/device';
import { manualCompleteOrder } from '#/api/ops/cleaning';
-import { message } from 'ant-design-vue';
-
defineOptions({ name: 'CleaningActions' });
const props = defineProps<{
diff --git a/apps/web-antd/src/views/ops/cleaning/work-order/components/cleaning-detail-ext.vue b/apps/web-antd/src/views/ops/cleaning/work-order/components/cleaning-detail-ext.vue
index 3c51ceb8e..77856c66d 100644
--- a/apps/web-antd/src/views/ops/cleaning/work-order/components/cleaning-detail-ext.vue
+++ b/apps/web-antd/src/views/ops/cleaning/work-order/components/cleaning-detail-ext.vue
@@ -85,16 +85,21 @@ function getBatteryColor(level: null | number) {
function getBadgeStatusText(status: string) {
const s = status?.toUpperCase();
switch (s) {
- case 'BUSY':
+ case 'BUSY': {
return '作业中';
- case 'IDLE':
+ }
+ case 'IDLE': {
return '空闲';
- case 'OFFLINE':
+ }
+ case 'OFFLINE': {
return '离线';
- case 'PAUSED':
+ }
+ case 'PAUSED': {
return '暂停';
- default:
+ }
+ default: {
return status || '未知';
+ }
}
}
@@ -141,10 +146,7 @@ function formatRelativeTime(time: string) {
>