feat : 研发投入资金管理按钮权限

This commit is contained in:
2024-10-11 15:00:42 +08:00
parent 5c1a1d507a
commit 7fbc2037d3

View File

@@ -98,14 +98,14 @@ const researchFundTableConfig = reactive({
showOverflowTooltip: false,
currentRender: ({row, index}) => {
let btn = []
btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'})
btn.push({label: '编辑', prem: ['rd:fund:update'], func: () => handleEdit(row), type: 'primary'})
return (
<div style={{width: '100%'}}>
{
btn.map(item => (
<el-button
type={item.type}
// v-perm={item.prem}
v-perm={item.prem}
onClick={() => item.func()}
link
>
@@ -114,7 +114,7 @@ const researchFundTableConfig = reactive({
))
}
{
<popover-delete name={row.rdCompany} type={'研发投入资金'} btnType={'danger'}
<popover-delete name={row.rdCompany} type={'研发投入资金'} btnType={'danger'} perm={['rd:fund:remove']}
onDelete={() => handleDelete(row)}/>
}
@@ -125,7 +125,7 @@ const researchFundTableConfig = reactive({
],
api: '/workflow/mosr/rd/list',
btns: [
{name: '新增', key: 'add', color: '#DED0B2'}
{name: '新增', key: 'add', color: '#DED0B2', auth: ['rd:fund:add']}
],
params: {}
})