update 新增图标选择组件,优化菜单编辑功能

This commit is contained in:
2021-04-25 19:53:39 +08:00
parent eb55b3db27
commit 27e333099b
7 changed files with 204 additions and 35 deletions

View File

@@ -1,5 +1,9 @@
<template>
<container>
<br />
<a-alert type="error">
<template slot="message">按钮编辑关闭时调用resetFields报错,原因为visible=undefined</template>
</a-alert>
<br />
<a-card :bordered="false">
<yo-table :columns="columns" :load-data="loadData" ref="table">
@@ -14,6 +18,9 @@
</span>
<span slot="action" slot-scope="text, record">
<yo-table-actions>
<Auth auth="sysMenu:add" v-if="record.type < 2">
<a @click="onOpen('add-form', record)">新增子菜单</a>
</Auth>
<Auth auth="sysMenu:edit">
<a @click="onOpen('edit-form', record)">编辑</a>
</Auth>