From 3fd9147afb374e7b3ac031aceaca67cef8f6ef3c Mon Sep 17 00:00:00 2001 From: dawn <csg0328@163.com> Date: 星期三, 02 九月 2020 10:14:34 +0800 Subject: [PATCH] 解决“在只填加了字典类型,没有添加字典数据时,会出现缓存了空集合,即使后边添加了字典数据也没用,只能清空redis缓存。”的问题,小问题就是判断稍稍改了下,若依大大让我pr当个贡献者,很荣幸很欣慰。感谢! --- ruoyi-ui/src/views/system/dict/data.vue | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/ruoyi-ui/src/views/system/dict/data.vue b/ruoyi-ui/src/views/system/dict/data.vue index 7a8c50b..b86d245 100644 --- a/ruoyi-ui/src/views/system/dict/data.vue +++ b/ruoyi-ui/src/views/system/dict/data.vue @@ -1,6 +1,6 @@ <template> <div class="app-container"> - <el-form :model="queryParams" ref="queryForm" v-show="showSearch" :inline="true"> + <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px"> <el-form-item label="字典名称" prop="dictType"> <el-select v-model="queryParams.dictType" size="small"> <el-option @@ -75,14 +75,7 @@ v-hasPermi="['system:dict:export']" >导出</el-button> </el-col> - <div class="top-right-btn"> - <el-tooltip class="item" effect="dark" content="刷新" placement="top"> - <el-button size="mini" circle icon="el-icon-refresh" @click="handleQuery" /> - </el-tooltip> - <el-tooltip class="item" effect="dark" :content="showSearch ? '隐藏搜索' : '显示搜索'" placement="top"> - <el-button size="mini" circle icon="el-icon-search" @click="showSearch=!showSearch" /> - </el-tooltip> - </div> + <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> </el-row> <el-table v-loading="loading" :data="dataList" @selection-change="handleSelectionChange"> -- Gitblit v1.9.2