diff --git a/apps/web-antdv-next/src/views/iot/device/device/detail/modules/header.vue b/apps/web-antdv-next/src/views/iot/device/device/detail/modules/header.vue index dd809afca..27565b32c 100644 --- a/apps/web-antdv-next/src/views/iot/device/device/detail/modules/header.vue +++ b/apps/web-antdv-next/src/views/iot/device/device/detail/modules/header.vue @@ -6,7 +6,7 @@ import { useRouter } from 'vue-router'; import { useVbenModal } from '@vben/common-ui'; -import { Button, Card, Descriptions, message } from 'antdv-next'; +import { Button, Card, Descriptions, DescriptionsItem, message } from 'antdv-next'; import DeviceForm from '../../modules/form.vue'; @@ -75,15 +75,15 @@ function openEditForm(row: IotDeviceApi.Device) { - + {{ product.name }} - - + + {{ product.productKey }} - + diff --git a/apps/web-antdv-next/src/views/iot/device/device/detail/modules/info.vue b/apps/web-antdv-next/src/views/iot/device/device/detail/modules/info.vue index 6378814e8..452c00523 100644 --- a/apps/web-antdv-next/src/views/iot/device/device/detail/modules/info.vue +++ b/apps/web-antdv-next/src/views/iot/device/device/detail/modules/info.vue @@ -12,7 +12,9 @@ import { Button, Card, Descriptions, + DescriptionsItem, Form, + FormItem, Input, message, Modal, @@ -38,7 +40,7 @@ const mapDialogRef = ref>(); /** 是否有位置信息(合法经纬度 0 不应视为空) */ const hasLocation = computed(() => { - return props.device.longitude != null && props.device.latitude != null; + return props.device.longitude !== null && props.device.latitude !== null; }); /** 打开地图弹窗 */ @@ -77,40 +79,40 @@ function handleAuthInfoDialogClose() {
- + {{ product.name }} - - + + {{ product.productKey }} - - + + - - + + {{ device.deviceName }} - - + + {{ device.nickname || '--' }} - - + + - - + + {{ formatDateTime(device.createTime) }} - - + + {{ formatDateTime(device.activeTime) }} - - + + {{ formatDateTime(device.onlineTime) }} - - + + {{ formatDateTime(device.offlineTime) }} - - + + 暂无位置信息 - - + + - + @@ -138,7 +140,7 @@ function handleAuthInfoDialogClose() { width="640px" >
- + - - + + - - + + - +
diff --git a/apps/web-antdv-next/src/views/iot/product/product/detail/modules/header.vue b/apps/web-antdv-next/src/views/iot/product/product/detail/modules/header.vue index 54c6dc8ce..c3e504042 100644 --- a/apps/web-antdv-next/src/views/iot/product/product/detail/modules/header.vue +++ b/apps/web-antdv-next/src/views/iot/product/product/detail/modules/header.vue @@ -11,6 +11,7 @@ import { Button, Card, Descriptions, + DescriptionsItem, message, Popconfirm, } from 'antdv-next'; @@ -135,7 +136,7 @@ async function handleSyncPropertyTable(product: IotProductApi.Product) { - + {{ product.productKey }} - - + + {{ product.deviceCount ?? '加载中...' }} - +
diff --git a/apps/web-antdv-next/src/views/iot/product/product/detail/modules/info.vue b/apps/web-antdv-next/src/views/iot/product/product/detail/modules/info.vue index ecd96c07d..d92475948 100644 --- a/apps/web-antdv-next/src/views/iot/product/product/detail/modules/info.vue +++ b/apps/web-antdv-next/src/views/iot/product/product/detail/modules/info.vue @@ -5,7 +5,7 @@ import { ref } from 'vue'; import { DeviceTypeEnum, DICT_TYPE } from '@vben/constants'; -import { Button, Card, Descriptions, message } from 'antdv-next'; +import { Button, Card, Descriptions, DescriptionsItem, message } from 'antdv-next'; import { DictTag } from '#/components/dict-tag'; @@ -44,37 +44,37 @@ async function copyToClipboard(text: string) { diff --git a/apps/web-antdv-next/src/views/iot/rule/data/sink/config/database-config-form.vue b/apps/web-antdv-next/src/views/iot/rule/data/sink/config/database-config-form.vue index f06210d8b..bf8433c78 100644 --- a/apps/web-antdv-next/src/views/iot/rule/data/sink/config/database-config-form.vue +++ b/apps/web-antdv-next/src/views/iot/rule/data/sink/config/database-config-form.vue @@ -5,7 +5,7 @@ import { IconifyIcon } from '@vben/icons'; import { isEmpty } from '@vben/utils'; import { useClipboard, useVModel } from '@vueuse/core'; -import { Button, Form, Input, message } from 'antdv-next'; +import { Button, Form, FormItem, Input, message } from 'antdv-next'; import { IotDataSinkTypeEnum } from '#/api/iot/rule/data/sink'; @@ -67,7 +67,7 @@ onMounted(() => { diff --git a/apps/web-antdv-next/src/views/iot/rule/data/sink/config/kafka-mq-config-form.vue b/apps/web-antdv-next/src/views/iot/rule/data/sink/config/kafka-mq-config-form.vue index 6da154393..9f986a65c 100644 --- a/apps/web-antdv-next/src/views/iot/rule/data/sink/config/kafka-mq-config-form.vue +++ b/apps/web-antdv-next/src/views/iot/rule/data/sink/config/kafka-mq-config-form.vue @@ -4,7 +4,7 @@ import { onMounted } from 'vue'; import { isEmpty } from '@vben/utils'; import { useVModel } from '@vueuse/core'; -import { Form, Input, Switch } from 'antdv-next'; +import { FormItem, Input, Switch } from 'antdv-next'; import { IotDataSinkTypeEnum } from '#/api/iot/rule/data/sink'; @@ -28,7 +28,7 @@ onMounted(() => { diff --git a/apps/web-antdv-next/src/views/iot/rule/data/sink/config/mqtt-config-form.vue b/apps/web-antdv-next/src/views/iot/rule/data/sink/config/mqtt-config-form.vue index b8848491b..6be7f7156 100644 --- a/apps/web-antdv-next/src/views/iot/rule/data/sink/config/mqtt-config-form.vue +++ b/apps/web-antdv-next/src/views/iot/rule/data/sink/config/mqtt-config-form.vue @@ -4,7 +4,7 @@ import { onMounted } from 'vue'; import { isEmpty } from '@vben/utils'; import { useVModel } from '@vueuse/core'; -import { Form, Input } from 'antdv-next'; +import { FormItem, Input } from 'antdv-next'; import { IotDataSinkTypeEnum } from '#/api/iot/rule/data/sink'; @@ -28,7 +28,7 @@ onMounted(() => { diff --git a/apps/web-antdv-next/src/views/iot/rule/data/sink/config/rabbit-mq-config-form.vue b/apps/web-antdv-next/src/views/iot/rule/data/sink/config/rabbit-mq-config-form.vue index bb9108bcb..b73ccbecd 100644 --- a/apps/web-antdv-next/src/views/iot/rule/data/sink/config/rabbit-mq-config-form.vue +++ b/apps/web-antdv-next/src/views/iot/rule/data/sink/config/rabbit-mq-config-form.vue @@ -4,7 +4,7 @@ import { onMounted } from 'vue'; import { isEmpty } from '@vben/utils'; import { useVModel } from '@vueuse/core'; -import { Form, Input, InputNumber } from 'antdv-next'; +import { FormItem, Input, InputNumber } from 'antdv-next'; import { IotDataSinkTypeEnum } from '#/api/iot/rule/data/sink'; @@ -31,7 +31,7 @@ onMounted(() => { diff --git a/apps/web-antdv-next/src/views/iot/rule/data/sink/config/redis-stream-config-form.vue b/apps/web-antdv-next/src/views/iot/rule/data/sink/config/redis-stream-config-form.vue index 960293025..046d31e4b 100644 --- a/apps/web-antdv-next/src/views/iot/rule/data/sink/config/redis-stream-config-form.vue +++ b/apps/web-antdv-next/src/views/iot/rule/data/sink/config/redis-stream-config-form.vue @@ -4,7 +4,7 @@ import { onMounted } from 'vue'; import { isEmpty } from '@vben/utils'; import { useVModel } from '@vueuse/core'; -import { Form, Input, InputNumber } from 'antdv-next'; +import { FormItem, Input, InputNumber } from 'antdv-next'; import { IotDataSinkTypeEnum } from '#/api/iot/rule/data/sink'; @@ -36,7 +36,7 @@ onMounted(() => { diff --git a/apps/web-antdv-next/src/views/iot/rule/data/sink/config/rocket-mq-config-form.vue b/apps/web-antdv-next/src/views/iot/rule/data/sink/config/rocket-mq-config-form.vue index 8420696b4..a3f798ba3 100644 --- a/apps/web-antdv-next/src/views/iot/rule/data/sink/config/rocket-mq-config-form.vue +++ b/apps/web-antdv-next/src/views/iot/rule/data/sink/config/rocket-mq-config-form.vue @@ -4,7 +4,7 @@ import { onMounted } from 'vue'; import { isEmpty } from '@vben/utils'; import { useVModel } from '@vueuse/core'; -import { Form, Input } from 'antdv-next'; +import { FormItem, Input } from 'antdv-next'; import { IotDataSinkTypeEnum } from '#/api/iot/rule/data/sink'; @@ -29,7 +29,7 @@ onMounted(() => { diff --git a/apps/web-antdv-next/src/views/iot/rule/data/sink/config/tcp-config-form.vue b/apps/web-antdv-next/src/views/iot/rule/data/sink/config/tcp-config-form.vue index d9149000e..347dd682c 100644 --- a/apps/web-antdv-next/src/views/iot/rule/data/sink/config/tcp-config-form.vue +++ b/apps/web-antdv-next/src/views/iot/rule/data/sink/config/tcp-config-form.vue @@ -4,7 +4,7 @@ import { onMounted } from 'vue'; import { isEmpty } from '@vben/utils'; import { useVModel } from '@vueuse/core'; -import { Form, Input, InputNumber, Select, Switch } from 'antdv-next'; +import { FormItem, Input, InputNumber, Select, Switch } from 'antdv-next'; import { IotDataSinkTypeEnum } from '#/api/iot/rule/data/sink'; @@ -33,7 +33,7 @@ onMounted(() => { diff --git a/apps/web-antdv-next/src/views/iot/rule/data/sink/config/websocket-config-form.vue b/apps/web-antdv-next/src/views/iot/rule/data/sink/config/websocket-config-form.vue index aa056c5ec..8789412d3 100644 --- a/apps/web-antdv-next/src/views/iot/rule/data/sink/config/websocket-config-form.vue +++ b/apps/web-antdv-next/src/views/iot/rule/data/sink/config/websocket-config-form.vue @@ -4,7 +4,7 @@ import { onMounted } from 'vue'; import { isEmpty } from '@vben/utils'; import { useVModel } from '@vueuse/core'; -import { Form, Input, InputNumber, Select, Switch } from 'antdv-next'; +import { FormItem, Input, InputNumber, Select, Switch } from 'antdv-next'; import { IotDataSinkTypeEnum } from '#/api/iot/rule/data/sink'; @@ -37,7 +37,7 @@ onMounted(() => { diff --git a/apps/web-antdv-next/src/views/iot/rule/data/sink/modules/form.vue b/apps/web-antdv-next/src/views/iot/rule/data/sink/modules/form.vue index ada1afb55..a74094fca 100644 --- a/apps/web-antdv-next/src/views/iot/rule/data/sink/modules/form.vue +++ b/apps/web-antdv-next/src/views/iot/rule/data/sink/modules/form.vue @@ -7,7 +7,7 @@ import { useVbenModal } from '@vben/common-ui'; import { CommonStatusEnum, DICT_TYPE } from '@vben/constants'; import { getDictOptions } from '@vben/hooks'; -import { Form, Input, message, Radio, Select } from 'antdv-next'; +import { Form, FormItem, Input, message, Radio, Select } from 'antdv-next'; import { createDataSink, @@ -102,7 +102,7 @@ function handleTypeChange(type: number) { :wrapper-col="{ span: 18 }" class="mx-4" > - - - + + - - + - + - - + diff --git a/apps/web-antdv-next/src/views/iot/rule/scene/form/configs/alert-config.vue b/apps/web-antdv-next/src/views/iot/rule/scene/form/configs/alert-config.vue index ea81ead11..49ef1e9ae 100644 --- a/apps/web-antdv-next/src/views/iot/rule/scene/form/configs/alert-config.vue +++ b/apps/web-antdv-next/src/views/iot/rule/scene/form/configs/alert-config.vue @@ -3,7 +3,7 @@ import { onMounted, ref } from 'vue'; import { useVModel } from '@vueuse/core'; -import { Form, Select } from 'antdv-next'; +import { FormItem, Select } from 'antdv-next'; import { getSimpleAlertConfigList } from '#/api/iot/alert/config'; @@ -46,7 +46,7 @@ onMounted(() => { diff --git a/apps/web-antdv-next/src/views/iot/rule/scene/form/configs/condition-config.vue b/apps/web-antdv-next/src/views/iot/rule/scene/form/configs/condition-config.vue index 031cafb2e..88bd83fcf 100644 --- a/apps/web-antdv-next/src/views/iot/rule/scene/form/configs/condition-config.vue +++ b/apps/web-antdv-next/src/views/iot/rule/scene/form/configs/condition-config.vue @@ -12,7 +12,7 @@ import { } from '@vben/constants'; import { useVModel } from '@vueuse/core'; -import { Col, Form, Row, Select } from 'antdv-next'; +import { Col, FormItem, Row, Select } from 'antdv-next'; import ValueInput from '../inputs/value-input.vue'; import DeviceSelector from '../selectors/device-selector.vue'; @@ -160,7 +160,7 @@ function handleOperatorChange() { - + - + - + - +
@@ -273,7 +273,7 @@ function handleOperatorChange() { - + - + - + - + - + - + diff --git a/apps/web-antdv-next/src/views/iot/rule/scene/form/configs/current-time-condition-config.vue b/apps/web-antdv-next/src/views/iot/rule/scene/form/configs/current-time-condition-config.vue index 128a614d1..d2252cf23 100644 --- a/apps/web-antdv-next/src/views/iot/rule/scene/form/configs/current-time-condition-config.vue +++ b/apps/web-antdv-next/src/views/iot/rule/scene/form/configs/current-time-condition-config.vue @@ -14,7 +14,7 @@ import { useVModel } from '@vueuse/core'; import { Col, DatePicker, - Form, + FormItem, Row, Select, Tag, @@ -178,7 +178,7 @@ watch( - + - +
- + - +
- + - +
diff --git a/apps/web-antdv-next/src/views/iot/rule/scene/form/configs/main-condition-inner-config.vue b/apps/web-antdv-next/src/views/iot/rule/scene/form/configs/main-condition-inner-config.vue index dffb75827..427d19694 100644 --- a/apps/web-antdv-next/src/views/iot/rule/scene/form/configs/main-condition-inner-config.vue +++ b/apps/web-antdv-next/src/views/iot/rule/scene/form/configs/main-condition-inner-config.vue @@ -12,7 +12,7 @@ import { } from '@vben/constants'; import { useVModel } from '@vueuse/core'; -import { Col, Form, Input, Row, Select } from 'antdv-next'; +import { Col, FormItem, Input, Row, Select } from 'antdv-next'; import JsonParamsInput from '../inputs/json-params-input.vue'; import ValueInput from '../inputs/value-input.vue'; @@ -168,7 +168,7 @@ function handlePropertyChange(propertyInfo: any) { diff --git a/apps/web-antdv-next/src/views/iot/rule/scene/form/sections/trigger-section.vue b/apps/web-antdv-next/src/views/iot/rule/scene/form/sections/trigger-section.vue index d40a716c5..a49ac22a1 100644 --- a/apps/web-antdv-next/src/views/iot/rule/scene/form/sections/trigger-section.vue +++ b/apps/web-antdv-next/src/views/iot/rule/scene/form/sections/trigger-section.vue @@ -12,7 +12,7 @@ import { IconifyIcon } from '@vben/icons'; import { getStableObjectKey } from '@vben/utils'; import { useVModel } from '@vueuse/core'; -import { Button, Card, Empty, Form, Tag } from 'antdv-next'; +import { Button, Card, Empty, FormItem, Tag } from 'antdv-next'; import { CronTab } from '#/components/cron-tab'; @@ -208,14 +208,14 @@ onMounted(() => {
- + - +
diff --git a/apps/web-antdv-next/src/views/iot/thingmodel/modules/data-specs/array.vue b/apps/web-antdv-next/src/views/iot/thingmodel/modules/data-specs/array.vue index 6d80f95b4..23660e9b9 100644 --- a/apps/web-antdv-next/src/views/iot/thingmodel/modules/data-specs/array.vue +++ b/apps/web-antdv-next/src/views/iot/thingmodel/modules/data-specs/array.vue @@ -5,7 +5,7 @@ import type { Ref } from 'vue'; import { getDataTypeOptions, IoTDataSpecsDataTypeEnum } from '@vben/constants'; import { useVModel } from '@vueuse/core'; -import { Form, Input, Radio } from 'antdv-next'; +import { FormItem, Input, Radio } from 'antdv-next'; import { ThingModelFormRules } from '#/api/iot/thingmodel'; @@ -34,7 +34,7 @@ function handleChange(e: any) {