From bf7050304d678efbb1657a6408834573f575c480 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Wed, 29 May 2024 16:15:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=89=B9=E6=B5=81=E7=A8=8B=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=96=B9=E5=BC=8F=E6=9B=B4=E6=96=B0=EF=BC=8C=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E8=A7=86=E5=9B=BE=E9=A1=B5=E9=9D=A2=E5=8F=8A=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E4=BF=AE=E6=94=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/oa_message.ts | 31 +++ src/layout/default/components/header/msg.vue | 28 ++- src/utils/request/index.ts | 231 ++++++++++--------- src/views/oa_Initiate/edit.vue | 4 +- src/views/oa_message/edit.vue | 135 +++++++++++ src/views/oa_message/index.vue | 106 +++++++++ 6 files changed, 418 insertions(+), 117 deletions(-) create mode 100644 src/api/oa_message.ts create mode 100644 src/views/oa_message/edit.vue create mode 100644 src/views/oa_message/index.vue diff --git a/src/api/oa_message.ts b/src/api/oa_message.ts new file mode 100644 index 0000000..0ff6cc7 --- /dev/null +++ b/src/api/oa_message.ts @@ -0,0 +1,31 @@ +import request from "@/utils/request"; + +// 消息表列表 +export function apiOaMessageLists(params: any) { + return request.get({ url: "/works.oa_message/lists", params }); +} + +// 添加消息表 +export function apiOaMessageAdd(params: any) { + return request.post({ url: "/works.oa_message/add", params }); +} + +// 编辑消息表 +export function apiOaMessageEdit(params: any) { + return request.post({ url: "/works.oa_message/edit", params }); +} + +// 删除消息表 +export function apiOaMessageDelete(params: any) { + return request.post({ url: "/works.oa_message/delete", params }); +} + +// 消息表详情 +export function apiOaMessageDetail(params: any) { + return request.get({ url: "/works.oa_message/detail", params }); +} + +// 消息表详情 +export function apiOaMsgNums(params: any) { + return request.get({ url: "/index/index", params }); +} diff --git a/src/layout/default/components/header/msg.vue b/src/layout/default/components/header/msg.vue index 26be545..192e7d3 100644 --- a/src/layout/default/components/header/msg.vue +++ b/src/layout/default/components/header/msg.vue @@ -1,6 +1,6 @@