From cb80de3742d66cfee20bc3136c735e5ca5a7d45c Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期三, 29 十一月 2023 12:44:42 +0800 Subject: [PATCH] 优化字典标签支持自定义分隔符 --- src/views/system/role/index.vue | 30 +++++------------------------- 1 files changed, 5 insertions(+), 25 deletions(-) diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index ee2e11d..e446ded 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -1,6 +1,6 @@ <template> <div class="app-container"> - <el-form :model="queryParams" ref="queryRef" v-show="showSearch" :inline="true"> + <el-form :model="queryParams" ref="queryRef" v-show="showSearch" :inline="true" label-width="68px"> <el-form-item label="瑙掕壊鍚嶇О" prop="roleName"> <el-input v-model="queryParams.roleName" @@ -116,36 +116,16 @@ <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> <template #default="scope"> <el-tooltip content="淇敼" placement="top" v-if="scope.row.roleId !== 1"> - <el-button - type="text" - icon="Edit" - @click="handleUpdate(scope.row)" - v-hasPermi="['system:role:edit']" - ></el-button> + <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:role:edit']"></el-button> </el-tooltip> <el-tooltip content="鍒犻櫎" placement="top" v-if="scope.row.roleId !== 1"> - <el-button - type="text" - icon="Delete" - @click="handleDelete(scope.row)" - v-hasPermi="['system:role:remove']" - ></el-button> + <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:role:remove']"></el-button> </el-tooltip> <el-tooltip content="鏁版嵁鏉冮檺" placement="top" v-if="scope.row.roleId !== 1"> - <el-button - type="text" - icon="CircleCheck" - @click="handleDataScope(scope.row)" - v-hasPermi="['system:role:edit']" - ></el-button> + <el-button link type="primary" icon="CircleCheck" @click="handleDataScope(scope.row)" v-hasPermi="['system:role:edit']"></el-button> </el-tooltip> <el-tooltip content="鍒嗛厤鐢ㄦ埛" placement="top" v-if="scope.row.roleId !== 1"> - <el-button - type="text" - icon="User" - @click="handleAuthUser(scope.row)" - v-hasPermi="['system:role:edit']" - ></el-button> + <el-button link type="primary" icon="User" @click="handleAuthUser(scope.row)" v-hasPermi="['system:role:edit']"></el-button> </el-tooltip> </template> </el-table-column> -- Gitblit v1.9.3