From 3806b474f60bf2fd6b03db526225fe752b1dc132 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Fri, 24 May 2024 15:11:12 +0800 Subject: [PATCH] add --- src/api/oa_flow.ts | 26 ++++ src/api/oa_flow_type.ts | 26 ++++ src/views/oa_flow/edit.vue | 160 +++++++++++++++++++++++ src/views/oa_flow/index.vue | 124 ++++++++++++++++++ src/views/oa_flow_type/edit.vue | 154 ++++++++++++++++++++++ src/views/oa_flow_type/index.vue | 133 +++++++++++++++++++ src/views/oa_schedule_calendar/index.vue | 3 - src/views/permission/menu/edit.vue | 86 +++--------- 8 files changed, 638 insertions(+), 74 deletions(-) create mode 100644 src/api/oa_flow.ts create mode 100644 src/api/oa_flow_type.ts create mode 100644 src/views/oa_flow/edit.vue create mode 100644 src/views/oa_flow/index.vue create mode 100644 src/views/oa_flow_type/edit.vue create mode 100644 src/views/oa_flow_type/index.vue diff --git a/src/api/oa_flow.ts b/src/api/oa_flow.ts new file mode 100644 index 0000000..af3ba5f --- /dev/null +++ b/src/api/oa_flow.ts @@ -0,0 +1,26 @@ +import request from "@/utils/request"; + +// 审批流程表列表 +export function apiOaFlowLists(params: any) { + return request.get({ url: "/works.bgsp.oa_flow/lists", params }); +} + +// 添加审批流程表 +export function apiOaFlowAdd(params: any) { + return request.post({ url: "/works.bgsp.oa_flow/add", params }); +} + +// 编辑审批流程表 +export function apiOaFlowEdit(params: any) { + return request.post({ url: "/works.bgsp.oa_flow/edit", params }); +} + +// 删除审批流程表 +export function apiOaFlowDelete(params: any) { + return request.post({ url: "/works.bgsp.oa_flow/delete", params }); +} + +// 审批流程表详情 +export function apiOaFlowDetail(params: any) { + return request.get({ url: "/works.bgsp.oa_flow/detail", params }); +} diff --git a/src/api/oa_flow_type.ts b/src/api/oa_flow_type.ts new file mode 100644 index 0000000..e74d60e --- /dev/null +++ b/src/api/oa_flow_type.ts @@ -0,0 +1,26 @@ +import request from "@/utils/request"; + +// 审批类型列表 +export function apiOaFlowTypeLists(params: any) { + return request.get({ url: "/works.bgsp.oa_flow_type/lists", params }); +} + +// 添加审批类型 +export function apiOaFlowTypeAdd(params: any) { + return request.post({ url: "/works.bgsp.oa_flow_type/add", params }); +} + +// 编辑审批类型 +export function apiOaFlowTypeEdit(params: any) { + return request.post({ url: "/works.bgsp.oa_flow_type/edit", params }); +} + +// 删除审批类型 +export function apiOaFlowTypeDelete(params: any) { + return request.post({ url: "/works.bgsp.oa_flow_type/delete", params }); +} + +// 审批类型详情 +export function apiOaFlowTypeDetail(params: any) { + return request.get({ url: "/works.bgsp.oa_flow_type/detail", params }); +} diff --git a/src/views/oa_flow/edit.vue b/src/views/oa_flow/edit.vue new file mode 100644 index 0000000..16d3360 --- /dev/null +++ b/src/views/oa_flow/edit.vue @@ -0,0 +1,160 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/oa_flow/index.vue b/src/views/oa_flow/index.vue new file mode 100644 index 0000000..e26b2fc --- /dev/null +++ b/src/views/oa_flow/index.vue @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + + 新增 + + + 删除 + + + + + + + + + + + + + + + + 编辑 + + + 删除 + + + + + + + + + + + + + + + diff --git a/src/views/oa_flow_type/edit.vue b/src/views/oa_flow_type/edit.vue new file mode 100644 index 0000000..bf56652 --- /dev/null +++ b/src/views/oa_flow_type/edit.vue @@ -0,0 +1,154 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/oa_flow_type/index.vue b/src/views/oa_flow_type/index.vue new file mode 100644 index 0000000..f812710 --- /dev/null +++ b/src/views/oa_flow_type/index.vue @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + + 新增 + + + 删除 + + + + + + + + + + + {{ row.department_names }} + + + + + + 编辑 + + + 删除 + + + + + + + + + + + + + + + diff --git a/src/views/oa_schedule_calendar/index.vue b/src/views/oa_schedule_calendar/index.vue index 04460e2..cb13a9e 100644 --- a/src/views/oa_schedule_calendar/index.vue +++ b/src/views/oa_schedule_calendar/index.vue @@ -81,9 +81,6 @@ const getLists = async () => { } getLists() - - - diff --git a/src/views/permission/menu/edit.vue b/src/views/permission/menu/edit.vue index 35a290b..65d9ee8 100644 --- a/src/views/permission/menu/edit.vue +++ b/src/views/permission/menu/edit.vue @@ -1,13 +1,6 @@ - + @@ -17,19 +10,10 @@ - + }" :default-expand-all="true" placeholder="请选择父级菜单" check-strictly /> @@ -46,45 +30,24 @@ - + - + 访问的组件路径,如:`user/setting`,默认在`views`目录下 - + - + 访问详情页面,编辑页面时,菜单高亮显示,如`/consumer/lists` - + @@ -95,11 +58,7 @@ - + 访问路由的默认传递参数,如:`{"id": 1, "name": @@ -107,12 +66,7 @@ - + 缓存 @@ -121,12 +75,7 @@ 选择缓存则会被`keep-alive`缓存 - + 显示 @@ -137,12 +86,7 @@ - + 正常 @@ -181,8 +125,8 @@ const componentsOptions = ref(getModulesKey()) const querySearch = (queryString: string, cb: any) => { const results = queryString ? componentsOptions.value.filter((item) => - item.toLowerCase().includes(queryString.toLowerCase()) - ) + item.toLowerCase().includes(queryString.toLowerCase()) + ) : componentsOptions.value cb(results.map((item) => ({ value: item }))) }