Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-book
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-book
Commits
163696c5
提交
163696c5
authored
7月 20, 2026
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(admin): migrate settings app version module
上级
8f59c494
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
18 行增加
和
17 行删除
+18
-17
settings-app-version-report.md
.superpowers/sdd/settings-app-version-report.md
+4
-0
api.ts
apps/admin/src/modules/settings/app-version/api.ts
+1
-0
query.ts
apps/admin/src/modules/settings/app-version/query.ts
+1
-0
request.js
apps/admin/src/modules/settings/app-version/request.js
+1
-1
routes.tsx
apps/admin/src/modules/settings/app-version/routes.tsx
+4
-0
useAppVersionList.ts
...min/src/modules/settings/app-version/useAppVersionList.ts
+2
-0
AppVersionListView.jsx
...modules/settings/app-version/views/AppVersionListView.jsx
+3
-14
routes.tsx
apps/admin/src/modules/settings/routes.tsx
+2
-2
没有找到文件。
.superpowers/sdd/settings-app-version-report.md
0 → 100644
浏览文件 @
163696c5
# Settings app-version migration
-
Moved the version list, publication/edit/delete drawers, upload flow, permissions, request helpers, and route into
`modules/settings/app-version`
.
-
Replaced the legacy table/pagination frame with
`AppList`
while retaining the existing URL and business UI.
apps/admin/src/modules/settings/app-version/api.ts
0 → 100644
浏览文件 @
163696c5
export
*
from
'./request.js'
apps/admin/src/modules/settings/app-version/query.ts
0 → 100644
浏览文件 @
163696c5
export
function
buildAppVersionQuery
({
page
,
pageSize
,
filters
=
{}
})
{
return
{
page
,
page_size
:
pageSize
,
...
filters
}
}
apps/admin/src/
pages/setting
/app-version/request.js
→
apps/admin/src/
modules/settings
/app-version/request.js
浏览文件 @
163696c5
import
axios
from
"@/utils/request.js"
;
import
axios
from
'@/utils/request.js'
;
import
qs
from
"qs"
;
import
qs
from
"qs"
;
import
{
get
}
from
"lodash-es"
;
import
{
get
}
from
"lodash-es"
;
import
{
message
}
from
"antd"
;
import
{
message
}
from
"antd"
;
...
...
apps/admin/src/modules/settings/app-version/routes.tsx
0 → 100644
浏览文件 @
163696c5
import
{
lazy
}
from
'react'
import
{
Navigate
,
useRoutes
}
from
'react-router'
const
AppVersionListView
=
lazy
(()
=>
import
(
'./views/AppVersionListView'
))
export
default
function
AppVersionRoutes
()
{
return
useRoutes
([{
index
:
true
,
Component
:
AppVersionListView
},
{
path
:
'*'
,
element
:
<
Navigate
to=
"/setting/app-version"
/>
}])
}
apps/admin/src/modules/settings/app-version/useAppVersionList.ts
0 → 100644
浏览文件 @
163696c5
import
{
useState
}
from
'react'
export
function
useAppVersionList
()
{
const
[
page
,
setPage
]
=
useState
(
1
);
const
[
pageSize
,
setPageSize
]
=
useState
(
10
);
return
{
page
,
pageSize
,
setPage
,
setPageSize
}
}
apps/admin/src/
pages/setting/app-version/index
.jsx
→
apps/admin/src/
modules/settings/app-version/views/AppVersionListView
.jsx
浏览文件 @
163696c5
...
@@ -16,15 +16,14 @@ import {
...
@@ -16,15 +16,14 @@ import {
Spin
,
Spin
,
}
from
"antd"
;
}
from
"antd"
;
const
{
RangePicker
}
=
DatePicker
;
const
{
RangePicker
}
=
DatePicker
;
import
PaginationCom
from
"@/common/Pagination
"
;
import
{
AppList
}
from
"@/shared/components/AppList
"
;
import
{
getList
,
addVersion
,
editVersion
,
infoVersion
,
delVersion
}
from
".
/request
"
;
import
{
getList
,
addVersion
,
editVersion
,
infoVersion
,
delVersion
}
from
".
./api
"
;
const
{
TextArea
}
=
Input
;
const
{
TextArea
}
=
Input
;
import
dayjs
from
"dayjs"
;
import
dayjs
from
"dayjs"
;
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"
;
import
reset
from
"@/assets/images/icon/reset.png"
;
import
reset
from
"@/assets/images/icon/reset.png"
;
import
filter
from
"@/assets/images/icon/filter.png"
;
import
filter
from
"@/assets/images/icon/filter.png"
;
import
TableCom
from
"@/common/TableCom/index"
;
import
{
useSelector
}
from
"react-redux"
;
import
{
useSelector
}
from
"react-redux"
;
import
AliOSS
from
"ali-oss"
;
import
AliOSS
from
"ali-oss"
;
import
{
getAliOSSSTSToken
}
from
"@/pages/setting/help/addedit/requet"
;
import
{
getAliOSSSTSToken
}
from
"@/pages/setting/help/addedit/requet"
;
...
@@ -418,7 +417,7 @@ const AppVersion = () => {
...
@@ -418,7 +417,7 @@ const AppVersion = () => {
</
Col
>
</
Col
>
</
Row
>
</
Row
>
<
br
/>
<
br
/>
{
TableCom
({
columns
,
loading
,
data
})
}
<
AppList
rowKey=
"id"
columns=
{
columns
}
data=
{
{
rows
:
data
,
total
,
loading
}
}
pagination=
{
{
page
,
pageSize
:
page_size
,
pageSizeOptions
:
[
10
,
20
,
30
,
40
],
onChange
:
setPage
,
onPageSizeChange
:
setpage_size
}
}
/>
<
Modal
<
Modal
mask=
{
false
}
mask=
{
false
}
centered
centered
...
@@ -441,16 +440,6 @@ const AppVersion = () => {
...
@@ -441,16 +440,6 @@ const AppVersion = () => {
版本将永久删除,是否继续?
版本将永久删除,是否继续?
</
p
>
</
p
>
</
Modal
>
</
Modal
>
<
br
/>
<
PaginationCom
total=
{
total
}
page_size=
{
page_size
}
setpage_size=
{
setpage_size
}
page=
{
page
}
init=
{
init
}
filterObj=
{
filterObj
}
setPage=
{
setPage
}
/>
<
Drawer
placement=
"right"
onClose=
{
onClose
}
open=
{
isEdit
}
mask=
{
false
}
>
<
Drawer
placement=
"right"
onClose=
{
onClose
}
open=
{
isEdit
}
mask=
{
false
}
>
<
Form
form=
{
form
}
onFinish=
{
submitForm
}
labelCol=
{
{
span
:
6
}
}
>
<
Form
form=
{
form
}
onFinish=
{
submitForm
}
labelCol=
{
{
span
:
6
}
}
>
<
Form
.
Item
<
Form
.
Item
...
...
apps/admin/src/modules/settings/routes.tsx
浏览文件 @
163696c5
...
@@ -7,7 +7,7 @@ const HelpRoutes = lazy(() => import("./help/routes"));
...
@@ -7,7 +7,7 @@ const HelpRoutes = lazy(() => import("./help/routes"));
const
AppliedRoutes
=
lazy
(()
=>
import
(
"./applied/routes"
));
const
AppliedRoutes
=
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
Routes
=
lazy
(()
=>
import
(
"./app-version/routes
"
));
const
CouponRoutes
=
lazy
(()
=>
import
(
"./coupon/routes"
));
const
CouponRoutes
=
lazy
(()
=>
import
(
"./coupon/routes"
));
const
Sensitive
=
lazy
(()
=>
import
(
"@/pages/setting/sensitive/index"
));
const
Sensitive
=
lazy
(()
=>
import
(
"@/pages/setting/sensitive/index"
));
const
FeedbackRoutes
=
lazy
(()
=>
import
(
"./feedback/routes"
));
const
FeedbackRoutes
=
lazy
(()
=>
import
(
"./feedback/routes"
));
...
@@ -22,7 +22,7 @@ export default function SettingsRoutes() {
...
@@ -22,7 +22,7 @@ export default function SettingsRoutes() {
{
path
:
"applied/*"
,
Component
:
AppliedRoutes
},
{
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
:
AppVersionRoutes
},
{
path
:
"coupon/*"
,
Component
:
CouponRoutes
},
{
path
:
"coupon/*"
,
Component
:
CouponRoutes
},
{
path
:
"sensitive"
,
Component
:
Sensitive
},
{
path
:
"sensitive"
,
Component
:
Sensitive
},
{
path
:
"feedback/*"
,
Component
:
FeedbackRoutes
},
{
path
:
"feedback/*"
,
Component
:
FeedbackRoutes
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论