fix: 业务功能按钮权限统一(v-hasPermi)
This commit is contained in:
parent
e04cf47bdf
commit
a9bbb30f99
|
|
@ -29,10 +29,10 @@
|
||||||
<el-card shadow="never" style="margin-top: 12px">
|
<el-card shadow="never" style="margin-top: 12px">
|
||||||
<el-row :gutter="10" style="margin-bottom: 12px">
|
<el-row :gutter="10" style="margin-bottom: 12px">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" :icon="Plus" @click="handleAdd">新增</el-button>
|
<el-button type="primary" :icon="Plus" @click="handleAdd" v-hasPermi="['business:apiDict:add']">新增</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="danger" :icon="Delete" :disabled="!selectedIds.length" @click="handleBatchDelete">批量删除</el-button>
|
<el-button type="danger" :icon="Delete" :disabled="!selectedIds.length" @click="handleBatchDelete" v-hasPermi="['business:apiDict:remove']">批量删除</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
|
|
@ -65,8 +65,8 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="150" fixed="right" align="center">
|
<el-table-column label="操作" width="150" fixed="right" align="center">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button type="primary" link :icon="Edit" @click="handleEdit(row)">编辑</el-button>
|
<el-button type="primary" link :icon="Edit" @click="handleEdit(row)" v-hasPermi="['business:apiDict:edit']">编辑</el-button>
|
||||||
<el-button type="danger" link :icon="Delete" @click="handleDelete(row)">删除</el-button>
|
<el-button type="danger" link :icon="Delete" @click="handleDelete(row)" v-hasPermi="['business:apiDict:remove']">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
<el-card shadow="never" style="margin-top: 12px">
|
<el-card shadow="never" style="margin-top: 12px">
|
||||||
<el-row :gutter="10" style="margin-bottom: 12px">
|
<el-row :gutter="10" style="margin-bottom: 12px">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" :icon="Plus" @click="handleAdd">新增</el-button>
|
<el-button type="primary" :icon="Plus" @click="handleAdd" v-hasPermi="['business:application:add']">新增</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
|
|
@ -46,9 +46,9 @@
|
||||||
<el-table-column prop="createTime" label="创建时间" width="160" />
|
<el-table-column prop="createTime" label="创建时间" width="160" />
|
||||||
<el-table-column label="操作" width="180" fixed="right" align="center">
|
<el-table-column label="操作" width="180" fixed="right" align="center">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button type="primary" link :icon="Edit" @click="handleEdit(row)">编辑</el-button>
|
<el-button type="primary" link :icon="Edit" @click="handleEdit(row)" v-hasPermi="['business:application:edit']">编辑</el-button>
|
||||||
<el-button type="warning" link :icon="Key" @click="handleResetSecret(row)">重置密钥</el-button>
|
<el-button type="warning" link :icon="Key" @click="handleResetSecret(row)" v-hasPermi="['business:application:edit']">重置密钥</el-button>
|
||||||
<el-button type="danger" link :icon="Delete" @click="handleDelete(row)">删除</el-button>
|
<el-button type="danger" link :icon="Delete" @click="handleDelete(row)" v-hasPermi="['business:application:remove']">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
<el-card shadow="never" style="margin-top: 12px">
|
<el-card shadow="never" style="margin-top: 12px">
|
||||||
<el-row :gutter="10" style="margin-bottom: 12px">
|
<el-row :gutter="10" style="margin-bottom: 12px">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" :icon="Plus" @click="handleAdd">新增</el-button>
|
<el-button type="primary" :icon="Plus" @click="handleAdd" v-hasPermi="['business:class:add']">新增</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
|
|
@ -41,8 +41,8 @@
|
||||||
<el-table-column prop="createTime" label="创建时间" width="160" />
|
<el-table-column prop="createTime" label="创建时间" width="160" />
|
||||||
<el-table-column label="操作" width="150" fixed="right" align="center">
|
<el-table-column label="操作" width="150" fixed="right" align="center">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button type="primary" link :icon="Edit" @click="handleEdit(row)">编辑</el-button>
|
<el-button type="primary" link :icon="Edit" @click="handleEdit(row)" v-hasPermi="['business:class:edit']">编辑</el-button>
|
||||||
<el-button type="danger" link :icon="Delete" @click="handleDelete(row)">删除</el-button>
|
<el-button type="danger" link :icon="Delete" @click="handleDelete(row)" v-hasPermi="['business:class:remove']">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
<el-card shadow="never" style="margin-top: 12px">
|
<el-card shadow="never" style="margin-top: 12px">
|
||||||
<el-row :gutter="10" style="margin-bottom: 12px">
|
<el-row :gutter="10" style="margin-bottom: 12px">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" :icon="Plus" @click="handleAdd">新增</el-button>
|
<el-button type="primary" :icon="Plus" @click="handleAdd" v-hasPermi="['business:grade:add']">新增</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
|
|
@ -51,8 +51,8 @@
|
||||||
<el-table-column prop="createTime" label="创建时间" width="160" />
|
<el-table-column prop="createTime" label="创建时间" width="160" />
|
||||||
<el-table-column label="操作" width="150" fixed="right" align="center">
|
<el-table-column label="操作" width="150" fixed="right" align="center">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button type="primary" link :icon="Edit" @click="handleEdit(row)">编辑</el-button>
|
<el-button type="primary" link :icon="Edit" @click="handleEdit(row)" v-hasPermi="['business:grade:edit']">编辑</el-button>
|
||||||
<el-button type="danger" link :icon="Delete" @click="handleDelete(row)">删除</el-button>
|
<el-button type="danger" link :icon="Delete" @click="handleDelete(row)" v-hasPermi="['business:grade:remove']">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
<el-card shadow="never" style="margin-top: 12px">
|
<el-card shadow="never" style="margin-top: 12px">
|
||||||
<el-row :gutter="10" style="margin-bottom: 12px">
|
<el-row :gutter="10" style="margin-bottom: 12px">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" :icon="Plus" @click="handleAdd()">新增</el-button>
|
<el-button type="primary" :icon="Plus" @click="handleAdd()" v-hasPermi="['business:region:add']">新增</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
|
|
@ -60,9 +60,9 @@
|
||||||
<el-table-column prop="createTime" label="创建时间" width="160" />
|
<el-table-column prop="createTime" label="创建时间" width="160" />
|
||||||
<el-table-column label="操作" width="200" fixed="right" align="center">
|
<el-table-column label="操作" width="200" fixed="right" align="center">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button type="primary" link :icon="Plus" @click="handleAdd(row)">新增下级</el-button>
|
<el-button type="primary" link :icon="Plus" @click="handleAdd(row)" v-hasPermi="['business:region:add']">新增下级</el-button>
|
||||||
<el-button type="primary" link :icon="Edit" @click="handleEdit(row)">编辑</el-button>
|
<el-button type="primary" link :icon="Edit" @click="handleEdit(row)" v-hasPermi="['business:region:edit']">编辑</el-button>
|
||||||
<el-button type="danger" link :icon="Delete" @click="handleDelete(row)">删除</el-button>
|
<el-button type="danger" link :icon="Delete" @click="handleDelete(row)" v-hasPermi="['business:region:remove']">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
<el-card shadow="never" style="margin-top: 12px">
|
<el-card shadow="never" style="margin-top: 12px">
|
||||||
<el-row :gutter="10" style="margin-bottom: 12px">
|
<el-row :gutter="10" style="margin-bottom: 12px">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" :icon="Plus" @click="handleAdd">新增</el-button>
|
<el-button type="primary" :icon="Plus" @click="handleAdd" v-hasPermi="['business:subject:add']">新增</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
|
|
@ -41,8 +41,8 @@
|
||||||
<el-table-column prop="createTime" label="创建时间" width="160" />
|
<el-table-column prop="createTime" label="创建时间" width="160" />
|
||||||
<el-table-column label="操作" width="150" fixed="right" align="center">
|
<el-table-column label="操作" width="150" fixed="right" align="center">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button type="primary" link :icon="Edit" @click="handleEdit(row)">编辑</el-button>
|
<el-button type="primary" link :icon="Edit" @click="handleEdit(row)" v-hasPermi="['business:subject:edit']">编辑</el-button>
|
||||||
<el-button type="danger" link :icon="Delete" @click="handleDelete(row)">删除</el-button>
|
<el-button type="danger" link :icon="Delete" @click="handleDelete(row)" v-hasPermi="['business:subject:remove']">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
<el-card shadow="never" style="margin-top: 12px">
|
<el-card shadow="never" style="margin-top: 12px">
|
||||||
<el-row :gutter="10" style="margin-bottom: 12px">
|
<el-row :gutter="10" style="margin-bottom: 12px">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" :icon="Plus" @click="handleAdd">新增</el-button>
|
<el-button type="primary" :icon="Plus" @click="handleAdd" v-hasPermi="['business:member:add']">新增</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
|
|
@ -90,8 +90,8 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="200" fixed="right" align="center">
|
<el-table-column label="操作" width="200" fixed="right" align="center">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button type="primary" link :icon="Edit" @click="handleEdit(row)">编辑</el-button>
|
<el-button type="primary" link :icon="Edit" @click="handleEdit(row)" v-hasPermi="['business:member:edit']">编辑</el-button>
|
||||||
<el-button type="warning" link :icon="Key" @click="handleResetPwd(row)">重置密码</el-button>
|
<el-button type="warning" link :icon="Key" @click="handleResetPwd(row)" v-hasPermi="['business:member:resetPwd']">重置密码</el-button>
|
||||||
<el-popconfirm
|
<el-popconfirm
|
||||||
title="确定要删除该会员吗?"
|
title="确定要删除该会员吗?"
|
||||||
confirm-button-text="确定"
|
confirm-button-text="确定"
|
||||||
|
|
@ -99,7 +99,7 @@
|
||||||
@confirm="handleDelete(row)"
|
@confirm="handleDelete(row)"
|
||||||
>
|
>
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-button type="danger" link :icon="Delete">删除</el-button>
|
<el-button type="danger" link :icon="Delete" v-hasPermi="['business:member:remove']">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
<el-card shadow="never" style="margin-top: 12px">
|
<el-card shadow="never" style="margin-top: 12px">
|
||||||
<el-row :gutter="10" style="margin-bottom: 12px">
|
<el-row :gutter="10" style="margin-bottom: 12px">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" :icon="Plus" @click="handleAdd">新增</el-button>
|
<el-button type="primary" :icon="Plus" @click="handleAdd" v-hasPermi="['business:school:add']">新增</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
|
|
@ -88,18 +88,18 @@
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<!-- 学校操作:编辑、新增年级、删除 -->
|
<!-- 学校操作:编辑、新增年级、删除 -->
|
||||||
<template v-if="row.type === 'school'">
|
<template v-if="row.type === 'school'">
|
||||||
<el-button type="primary" link size="small" @click="handleEdit(row)">编辑</el-button>
|
<el-button type="primary" link size="small" @click="handleEdit(row)" v-hasPermi="['business:school:edit']">编辑</el-button>
|
||||||
<el-button type="primary" link size="small" @click="handleAddGrade(row)">新增年级</el-button>
|
<el-button type="primary" link size="small" @click="handleAddGrade(row)" v-hasPermi="['business:school:edit']">新增年级</el-button>
|
||||||
<el-button type="danger" link size="small" @click="handleDelete(row, 'school')">删除</el-button>
|
<el-button type="danger" link size="small" @click="handleDelete(row, 'school')" v-hasPermi="['business:school:remove']">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
<!-- 年级操作:新增班级、删除 -->
|
<!-- 年级操作:新增班级、删除 -->
|
||||||
<template v-else-if="row.type === 'grade'">
|
<template v-else-if="row.type === 'grade'">
|
||||||
<el-button type="primary" link size="small" @click="handleAddClass(row)">新增班级</el-button>
|
<el-button type="primary" link size="small" @click="handleAddClass(row)" v-hasPermi="['business:school:edit']">新增班级</el-button>
|
||||||
<el-button type="danger" link size="small" @click="handleDelete(row, 'grade')">删除</el-button>
|
<el-button type="danger" link size="small" @click="handleDelete(row, 'grade')" v-hasPermi="['business:school:remove']">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
<!-- 班级操作:删除 -->
|
<!-- 班级操作:删除 -->
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<el-button type="danger" link size="small" @click="handleDelete(row, 'class')">删除</el-button>
|
<el-button type="danger" link size="small" @click="handleDelete(row, 'class')" v-hasPermi="['business:school:remove']">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
|
||||||
|
|
@ -50,10 +50,10 @@
|
||||||
<el-card shadow="never" style="margin-top: 12px">
|
<el-card shadow="never" style="margin-top: 12px">
|
||||||
<el-row :gutter="10" style="margin-bottom: 12px">
|
<el-row :gutter="10" style="margin-bottom: 12px">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" :icon="Plus" @click="handleAdd">新增</el-button>
|
<el-button type="primary" :icon="Plus" @click="handleAdd" v-hasPermi="['business:student:add']">新增</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="success" :icon="Upload" @click="handleImport">导入</el-button>
|
<el-button type="success" :icon="Upload" @click="handleImport" v-hasPermi="['business:student:import']">导入</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
|
|
@ -95,8 +95,8 @@
|
||||||
<el-table-column prop="createTime" label="创建时间" width="160" />
|
<el-table-column prop="createTime" label="创建时间" width="160" />
|
||||||
<el-table-column label="操作" width="150" fixed="right" align="center">
|
<el-table-column label="操作" width="150" fixed="right" align="center">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button type="primary" link :icon="Edit" @click="handleEdit(row)">编辑</el-button>
|
<el-button type="primary" link :icon="Edit" @click="handleEdit(row)" v-hasPermi="['business:student:edit']">编辑</el-button>
|
||||||
<el-button type="danger" link :icon="Delete" @click="handleDelete(row)">删除</el-button>
|
<el-button type="danger" link :icon="Delete" @click="handleDelete(row)" v-hasPermi="['business:student:remove']">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue