| | |
| | | plain |
| | | icon="el-icon-refresh" |
| | | size="mini" |
| | | @click="handleClearCache" |
| | | @click="handleRefreshCache" |
| | | v-hasPermi="['system:dict:remove']" |
| | | >清理缓存</el-button> |
| | | >刷新缓存</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { listType, getType, delType, addType, updateType, exportType, clearCache } from "@/api/system/dict/type"; |
| | | import { listType, getType, delType, addType, updateType, exportType, refreshCache } from "@/api/system/dict/type"; |
| | | |
| | | export default { |
| | | name: "Dict", |
| | |
| | | this.exportLoading = false; |
| | | }) |
| | | }, |
| | | /** 清理缓存按钮操作 */ |
| | | handleClearCache() { |
| | | clearCache().then(response => { |
| | | this.msgSuccess("清理成功"); |
| | | /** 刷新缓存按钮操作 */ |
| | | handleRefreshCache() { |
| | | refreshCache().then(() => { |
| | | this.msgSuccess("刷新成功"); |
| | | }); |
| | | } |
| | | } |