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/dict/index.vue | 18 +++++------------- 1 files changed, 5 insertions(+), 13 deletions(-) diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index 1e54c29..33fa3c9 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -123,20 +123,10 @@ <span>{{ parseTime(scope.row.createTime) }}</span> </template> </el-table-column> - <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" width="160" class-name="small-padding fixed-width"> <template #default="scope"> - <el-button - type="text" - icon="Edit" - @click="handleUpdate(scope.row)" - v-hasPermi="['system:dict:edit']" - >淇敼</el-button> - <el-button - type="text" - icon="Delete" - @click="handleDelete(scope.row)" - v-hasPermi="['system:dict:remove']" - >鍒犻櫎</el-button> + <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:dict:edit']">淇敼</el-button> + <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:dict:remove']">鍒犻櫎</el-button> </template> </el-table-column> </el-table> @@ -182,6 +172,7 @@ </template> <script setup name="Dict"> +import useDictStore from '@/store/modules/dict' import { listType, getType, delType, addType, updateType, refreshCache } from "@/api/system/dict/type"; const { proxy } = getCurrentInstance(); @@ -313,6 +304,7 @@ function handleRefreshCache() { refreshCache().then(() => { proxy.$modal.msgSuccess("鍒锋柊鎴愬姛"); + useDictStore().cleanDict(); }); } -- Gitblit v1.9.3