diff --git a/apps/web-antd/src/api/operations/gateway/index.ts b/apps/web-antd/src/api/operations/gateway/index.ts index 3e66dce..3c7b7e7 100644 --- a/apps/web-antd/src/api/operations/gateway/index.ts +++ b/apps/web-antd/src/api/operations/gateway/index.ts @@ -1,18 +1,19 @@ -import type { GatewayVO, GatewayForm, GatewayQuery } from './model'; +import type { GatewayForm, GatewayQuery, GatewayVO } from './model'; -import type { ID, IDS } from '#/api/common'; -import type { PageResult } from '#/api/common'; +import type { ID, IDS, PageResult } from '#/api/common'; import { commonExport } from '#/api/helper'; import { requestClient } from '#/api/request'; /** -* 查询设备接入网关列表 -* @param params -* @returns 设备接入网关列表 -*/ + * 查询设备接入网关列表 + * @param params + * @returns 设备接入网关列表 + */ export function gatewayList(params?: GatewayQuery) { - return requestClient.get>('/operations/gateway/list', { params }); + return requestClient.get>('/operations/gateway/list', { + params, + }); } /** diff --git a/apps/web-antd/src/views/device/product/detail/components/AccessSelector.vue b/apps/web-antd/src/views/device/product/detail/components/AccessSelector.vue new file mode 100644 index 0000000..7d7d831 --- /dev/null +++ b/apps/web-antd/src/views/device/product/detail/components/AccessSelector.vue @@ -0,0 +1,460 @@ + + + + + diff --git a/apps/web-antd/src/views/device/product/detail/components/DeviceAccess.vue b/apps/web-antd/src/views/device/product/detail/components/DeviceAccess.vue new file mode 100644 index 0000000..2fc741f --- /dev/null +++ b/apps/web-antd/src/views/device/product/detail/components/DeviceAccess.vue @@ -0,0 +1,543 @@ + + + + + diff --git a/apps/web-antd/src/views/device/product/detail/index.vue b/apps/web-antd/src/views/device/product/detail/index.vue index 54ec2e7..e8899c6 100644 --- a/apps/web-antd/src/views/device/product/detail/index.vue +++ b/apps/web-antd/src/views/device/product/detail/index.vue @@ -2,12 +2,10 @@ import { computed, onMounted, onUnmounted } from 'vue'; import { useRoute, useRouter } from 'vue-router'; -import { useAccess } from '@vben/access'; import { Page } from '@vben/common-ui'; import { ArrowLeftOutlined } from '@ant-design/icons-vue'; import { message, Switch, TabPane, Tabs } from 'ant-design-vue'; -import dayjs from 'dayjs'; import { productUpdate, productUpdateStatus } from '#/api/device/product'; import { useProductStore } from '#/store/product';