From 64a82a6775c740b8b11fd7d79a1bb6414bfa0a54 Mon Sep 17 00:00:00 2001
From: chabai <14799297+dhasjklhdfjkasfbhfasfj@user.noreply.gitee.com>
Date: Wed, 30 Jul 2025 15:58:23 +0800
Subject: [PATCH 1/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8B=E8=BD=BD?=
=?UTF-8?q?=E6=96=87=E4=BB=B6=E7=B1=BB=E5=9E=8B=E7=9A=84=E5=A4=87=E4=BB=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/apis/regulation/index.ts | 33 +++
src/apis/regulation/type.ts | 33 ++-
src/router/route.ts | 8 +-
src/views/regulation/confirm.vue | 41 +++-
src/views/regulation/index.vue | 12 +-
src/views/regulation/repository.vue | 14 +-
src/views/regulation/type/index.vue | 333 ++++++++++++++++++++++++++++
7 files changed, 444 insertions(+), 30 deletions(-)
create mode 100644 src/views/regulation/type/index.vue
diff --git a/src/apis/regulation/index.ts b/src/apis/regulation/index.ts
index 3812ff9..755c245 100644
--- a/src/apis/regulation/index.ts
+++ b/src/apis/regulation/index.ts
@@ -54,5 +54,38 @@ export const regulationApi = {
// 确认制度知晓
confirmRegulation: (regulationId: string) => {
return http.post(`/regulation/${regulationId}/confirm`)
+ },
+
+ // 获取制度类型列表
+ getRegulationTypes: (params?: {
+ page?: number
+ size?: number
+ typeName?: string
+ remark?: string
+ }) => {
+ return http.get('/regulation/types', params)
+ },
+
+ // 创建制度类型
+ createRegulationType: (data: {
+ typeName: string
+ sortOrder?: number
+ isEnabled?: string
+ }) => {
+ return http.post('/regulation/types', data)
+ },
+
+ // 更新制度类型
+ updateRegulationType: (typeId: string, data: {
+ typeName: string
+ sortOrder?: number
+ isEnabled?: string
+ }) => {
+ return http.put(`/regulation/types/${typeId}`, data)
+ },
+
+ // 删除制度类型
+ deleteRegulationType: (typeId: string) => {
+ return http.del(`/regulation/types/${typeId}`)
}
}
\ No newline at end of file
diff --git a/src/apis/regulation/type.ts b/src/apis/regulation/type.ts
index c708bcb..fde8506 100644
--- a/src/apis/regulation/type.ts
+++ b/src/apis/regulation/type.ts
@@ -22,8 +22,6 @@ export interface Regulation {
content: string
regulationType: string
status: RegulationStatus
- publisherId: string
- publisherName: string
publishTime: string
effectiveTime: string
expireTime: string
@@ -38,6 +36,7 @@ export interface Regulation {
page: number
pageSize: number
delFlag: string
+ confirmStatus?: string
}
// 创建提案请求接口
@@ -54,4 +53,34 @@ export interface CreateProposalRequest {
export interface PaginationParams {
page: number
size: number
+}
+
+// 制度类型接口
+export interface RegulationType {
+ typeId: string
+ typeName: string
+ sortOrder: number
+ isEnabled: string
+ remark?: string
+ createBy: string
+ createTime: string
+ updateBy: string
+ updateTime: string
+ delFlag: string
+}
+
+// 创建制度类型请求接口
+export interface CreateRegulationTypeRequest {
+ typeName: string
+ sortOrder?: number
+ isEnabled?: string
+ remark?: string
+}
+
+// 更新制度类型请求接口
+export interface UpdateRegulationTypeRequest {
+ typeName: string
+ sortOrder?: number
+ isEnabled?: string
+ remark?: string
}
\ No newline at end of file
diff --git a/src/router/route.ts b/src/router/route.ts
index fd39ac5..dae3998 100644
--- a/src/router/route.ts
+++ b/src/router/route.ts
@@ -37,7 +37,13 @@ export const systemRoutes: RouteRecordRaw[] = [
path: '/regulation/system-regulation',
name: 'SystemRegulation',
component: () => import('@/views/regulation/repository.vue'),
- meta: { title: '制度确认', icon: 'file-text', hidden: false },
+ meta: { title: '制度公示', icon: 'file-text', hidden: false },
+ },
+ {
+ path: '/regulation/type',
+ name: 'RegulationType',
+ component: () => import('@/views/regulation/type/index.vue'),
+ meta: { title: '制度类型', icon: 'tag', hidden: false },
},
{
path: '/regulation/process-management',
diff --git a/src/views/regulation/confirm.vue b/src/views/regulation/confirm.vue
index eabb7ee..a7ea0ba 100644
--- a/src/views/regulation/confirm.vue
+++ b/src/views/regulation/confirm.vue
@@ -88,12 +88,14 @@
- 人事制度
- 财务制度
- 安全制度
- 设备制度
- 工作流程
- 其他制度
+
+ {{ type.typeName }}
+
@@ -149,7 +151,7 @@