Commit 3f5f0898 authored by zhanglongtao's avatar zhanglongtao

添加清理缓存

parent 60657eca
...@@ -32,5 +32,8 @@ export default { ...@@ -32,5 +32,8 @@ export default {
}, },
deletes(params) { deletes(params) {
return Api.post(`${systemUrl}/usermessageconfig/batchdelete`, params); return Api.post(`${systemUrl}/usermessageconfig/batchdelete`, params);
},
clearCache(){
return Api.post(`${systemUrl}/usermessageconfig/clearcache`);
} }
} }
\ No newline at end of file
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
</template> </template>
<template slot="buttons"> <template slot="buttons">
<Button type="primary" @click="add">新增</Button> <Button type="primary" @click="add">新增</Button>
<Button type="primary" @click="clearCache">清理缓存</Button>
</template> </template>
</DataGrid> </DataGrid>
<Modal v-model="modal" :title="title" width="1200" footer-hide> <Modal v-model="modal" :title="title" width="1200" footer-hide>
...@@ -101,14 +102,14 @@ export default { ...@@ -101,14 +102,14 @@ export default {
key: "code", key: "code",
title: this.l("code"), title: this.l("code"),
align: "left", align: "left",
width:200, width: 200,
easy: true, easy: true,
high: true, high: true,
}, },
{ {
key: "categoryName", key: "categoryName",
title: this.l("categoryName"), title: this.l("categoryName"),
width:200, width: 200,
align: "left", align: "left",
easy: true, easy: true,
high: true, high: true,
...@@ -171,7 +172,7 @@ export default { ...@@ -171,7 +172,7 @@ export default {
key: "status", key: "status",
title: this.l("status"), title: this.l("status"),
align: "center", align: "center",
width:100, width: 100,
high: true, high: true,
render: (h, params) => { render: (h, params) => {
return h("span", {}, params.row.status == 1 ? "启用" : "禁用"); return h("span", {}, params.row.status == 1 ? "启用" : "禁用");
...@@ -262,6 +263,13 @@ export default { ...@@ -262,6 +263,13 @@ export default {
} }
}); });
}, },
clearCache() {
Api.clearCache().then((r) => {
if (r.success) {
this.$Message.success("清理成功");
}
});
},
cancel() { cancel() {
this.curId = 0; this.curId = 0;
this.modal = false; this.modal = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment