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 @@
-
+
-
-
-
- 新建
-
-
-
-
-
-
-
-
-
- 复制
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
+
-
-
+
+ {{ record.ruleType == 'visible' ? '可视' : (record.ruleType == 'operate' ? '可操作' : '-') }}
+
+
+ 启用
+ 禁用
-