fix(@vben/web-antdv-next): 修复IOT模块若干导入异常问题
parent
bac2f92d1a
commit
e6e4d8ce1e
|
|
@ -2,10 +2,15 @@
|
|||
<script lang="ts" setup>
|
||||
import type { IotDeviceModbusConfigApi } from '#/api/iot/device/modbus/config';
|
||||
|
||||
import { computed, DICT_TYPE, ModbusFrameFormatEnum, ModbusModeEnum, ref } from 'vue';
|
||||
import { computed, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { CommonStatusEnum } from '@vben/constants';
|
||||
import {
|
||||
CommonStatusEnum,
|
||||
DICT_TYPE,
|
||||
ModbusFrameFormatEnum,
|
||||
ModbusModeEnum,
|
||||
} from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { message } from 'antdv-next';
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ import type { IotProductApi } from '#/api/iot/product/product';
|
|||
import type { ThingModelData } from '#/api/iot/thingmodel';
|
||||
import type { DescriptionItemSchema } from '#/components/description';
|
||||
|
||||
import { computed, h, ModbusFunctionCodeOptions, onMounted, ref } from 'vue';
|
||||
import { computed, h, onMounted, ref } from 'vue';
|
||||
|
||||
import { confirm, useVbenModal } from '@vben/common-ui';
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DICT_TYPE, ModbusFunctionCodeOptions } from '@vben/constants';
|
||||
|
||||
import { Button, message } from 'antdv-next';
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,17 @@ import type { VbenFormSchema } from '#/adapter/form';
|
|||
import type { IotDeviceModbusPointApi } from '#/api/iot/device/modbus/point';
|
||||
import type { ThingModelData } from '#/api/iot/thingmodel';
|
||||
|
||||
import { computed, DICT_TYPE, getByteOrderOptions, h, IoTThingModelTypeEnum, ModbusFunctionCodeOptions, ModbusRawDataTypeOptions, ref } from 'vue';
|
||||
import { computed, h, ref } from 'vue';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
import { CommonStatusEnum } from '@vben/constants';
|
||||
import {
|
||||
CommonStatusEnum,
|
||||
DICT_TYPE,
|
||||
getByteOrderOptions,
|
||||
IoTThingModelTypeEnum,
|
||||
ModbusFunctionCodeOptions,
|
||||
ModbusRawDataTypeOptions,
|
||||
} from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
|
||||
import { message } from 'antdv-next';
|
||||
|
|
|
|||
|
|
@ -6,10 +6,14 @@ import type { IotDeviceApi } from '#/api/iot/device/device';
|
|||
import type { IotProductApi } from '#/api/iot/product/product';
|
||||
import type { ThingModelData } from '#/api/iot/thingmodel';
|
||||
|
||||
import { computed, DeviceStateEnum, IoTThingModelTypeEnum, ref } from 'vue';
|
||||
import { computed, ref } from 'vue';
|
||||
|
||||
import { ContentWrap } from '@vben/common-ui';
|
||||
import { IotDeviceMessageMethodEnum } from '@vben/constants';
|
||||
import {
|
||||
DeviceStateEnum,
|
||||
IoTThingModelTypeEnum,
|
||||
IotDeviceMessageMethodEnum,
|
||||
} from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -3,10 +3,14 @@
|
|||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
import type { ThingModelData } from '#/api/iot/thingmodel';
|
||||
|
||||
import { computed, getEventTypeLabel, IoTThingModelTypeEnum, onMounted, reactive, watch } from 'vue';
|
||||
import { computed, onMounted, reactive, watch } from 'vue';
|
||||
|
||||
import { Page } from '@vben/common-ui';
|
||||
import { IotDeviceMessageMethodEnum } from '@vben/constants';
|
||||
import {
|
||||
getEventTypeLabel,
|
||||
IoTThingModelTypeEnum,
|
||||
IotDeviceMessageMethodEnum,
|
||||
} from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { formatDateTime } from '@vben/utils';
|
||||
|
||||
|
|
|
|||
|
|
@ -3,10 +3,14 @@
|
|||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||
import type { ThingModelData } from '#/api/iot/thingmodel';
|
||||
|
||||
import { computed, getThingModelServiceCallTypeLabel, IoTThingModelTypeEnum, onMounted, reactive, watch } from 'vue';
|
||||
import { computed, onMounted, reactive, watch } from 'vue';
|
||||
|
||||
import { Page } from '@vben/common-ui';
|
||||
import { IotDeviceMessageMethodEnum } from '@vben/constants';
|
||||
import {
|
||||
getThingModelServiceCallTypeLabel,
|
||||
IoTThingModelTypeEnum,
|
||||
IotDeviceMessageMethodEnum,
|
||||
} from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { formatDateTime } from '@vben/utils';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
<script setup lang="ts">
|
||||
import { computed, IoTThingModelTypeEnum, onMounted, reactive, ref } from 'vue';
|
||||
import { computed, onMounted, reactive, ref } from 'vue';
|
||||
|
||||
import { IotDeviceMessageMethodEnum } from '@vben/constants';
|
||||
import {
|
||||
IoTThingModelTypeEnum,
|
||||
IotDeviceMessageMethodEnum,
|
||||
} from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
|
||||
import { Button, Form, Select, Table } from 'antdv-next';
|
||||
|
|
|
|||
|
|
@ -1,9 +1,14 @@
|
|||
<script setup lang="ts">
|
||||
import type { IotSceneRule } from '#/api/iot/rule/scene';
|
||||
|
||||
import { computed, IotRuleSceneActionTypeEnum, IotRuleSceneTriggerTypeEnum, isDeviceTrigger, nextTick, reactive, ref, watch } from 'vue';
|
||||
import { computed, nextTick, reactive, ref, watch } from 'vue';
|
||||
|
||||
import { CommonStatusEnum } from '@vben/constants';
|
||||
import {
|
||||
CommonStatusEnum,
|
||||
IotRuleSceneActionTypeEnum,
|
||||
IotRuleSceneTriggerTypeEnum,
|
||||
isDeviceTrigger,
|
||||
} from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
|
||||
import { useVModel } from '@vueuse/core';
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<!-- 设备选择器组件 -->
|
||||
<script setup lang="ts">
|
||||
import { DEVICE_SELECTOR_OPTIONS, ref, watch } from 'vue';
|
||||
import { ref, watch } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import { DEVICE_SELECTOR_OPTIONS, DICT_TYPE } from '@vben/constants';
|
||||
|
||||
import { Select } from 'antdv-next';
|
||||
|
||||
|
|
|
|||
|
|
@ -6,9 +6,14 @@ import type { Ref } from 'vue';
|
|||
import type { IotProductApi } from '#/api/iot/product/product';
|
||||
import type { ThingModelData } from '#/api/iot/thingmodel';
|
||||
|
||||
import { inject, IOT_PROVIDE_KEY, IoTDataSpecsDataTypeEnum, IoTThingModelTypeEnum, ref } from 'vue';
|
||||
import { inject, ref } from 'vue';
|
||||
|
||||
import { DICT_TYPE } from '@vben/constants';
|
||||
import {
|
||||
DICT_TYPE,
|
||||
IOT_PROVIDE_KEY,
|
||||
IoTDataSpecsDataTypeEnum,
|
||||
IoTThingModelTypeEnum,
|
||||
} from '@vben/constants';
|
||||
import { getDictOptions } from '@vben/hooks';
|
||||
import { $t } from '@vben/locales';
|
||||
import { cloneDeep } from '@vben/utils';
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ import type { Emoji } from './tools/emoji';
|
|||
import type { MallKefuConversationApi } from '#/api/mall/promotion/kefu/conversation';
|
||||
import type { MallKefuMessageApi } from '#/api/mall/promotion/kefu/message';
|
||||
|
||||
import { computed, KeFuMessageContentTypeEnum, reactive, ref, toRefs, unref, watch } from 'vue';
|
||||
import { computed, reactive, ref, toRefs, unref, watch } from 'vue';
|
||||
|
||||
import { UserTypeEnum } from '@vben/constants';
|
||||
import { KeFuMessageContentTypeEnum, UserTypeEnum } from '@vben/constants';
|
||||
import { IconifyIcon } from '@vben/icons';
|
||||
import { formatDate, isEmpty, jsonParse } from '@vben/utils';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue