From 5efd523303ada844ec345dfa3a08b972a7fd2aa3 Mon Sep 17 00:00:00 2001 From: JINGYJ <1458671527@qq.com> Date: Wed, 3 Jul 2024 17:18:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AD=97=E5=85=B8=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=8F=8A=E9=A6=96=E9=A1=B5=E6=8E=A5=E5=8F=A3=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/home.ts | 16 + src/api/system.ts | 58 +++- .../components/updateForm.vue | 2 +- .../processConfiguration/index.vue | 6 +- src/views/home/components/table/columns.tsx | 33 +- src/views/home/index.vue | 43 ++- .../accountManagement/index.vue | 3 + .../dictionaryManagement/columns.tsx | 31 +- .../dictionaryManagement/index.vue | 304 +++++++++++++++--- .../sublibraryManagement/index.vue | 3 +- 10 files changed, 426 insertions(+), 73 deletions(-) create mode 100644 src/api/home.ts diff --git a/src/api/home.ts b/src/api/home.ts new file mode 100644 index 0000000..1f49f42 --- /dev/null +++ b/src/api/home.ts @@ -0,0 +1,16 @@ +import { http } from "@/utils/http"; + +type Result = { + success: boolean; + data: Array; +}; + +/** + * + * @returns 查询我的知识 + */ +export const queryMyKnowledgeList = (data?: object) => { + return http.request("get", "/know-sub/homepage/queryMyKnowledge", { + params: data + }); +}; diff --git a/src/api/system.ts b/src/api/system.ts index 2b02ef4..2094bf6 100644 --- a/src/api/system.ts +++ b/src/api/system.ts @@ -129,10 +129,66 @@ export const updateDeptManage = (data?: object) => { /** * - * @returns 删除用户 + * @returns 删除部门 */ export const deleteDeptManage = (data?: object) => { return http.request("delete", "/know-sub/deptManage/delete", { params: data }); }; + +/** + * + * @returns 分页查询字典信息列表 + */ +export const getDicManageList = (data?: object) => { + return http.request("get", "/know-sub/dicManage/list", { + params: data + }); +}; + +/** + * + * @returns 增加字典信息 + */ +export const createSaveDic = (data?: object) => { + return http.request("post", "/know-sub/dicManage/saveDic", { + data + }); +}; + +/** + * + * @returns 查询字典配置信息列表 + */ +export const queryDicDateList = (data?: object) => { + return http.request("get", "/know-sub/dicManage/queryDicDate", { + params: data + }); +}; + +/** + * + * @returns 保存字典值配置信息 + */ +export const createSaveDicData = (data?: object) => { + return http.request( + "post", + `/know-sub/dicManage/saveDicData?dicId=${ + (data as { dicId: string }).dicId + }`, + { + data: (data as { dicDataReqVos: object }).dicDataReqVos + } + ); +}; + +/** + * + * @returns 删除字典信息 + */ +export const deleteDicManage = (data?: object) => { + return http.request("delete", "/know-sub/dicManage/delete", { + params: data + }); +}; diff --git a/src/views/businessManagement/processConfiguration/components/updateForm.vue b/src/views/businessManagement/processConfiguration/components/updateForm.vue index 4a7063d..a287b33 100644 --- a/src/views/businessManagement/processConfiguration/components/updateForm.vue +++ b/src/views/businessManagement/processConfiguration/components/updateForm.vue @@ -363,7 +363,7 @@ onMounted(() => { placeholder="请选择" :max-collapse-tags="2" class="w-[100%]" - :disabled="item.roleId === ''" + :disabled="item.roleId === '' || item.roleId === null" > { background: 'var(--el-table-row-hover-bg-color)', color: 'var(--el-text-color-primary)' }" + adaptive :pagination="pagination" @page-current-change="onCurrentChange" > +