Commit 3f5f0898 authored by zhanglongtao's avatar zhanglongtao

添加清理缓存

parent 60657eca
......@@ -32,5 +32,8 @@ export default {
},
deletes(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 @@
</template>
<template slot="buttons">
<Button type="primary" @click="add">新增</Button>
<Button type="primary" @click="clearCache">清理缓存</Button>
</template>
</DataGrid>
<Modal v-model="modal" :title="title" width="1200" footer-hide>
......@@ -101,14 +102,14 @@ export default {
key: "code",
title: this.l("code"),
align: "left",
width:200,
width: 200,
easy: true,
high: true,
},
{
key: "categoryName",
title: this.l("categoryName"),
width:200,
width: 200,
align: "left",
easy: true,
high: true,
......@@ -171,7 +172,7 @@ export default {
key: "status",
title: this.l("status"),
align: "center",
width:100,
width: 100,
high: true,
render: (h, params) => {
return h("span", {}, params.row.status == 1 ? "启用" : "禁用");
......@@ -262,6 +263,13 @@ export default {
}
});
},
clearCache() {
Api.clearCache().then((r) => {
if (r.success) {
this.$Message.success("清理成功");
}
});
},
cancel() {
this.curId = 0;
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