优化参数模块

This commit is contained in:
zjl 2024-08-30 11:15:39 +08:00
parent c15decdccd
commit 8f53365516
2 changed files with 22 additions and 2 deletions

View File

@ -21,6 +21,21 @@ export const columns = [
label: '参数值', label: '参数值',
prop: 'value', prop: 'value',
}, },
{
label: '参数类型',
prop: 'type',
render(record) {
return h(
ElTag,
{
type: record.row.type == 0 ? 'primary' : 'warning',
},
{
default: () => (record.row.type == 0 ? '系统' : '业务'),
},
);
},
},
{ {
label: '参数状态', label: '参数状态',
prop: 'status', prop: 'status',
@ -40,6 +55,10 @@ export const columns = [
label: '排序', label: '排序',
prop: 'sort', prop: 'sort',
}, },
{
label: '备注',
prop: 'note',
},
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
@ -47,5 +66,6 @@ export const columns = [
{ {
label: '创建时间', label: '创建时间',
prop: 'createTime', prop: 'createTime',
width: 180,
}, },
]; ];

View File

@ -17,11 +17,11 @@ export const schemas: FormSchema[] = [
clearable: true, clearable: true,
options: [ options: [
{ {
label: '正常', label: '系统',
value: '1', value: '1',
}, },
{ {
label: '禁用', label: '业务',
value: '2', value: '2',
}, },
], ],