From 2b13a1973171ea3bfb1d0be25ae1977417531ff3 Mon Sep 17 00:00:00 2001 From: lq Date: Tue, 21 Jul 2026 14:01:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=92=89=E9=92=89=E3=80=81=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1webbook=E3=80=81=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E5=BA=94=E7=94=A8api=EF=BC=8C=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=9A=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/oa-chat/api/org.ts | 34 + .../components/create-app-chat-modal.vue | 107 ++ .../oa-chat/components/employee-panel.vue | 244 ++++ .../components/app-credential-modal.vue | 184 +++ .../system/oa-scene/components/form-page.vue | 1131 +++++++++++++++++ .../components/scene-targets-panel.vue | 355 ++++++ 6 files changed, 2055 insertions(+) create mode 100644 apps/web-antd/src/views/system/oa-chat/api/org.ts create mode 100644 apps/web-antd/src/views/system/oa-chat/components/create-app-chat-modal.vue create mode 100644 apps/web-antd/src/views/system/oa-chat/components/employee-panel.vue create mode 100644 apps/web-antd/src/views/system/oa-robot/components/app-credential-modal.vue create mode 100644 apps/web-antd/src/views/system/oa-scene/components/form-page.vue create mode 100644 apps/web-antd/src/views/system/oa-scene/components/scene-targets-panel.vue diff --git a/apps/web-antd/src/views/system/oa-chat/api/org.ts b/apps/web-antd/src/views/system/oa-chat/api/org.ts new file mode 100644 index 00000000..e0a575b9 --- /dev/null +++ b/apps/web-antd/src/views/system/oa-chat/api/org.ts @@ -0,0 +1,34 @@ +import { requestClient } from '#/api/request'; + +/** + * 企微组织架构 API(OA 群聊页「员工」Tab) + * 路由前缀:oa-ww-org/ + */ +const prefix = 'oa-ww-org/'; + +/** + * 从企微同步组织架构(部门 + 成员) + */ +export async function syncOaWwOrg(data: { platform_code?: string } = {}) { + return requestClient.post(`${prefix}sync-org`, data); +} + +/** + * 本地部门树(antd Tree) + */ +export async function getOaWwDeptTree(params: { platform_code?: string } = {}) { + return requestClient.get(`${prefix}department-tree`, { params }); +} + +/** + * 员工分页列表 + */ +export async function getOaWwUserList(params: { + platform_code?: string; + dept_id?: number; + keyword?: string; + page?: number; + pageSize?: number; +}) { + return requestClient.get(`${prefix}user-list`, { params }); +} diff --git a/apps/web-antd/src/views/system/oa-chat/components/create-app-chat-modal.vue b/apps/web-antd/src/views/system/oa-chat/components/create-app-chat-modal.vue new file mode 100644 index 00000000..64bc08de --- /dev/null +++ b/apps/web-antd/src/views/system/oa-chat/components/create-app-chat-modal.vue @@ -0,0 +1,107 @@ + + + diff --git a/apps/web-antd/src/views/system/oa-chat/components/employee-panel.vue b/apps/web-antd/src/views/system/oa-chat/components/employee-panel.vue new file mode 100644 index 00000000..27617fb5 --- /dev/null +++ b/apps/web-antd/src/views/system/oa-chat/components/employee-panel.vue @@ -0,0 +1,244 @@ + + + diff --git a/apps/web-antd/src/views/system/oa-robot/components/app-credential-modal.vue b/apps/web-antd/src/views/system/oa-robot/components/app-credential-modal.vue new file mode 100644 index 00000000..f83318c5 --- /dev/null +++ b/apps/web-antd/src/views/system/oa-robot/components/app-credential-modal.vue @@ -0,0 +1,184 @@ + + + diff --git a/apps/web-antd/src/views/system/oa-scene/components/form-page.vue b/apps/web-antd/src/views/system/oa-scene/components/form-page.vue new file mode 100644 index 00000000..0bcea432 --- /dev/null +++ b/apps/web-antd/src/views/system/oa-scene/components/form-page.vue @@ -0,0 +1,1131 @@ + + +