|
|
|
@ -6,7 +6,8 @@
@@ -6,7 +6,8 @@
|
|
|
|
|
<a-button type="default" @click="expandAll">展开全部</a-button> |
|
|
|
|
<a-button type="default" @click="collapseAll">折叠全部</a-button> |
|
|
|
|
</template> |
|
|
|
|
<template #action="{ record }"> |
|
|
|
|
<template #bodyCell="{ column, record }"> |
|
|
|
|
<template v-if="column.key === 'action'"> |
|
|
|
|
<TableAction |
|
|
|
|
:actions="[ |
|
|
|
|
{ |
|
|
|
@ -34,6 +35,7 @@
@@ -34,6 +35,7 @@
|
|
|
|
|
]" |
|
|
|
|
/> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
</BasicTable> |
|
|
|
|
<DeptModal @register="registerModal" @success="handleRefreshTable"/> |
|
|
|
|
</div> |
|
|
|
@ -82,7 +84,7 @@
@@ -82,7 +84,7 @@
|
|
|
|
|
width: 250, |
|
|
|
|
title: '操作', |
|
|
|
|
dataIndex: 'action', |
|
|
|
|
slots: { customRender: 'action' }, |
|
|
|
|
//slots: { customRender: 'action' }, |
|
|
|
|
fixed: false |
|
|
|
|
}, |
|
|
|
|
afterFetch: result => listToTree(result, { id: 'deptId' }), |
|
|
|
|