去掉type="text"的过时用法

This commit is contained in:
valarchie 2022-11-20 12:38:30 +08:00
parent 0db495ffac
commit 5818538e9f
11 changed files with 75 additions and 12 deletions

View File

@ -38,6 +38,7 @@
<template #default="scope">
<el-button
link
type="primary"
icon="Delete"
@click="handleForceLogout(scope.row)"
v-hasPermission="['monitor:online:forceLogout']"

View File

@ -123,6 +123,7 @@
<template #default="scope">
<el-button
link
type="primary"
icon="View"
@click="handleView(scope.row, scope.index)"
v-hasPermission="['system:operlog:query']"

View File

@ -3,7 +3,14 @@
<el-form ref="registerRef" :model="registerForm" :rules="registerRules" class="register-form">
<h3 class="title">AgileBoot后台管理系统</h3>
<el-form-item prop="username">
<el-input v-model="registerForm.username" link size="large" auto-complete="off" placeholder="账号">
<el-input
v-model="registerForm.username"
link
type="primary"
size="large"
auto-complete="off"
placeholder="账号"
>
<template #prefix><svg-icon icon-class="user" class="el-input__icon input-icon" /></template>
</el-input>
</el-form-item>

View File

@ -81,7 +81,12 @@
</el-table-column>
<el-table-column label="操作" align="center" width="150" class-name="small-padding fixed-width">
<template #default="scope">
<el-button link icon="Edit" @click="handleUpdate(scope.row)" v-hasPermission="['system:config:edit']"
<el-button
link
type="primary"
icon="Edit"
@click="handleUpdate(scope.row)"
v-hasPermission="['system:config:edit']"
>修改</el-button
>
</template>

View File

@ -49,15 +49,21 @@
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-button link icon="Edit" @click="handleUpdate(scope.row)" v-hasPermission="['system:dept:edit']"
<el-button
link
type="primary"
icon="Edit"
@click="handleUpdate(scope.row)"
v-hasPermission="['system:dept:edit']"
>修改</el-button
>
<el-button link icon="Plus" @click="handleAdd(scope.row)" v-hasPermission="['system:dept:add']"
<el-button link type="primary" icon="Plus" @click="handleAdd(scope.row)" v-hasPermission="['system:dept:add']"
>新增</el-button
>
<el-button
v-if="scope.row.parentId != 0"
link
type="primary"
icon="Delete"
@click="handleDelete(scope.row)"
v-hasPermission="['system:dept:remove']"

View File

@ -56,13 +56,23 @@
</el-table-column>
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width">
<template #default="scope">
<el-button link icon="Edit" @click="handleUpdate(scope.row)" v-hasPermission="['system:menu:edit']"
<el-button
link
type="primary"
icon="Edit"
@click="handleUpdate(scope.row)"
v-hasPermission="['system:menu:edit']"
>修改</el-button
>
<el-button link icon="Plus" @click="handleAdd(scope.row)" v-hasPermission="['system:menu:add']"
<el-button link type="primary" icon="Plus" @click="handleAdd(scope.row)" v-hasPermission="['system:menu:add']"
>新增</el-button
>
<el-button link icon="Delete" @click="handleDelete(scope.row)" v-hasPermission="['system:menu:remove']"
<el-button
link
type="primary"
icon="Delete"
@click="handleDelete(scope.row)"
v-hasPermission="['system:menu:remove']"
>删除</el-button
>
</template>

View File

@ -71,10 +71,20 @@
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-button link icon="Edit" @click="handleUpdate(scope.row)" v-hasPermission="['system:notice:edit']"
<el-button
link
type="primary"
icon="Edit"
@click="handleUpdate(scope.row)"
v-hasPermission="['system:notice:edit']"
>修改</el-button
>
<el-button link icon="Delete" @click="handleDelete(scope.row)" v-hasPermission="['system:notice:remove']"
<el-button
link
type="primary"
icon="Delete"
@click="handleDelete(scope.row)"
v-hasPermission="['system:notice:remove']"
>删除</el-button
>
</template>

View File

@ -72,10 +72,20 @@
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-button link icon="Edit" @click="handleUpdate(scope.row)" v-hasPermission="['system:post:edit']"
<el-button
link
type="primary"
icon="Edit"
@click="handleUpdate(scope.row)"
v-hasPermission="['system:post:edit']"
>修改</el-button
>
<el-button link icon="Delete" @click="handleDelete(scope.row)" v-hasPermission="['system:post:remove']"
<el-button
link
type="primary"
icon="Delete"
@click="handleDelete(scope.row)"
v-hasPermission="['system:post:remove']"
>删除</el-button
>
</template>

View File

@ -66,7 +66,12 @@
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope">
<el-button link icon="CircleClose" @click="cancelAuthUser(scope.row)" v-hasPermission="['system:role:remove']"
<el-button
link
type="primary"
icon="CircleClose"
@click="cancelAuthUser(scope.row)"
v-hasPermission="['system:role:remove']"
>取消授权</el-button
>
</template>

View File

@ -102,6 +102,7 @@
<el-tooltip content="修改" placement="top" v-if="scope.row.roleId !== 1">
<el-button
link
type="primary"
icon="Edit"
@click="handleUpdate(scope.row)"
v-hasPermission="['system:role:edit']"
@ -110,6 +111,7 @@
<el-tooltip content="删除" placement="top" v-if="scope.row.roleId !== 1">
<el-button
link
type="primary"
icon="Delete"
@click="handleDelete(scope.row)"
v-hasPermission="['system:role:remove']"
@ -118,6 +120,7 @@
<el-tooltip content="数据权限" placement="top" v-if="scope.row.roleId !== 1">
<el-button
link
type="primary"
icon="CircleCheck"
@click="handleDataScope(scope.row)"
v-hasPermission="['system:role:edit']"
@ -126,6 +129,7 @@
<el-tooltip content="分配用户" placement="top" v-if="scope.row.roleId !== 1">
<el-button
link
type="primary"
icon="User"
@click="handleAuthUser(scope.row)"
v-hasPermission="['system:role:edit']"

View File

@ -168,6 +168,7 @@
<el-tooltip content="修改" placement="top" v-if="scope.row.userId !== 1">
<el-button
link
type="primary"
icon="Edit"
@click="handleUpdate(scope.row)"
v-hasPermission="['system:user:edit']"
@ -176,6 +177,7 @@
<el-tooltip content="删除" placement="top" v-if="scope.row.userId !== 1">
<el-button
link
type="primary"
icon="Delete"
@click="handleDelete(scope.row)"
v-hasPermission="['system:user:remove']"
@ -184,6 +186,7 @@
<el-tooltip content="重置密码" placement="top" v-if="scope.row.userId !== 1">
<el-button
link
type="primary"
icon="Key"
@click="handleResetPwd(scope.row)"
v-hasPermission="['system:user:resetPwd']"
@ -192,6 +195,7 @@
<el-tooltip content="分配角色" placement="top" v-if="scope.row.userId !== 1">
<el-button
link
type="primary"
icon="CircleCheck"
@click="handleAuthRole(scope.row)"
v-hasPermission="['system:user:edit']"