Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hnyc-data
Overview
Overview
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
zhaochengxiang
hnyc-data
Commits
3c0987e2
Commit
3c0987e2
authored
Sep 16, 2020
by
fanyongjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
9.16
parent
adae09af
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
12 deletions
+36
-12
index.less
src/index.less
+9
-0
AssetList.js
src/view/Manage/Assets/components/AssetList.js
+1
-0
AssetListHelper.js
src/view/Manage/Assets/components/AssetListHelper.js
+24
-7
MetadataList.js
src/view/Metadata/Indicator/components/MetadataList.js
+1
-0
ListBox.jsx
src/view/User/Apply/components/ListBox.jsx
+1
-5
No files found.
src/index.less
View file @
3c0987e2
...
...
@@ -29,3 +29,12 @@ code {
monospace;
}
.apply-file-label .ant-form-item-label > label::after{
display: none
}
.apply-file-label > .apply-file-span::after{
content: ':';
// position: relative;
// top: -0.5px;
margin: 0 8px 0 2px;
}
src/view/Manage/Assets/components/AssetList.js
View file @
3c0987e2
...
...
@@ -315,6 +315,7 @@ class AssetListCOM extends Component {
onCancel
=
{
e
=>
{
this
.
setState
({
showModal
:
false
});
}}
footer
=
{
null
}
>
<
DataDetail
tableModel
=
{
tableModel
}
...
...
src/view/Manage/Assets/components/AssetListHelper.js
View file @
3c0987e2
import
React
,
{
Component
,
Fragment
,
useState
}
from
'react'
;
import
{
Table
,
Descriptions
,
Row
,
Col
,
Input
,
Checkbox
,
Divider
,
Pagination
,
Form
,
DatePicker
,
Button
,
message
,
Upload
}
from
'antd'
;
import
{
Table
,
Descriptions
,
Row
,
Col
,
Input
,
Checkbox
,
Divider
,
Pagination
,
Form
,
DatePicker
,
Button
,
message
,
Upload
,
Tooltip
,
Icon
}
from
'antd'
;
import
classnames
from
'classnames'
;
import
{
CheckOutlined
}
from
'@ant-design/icons'
;
...
...
@@ -187,6 +187,16 @@ const ApplyDescFunc = ({ dataDesc, form, apply }) => {
});
const
normFile
=
e
=>
{
console
.
log
(
e
)
const
isLt20M
=
e
.
file
.
size
/
1024
/
1024
<
20
;
const
isJPG
=
e
.
file
.
type
===
'image/jpeg'
;
const
isPNG
=
e
.
file
.
type
===
'image/png'
;
if
(
!
isLt20M
)
{
return
}
if
(
!
(
isJPG
||
isPNG
)){
return
}
let
data
=
[]
if
(
e
.
fileList
[
0
]){
data
=
e
.
fileList
.
slice
(
-
1
)
...
...
@@ -197,11 +207,17 @@ const ApplyDescFunc = ({ dataDesc, form, apply }) => {
const
props
=
{
beforeUpload
:
file
=>
{
const
isLt20M
=
file
.
size
/
1024
/
1024
<
20
;
const
isJPG
=
file
.
type
===
'image/jpeg'
;
const
isPNG
=
file
.
type
===
'image/png'
;
if
(
!
isLt20M
)
{
return
message
.
error
(
'上传文件不能超过 20MB!'
)
message
.
error
(
'上传文件不能超过 20MB!'
)
return
false
}
return
false
;
if
(
!
(
isJPG
||
isPNG
)){
message
.
error
(
'上传格式错误'
)
return
false
}
return
false
},
};
...
...
@@ -272,12 +288,14 @@ const ApplyDescFunc = ({ dataDesc, form, apply }) => {
rules
:
[{
required
:
true
,
message
:
'请填写申请说明'
}],
})(
<
Input
.
TextArea
placeholder
=
"申请说明"
/>
)}
<
/Form.Item
>
<
Form
.
Item
label
=
"结束时间"
>
<
Form
.
Item
label
=
{
<
span
>
数据验收确认时间
<
Tooltip
overlayStyle
=
{{
maxWidth
:
"100%"
}}
title
=
{
<
span
style
=
{{
whiteSpace
:
"nowrap"
}}
>
申请该接口后,用户确认接口数据无异常时间节点
<
/span>}><Icon type="question-circle"></
Icon
><
/Tooltip></
span
>
}
>
{
getFieldDecorator
(
'expire'
,
{
rules
:
[{
required
:
true
,
message
:
'请选择结束时间'
}],
})(
<
DatePicker
/>
)}
<
/Form.Item
>
<
Form
.
Item
label
=
"附件"
>
<
Form
.
Item
className
=
"apply-file-label"
label
=
{
<
span
><
span
className
=
"apply-file-span"
>
附件
<
/span><span style={{margin: '0 8px 0 2px'}}>:</
span
><
span
style
=
{{
fontSize
:
12
,
color
:
'rgba(0,0,0,.45)'
,
width
:
300
,
wordWrap
:
'break-word'
,
wordBreak
:
'break-all'
}}
>
请上传线下数据中台接口申请表记录图片(信息中心已签字确认),申请表可在
数据管理》规范文档中下载,本附件仅支持
JPG
或者
PNG
格式
<
/span></
span
>
}
>
{
getFieldDecorator
(
'file'
,
{
rules
:
[{
required
:
true
,
message
:
'请上传附件'
}],
valuePropName
:
'fileList'
,
...
...
@@ -295,7 +313,6 @@ const ApplyDescFunc = ({ dataDesc, form, apply }) => {
message
.
error
(
'请选择下列字段'
);
return
;
}
if
(
!
err
)
{
if
(
apply
)
{
set_keyword
({
keyword
:
''
});
...
...
src/view/Metadata/Indicator/components/MetadataList.js
View file @
3c0987e2
...
...
@@ -115,6 +115,7 @@ export default class MetadataListCOM extends Component {
onCancel
=
{
e
=>
{
this
.
setState
({
showModal
:
false
});
}}
footer
=
{
null
}
>
<
DataDetail
tableModel
=
{
tableModel
}
/
>
<
Tabs
...
...
src/view/User/Apply/components/ListBox.jsx
View file @
3c0987e2
...
...
@@ -199,11 +199,7 @@ export default class ListBox extends Component {
onCancel=
{
e
=>
{
this
.
setState
({
showModal
:
false
});
}
}
footer=
{
<
div
>
<
Button
type=
"primary"
onClick=
{
e
=>
{
this
.
setState
({
showModal
:
false
,
});
}
}
>
关闭
</
Button
>
</
div
>
}
footer=
{
null
}
>
<
DetailBox
tableModel=
{
tableModel
}
...
...
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