Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust_web
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
张伯涛
cust_web
Commits
f424adfb
Commit
f424adfb
authored
Mar 12, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改缓存初始化
parent
d3de17f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
+27
-3
type.js
src/api/system/dict/type.js
+8
-0
index.vue
src/views/system/dict/index.vue
+19
-3
No files found.
src/api/system/dict/type.js
View file @
f424adfb
...
@@ -85,3 +85,11 @@ export function selectDictType(dictType) {
...
@@ -85,3 +85,11 @@ export function selectDictType(dictType) {
method
:
'get'
method
:
'get'
})
})
}
}
// 初始化
export
function
refresh
()
{
return
request
({
url
:
'/dataDict/refresh'
,
method
:
'get'
})
}
src/views/system/dict/index.vue
View file @
f424adfb
...
@@ -88,7 +88,13 @@
...
@@ -88,7 +88,13 @@
:size=
"commonField.smallSize"
:size=
"commonField.smallSize"
@
click=
"handleExport"
@
click=
"handleExport"
>
{{
commonField
.
exportName
}}
</el-button>
>
{{
commonField
.
exportName
}}
</el-button>
<el-button
v-hasPermi=
"hasDictAddPerm"
:class=
"commonField.addClass"
:type=
"commonField.typePrimary"
:size=
"commonField.smallSize"
@
click=
"handleLoad"
>
缓存初始化
</el-button>
</div>
</div>
</el-form>
</el-form>
</div>
</div>
...
@@ -211,14 +217,15 @@
...
@@ -211,14 +217,15 @@
</template>
</template>
<
script
>
<
script
>
import
{
listType
,
import
{
listType
,
getType
,
getType
,
delType
,
delType
,
addType
,
addType
,
updateType
,
updateType
,
exportType
,
exportType
,
clearCache
,
clearCache
,
selectDictType
selectDictType
,
refresh
}
from
'@/api/system/dict/type'
}
from
'@/api/system/dict/type'
import
Coolbutton
from
'@/components/coolbutton'
import
Coolbutton
from
'@/components/coolbutton'
import
{
getDataCache
,
setDataCache
}
from
'@/assets/js/filterData'
import
{
getDataCache
,
setDataCache
}
from
'@/assets/js/filterData'
...
@@ -380,6 +387,15 @@ export default {
...
@@ -380,6 +387,15 @@ export default {
this
.
open
=
false
this
.
open
=
false
this
.
reset
()
this
.
reset
()
},
},
handleLoad
()
{
refresh
().
then
(()
=>
{
this
.
$message
({
message
:
'初始化成功'
,
type
:
'success'
})
this
.
getList
()
})
},
// 表单重置
// 表单重置
reset
()
{
reset
()
{
this
.
form
=
{
this
.
form
=
{
...
...
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