状态修改

This commit is contained in:
仲么了
2024-01-26 09:08:20 +08:00
parent 35f8cced00
commit f12af238f4
4 changed files with 47 additions and 32 deletions

View File

@@ -45,10 +45,19 @@ const tableStore = new TableStore({
{ title: '编码', field: 'code' },
{ title: '开启等级', field: 'openLevelName' },
{ title: '开启算法', field: 'openDescribeName' },
{ title: '状态', field: 'stateName' },
{ title: '字典描述', field: 'remark' },
{ title: '创建时间', field: 'createTime' },
{ title: '更新时间', field: 'updateTime' },
{
title: '状态',
field: 'stateName',
width: '80',
render: 'tag',
custom: {
'正常': 'success',
'删除': 'danger'
},
},
{
title: '操作',
width: '180',

View File

@@ -98,12 +98,7 @@ const tableStore = new TableStore({
}
]
}
],
loadCallback: () => {
tableStore.table.data.forEach((item: any) => {
item.statusName = item.status === 0 ? '正常' : item.status === 1 ? '停用' : '删除'
})
}
]
})
provide('tableStore', tableStore)