diff --git a/apps/web-antd/src/views/iot/device/device/detail/modules/thing-model-property.vue b/apps/web-antd/src/views/iot/device/device/detail/modules/thing-model-property.vue
index 965f90e9b..f38eb5692 100644
--- a/apps/web-antd/src/views/iot/device/device/detail/modules/thing-model-property.vue
+++ b/apps/web-antd/src/views/iot/device/device/detail/modules/thing-model-property.vue
@@ -3,7 +3,14 @@
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { IotDeviceApi } from '#/api/iot/device/device';
-import { nextTick, onBeforeUnmount, onMounted, reactive, ref, watch } from 'vue';
+import {
+ nextTick,
+ onBeforeUnmount,
+ onMounted,
+ reactive,
+ ref,
+ watch,
+} from 'vue';
import { Page } from '@vben/common-ui';
import { IconifyIcon } from '@vben/icons';
@@ -27,6 +34,7 @@ import DeviceDetailsThingModelPropertyHistory from './thing-model-property-histo
const props = defineProps<{ deviceId: number }>();
+// TODO @haohao:变量写在 // 列表的加载中 这种注释哈,变量后面;
/** 列表的加载中 */
const loading = ref(true);
/** 显示的列表数据 */
@@ -373,7 +381,9 @@ onBeforeUnmount(() => {
更新时间
- {{ item.updateTime ? formatDateTime(item.updateTime) : '-' }}
+ {{
+ item.updateTime ? formatDateTime(item.updateTime) : '-'
+ }}
@@ -394,9 +404,7 @@ onBeforeUnmount(() => {
diff --git a/apps/web-antd/src/views/iot/device/device/detail/modules/thing-model-service.vue b/apps/web-antd/src/views/iot/device/device/detail/modules/thing-model-service.vue
index 5b121f2f4..d8952842b 100644
--- a/apps/web-antd/src/views/iot/device/device/detail/modules/thing-model-service.vue
+++ b/apps/web-antd/src/views/iot/device/device/detail/modules/thing-model-service.vue
@@ -9,13 +9,7 @@ import { Page } from '@vben/common-ui';
import { IconifyIcon } from '@vben/icons';
import { formatDateTime } from '@vben/utils';
-import {
- Button,
- RangePicker,
- Select,
- Space,
- Tag,
-} from 'ant-design-vue';
+import { Button, RangePicker, Select, Space, Tag } from 'ant-design-vue';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import { getDeviceMessagePairPage } from '#/api/iot/device/device';
@@ -254,15 +248,11 @@ defineExpose({
{{
- row.request?.reportTime
- ? formatDateTime(row.request.reportTime)
- : '-'
+ row.request?.reportTime ? formatDateTime(row.request.reportTime) : '-'
}}
- {{
- row.reply?.reportTime ? formatDateTime(row.reply.reportTime) : '-'
- }}
+ {{ row.reply?.reportTime ? formatDateTime(row.reply.reportTime) : '-' }}
diff --git a/apps/web-antd/src/views/iot/device/device/index.vue b/apps/web-antd/src/views/iot/device/device/index.vue
index 9480fd574..0ce5acbc3 100644
--- a/apps/web-antd/src/views/iot/device/device/index.vue
+++ b/apps/web-antd/src/views/iot/device/device/index.vue
@@ -72,7 +72,6 @@ const queryParams = ref({
groupId: undefined as number | undefined,
}); // 搜索参数
-
/** 搜索 */
function handleSearch() {
if (viewMode.value === 'list') {
@@ -201,7 +200,6 @@ function handleRowCheckboxChange({
checkedIds.value = records.map((item) => item.id!);
}
-
const [Grid, gridApi] = useVbenVxeGrid({
gridOptions: {
checkboxConfig: {
@@ -310,7 +308,10 @@ onMounted(async () => {
style="width: 200px"
>
diff --git a/apps/web-antd/src/views/iot/home/modules/message-trend-card.vue b/apps/web-antd/src/views/iot/home/modules/message-trend-card.vue
index 6364e46bc..f4a2a16cd 100644
--- a/apps/web-antd/src/views/iot/home/modules/message-trend-card.vue
+++ b/apps/web-antd/src/views/iot/home/modules/message-trend-card.vue
@@ -23,7 +23,9 @@ const messageChartRef = ref();
const { renderEcharts } = useEcharts(messageChartRef);
const loading = ref(false);
-const messageData = ref([]);
+const messageData = ref(
+ [],
+);
/** 时间范围(仅日期,不包含时分秒) */
const dateRange = ref<[string, string]>([
diff --git a/apps/web-antd/src/views/iot/product/product/data.ts b/apps/web-antd/src/views/iot/product/product/data.ts
index 6d21d05b2..f8569635d 100644
--- a/apps/web-antd/src/views/iot/product/product/data.ts
+++ b/apps/web-antd/src/views/iot/product/product/data.ts
@@ -405,4 +405,3 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
},
];
}
-
diff --git a/apps/web-antd/src/views/iot/product/product/detail/index.vue b/apps/web-antd/src/views/iot/product/product/detail/index.vue
index 3ca0daee1..5fc1fc7bd 100644
--- a/apps/web-antd/src/views/iot/product/product/detail/index.vue
+++ b/apps/web-antd/src/views/iot/product/product/detail/index.vue
@@ -90,4 +90,3 @@ onMounted(async () => {
-
diff --git a/apps/web-antd/src/views/iot/product/product/modules/form.vue b/apps/web-antd/src/views/iot/product/product/modules/form.vue
index 6f7fdb26f..69fa968fe 100644
--- a/apps/web-antd/src/views/iot/product/product/modules/form.vue
+++ b/apps/web-antd/src/views/iot/product/product/modules/form.vue
@@ -17,6 +17,8 @@ import { $t } from '#/locales';
import { useAdvancedFormSchema, useBasicFormSchema } from '../data';
+const emit = defineEmits(['success']);
+
/** 生成 ProductKey(包含大小写字母和数字) */
function generateProductKey(): string {
const chars =
@@ -28,7 +30,6 @@ function generateProductKey(): string {
return result;
}
-const emit = defineEmits(['success']);
const formData = ref();
const activeKey = ref([]);
const getTitle = computed(() => {