refactor: ♻️ eslint 代码规范检测修改

Former-commit-id: 0a1da312a15a849433d40c2727e4fa3a70e8b625
This commit is contained in:
haoxr
2023-05-16 01:05:37 +08:00
parent 61ad332877
commit 63c4a2a86d
18 changed files with 62 additions and 63 deletions

View File

@@ -218,8 +218,8 @@ onMounted(() => {
>
<el-button
type="danger"
@click="handleDelete()"
:disabled="ids.length === 0"
@click="handleDelete()"
><i-ep-delete />删除
</el-button>
</template>
@@ -273,8 +273,8 @@ onMounted(() => {
</el-card>
<el-dialog
:title="dialog.title"
v-model="dialog.visible"
:title="dialog.title"
width="600px"
@closed="closeDialog"
>

View File

@@ -229,8 +229,8 @@ onMounted(() => {
<!-- 数据表格 -->
<el-table
:data="dictList"
v-loading="loading"
:data="dictList"
border
@selection-change="handleSelectionChange"
>
@@ -269,8 +269,8 @@ onMounted(() => {
<!-- 表单弹窗 -->
<el-dialog
:title="dialog.title"
v-model="dialog.visible"
:title="dialog.title"
width="500px"
@close="closeDialog"
>

View File

@@ -226,11 +226,11 @@ onMounted(() => {
>
</template>
<el-table
v-loading="loading"
highlight-current-row
:data="dictTypeList"
v-loading="loading"
@selection-change="handleSelectionChange"
border
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="字典类型名称" prop="name" width="200" />
@@ -279,8 +279,8 @@ onMounted(() => {
</el-card>
<el-dialog
:title="dialog.title"
v-model="dialog.visible"
:title="dialog.title"
width="500px"
@close="closeDialog"
>
@@ -321,8 +321,8 @@ onMounted(() => {
<!--字典数据弹窗-->
<el-dialog
:title="dictDataDialog.title"
v-model="dictDataDialog.visible"
:title="dictDataDialog.title"
width="1000px"
@close="closeDictDialog"
>

View File

@@ -238,10 +238,10 @@ onMounted(() => {
:data="menuList"
highlight-current-row
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
@row-click="onRowClick"
row-key="id"
default-expand-all
border
@row-click="onRowClick"
>
<el-table-column label="菜单名称" min-width="200">
<template #default="scope">
@@ -293,11 +293,11 @@ 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'"
type="primary"
link
size="small"
@click.stop="openDialog(scope.row.id)"
v-if="scope.row.type == 'CATALOG' || scope.row.type == 'MENU'"
>
<i-ep-plus />新增
</el-button>
@@ -324,12 +324,12 @@ onMounted(() => {
</el-card>
<el-dialog
:title="dialog.title"
v-model="dialog.visible"
@close="closeDialog"
:title="dialog.title"
destroy-on-close
appendToBody
append-to-body
width="750px"
@close="closeDialog"
>
<el-form
ref="menuFormRef"
@@ -370,9 +370,9 @@ onMounted(() => {
</el-form-item>
<el-form-item
v-if="formData.type == 'CATALOG' || formData.type == 'MENU'"
label="路由路径"
prop="path"
v-if="formData.type == 'CATALOG' || formData.type == 'MENU'"
>
<el-input
v-if="formData.type == 'CATALOG'"
@@ -410,22 +410,22 @@ onMounted(() => {
</el-form-item>
<el-form-item
v-if="formData.type !== 'BUTTON'"
label="图标"
prop="icon"
v-if="formData.type !== 'BUTTON'"
>
<!-- 图标选择器 -->
<icon-select v-model="formData.icon" />
</el-form-item>
<el-form-item
label="跳转路由"
v-if="formData.type == MenuTypeEnum.CATALOG"
label="跳转路由"
>
<el-input v-model="formData.redirect" placeholder="跳转路由" />
</el-form-item>
<el-form-item label="状态" v-if="formData.type !== 'BUTTON'">
<el-form-item v-if="formData.type !== 'BUTTON'" label="状态">
<el-radio-group v-model="formData.visible">
<el-radio :label="1">显示</el-radio>
<el-radio :label="0">隐藏</el-radio>

View File

@@ -280,9 +280,9 @@ onMounted(() => {
ref="dataTableRef"
v-loading="loading"
:data="roleList"
@selection-change="handleSelectionChange"
highlight-current-row
border
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="角色名称" prop="name" min-width="100" />
@@ -338,8 +338,8 @@ onMounted(() => {
<!-- 角色表单弹窗 -->
<el-dialog
:title="dialog.title"
v-model="dialog.visible"
:title="dialog.title"
width="500px"
@close="closeDialog"
>
@@ -393,11 +393,11 @@ onMounted(() => {
<!-- 分配菜单弹窗 -->
<el-dialog
:title="'【' + checkedRole.name + '】权限分配'"
v-model="menuDialogVisible"
:title="'【' + checkedRole.name + '】权限分配'"
width="800px"
>
<el-scrollbar max-height="600px" v-loading="loading">
<el-scrollbar v-loading="loading" max-height="600px">
<el-tree
ref="menuRef"
node-key="value"

View File

@@ -399,8 +399,8 @@ onMounted(() => {
</el-input>
<el-tree
class="mt-2"
ref="deptTreeRef"
class="mt-2"
:data="deptList"
:props="{ children: 'children', label: 'label', disabled: '' }"
:expand-on-click-node="false"
@@ -453,16 +453,16 @@ onMounted(() => {
<div class="flex justify-between">
<div>
<el-button
v-hasPerm="['sys:user:add']"
type="success"
@click="openDialog()"
v-hasPerm="['sys:user:add']"
><i-ep-plus />新增</el-button
>
<el-button
v-hasPerm="['sys:user:delete']"
type="danger"
:disabled="ids.length === 0"
@click="handleDelete()"
v-hasPerm="['sys:user:delete']"
><i-ep-delete />删除</el-button
>
</div>
@@ -559,19 +559,19 @@ onMounted(() => {
><i-ep-refresh-left />重置密码</el-button
>
<el-button
v-hasPerm="['sys:user:edit']"
type="primary"
link
size="small"
@click="openDialog(scope.row.id)"
v-hasPerm="['sys:user:edit']"
><i-ep-edit />编辑</el-button
>
<el-button
v-hasPerm="['sys:user:delete']"
type="primary"
link
size="small"
@click="handleDelete(scope.row.id)"
v-hasPerm="['sys:user:delete']"
><i-ep-delete />删除</el-button
>
</template>
@@ -591,8 +591,8 @@ onMounted(() => {
<!-- 表单弹窗 -->
<el-dialog
:title="dialog.title"
v-model="dialog.visible"
:title="dialog.title"
width="600px"
append-to-body
@close="closeDialog"
@@ -605,8 +605,8 @@ onMounted(() => {
>
<el-form-item label="用户名" prop="username">
<el-input
:readonly="!!formData.id"
v-model="formData.username"
:readonly="!!formData.id"
placeholder="请输入用户名"
/>
</el-form-item>
@@ -678,8 +678,8 @@ onMounted(() => {
<!-- 导入弹窗 -->
<el-dialog
:title="importDialog.title"
v-model="importDialog.visible"
:title="importDialog.title"
width="600px"
append-to-body
@close="closeImportDialog"