Commit 5f5ae354 by YunaiV

【功能修复】system:菜单管理列表,虚拟 table 的告警问题

parent 410e257a
...@@ -162,6 +162,7 @@ const columns: Column[] = [ ...@@ -162,6 +162,7 @@ const columns: Column[] = [
cellRenderer: ({ rowData }) => { cellRenderer: ({ rowData }) => {
return h( return h(
'div', 'div',
{},
[ [
hasPermission(['system:menu:update']) && hasPermission(['system:menu:update']) &&
h( h(
...@@ -171,7 +172,7 @@ const columns: Column[] = [ ...@@ -171,7 +172,7 @@ const columns: Column[] = [
type: 'primary', type: 'primary',
onClick: () => openForm('update', rowData.id) onClick: () => openForm('update', rowData.id)
}, },
'修改' () => '修改'
), ),
hasPermission(['system:menu:create']) && hasPermission(['system:menu:create']) &&
h( h(
...@@ -181,7 +182,7 @@ const columns: Column[] = [ ...@@ -181,7 +182,7 @@ const columns: Column[] = [
type: 'primary', type: 'primary',
onClick: () => openForm('create', undefined, rowData.id) onClick: () => openForm('create', undefined, rowData.id)
}, },
'新增' () => '新增'
), ),
hasPermission(['system:menu:delete']) && hasPermission(['system:menu:delete']) &&
h( h(
...@@ -191,7 +192,7 @@ const columns: Column[] = [ ...@@ -191,7 +192,7 @@ const columns: Column[] = [
type: 'danger', type: 'danger',
onClick: () => handleDelete(rowData.id) onClick: () => handleDelete(rowData.id)
}, },
'删除' () => '删除'
) )
].filter(Boolean) ].filter(Boolean)
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment