From bdb40f8249d9d4940ab383e6c7bf95b7f8a2b023 Mon Sep 17 00:00:00 2001 From: lzq <2495532633@qq.com> Date: Thu, 4 Dec 2025 17:31:14 +0800 Subject: [PATCH] 1 --- src/pages/sys/dict/Dict.vue | 36 ++++++ src/pages/sys/dict/DictForm.vue | 91 +++++++++++++ src/pages/sys/dict/DictItem.vue | 191 +++++++++++++++++++++++++++ src/pages/sys/dict/DictItemForm.vue | 103 +++++++++++++++ src/pages/sys/dict/dict-api.ts | 25 ++++ src/pages/sys/dict/dict-item-api.ts | 22 ++++ src/pages/sys/dict/dict.d.ts | 117 +++++++++++++++++ src/pages/sys/dict/page.ts | 3 + src/pages/sys/role/Role.vue | 194 ++++++++++++++++++++++++++++ src/pages/sys/role/RoleForm.vue | 91 +++++++++++++ src/pages/sys/role/page.ts | 3 + 11 files changed, 876 insertions(+) create mode 100644 src/pages/sys/dict/Dict.vue create mode 100644 src/pages/sys/dict/DictForm.vue create mode 100644 src/pages/sys/dict/DictItem.vue create mode 100644 src/pages/sys/dict/DictItemForm.vue create mode 100644 src/pages/sys/dict/dict-api.ts create mode 100644 src/pages/sys/dict/dict-item-api.ts create mode 100644 src/pages/sys/dict/dict.d.ts create mode 100644 src/pages/sys/dict/page.ts create mode 100644 src/pages/sys/role/Role.vue create mode 100644 src/pages/sys/role/RoleForm.vue create mode 100644 src/pages/sys/role/page.ts diff --git a/src/pages/sys/dict/Dict.vue b/src/pages/sys/dict/Dict.vue new file mode 100644 index 0000000..5d4bf22 --- /dev/null +++ b/src/pages/sys/dict/Dict.vue @@ -0,0 +1,36 @@ + + + + + + + + + diff --git a/src/pages/sys/dict/DictForm.vue b/src/pages/sys/dict/DictForm.vue new file mode 100644 index 0000000..00b5557 --- /dev/null +++ b/src/pages/sys/dict/DictForm.vue @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + {{ status === 'view' ? '关闭' : '取消' }} + 提交 + + + + + diff --git a/src/pages/sys/dict/DictItem.vue b/src/pages/sys/dict/DictItem.vue new file mode 100644 index 0000000..24b74be --- /dev/null +++ b/src/pages/sys/dict/DictItem.vue @@ -0,0 +1,191 @@ + + + + + + + + + + + + 搜索 + 新建 + + + + + + + + + + + + + + + + + + + + + + 删除 + + + 修改 + + + + + + + + + diff --git a/src/pages/sys/dict/DictItemForm.vue b/src/pages/sys/dict/DictItemForm.vue new file mode 100644 index 0000000..dbd95f5 --- /dev/null +++ b/src/pages/sys/dict/DictItemForm.vue @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + {{ status === 'view' ? '关闭' : '取消' }} + 提交 + + + + + diff --git a/src/pages/sys/dict/dict-api.ts b/src/pages/sys/dict/dict-api.ts new file mode 100644 index 0000000..b035071 --- /dev/null +++ b/src/pages/sys/dict/dict-api.ts @@ -0,0 +1,25 @@ +import { + get, + post, +} from '@/common/utils/http-util.ts' + +export default { + paging(data: DictTypes.SearchDictParam) { + return get>('/dict/paging', data) + }, + detail(id: string) { + return get('/dict/detail', {id}) + }, + obtainDictData(data: DictItemTypes.SearchDictItemParam) { + return get('/dict/dict_data', data) + }, + add(data: DictTypes.AddDictParam) { + return post('/dict/add', data) + }, + modify(data: DictTypes.ModifyDictParam) { + return post('/dict/modify', data) + }, + del(ids: string[]) { + return post('/dict/del', ids) + }, +} diff --git a/src/pages/sys/dict/dict-item-api.ts b/src/pages/sys/dict/dict-item-api.ts new file mode 100644 index 0000000..6825254 --- /dev/null +++ b/src/pages/sys/dict/dict-item-api.ts @@ -0,0 +1,22 @@ +import { + get, + post, +} from '@/common/utils/http-util.ts' + +export default { + paging(data: DictItemTypes.SearchDictItemParam) { + return get>('/dict_item/paging', data) + }, + detail(id: string) { + return get('/dict_item/detail', {id}) + }, + add(data: DictItemTypes.AddDictItemParam) { + return post('/dict_item/add', data) + }, + modify(data: DictItemTypes.ModifyDictItemParam) { + return post('/dict_item/modify', data) + }, + del(ids: string[]) { + return post('/dict_item/del', ids) + }, +} diff --git a/src/pages/sys/dict/dict.d.ts b/src/pages/sys/dict/dict.d.ts new file mode 100644 index 0000000..cd1a905 --- /dev/null +++ b/src/pages/sys/dict/dict.d.ts @@ -0,0 +1,117 @@ +export {} +declare global { + namespace DictTypes { + interface SearchDictParam extends G.PageParam { + // Id + id?: string + // 字典标识 + dictKey?: string + // 字典名称 + dictName?: string + // 备注 + memo?: string + } + + interface SearchDictResult { + // Id + id?: string + // 字典标识 + dictKey?: string + // 字典名称 + dictName?: string + // 备注 + memo?: string + } + + interface AddDictParam { + // Id + id?: string + // 字典标识 + dictKey?: string + // 字典名称 + dictName?: string + // 备注 + memo?: string + } + + interface ModifyDictParam { + // Id + id?: string + // 字典标识 + dictKey?: string + // 字典名称 + dictName?: string + // 备注 + memo?: string + } + } + namespace DictItemTypes { + interface SearchDictItemParam extends G.PageParam { + // Id + id?: string + // 字典 Id + dictId?: string + // 字典标识 + dictKey?: string + // 值 + val?: string + // 显示文本 + txt?: string + // 排序 + sort?: number + // 备注 + memo?: string + } + + interface SearchDictItemResult { + // Id + id?: string + // 字典 Id + dictId?: string + // 字典标识 + dictKey?: string + // 值 + val?: string + // 显示文本 + txt?: string + // 排序 + sort?: number + // 备注 + memo?: string + } + + interface AddDictItemParam { + // Id + id?: string + // 字典 Id + dictId?: string + // 字典标识 + dictKey?: string + // 值 + val?: string + // 显示文本 + txt?: string + // 排序 + sort?: number + // 备注 + memo?: string + } + + interface ModifyDictItemParam { + // Id + id?: string + // 字典 Id + dictId?: string + // 字典标识 + dictKey?: string + // 值 + val?: string + // 显示文本 + txt?: string + // 排序 + sort?: number + // 备注 + memo?: string + } + } +} diff --git a/src/pages/sys/dict/page.ts b/src/pages/sys/dict/page.ts new file mode 100644 index 0000000..a3d9da4 --- /dev/null +++ b/src/pages/sys/dict/page.ts @@ -0,0 +1,3 @@ +export default { + component: () => import('@/pages/sys/dict/Dict.vue'), +} as RouterTypes.RouteConfig diff --git a/src/pages/sys/role/Role.vue b/src/pages/sys/role/Role.vue new file mode 100644 index 0000000..84e0df9 --- /dev/null +++ b/src/pages/sys/role/Role.vue @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + 搜索 + 重置 + + + + 新建 + + + + + + + + + + + + + + + 删除 + + + 资源 + 修改 + + + + + + + + + + diff --git a/src/pages/sys/role/RoleForm.vue b/src/pages/sys/role/RoleForm.vue new file mode 100644 index 0000000..befea82 --- /dev/null +++ b/src/pages/sys/role/RoleForm.vue @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + {{ status === 'view' ? '关闭' : '取消' }} + 提交 + + + + + diff --git a/src/pages/sys/role/page.ts b/src/pages/sys/role/page.ts new file mode 100644 index 0000000..0b61a3e --- /dev/null +++ b/src/pages/sys/role/page.ts @@ -0,0 +1,3 @@ +export default { + component: () => import('@/pages/sys/role/Role.vue'), +} as RouterTypes.RouteConfig