菜单管理界面

This commit is contained in:
2023-02-08 23:12:56 +08:00
parent e13f7f0603
commit 05b5b2ccc3

View File

@@ -11,9 +11,9 @@
</ku-search-bar>
<ku-table :data="tableData" :columns="columns" @list="getTableData()">
<template v-slot:ops="{row}">
<el-button text v-text="`删除`" @click="handleDelete(row)"/>
<el-button text v-text="`添加下级`" @click="addMenu(row)" v-if="row.type<2"/>
<el-button text v-text="`编辑`" @click="handleEdit(row)"/>
<el-button text v-text="`删除`" @click="handleDelete(row)" type="danger"/>
<el-button text v-text="`添加下级`" @click="addMenu(row)" v-if="row.type<2" type="primary"/>
<el-button text v-text="`编辑`" @click="handleEdit(row)" type="primary"/>
</template>
</ku-table>
</ku-layout>