|
|
@@ -59,6 +59,16 @@
|
|
|
>删除
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button v-no-more-click
|
|
|
+ type="danger"
|
|
|
+ plain
|
|
|
+ icon="el-icon-refresh"
|
|
|
+ size="mini"
|
|
|
+ @click="handleRefreshCache"
|
|
|
+ v-hasPermi="['iscs:attribute:remove']"
|
|
|
+ >刷新缓存</el-button>
|
|
|
+ </el-col>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
@@ -196,9 +206,10 @@ import {
|
|
|
deleteIsSystemAttributeByIds, getIsSystemAttributeByKey,
|
|
|
getIsSystemAttributePage,
|
|
|
insertIsSystemAttribute,
|
|
|
- selectIsSystemAttributeById, updateIsSystemAttribute
|
|
|
+ selectIsSystemAttributeById, updateIsSystemAttribute,refreshAttrCache
|
|
|
} from '@/api/system/configuration'
|
|
|
|
|
|
+
|
|
|
export default {
|
|
|
name: 'autoCodeRule',
|
|
|
dicts: ['sys_yes_no','sys_type'],
|
|
|
@@ -252,6 +263,12 @@ export default {
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
+ /** 刷新缓存按钮操作 */
|
|
|
+ handleRefreshCache() {
|
|
|
+ refreshAttrCache().then(() => {
|
|
|
+ this.$modal.msgSuccess("刷新成功");
|
|
|
+ });
|
|
|
+ },
|
|
|
/** 查询字典类型列表 */
|
|
|
getList() {
|
|
|
this.loading = true
|