diff --git a/src/api/system/role/index.ts b/src/api/system/role/index.ts
index 7cb85951..902d5ca6 100644
--- a/src/api/system/role/index.ts
+++ b/src/api/system/role/index.ts
@@ -10,20 +10,13 @@ export interface RoleVO {
createTime: Date
}
-export interface RolePageReqVO extends PageParam {
- name?: string
- code?: string
- status?: number
- createTime?: Date[]
-}
-
export interface UpdateStatusReqVO {
id: number
status: number
}
// 查询角色列表
-export const getRolePage = async (params: RolePageReqVO) => {
+export const getRolePage = async (params: PageParam) => {
return await request.get({ url: '/system/role/page', params })
}
diff --git a/src/types/auto-components.d.ts b/src/types/auto-components.d.ts
index f6f6a5f9..cb8ff559 100644
--- a/src/types/auto-components.d.ts
+++ b/src/types/auto-components.d.ts
@@ -52,6 +52,7 @@ declare module '@vue/runtime-core' {
ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElIcon: typeof import('element-plus/es')['ElIcon']
+ ElImage: typeof import('element-plus/es')['ElImage']
ElImageViewer: typeof import('element-plus/es')['ElImageViewer']
ElInput: typeof import('element-plus/es')['ElInput']
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
diff --git a/src/views/system/notice/form.vue b/src/views/system/notice/form.vue
index 141dd131..87e75623 100644
--- a/src/views/system/notice/form.vue
+++ b/src/views/system/notice/form.vue
@@ -46,7 +46,6 @@
-
diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue
index 68f2008a..0e75d67d 100644
--- a/src/views/system/role/index.vue
+++ b/src/views/system/role/index.vue
@@ -14,6 +14,7 @@
placeholder="请输入角色名称"
clearable
@keyup.enter="handleQuery"
+ class="!w-240px"
/>
@@ -22,10 +23,11 @@
placeholder="请输入角色标识"
clearable
@keyup.enter="handleQuery"
+ class="!w-240px"
/>
-
+
搜索
重置
-
+
新增
-
+
@@ -90,12 +97,11 @@
编辑
-
菜单权限
-
{
- dialogTitle.value = t('action.' + type)
- actionType.value = type
- modelVisible.value = true
-}
+const queryFormRef = ref() // 搜索的表单
+const exportLoading = ref(false) // 导出的加载中
/** 查询角色列表 */
const getList = async () => {
@@ -203,9 +197,14 @@ const resetQuery = () => {
/** 添加/修改操作 */
const formRef = ref()
-const openModal = (type: string, id?: number) => {
- setDialogTile('编辑')
- formRef.value.openModal(type, id)
+const openForm = (type: string, id?: number) => {
+ formRef.value.open(type, id)
+}
+
+/** 数据权限操作 */
+const menuPermissionFormRef = ref()
+const handleScope = async (type: string, row: RoleApi.RoleVO) => {
+ menuPermissionFormRef.value.openForm(type, row)
}
/** 删除按钮操作 */
@@ -235,13 +234,7 @@ const handleExport = async () => {
exportLoading.value = false
}
}
-/** 数据权限操作 */
-const menuPermissionFormRef = ref()
-// 权限操作
-const handleScope = async (type: string, row: RoleApi.RoleVO) => {
- menuPermissionFormRef.value.openModal(type, row)
-}
/** 初始化 **/
onMounted(() => {
getList()