add categoty
This commit is contained in:
parent
e4da41c85d
commit
c267740693
@ -23,6 +23,13 @@
|
|||||||
<a-tag size="small" v-else>未推荐</a-tag>
|
<a-tag size="small" v-else>未推荐</a-tag>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<template #classification="{ record }">
|
||||||
|
<div class="flex flex-">
|
||||||
|
<a-tag v-for="item in record.classification" class="ml-5">
|
||||||
|
{{ item.name }}
|
||||||
|
</a-tag>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<template #menu="{ record }">
|
<template #menu="{ record }">
|
||||||
<div class="flex flex-center">
|
<div class="flex flex-center">
|
||||||
<edit type="edit" :info="record" @ok="fetchList" />
|
<edit type="edit" :info="record" @ok="fetchList" />
|
||||||
@ -72,6 +79,10 @@ export default {
|
|||||||
title: 'latinName',
|
title: 'latinName',
|
||||||
dataIndex: 'latinName'
|
dataIndex: 'latinName'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '分类',
|
||||||
|
slotName: 'classification'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '科/属',
|
title: '科/属',
|
||||||
dataIndex: 'genus',
|
dataIndex: 'genus',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user