Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wangxiaolu-sfa-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
sfa
wangxiaolu-sfa-ui
Commits
46641988
提交
46641988
authored
1月 03, 2025
作者:
lidongxu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(api/monitor/cache): 解决打包过滤代码时,有个 getCache 找不到问题
同上
上级
8925a60d
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
63 行增加
和
5 行删除
+63
-5
index.js
src/api/index.js
+1
-0
cache.js
src/api/monitor/cache.js
+57
-0
type.js
src/api/system/dict/type.js
+1
-1
user.js
src/api/system/user.js
+1
-1
index.vue
src/views/system/dict/index.vue
+1
-1
index.vue
src/views/system/user/index.vue
+2
-2
vite.config.js.timestamp-1735895376655-7b7c87fcfdd4b.mjs
vite.config.js.timestamp-1735895376655-7b7c87fcfdd4b.mjs
+0
-0
没有找到文件。
src/api/index.js
浏览文件 @
46641988
...
...
@@ -6,6 +6,7 @@ export * from './bi/competitor'
export
*
from
'./bi/product'
export
*
from
'./bi/sale'
export
*
from
'./bi/store'
export
*
from
'./monitor/cache'
export
*
from
'./monitor/job'
export
*
from
'./monitor/jobLog'
export
*
from
'./monitor/online'
...
...
src/api/monitor/cache.js
0 → 100644
浏览文件 @
46641988
import
request
from
'@/utils/request'
// 查询缓存详细
export
function
getCache
()
{
return
request
({
url
:
'/monitor/cache'
,
method
:
'get'
})
}
// 查询缓存名称列表
export
function
listCacheName
()
{
return
request
({
url
:
'/monitor/cache/getNames'
,
method
:
'get'
})
}
// 查询缓存键名列表
export
function
listCacheKey
(
cacheName
)
{
return
request
({
url
:
'/monitor/cache/getKeys/'
+
cacheName
,
method
:
'get'
})
}
// 查询缓存内容
export
function
getCacheValue
(
cacheName
,
cacheKey
)
{
return
request
({
url
:
'/monitor/cache/getValue/'
+
cacheName
+
'/'
+
cacheKey
,
method
:
'get'
})
}
// 清理指定名称缓存
export
function
clearCacheName
(
cacheName
)
{
return
request
({
url
:
'/monitor/cache/clearCacheName/'
+
cacheName
,
method
:
'delete'
})
}
// 清理指定键名缓存
export
function
clearCacheKey
(
cacheKey
)
{
return
request
({
url
:
'/monitor/cache/clearCacheKey/'
+
cacheKey
,
method
:
'delete'
})
}
// 清理全部缓存
export
function
clearCacheAll
()
{
return
request
({
url
:
'/monitor/cache/clearCacheAll'
,
method
:
'delete'
})
}
src/api/system/dict/type.js
浏览文件 @
46641988
...
...
@@ -44,7 +44,7 @@ export function delType(dictId) {
}
// 刷新字典缓存
export
function
refreshCache
()
{
export
function
refresh
Dict
Cache
()
{
return
request
({
url
:
'/system/dict/type/refreshCache'
,
method
:
'delete'
...
...
src/api/system/user.js
浏览文件 @
46641988
...
...
@@ -128,7 +128,7 @@ export function updateAuthRole(data) {
}
// 查询部门下拉树结构
export
function
deptTreeSelect
()
{
export
function
deptTreeSelect
List
()
{
return
request
({
url
:
'/system/user/deptTree'
,
method
:
'get'
...
...
src/views/system/dict/index.vue
浏览文件 @
46641988
...
...
@@ -173,7 +173,7 @@
<
script
setup
name=
"Dict"
>
import
useDictStore
from
'@/store/modules/dict'
import
{
listType
,
getType
,
delType
,
addType
,
updateType
,
refreshCache
}
from
"@/api"
;
import
{
listType
,
getType
,
delType
,
addType
,
updateType
,
refresh
DictCache
as
refresh
Cache
}
from
"@/api"
;
const
{
proxy
}
=
getCurrentInstance
();
const
{
sys_normal_disable
}
=
proxy
.
useDict
(
"sys_normal_disable"
);
...
...
src/views/system/user/index.vue
浏览文件 @
46641988
...
...
@@ -216,7 +216,7 @@
<
script
setup
name=
"User"
>
import
{
getToken
}
from
"@/utils/auth"
;
import
useAppStore
from
'@/store/modules/app'
import
{
changeUserStatus
,
listUser
,
resetUserPwd
,
delUser
,
getUser
,
updateUser
,
addUser
,
deptTreeSelect
}
from
"@/api"
;
import
{
changeUserStatus
,
listUser
,
resetUserPwd
,
delUser
,
getUser
,
updateUser
,
addUser
,
deptTreeSelect
List
}
from
"@/api"
;
import
{
Splitpanes
,
Pane
}
from
"splitpanes"
import
"splitpanes/dist/splitpanes.css"
...
...
@@ -311,7 +311,7 @@ function getList() {
/** 查询部门下拉树结构 */
function
getDeptTree
()
{
deptTreeSelect
().
then
(
response
=>
{
deptTreeSelect
List
().
then
(
response
=>
{
deptOptions
.
value
=
response
.
data
;
enabledDeptOptions
.
value
=
filterDisabledDept
(
JSON
.
parse
(
JSON
.
stringify
(
response
.
data
)));
});
...
...
vite.config.js.timestamp-1735895376655-7b7c87fcfdd4b.mjs
0 → 100644
浏览文件 @
46641988
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论