|
|
|
@ -5,51 +5,49 @@
@@ -5,51 +5,49 @@
|
|
|
|
|
fixedHeight |
|
|
|
|
dense |
|
|
|
|
> |
|
|
|
|
<div class="m-4 mr-0 overflow-hidden bg-white w-1/4 xl:w-1/5"> |
|
|
|
|
<BasicTree |
|
|
|
|
search |
|
|
|
|
:clickRowToExpand="false" |
|
|
|
|
:treeData="state.treeData" |
|
|
|
|
:fieldNames="{ key: 'id', title: 'name' }" |
|
|
|
|
@select="handleSelect" |
|
|
|
|
> |
|
|
|
|
<template #toolbarRight> |
|
|
|
|
<a-button |
|
|
|
|
type="primary" |
|
|
|
|
shape="circle" |
|
|
|
|
size="small" |
|
|
|
|
@click="handleAdd()" |
|
|
|
|
> |
|
|
|
|
<PlusOutlined/> |
|
|
|
|
</a-button> |
|
|
|
|
</template> |
|
|
|
|
<template #title="data"> |
|
|
|
|
<span class="custom-tree-node"> |
|
|
|
|
<span>{{ data.name }}</span> |
|
|
|
|
<span> |
|
|
|
|
<a-button type="link" |
|
|
|
|
size="small" |
|
|
|
|
@click="handleAdd(data)" |
|
|
|
|
> |
|
|
|
|
<PlusOutlined/> |
|
|
|
|
</a-button> |
|
|
|
|
<a-button type="link" |
|
|
|
|
size="small" |
|
|
|
|
@click="handleAdd(data)" |
|
|
|
|
> |
|
|
|
|
<FormOutlined/> |
|
|
|
|
</a-button> |
|
|
|
|
<a-button type="link" |
|
|
|
|
size="small" |
|
|
|
|
@click="handleAdd(data)" |
|
|
|
|
> |
|
|
|
|
<DeleteOutlined/> |
|
|
|
|
</a-button> |
|
|
|
|
</span> |
|
|
|
|
<BasicTree class="m-4 mr-0 overflow-hidden bg-white w-1/4 xl:w-1/5" |
|
|
|
|
search |
|
|
|
|
:clickRowToExpand="false" |
|
|
|
|
:treeData="state.treeData" |
|
|
|
|
:fieldNames="{ key: 'id', title: 'name' }" |
|
|
|
|
@select="handleSelect" |
|
|
|
|
> |
|
|
|
|
<template #toolbarRight> |
|
|
|
|
<a-button |
|
|
|
|
type="primary" |
|
|
|
|
shape="circle" |
|
|
|
|
size="small" |
|
|
|
|
@click="handleAdd()" |
|
|
|
|
> |
|
|
|
|
<PlusOutlined/> |
|
|
|
|
</a-button> |
|
|
|
|
</template> |
|
|
|
|
<template #title="data"> |
|
|
|
|
<span class="custom-tree-node"> |
|
|
|
|
<span>{{ data.name }}</span> |
|
|
|
|
<span> |
|
|
|
|
<a-button type="link" |
|
|
|
|
size="small" |
|
|
|
|
@click="handleAdd(data)" |
|
|
|
|
> |
|
|
|
|
<PlusOutlined/> |
|
|
|
|
</a-button> |
|
|
|
|
<a-button type="link" |
|
|
|
|
size="small" |
|
|
|
|
@click="handleAdd(data)" |
|
|
|
|
> |
|
|
|
|
<FormOutlined/> |
|
|
|
|
</a-button> |
|
|
|
|
<a-button type="link" |
|
|
|
|
size="small" |
|
|
|
|
@click="handleAdd(data)" |
|
|
|
|
> |
|
|
|
|
<DeleteOutlined/> |
|
|
|
|
</a-button> |
|
|
|
|
</span> |
|
|
|
|
</template> |
|
|
|
|
</BasicTree> |
|
|
|
|
</div> |
|
|
|
|
</span> |
|
|
|
|
</template> |
|
|
|
|
</BasicTree> |
|
|
|
|
<BasicTable |
|
|
|
|
class="w-3/4 xl:w-4/5" |
|
|
|
|
@register="registerTable" |
|
|
|
|