diff --git a/src/api/common/types.ts b/src/api/common/types.ts index 7f506d23..ca968ea3 100644 --- a/src/api/common/types.ts +++ b/src/api/common/types.ts @@ -13,5 +13,6 @@ export type SystemEnumKeys = | 'eProductNodeType' | 'eRoleAlias' | 'eAuthType' + | 'eSubscribeMessageType' export type SystemEnum = Record diff --git a/src/api/product/index.ts b/src/api/product/index.ts index 00cafee9..c3bbba34 100644 --- a/src/api/product/index.ts +++ b/src/api/product/index.ts @@ -1,3 +1,4 @@ +import type { SubScription } from '../subscription/types' import type { GetProductListParmas, Product } from './types' import { defHttp } from '@/utils/http/axios' @@ -9,7 +10,7 @@ export function getProductList(params: GetProductListParmas) { } export function getProductDetail(id: string) { - return defHttp.get({ + return defHttp.get({ url: `/product/detail?id=${id}`, }) } diff --git a/src/api/subscription/index.ts b/src/api/subscription/index.ts new file mode 100644 index 00000000..e69de29b diff --git a/src/api/subscription/types.ts b/src/api/subscription/types.ts new file mode 100644 index 00000000..47514c21 --- /dev/null +++ b/src/api/subscription/types.ts @@ -0,0 +1,7 @@ +export interface SubScription { + id: string + messageType: string + productId: string + tenantId: string + createTime: string +} diff --git a/src/views/product/components/Subscription.vue b/src/views/product/components/Subscription.vue new file mode 100644 index 00000000..7302af2f --- /dev/null +++ b/src/views/product/components/Subscription.vue @@ -0,0 +1,56 @@ + + + diff --git a/src/views/product/components/index.ts b/src/views/product/components/index.ts index a7ab4299..cf20d6d4 100644 --- a/src/views/product/components/index.ts +++ b/src/views/product/components/index.ts @@ -1,2 +1,3 @@ export { default as TopicManage } from './TopicManage.vue' export { default as Model } from './Model.vue' +export { default as Subscription } from './Subscription.vue' diff --git a/src/views/product/detail.vue b/src/views/product/detail.vue index ce597ffa..10d6e0ea 100644 --- a/src/views/product/detail.vue +++ b/src/views/product/detail.vue @@ -2,7 +2,7 @@ import { Card, Tabs } from 'ant-design-vue' import { useAsyncState } from '@vueuse/core' import { useRoute } from 'vue-router' -import { Model, TopicManage } from './components' +import { Model, Subscription, TopicManage } from './components' import { Description } from '@/components/Description' import { getProductDetail } from '@/api/product' import type { DescItem } from '@/components/Description' @@ -80,11 +80,8 @@ const schema: DescItem[] = [ - - 消息解析 - - 服务端订阅 +