From 40dd5fb57e63704a52cd08046a19a07d65367a8f Mon Sep 17 00:00:00 2001 From: xiao-fajia <1665375861@qq.com> Date: Wed, 28 Aug 2024 20:38:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=A3=E6=A1=88=E7=AE=A1=E7=90=862?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/company/archives/archivesRole.js | 26 +++ src/utils/dict.js | 6 +- .../knowledge/views/archives/archives.vue | 15 +- .../archives/components/ArchivesTable.vue | 153 +++++++++---- .../archives/form/ArchivesCatalogForm.vue | 206 ++++++++++++++++++ 5 files changed, 348 insertions(+), 58 deletions(-) create mode 100644 src/api/company/archives/archivesRole.js create mode 100644 src/views/knowledge/views/archives/form/ArchivesCatalogForm.vue diff --git a/src/api/company/archives/archivesRole.js b/src/api/company/archives/archivesRole.js new file mode 100644 index 0000000..9f001e8 --- /dev/null +++ b/src/api/company/archives/archivesRole.js @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 查看档案名称 +export function getArchivesCatalogList(dictType){ + return request({ + url: "/archives/role/list?dictType=" + dictType, + method: "get" + }) +} + +// 新增或修改档案名称 +export function updateArchivesRoleAndDict(data){ + return request({ + url: "/archives/role/update", + method: "post", + data + }) +} + +// 删除档案名称 +export function removeArchivesRoleAndDict(ids){ + return request({ + url: "/archives/role/remove/" + ids, + method: "delete" + }) +} diff --git a/src/utils/dict.js b/src/utils/dict.js index ed0b27e..b315b44 100644 --- a/src/utils/dict.js +++ b/src/utils/dict.js @@ -164,10 +164,8 @@ export const DICT_TYPE = { JY_ORDER_STATUS: 'jy_order_status', // 车辆类型 RESCUE_CAR_TYPE: 'rescue_car_type', - // 合同分类 - CONTRACT_TYPE: 'contract_type', - // 资料分类 - MATERIAL_TYPE: 'material_type', + // 档案分类 + ARCHIVES_TYPE: 'archives_type', } /** diff --git a/src/views/knowledge/views/archives/archives.vue b/src/views/knowledge/views/archives/archives.vue index 1b760cb..3eb874d 100644 --- a/src/views/knowledge/views/archives/archives.vue +++ b/src/views/knowledge/views/archives/archives.vue @@ -1,19 +1,13 @@ diff --git a/src/views/knowledge/views/archives/components/ArchivesTable.vue b/src/views/knowledge/views/archives/components/ArchivesTable.vue index 72b9095..499d284 100644 --- a/src/views/knowledge/views/archives/components/ArchivesTable.vue +++ b/src/views/knowledge/views/archives/components/ArchivesTable.vue @@ -7,72 +7,90 @@ - 新增 - 修改 - 删除 - +
- - - - - - - - - 搜索 - 重置 - - + +
+ + + + + + + + + 搜索 + 重置 + + - - - - 新增 - - - - + + + + 新增 + + + + +
+ + + +