状态修改
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user