From 7532c41c9812e7867170275f47cc4644a1a5af4f Mon Sep 17 00:00:00 2001 From: lijingjia Date: Fri, 22 Nov 2024 17:49:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E6=8C=89=E9=92=AE=E7=BB=84?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/CodeDataRuleTemplate/columns.tsx | 49 +++----- .../system/CodeDataRuleTemplate/index.vue | 115 ++++-------------- src/views/system/role/columns.tsx | 9 ++ src/views/system/role/index.vue | 106 +++++++--------- src/views/system/user/columns.tsx | 34 +++--- src/views/system/user/index.vue | 72 +++++------ 6 files changed, 145 insertions(+), 240 deletions(-) diff --git a/src/views/system/CodeDataRuleTemplate/columns.tsx b/src/views/system/CodeDataRuleTemplate/columns.tsx index 835f0e2d..16d77e4a 100644 --- a/src/views/system/CodeDataRuleTemplate/columns.tsx +++ b/src/views/system/CodeDataRuleTemplate/columns.tsx @@ -1,75 +1,58 @@ -import { ref } from 'vue' +/* + * @Desc: + * @Author: lijj + * @Date: 2024-09-26 08:43:39 + */ import { BasicColumn, FormSchema } from '/@/components/Table' -import { getTablesByClient } from '/@/views/baseinfo/formcopy/api' -import { getColumns, getClientPermissionList } from '/@/api/system/role' -import { Tag } from 'ant-design-vue' -// 引入字典数据 -import { getDictOption } from '/@/utils/dictUtil' - -// 下拉框数据接口 -import { GetClientListByCode } from '/@/api/common' export const columns: BasicColumn[] = [ { title: '权限模板类型', dataIndex: 'templateName', width: 200, + align: 'left' }, { title: '权限模板范围', dataIndex: 'ruleScopeName', width: 200, + align: 'left' }, { title: '资源标识', dataIndex: 'permissionEntity', width: 200, + align: 'left' }, { title: '中文视图名', dataIndex: 'columnView', width: 200, + align: 'left' }, { title: '排序号', dataIndex: 'orderNo', - width: 50, + width: 80, + align: 'left' }, { title: '可视/可操作', dataIndex: 'ruleType', width: 120, - customRender: ({ text }) => { - if (text === 'visible') { - return '可视' - } else if (text === 'operate') { - return '可操作' - } - return text - }, + align: 'left' }, { title: '是否启用', dataIndex: 'status', - width: 80, - customRender: ({ text }) => { - if (text === 0) { - return 启用 - } else if (text === 1) { - return 禁用 - } - return text - }, + width: 90, + align: 'left' }, { title: '权限描述', dataIndex: 'description', width: 200, - }, - // { - // title: '备注??', - // dataIndex: 'note', - // width: 200, - // }, + align: 'left' + } ] export const searchFormSchema: FormSchema[] = [ diff --git a/src/views/system/CodeDataRuleTemplate/index.vue b/src/views/system/CodeDataRuleTemplate/index.vue index a69e11cc..2693805d 100644 --- a/src/views/system/CodeDataRuleTemplate/index.vue +++ b/src/views/system/CodeDataRuleTemplate/index.vue @@ -1,83 +1,39 @@