Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周远喜
mes-ui
Commits
3f5f0898
Commit
3f5f0898
authored
Sep 03, 2020
by
zhanglongtao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加清理缓存
parent
60657eca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
api.js
pages/basicData/messageConfig/api.js
+3
-0
index.vue
pages/basicData/messageConfig/index.vue
+11
-3
No files found.
pages/basicData/messageConfig/api.js
View file @
3f5f0898
...
...
@@ -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
pages/basicData/messageConfig/index.vue
View file @
3f5f0898
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment