Support menu team.

pull/40/head
ruibaby 2019-08-28 08:05:18 +08:00
parent 7da2f730eb
commit 8aa2d5119f
2 changed files with 15 additions and 3 deletions

View File

@ -204,12 +204,12 @@
<a href="javascript:;">删除</a> <a href="javascript:;">删除</a>
</a-popconfirm> </a-popconfirm>
<a-divider type="vertical" /> <!-- <a-divider type="vertical" />
<a <a
href="javascript:;" href="javascript:;"
@click="handleShowDetailDrawer(record)" @click="handleShowDetailDrawer(record)"
>详情</a> >详情</a> -->
</span> </span>
</a-table> </a-table>
<div class="page-wrapper"> <div class="page-wrapper">

View File

@ -42,6 +42,12 @@
> >
<a-input v-model="menuToCreate.icon" /> <a-input v-model="menuToCreate.icon" />
</a-form-item> </a-form-item>
<a-form-item
label="分组:"
:style="{ display: fieldExpand ? 'block' : 'none' }"
>
<a-input v-model="menuToCreate.team" />
</a-form-item>
<a-form-item <a-form-item
label="打开方式:" label="打开方式:"
:style="{ display: fieldExpand ? 'block' : 'none' }" :style="{ display: fieldExpand ? 'block' : 'none' }"
@ -141,6 +147,10 @@ const columns = [
title: '地址', title: '地址',
dataIndex: 'url' dataIndex: 'url'
}, },
{
title: '分组',
dataIndex: 'team'
},
{ {
title: '排序', title: '排序',
dataIndex: 'priority' dataIndex: 'priority'
@ -159,7 +169,9 @@ export default {
loading: false, loading: false,
columns, columns,
menus: [], menus: [],
menuToCreate: {}, menuToCreate: {
target: '_self'
},
fieldExpand: false fieldExpand: false
} }
}, },