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 @@ + + + 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 @@ + + + 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 @@ + + + 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