diff --git a/src/components/DetailComponent/ApprovalDetail.vue b/src/components/DetailComponent/ApprovalDetail.vue index 5da92bb..1f97a5f 100644 --- a/src/components/DetailComponent/ApprovalDetail.vue +++ b/src/components/DetailComponent/ApprovalDetail.vue @@ -155,7 +155,6 @@ const editSingleTableConfig = reactive({ } { row.newFile ? handleDelete(row)}/> : '' } diff --git a/src/components/DetailComponent/FileComponent.vue b/src/components/DetailComponent/FileComponent.vue index 192c5f0..68dc0ff 100644 --- a/src/components/DetailComponent/FileComponent.vue +++ b/src/components/DetailComponent/FileComponent.vue @@ -115,7 +115,6 @@ const tableConfig = reactive({ } { row.newFile ? handleDelete(row)}/> : '' } diff --git a/src/components/DetailComponent/singleFileComponent.vue b/src/components/DetailComponent/singleFileComponent.vue index 7847c84..3f0372d 100644 --- a/src/components/DetailComponent/singleFileComponent.vue +++ b/src/components/DetailComponent/singleFileComponent.vue @@ -104,7 +104,6 @@ const tableConfig = reactive({ } { row.newFile ? handleDelete(row)}/> : '' } diff --git a/src/components/PopoverDelete.vue b/src/components/PopoverDelete.vue index 8e8d72e..c418f16 100644 --- a/src/components/PopoverDelete.vue +++ b/src/components/PopoverDelete.vue @@ -10,7 +10,11 @@ > diff --git a/src/views/article-management/index.vue b/src/views/article-management/index.vue index 8859359..5d951dc 100644 --- a/src/views/article-management/index.vue +++ b/src/views/article-management/index.vue @@ -103,23 +103,32 @@ const researchFundTableConfig = reactive({ currentRender: ({row, index}) => { let btn = [] btn.push({label: '详情', func: () => handleDetail(row), type: 'primary'}) - btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'}) + btn.push({label: '编辑', prem: ['mosr:article:edit'], func: () => handleEdit(row), type: 'primary'}) return (
{ + btn.map(item => ( - item.func()} - link - > - {item.label} - + item.prem ? + item.func()} + link + > + {item.label} + : + item.func()} + link + > + {item.label} + )) } { - handleDelete(row)}/> }
@@ -129,7 +138,7 @@ const researchFundTableConfig = reactive({ ], api: '/workflow/mosr/article/list', btns: [ - {name: '新增', key: 'add', color: '#DED0B2'} + {name: '新增', key: 'add', color: '#DED0B2', auth: ['mosr:article:add']} ], params: {} }) diff --git a/src/views/expense-management/share/index.vue b/src/views/expense-management/share/index.vue index 3dd8f6e..cddf417 100644 --- a/src/views/expense-management/share/index.vue +++ b/src/views/expense-management/share/index.vue @@ -175,7 +175,6 @@ const tableConfig = reactive({ { buttons.has("delete") ? handleDelete(row)}/> : '' } diff --git a/src/views/project-demand/requirement/add.vue b/src/views/project-demand/requirement/add.vue index 6ec23b8..f510079 100644 --- a/src/views/project-demand/requirement/add.vue +++ b/src/views/project-demand/requirement/add.vue @@ -241,7 +241,6 @@ const tableConfig = reactive({
handleDownload(row)}>下载 handleDelete(row)}/>
) diff --git a/src/views/project-management/mobledetail/ApprovalDetailMoblie.vue b/src/views/project-management/mobledetail/ApprovalDetailMoblie.vue index 87643b2..3c60524 100644 --- a/src/views/project-management/mobledetail/ApprovalDetailMoblie.vue +++ b/src/views/project-management/mobledetail/ApprovalDetailMoblie.vue @@ -154,7 +154,6 @@ const editSingleTableConfig = reactive({ } { row.newFile ? handleDelete(row)}/> : '' } diff --git a/src/views/special-fund/add.vue b/src/views/special-fund/add.vue index 901412b..e7c4b40 100644 --- a/src/views/special-fund/add.vue +++ b/src/views/special-fund/add.vue @@ -141,7 +141,6 @@ const tableConfig = reactive({
handleDownload(row)}>下载 handleDelete(row)}/>
)