diff --git a/admin-web/src/api/channel.ts b/admin-web/src/api/channel.ts index 066edf2..36f357e 100644 --- a/admin-web/src/api/channel.ts +++ b/admin-web/src/api/channel.ts @@ -2,6 +2,10 @@ import client from './client' export * from './channelSubject' export * from './channelAccount' +export interface ChannelIdentityQuery { + keyword?: string +} + export function createConversation(data: any) { return client.post('/api/v1/conversation', data) } @@ -25,3 +29,15 @@ export function bindConversationAccount(conversationId: number, data: any) { export function bindConversationTags(conversationId: number, data: any) { return client.post(`/api/v1/conversation/${conversationId}/bind-tags`, data) } + +export function listChannelIdentities(params?: ChannelIdentityQuery) { + return client.get('/api/v1/channel-identity/list', { params }) +} + +export function listConversationParticipants(conversationId: number) { + return client.get(`/api/v1/conversation/${conversationId}/participants`) +} + +export function listConversationTags(conversationId: number) { + return client.get(`/api/v1/conversation/${conversationId}/tags`) +} diff --git a/admin-web/src/components/Layout.vue b/admin-web/src/components/Layout.vue index 9ae9152..8d2aa0a 100644 --- a/admin-web/src/components/Layout.vue +++ b/admin-web/src/components/Layout.vue @@ -27,6 +27,7 @@ 渠道主体 渠道应用 渠道账号 + 渠道身份 diff --git a/admin-web/src/router/index.ts b/admin-web/src/router/index.ts index 528791c..2d72397 100644 --- a/admin-web/src/router/index.ts +++ b/admin-web/src/router/index.ts @@ -4,6 +4,7 @@ import Dashboard from '../views/Dashboard.vue' import ChannelSubject from '../views/ChannelSubject.vue' import ChannelApp from '../views/ChannelApp.vue' import ChannelAccount from '../views/ChannelAccount.vue' +import ChannelIdentity from '../views/ChannelIdentity.vue' import Person from '../views/Person.vue' import Conversation from '../views/Conversation.vue' import Tag from '../views/Tag.vue' @@ -30,6 +31,7 @@ const routes = [ { path: 'channel/subject', component: ChannelSubject, meta: { title: '渠道主体' } }, { path: 'channel/app', component: ChannelApp, meta: { title: '渠道应用' } }, { path: 'channel/account', component: ChannelAccount, meta: { title: '渠道账号' } }, + { path: 'channel/identity', component: ChannelIdentity, meta: { title: '渠道身份' } }, { path: 'customer/person', component: Person, meta: { title: '联系人' } }, { path: 'customer/group', component: Conversation, meta: { title: '群聊' } }, { path: 'customer/tag', component: Tag, meta: { title: '标签体系' } }, diff --git a/admin-web/src/views/ChannelIdentity.vue b/admin-web/src/views/ChannelIdentity.vue new file mode 100644 index 0000000..7b42345 --- /dev/null +++ b/admin-web/src/views/ChannelIdentity.vue @@ -0,0 +1,112 @@ + + + diff --git a/admin-web/src/views/Conversation.vue b/admin-web/src/views/Conversation.vue index b577b3a..bd81609 100644 --- a/admin-web/src/views/Conversation.vue +++ b/admin-web/src/views/Conversation.vue @@ -151,6 +151,38 @@ + + +
+
群成员
+ + + + + + + + + + +
+ + + +
+
已绑定标签
+
+ + {{ t.tagName }} + +
+ +
+