refactor: ♻️ 组件 name 调整大写

Former-commit-id: e8d8f7b28d8866fc670fbf777efeb5f4256d810f
This commit is contained in:
haoxr
2023-05-21 15:15:35 +08:00
parent df7391bac0
commit 922a8bfbbd
8 changed files with 86 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
defineOptions({
name: "dept",
name: "Dept",
inheritAttrs: false,
});
@@ -213,10 +213,14 @@ onMounted(() => {
<el-card>
<template #header>
<el-button type="success" @click="openDialog(0, undefined)"
<el-button
v-hasPerm="['sys:dept:add']"
type="success"
@click="openDialog(0, undefined)"
><i-ep-plus />新增</el-button
>
<el-button
v-hasPerm="['sys:dept:delete']"
type="danger"
:disabled="ids.length === 0"
@click="handleDelete()"
@@ -246,6 +250,7 @@ onMounted(() => {
<el-table-column label="操作" fixed="right" align="left" width="200">
<template #default="scope">
<el-button
v-hasPerm="['sys:dept:add']"
type="primary"
link
size="small"
@@ -253,6 +258,7 @@ onMounted(() => {
><i-ep-plus />新增
</el-button>
<el-button
v-hasPerm="['sys:dept:edit']"
type="primary"
link
size="small"
@@ -260,6 +266,7 @@ onMounted(() => {
><i-ep-edit />编辑
</el-button>
<el-button
v-hasPerm="['sys:dept:delete']"
type="primary"
link
size="small"