Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
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
ReactWeb5
CivManage
Commits
727ab1b2
Commit
727ab1b2
authored
5 months ago
by
彭俊龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app发版页样式优化
parent
acf31b2d
Pipeline
#93798
passed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
12 deletions
+49
-12
index.js
.../productCenter/mobileConfig/menuconfig/ApkUpload/index.js
+40
-12
index.less
...roductCenter/mobileConfig/menuconfig/ApkUpload/index.less
+9
-0
No files found.
src/pages/productCenter/mobileConfig/menuconfig/ApkUpload/index.js
View file @
727ab1b2
import
React
,
{
useEffect
,
useMemo
,
useState
}
from
'react'
;
import
styles
from
'./index.less'
;
import
{
Form
,
Table
,
Input
,
message
,
Button
,
Upload
,
Tooltip
,
Space
}
from
'antd'
;
import
{
Form
,
Table
,
Input
,
message
,
Button
,
Upload
,
Tooltip
,
Space
,
Tag
}
from
'antd'
;
import
{
getAppUploadRecords
,
postAppVersionInfo
,
getApkVerionInfo
,
}
from
'@/services/mobileConfig/api'
;
import
{
UploadOutlined
,
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
import
{
UploadOutlined
,
QuestionCircleOutlined
,
DownloadOutlined
}
from
'@ant-design/icons'
;
import
{
request
}
from
'@wisdom-utils/utils/es'
;
const
ApkUpload
=
props
=>
{
const
[
loadding
,
setLoadding
]
=
useState
(
false
);
...
...
@@ -27,7 +27,25 @@ const ApkUpload = props => {
{
title
:
'版本号'
,
dataIndex
:
'Ver'
,
width
:
200
,
key
:
'Ver'
,
render
:
(
text
,
record
,
index
)
=>
{
if
(
index
===
0
)
return
(
<>
{
text
}
<
Tag
color
=
"blue"
style
=
{{
marginLeft
:
'10px'
,
}}
>
当前版本
<
/Tag
>
<
/
>
);
return
<>
{
text
}
<
/>
;
},
},
{
title
:
'上传时间'
,
...
...
@@ -38,7 +56,7 @@ const ApkUpload = props => {
title
:
'发版日志'
,
dataIndex
:
'UploadLog'
,
key
:
'UploadLog'
,
render
:
(
text
,
recor
e
,
index
)
=>
(
render
:
(
text
,
recor
d
,
index
)
=>
(
<
Tooltip
title
=
{
text
}
>
<
div
style
=
{{
...
...
@@ -57,16 +75,15 @@ const ApkUpload = props => {
title
:
'下载'
,
key
:
'DownUrl'
,
dataIndex
:
'DownUrl'
,
render
:
(
text
,
record
,
index
)
=>
(
<
UploadOutlined
onClick
=
{()
=>
window
.
open
(
`
${
window
.
origin
}${
text
}
`
,
'_self'
)}
/
>
)
,
render
:
(
text
,
record
,
index
)
=>
{
return
<
DownloadOutlined
onClick
=
{()
=>
window
.
open
(
`
${
window
.
origin
}${
text
}
`
,
'_self'
)}
/>
;
}
,
},
];
const
[
form
]
=
Form
.
useForm
();
useEffect
(()
=>
{
getRecords
();
//getAppUploadRecords().then(x=> console.log(x, '上传记录'))
},
[]);
const
normFile
=
e
=>
{
if
(
Array
.
isArray
(
e
))
{
...
...
@@ -129,6 +146,7 @@ const ApkUpload = props => {
display
:
'flex'
,
width
:
'100%'
,
}}
className
=
{
styles
.
apkUpload
}
>
<
Form
style
=
{{
...
...
@@ -146,18 +164,24 @@ const ApkUpload = props => {
<
Form
.
Item
name
=
"ApkName"
label
=
"应用名称"
rules
=
{[{
required
:
true
}]}
>
<
Input
placeholder
=
"请输入应用名称"
/>
<
/Form.Item
>
<
Form
.
Item
label
=
"发
布
版本号"
>
<
Form
.
Item
label
=
"发
版
版本号"
>
<
Space
>
<
Form
.
Item
name
=
"Ver"
noStyle
rules
=
{[{
required
:
true
,
message
:
'请输入版本号'
}]}
>
<
Input
placeholder
=
"请输入发
布
版本号"
/>
<
Input
placeholder
=
"请输入发
版
版本号"
/>
<
/Form.Item
>
<
Tooltip
title
=
"
版本号通过上传Apk获取或者手动填写
"
>
<
Tooltip
title
=
"
上传apk自动获取
"
>
<
QuestionCircleOutlined
/>
<
/Tooltip
>
<
/Space
>
<
/Form.Item
>
<
Form
.
Item
name
=
"UploadLog"
label
=
"发版说明"
rules
=
{[{
required
:
true
}]}
>
<
TextArea
rows
=
{
6
}
placeholder
=
"请输入发版说明"
/>
<
Form
.
Item
name
=
"UploadLog"
label
=
"发版日志"
rules
=
{[{
required
:
true
}]}
>
<
TextArea
rows
=
{
6
}
placeholder
=
"请输入发版日志,例:
更新日志:
1.修复bugXXXX
2.新增功能XXXX"
/>
<
/Form.Item
>
<
Form
.
Item
name
=
"DownUrl"
style
=
{{
display
:
'none'
}}
/
>
<
Form
.
Item
...
...
@@ -208,6 +232,7 @@ const ApkUpload = props => {
<
/Form.Item
>
<
/Form
>
<
Table
bordered
=
{
true
}
style
=
{{
width
:
'50%'
,
}}
...
...
@@ -216,6 +241,9 @@ const ApkUpload = props => {
pageSize
:
10
,
}}
dataSource
=
{
dataSource
}
rowClassName
=
{(
record
,
index
)
=>
{
if
(
index
===
0
)
return
'newVer-row'
;
}}
/
>
<
/div
>
);
...
...
This diff is collapsed.
Click to expand it.
src/pages/productCenter/mobileConfig/menuconfig/ApkUpload/index.less
View file @
727ab1b2
.apkUpload{
:global{
.newVer-row{
background-color: #e6f7ff; /* 淡蓝色背景 */
font-weight: bold; /* 粗体字体 */
color: #1890ff; /* Ant Design主色 */
}
}
}
This diff is collapsed.
Click to expand it.
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