Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-book
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-book
Commits
b2266adf
提交
b2266adf
authored
7月 20, 2026
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(admin): migrate settings applied module
上级
ccf0b20e
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
46 行增加
和
26 行删除
+46
-26
settings-applied-report.md
.superpowers/sdd/settings-applied-report.md
+5
-0
api.ts
apps/admin/src/modules/settings/applied/api.ts
+1
-0
endpoints.js
apps/admin/src/modules/settings/applied/endpoints.js
+0
-0
query.ts
apps/admin/src/modules/settings/applied/query.ts
+3
-0
request.js
apps/admin/src/modules/settings/applied/request.js
+1
-1
routes.tsx
apps/admin/src/modules/settings/applied/routes.tsx
+11
-0
useAppliedList.ts
apps/admin/src/modules/settings/applied/useAppliedList.ts
+7
-0
AppliedListView.jsx
...in/src/modules/settings/applied/views/AppliedListView.jsx
+16
-23
routes.tsx
apps/admin/src/modules/settings/routes.tsx
+2
-2
没有找到文件。
.superpowers/sdd/settings-applied-report.md
0 → 100644
浏览文件 @
b2266adf
# Settings applied migration
-
Moved the application list, add/edit drawer, delete/status operations, filters, permissions, and API helpers into
`modules/settings/applied`
.
-
Preserved
`/setting/applied`
; replaced the standard table and pagination frame with controlled
`AppList`
.
-
`pnpm build`
passed.
`pnpm test`
was run; Admin tests pass while the known Learning failures remain.
apps/admin/src/modules/settings/applied/api.ts
0 → 100644
浏览文件 @
b2266adf
export
*
from
'./request.js'
apps/admin/src/
pages/setting/applied/request/api
.js
→
apps/admin/src/
modules/settings/applied/endpoints
.js
浏览文件 @
b2266adf
File moved
apps/admin/src/modules/settings/applied/query.ts
0 → 100644
浏览文件 @
b2266adf
export
function
buildAppliedQuery
({
page
,
pageSize
,
filters
=
{}
})
{
return
{
page
,
page_size
:
pageSize
,
...
filters
}
}
apps/admin/src/
pages/setting/applied/request/index
.js
→
apps/admin/src/
modules/settings/applied/request
.js
浏览文件 @
b2266adf
import
axios
from
"@/utils/request.js"
;
import
axios
from
"@/utils/request.js"
;
import
qs
from
"qs"
;
import
qs
from
"qs"
;
import
api
from
"./
api
.js"
;
import
api
from
"./
endpoints
.js"
;
import
{
get
}
from
"lodash-es"
;
import
{
get
}
from
"lodash-es"
;
import
{
message
}
from
"antd"
;
import
{
message
}
from
"antd"
;
// 应用管理列表
// 应用管理列表
...
...
apps/admin/src/modules/settings/applied/routes.tsx
0 → 100644
浏览文件 @
b2266adf
import
{
lazy
}
from
'react'
import
{
Navigate
,
useRoutes
}
from
'react-router'
const
AppliedListView
=
lazy
(()
=>
import
(
'./views/AppliedListView'
))
export
default
function
AppliedRoutes
()
{
return
useRoutes
([
{
index
:
true
,
Component
:
AppliedListView
},
{
path
:
'*'
,
element
:
<
Navigate
to=
"/setting/applied"
/>
},
])
}
apps/admin/src/modules/settings/applied/useAppliedList.ts
0 → 100644
浏览文件 @
b2266adf
import
{
useState
}
from
'react'
export
function
useAppliedList
()
{
const
[
page
,
setPage
]
=
useState
(
1
)
const
[
pageSize
,
setPageSize
]
=
useState
(
10
)
return
{
page
,
pageSize
,
setPage
,
setPageSize
}
}
apps/admin/src/
pages/setting/applied/index
.jsx
→
apps/admin/src/
modules/settings/applied/views/AppliedListView
.jsx
浏览文件 @
b2266adf
import
React
,
{
useEffect
,
useState
,
useRef
}
from
"react"
;
import
React
,
{
useEffect
,
useState
,
useRef
}
from
"react"
;
import
{
import
{
Table
,
Input
,
Input
,
Button
,
Button
,
Row
,
Row
,
...
@@ -17,8 +16,8 @@ import {
...
@@ -17,8 +16,8 @@ import {
}
from
"antd"
;
}
from
"antd"
;
const
{
TextArea
}
=
Input
;
const
{
TextArea
}
=
Input
;
const
{
RangePicker
}
=
DatePicker
;
const
{
RangePicker
}
=
DatePicker
;
import
PaginationCom
from
"@/common/Pagination
"
;
import
{
AppList
}
from
"@/shared/components/AppList
"
;
import
{
getAppList
,
addApp
,
editApp
,
delApp
,
changeStatus
,
getAppInfo
}
from
".
/request
"
;
import
{
getAppList
,
addApp
,
editApp
,
delApp
,
changeStatus
,
getAppInfo
}
from
".
./api
"
;
import
{
MinusOutlined
,
PlusOutlined
}
from
"@ant-design/icons"
;
import
{
MinusOutlined
,
PlusOutlined
}
from
"@ant-design/icons"
;
import
Add
from
"@/assets/images/icon/add.png"
;
import
Add
from
"@/assets/images/icon/add.png"
;
import
reload
from
"@/assets/images/icon/reload.png"
;
import
reload
from
"@/assets/images/icon/reload.png"
;
...
@@ -147,6 +146,9 @@ const Applied = () => {
...
@@ -147,6 +146,9 @@ const Applied = () => {
setData
(
list
);
setData
(
list
);
setLoading
(
false
);
setLoading
(
false
);
};
};
useEffect
(()
=>
{
init
(
filterObj
);
},
[
page
,
page_size
]);
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
!
isEdit
)
{
if
(
!
isEdit
)
{
form
.
setFieldsValue
(
initialValues
);
form
.
setFieldsValue
(
initialValues
);
...
@@ -383,27 +385,18 @@ const Applied = () => {
...
@@ -383,27 +385,18 @@ const Applied = () => {
应用将永久删除,是否继续?
应用将永久删除,是否继续?
</
p
>
</
p
>
</
Modal
>
</
Modal
>
<
Table
<
AppList
scroll=
{
{
rowKey=
"id"
y
:
600
,
x
:
true
,
}
}
bordered=
{
false
}
columns=
{
columns
}
columns=
{
columns
}
rowKey=
{
(
record
)
=>
record
.
id
}
data=
{
{
rows
:
data
,
total
,
loading
}
}
dataSource=
{
data
}
pagination=
{
{
loading=
{
loading
}
page
,
pagination=
{
false
}
pageSize
:
page_size
,
></
Table
>
pageSizeOptions
:
[
10
,
20
,
30
,
40
],
<
br
/>
onChange
:
(
nextPage
)
=>
setPage
(
nextPage
),
<
PaginationCom
onPageSizeChange
:
(
nextPageSize
)
=>
setpage_size
(
nextPageSize
),
total=
{
total
}
}
}
init=
{
init
}
tableProps=
{
{
scroll
:
{
y
:
600
,
x
:
true
},
bordered
:
false
}
}
page=
{
page
}
page_size=
{
page_size
}
setPage=
{
setPage
}
setpage_size=
{
setpage_size
}
filterObj=
{
filterObj
}
/>
/>
<
Drawer
placement=
"right"
onClose=
{
onClose
}
open=
{
isEdit
}
mask=
{
false
}
>
<
Drawer
placement=
"right"
onClose=
{
onClose
}
open=
{
isEdit
}
mask=
{
false
}
>
<
Form
<
Form
...
...
apps/admin/src/modules/settings/routes.tsx
浏览文件 @
b2266adf
...
@@ -4,7 +4,7 @@ import ModuleBoundary from "@/app/ModuleBoundary";
...
@@ -4,7 +4,7 @@ import ModuleBoundary from "@/app/ModuleBoundary";
const
SettingsLayout
=
lazy
(()
=>
import
(
"@/pages/setting/index"
));
const
SettingsLayout
=
lazy
(()
=>
import
(
"@/pages/setting/index"
));
const
HelpRoutes
=
lazy
(()
=>
import
(
"./help/routes"
));
const
HelpRoutes
=
lazy
(()
=>
import
(
"./help/routes"
));
const
Applied
=
lazy
(()
=>
import
(
"@/pages/setting/applied/index
"
));
const
Applied
Routes
=
lazy
(()
=>
import
(
"./applied/routes
"
));
const
PersonalizedSetting
=
lazy
(()
=>
import
(
"@/pages/setting/personalized-setting/index"
));
const
PersonalizedSetting
=
lazy
(()
=>
import
(
"@/pages/setting/personalized-setting/index"
));
const
PointManagement
=
lazy
(()
=>
import
(
"@/pages/setting/point-management/index"
));
const
PointManagement
=
lazy
(()
=>
import
(
"@/pages/setting/point-management/index"
));
const
AppVersion
=
lazy
(()
=>
import
(
"@/pages/setting/app-version/index"
));
const
AppVersion
=
lazy
(()
=>
import
(
"@/pages/setting/app-version/index"
));
...
@@ -19,7 +19,7 @@ export default function SettingsRoutes() {
...
@@ -19,7 +19,7 @@ export default function SettingsRoutes() {
children
:
[
children
:
[
{
index
:
true
,
element
:
<
Navigate
to=
"/setting/applied"
/>
},
{
index
:
true
,
element
:
<
Navigate
to=
"/setting/applied"
/>
},
{
path
:
"help/*"
,
Component
:
HelpRoutes
},
{
path
:
"help/*"
,
Component
:
HelpRoutes
},
{
path
:
"applied
"
,
Component
:
Applied
},
{
path
:
"applied
/*"
,
Component
:
AppliedRoutes
},
{
path
:
"personalized-setting"
,
Component
:
PersonalizedSetting
},
{
path
:
"personalized-setting"
,
Component
:
PersonalizedSetting
},
{
path
:
"point-management"
,
Component
:
PointManagement
},
{
path
:
"point-management"
,
Component
:
PointManagement
},
{
path
:
"app-version"
,
Component
:
AppVersion
},
{
path
:
"app-version"
,
Component
:
AppVersion
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论