|
|
@ -7,7 +7,7 @@ |
|
|
|
<TableAction :actions="getTableAction(record)" /> |
|
|
|
</template> |
|
|
|
<template #tableTitle> |
|
|
|
<el-button type="primary" @click="handleAdd" v-if="isShowByRoles('projectContact')"> |
|
|
|
<el-button type="primary" @click="handleAdd"> |
|
|
|
新增项目考核</el-button> |
|
|
|
</template> |
|
|
|
</BasicTable> |
|
|
@ -72,15 +72,12 @@ function getTableAction(record): ActionItem[] { |
|
|
|
return [ |
|
|
|
{ |
|
|
|
label: '详情', |
|
|
|
ifShow: () => { |
|
|
|
return isShowByRoles("projectContact,manageOrg") && (record.children == null || record.projectId != null) |
|
|
|
}, |
|
|
|
onClick: handledetail.bind(null, record), |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '编辑', |
|
|
|
ifShow: () => { |
|
|
|
return isShowByRoles("projectContact,manageOrg") && (record.children == null || record.projectId != null) |
|
|
|
return isShowByRoles("中医处,妇幼处,医政处,财审处,体改处,组织人事处,机关党委,规信处") && (record.children == null || record.projectId != null) |
|
|
|
}, |
|
|
|
onClick: handleModify.bind(null, record), |
|
|
|
}, |
|
|
@ -88,7 +85,7 @@ function getTableAction(record): ActionItem[] { |
|
|
|
{ |
|
|
|
label: '删除', |
|
|
|
ifShow: () => { |
|
|
|
return isShowByRoles("manageOrg") && (record.children == null || record.projectId != null) |
|
|
|
return isShowByRoles("中医处,妇幼处,医政处,财审处,体改处,组织人事处,机关党委,规信处") && (record.children == null || record.projectId != null) |
|
|
|
}, |
|
|
|
popConfirm: { |
|
|
|
title: '确定删除吗?', |
|
|
|