mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-06 09:26:48 +08:00
refactor(knowledge): 优化知识详情页面的状态显示逻辑
-将状态列的 render 函数替换为直接使用 statusLabel 字段- 简化了代码结构,提高了渲染性能
This commit is contained in:
@@ -662,13 +662,13 @@ export default {
|
||||
},
|
||||
{
|
||||
key: '状态',
|
||||
prop: 'displayStatus',
|
||||
render: (h, params) => {
|
||||
let label = this.displayStatus.find(item => {
|
||||
return item.value === params.row.displayStatus
|
||||
}).label
|
||||
return h('div', label ? label : 'N/A')
|
||||
}
|
||||
prop: 'statusLabel'
|
||||
// render: (h, params) => {
|
||||
// let label = this.displayStatus.find(item => {
|
||||
// return item.value === params.row.displayStatus
|
||||
// }).label
|
||||
// return h('div', label ? label : 'N/A')
|
||||
// }
|
||||
},
|
||||
{
|
||||
key: '召回次数',
|
||||
|
||||
Reference in New Issue
Block a user