|
|
|
@ -227,7 +227,7 @@ onMounted(() => { |
|
|
|
|
|
|
|
<el-card shadow="never"> |
|
|
|
<template #header> |
|
|
|
<el-button type="success" @click="openDialog(0)"> |
|
|
|
<el-button type="success" @click="openDialog(0)" v-hasPerm="['121646328009732100']"> |
|
|
|
<template #icon><i-ep-plus /></template> |
|
|
|
新增</el-button |
|
|
|
> |
|
|
|
@ -259,17 +259,17 @@ onMounted(() => { |
|
|
|
<el-table-column label="菜单类型" align="center" width="150"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-tag |
|
|
|
v-if="scope.row.type === MenuTypeEnum.CATALOG" |
|
|
|
v-if="scope.row.class === MenuTypeEnum.CATALOG" |
|
|
|
type="warning" |
|
|
|
>目录</el-tag |
|
|
|
> |
|
|
|
<el-tag v-if="scope.row.type === MenuTypeEnum.MENU" type="success" |
|
|
|
<el-tag v-if="scope.row.class === MenuTypeEnum.MENU" type="success" |
|
|
|
>菜单</el-tag |
|
|
|
> |
|
|
|
<el-tag v-if="scope.row.type === MenuTypeEnum.BUTTON" type="danger" |
|
|
|
<el-tag v-if="scope.row.class === MenuTypeEnum.BUTTON" type="danger" |
|
|
|
>按钮</el-tag |
|
|
|
> |
|
|
|
<el-tag v-if="scope.row.type === MenuTypeEnum.EXTLINK" type="info" |
|
|
|
<el-tag v-if="scope.row.class === MenuTypeEnum.EXTLINK" type="info" |
|
|
|
>外链</el-tag |
|
|
|
> |
|
|
|
</template> |
|
|
|
@ -293,7 +293,8 @@ onMounted(() => { |
|
|
|
<el-table-column fixed="right" align="center" label="操作" width="220"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-button |
|
|
|
v-if="scope.row.type == 'CATALOG' || scope.row.type == 'MENU'" |
|
|
|
v-if="scope.row.class == 'CATALOG' || scope.row.class == 'MENU'" |
|
|
|
v-hasPerm="['121646328009732100']" |
|
|
|
type="primary" |
|
|
|
link |
|
|
|
size="small" |
|
|
|
@ -303,6 +304,7 @@ onMounted(() => { |
|
|
|
</el-button> |
|
|
|
|
|
|
|
<el-button |
|
|
|
v-hasPerm="['122274485305880580']" |
|
|
|
type="primary" |
|
|
|
link |
|
|
|
size="small" |
|
|
|
@ -311,6 +313,7 @@ onMounted(() => { |
|
|
|
<i-ep-edit />编辑 |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
v-hasPerm="['122274565337395200']" |
|
|
|
type="primary" |
|
|
|
link |
|
|
|
size="small" |
|
|
|
@ -401,13 +404,13 @@ onMounted(() => { |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<!-- 权限标识 --> |
|
|
|
<el-form-item |
|
|
|
<!-- <el-form-item |
|
|
|
v-if="formData.type == 'BUTTON'" |
|
|
|
label="权限标识" |
|
|
|
prop="perm" |
|
|
|
> |
|
|
|
<el-input v-model="formData.perm" placeholder="sys:user:add" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> --> |
|
|
|
|
|
|
|
<el-form-item |
|
|
|
v-if="formData.type !== 'BUTTON'" |
|
|
|
|