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
d441b2a8
Commit
d441b2a8
authored
Dec 04, 2020
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Plain Diff
修改需求
parents
41846a1d
dc2b2d6c
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
86 additions
and
61 deletions
+86
-61
App.jsx
src/App.jsx
+3
-4
index.less
src/index.less
+9
-0
index.js
src/layout/index.js
+1
-1
routes.js
src/routes.js
+1
-1
axios.js
src/util/axios.js
+1
-1
index.js
src/util/index.js
+3
-3
ListBox.jsx
src/view/File/components/ListBox.jsx
+1
-1
index.jsx
src/view/File/index.jsx
+2
-2
AssetList.js
src/view/Manage/Assets/components/AssetList.js
+8
-7
AssetListHelper.js
src/view/Manage/Assets/components/AssetListHelper.js
+39
-18
AssetTree.js
src/view/Manage/Assets/components/AssetTree.js
+2
-2
index.jsx
src/view/Manage/Assets/index.jsx
+2
-2
index.jsx
src/view/Manage/index.jsx
+1
-4
MetadataList.js
src/view/Metadata/Indicator/components/MetadataList.js
+1
-0
MetadataTree.js
src/view/Metadata/Indicator/components/MetadataTree.js
+2
-1
index.jsx
src/view/Metadata/Indicator/index.jsx
+2
-2
index.jsx
src/view/Metadata/Standard/index.jsx
+2
-2
ListBox.jsx
src/view/User/Apply/components/ListBox.jsx
+6
-10
No files found.
src/App.jsx
View file @
d441b2a8
...
@@ -6,7 +6,7 @@ import {
...
@@ -6,7 +6,7 @@ import {
import
Home
from
'./view/Home'
;
import
Home
from
'./view/Home'
;
import
Manage
from
'./view/Manage'
;
import
Manage
from
'./view/Manage'
;
import
{
ContextPath
,
Redirect
Home
}
from
'./util'
;
import
{
ContextPath
,
Redirect
Signin
}
from
'./util'
;
import
Signin
from
'./view/Signin'
;
import
Signin
from
'./view/Signin'
;
export
default
class
App
extends
React
.
Component
{
export
default
class
App
extends
React
.
Component
{
...
@@ -15,14 +15,13 @@ export default class App extends React.Component {
...
@@ -15,14 +15,13 @@ export default class App extends React.Component {
<
React
.
Fragment
>
<
React
.
Fragment
>
<
Router
>
<
Router
>
<
Switch
>
<
Switch
>
<
Route
path=
{
`${ContextPath}/
sign
in`
}
component=
{
Signin
}
exact
/>
<
Route
path=
{
`${ContextPath}/
log
in`
}
component=
{
Signin
}
exact
/>
<
Route
path=
{
`${ContextPath}/manage`
}
exact
component=
{
()
=>
<
Redirect
to=
{
`${ContextPath}/manage/assets`
}
/>
}
/>
<
Route
path=
{
`${ContextPath}/manage`
}
exact
component=
{
()
=>
<
Redirect
to=
{
`${ContextPath}/manage/assets`
}
/>
}
/>
<
Route
path=
{
`${ContextPath}/user`
}
exact
component=
{
()
=>
<
Redirect
to=
{
`${ContextPath}/user/subscrible`
}
/>
}
/>
<
Route
path=
{
`${ContextPath}/user`
}
exact
component=
{
()
=>
<
Redirect
to=
{
`${ContextPath}/user/subscrible`
}
/>
}
/>
<
Route
path=
{
`${ContextPath}/home`
}
component=
{
Home
}
/>
<
Route
path=
{
`${ContextPath}/home`
}
component=
{
Home
}
/>
<
Route
path=
{
`${ContextPath}/manage`
}
component=
{
Manage
}
/>
<
Route
path=
{
`${ContextPath}/manage`
}
component=
{
Manage
}
/>
<
Route
path=
{
`${ContextPath}/user`
}
component=
{
Manage
}
/>
<
Route
path=
{
`${ContextPath}/user`
}
component=
{
Manage
}
/>
<
Route
component=
{
RedirectHome
}
/>
<
Route
component=
{
()
=>
<
Redirect
to=
{
`${ContextPath}/login`
}
/>
}
/>
</
Switch
>
</
Switch
>
</
Router
>
</
Router
>
</
React
.
Fragment
>
</
React
.
Fragment
>
...
...
src/index.less
View file @
d441b2a8
...
@@ -29,3 +29,12 @@ code {
...
@@ -29,3 +29,12 @@ code {
monospace;
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/layout/index.js
View file @
d441b2a8
...
@@ -32,7 +32,7 @@ const _Logout = ({session, isHome, location}) => session ?
...
@@ -32,7 +32,7 @@ const _Logout = ({session, isHome, location}) => session ?
<
Menu
.
Item
key
=
"SignOut"
<
Menu
.
Item
key
=
"SignOut"
onClick
=
{
e
=>
dispatchLatest
({
type
:
'user.signout'
,
callback
:
e
=>
{
onClick
=
{
e
=>
dispatchLatest
({
type
:
'user.signout'
,
callback
:
e
=>
{
message
.
success
(
'退出成功!'
)
message
.
success
(
'退出成功!'
)
window
.
setTimeout
(
e
=>
Open
(
`
${
ContextPath
}
/
sign
in`
,
{
target
:
'_self'
}),
1000
);
window
.
setTimeout
(
e
=>
Open
(
`
${
ContextPath
}
/
log
in`
,
{
target
:
'_self'
}),
1000
);
}})}
>
}})}
>
<
Icon
type
=
"logout"
/>
<
Icon
type
=
"logout"
/>
<
span
>
退出登录
<
/span
>
<
span
>
退出登录
<
/span
>
...
...
src/routes.js
View file @
d441b2a8
...
@@ -37,7 +37,7 @@ export const routes = [
...
@@ -37,7 +37,7 @@ export const routes = [
// }
// }
{
{
name
:
'file'
,
name
:
'file'
,
text
:
'
文档下载
'
text
:
'
规范文档
'
},
},
]
]
},
},
...
...
src/util/axios.js
View file @
d441b2a8
...
@@ -89,7 +89,7 @@ export const SetSource = function (source) {
...
@@ -89,7 +89,7 @@ export const SetSource = function (source) {
const
callback
=
resp
=>
{
const
callback
=
resp
=>
{
if
(
resp
.
status
===
401
)
{
if
(
resp
.
status
===
401
)
{
message
.
warning
(
"session过期,请重新登录!"
);
message
.
warning
(
"session过期,请重新登录!"
);
window
.
setTimeout
(
args
=>
Open
(
`
${
ContextPath
}
/
sign
in`
,
{
target
:
'_self'
}),
2000
);
window
.
setTimeout
(
args
=>
Open
(
`
${
ContextPath
}
/
log
in`
,
{
target
:
'_self'
}),
2000
);
return
null
;
return
null
;
}
}
else
if
(
resp
.
status
!==
200
)
{
else
if
(
resp
.
status
!==
200
)
{
...
...
src/util/index.js
View file @
d441b2a8
...
@@ -28,7 +28,7 @@ export const ConvertToRouteMap = function (routes, pPath, pRoute) {
...
@@ -28,7 +28,7 @@ export const ConvertToRouteMap = function (routes, pPath, pRoute) {
export
const
RedirectHome
=
()
=>
<
Redirect
to
=
{
`
${
ContextPath
}
/home`
}
/
>
export
const
RedirectHome
=
()
=>
<
Redirect
to
=
{
`
${
ContextPath
}
/home`
}
/
>
export
const
RedirectSignin
=
()
=>
<
Redirect
to
=
{
`
${
ContextPath
}
/
sign
in`
}
/
>
export
const
RedirectSignin
=
()
=>
<
Redirect
to
=
{
`
${
ContextPath
}
/
log
in`
}
/
>
export
const
Open
=
function
(
url
,
args
)
{
export
const
Open
=
function
(
url
,
args
)
{
const
{
target
=
'_blank'
}
=
args
||
{};
const
{
target
=
'_blank'
}
=
args
||
{};
...
@@ -57,12 +57,12 @@ export class GetSession extends React.Component {
...
@@ -57,12 +57,12 @@ export class GetSession extends React.Component {
action
({
type
:
set_sess_state
,
args
:
session
})
action
({
type
:
set_sess_state
,
args
:
session
})
}
else
{
}
else
{
action
({
type
:
set_sess_state
,
args
:
{
referer
:
location
.
pathname
}
})
action
({
type
:
set_sess_state
,
args
:
{
referer
:
location
.
pathname
}
})
history
.
push
(
`
${
ContextPath
}
/
sign
in`
);
history
.
push
(
`
${
ContextPath
}
/
log
in`
);
}
}
},
},
error
:
()
=>
{
error
:
()
=>
{
action
({
type
:
set_sess_state
,
args
:
{
referer
:
location
.
pathname
}
})
action
({
type
:
set_sess_state
,
args
:
{
referer
:
location
.
pathname
}
})
history
.
push
(
`
${
ContextPath
}
/
sign
in`
);
history
.
push
(
`
${
ContextPath
}
/
log
in`
);
}
}
})
})
}
}
...
...
src/view/File/components/ListBox.jsx
View file @
d441b2a8
...
@@ -64,7 +64,7 @@ export default class ListBox extends Component {
...
@@ -64,7 +64,7 @@ export default class ListBox extends Component {
<
Col
md=
{
12
}
>
<
Text
>
文件名:
</
Text
>
{
item
.
name
}
</
Col
>
<
Col
md=
{
12
}
>
<
Text
>
文件名:
</
Text
>
{
item
.
name
}
</
Col
>
<
Col
md=
{
12
}
>
<
Text
>
文件类型:
</
Text
>
{
item
.
file_type
}
</
Col
>
<
Col
md=
{
12
}
>
<
Text
>
文件类型:
</
Text
>
{
item
.
file_type
}
</
Col
>
<
Col
md=
{
12
}
>
<
Text
>
发布者:
</
Text
>
{
item
.
create_user
}
</
Col
>
<
Col
md=
{
12
}
>
<
Text
>
发布者:
</
Text
>
{
item
.
create_user
}
</
Col
>
<
Col
md=
{
12
}
>
<
Text
>
发布
作者
:
</
Text
>
{
this
.
getMyDate
(
item
.
create_date
)
}
</
Col
>
<
Col
md=
{
12
}
>
<
Text
>
发布
日期
:
</
Text
>
{
this
.
getMyDate
(
item
.
create_date
)
}
</
Col
>
</
Row
>
</
Row
>
</
React
.
Fragment
>
</
React
.
Fragment
>
);
);
...
...
src/view/File/index.jsx
View file @
d441b2a8
...
@@ -159,12 +159,12 @@ class Assets extends Component {
...
@@ -159,12 +159,12 @@ class Assets extends Component {
}
}
>
>
<
Row
gutter=
{
16
}
className=
"manage-asset"
>
<
Row
gutter=
{
16
}
className=
"manage-asset"
>
<
Col
md=
{
6
}
>
<
Col
md=
{
5
}
>
<
Card
bordered=
{
false
}
className=
'asset-table'
>
<
Card
bordered=
{
false
}
className=
'asset-table'
>
<
SyncTree
bodyHeight=
{
'100%'
}
gData=
{
gData
}
dataList=
{
dataList
}
onClick=
{
this
.
selectTree
}
defaultKeys=
{
defaultKeys
}
selectKey=
{
selectKey
}
loading=
{
treeload
}
build=
{
bulidTree
}
/>
<
SyncTree
bodyHeight=
{
'100%'
}
gData=
{
gData
}
dataList=
{
dataList
}
onClick=
{
this
.
selectTree
}
defaultKeys=
{
defaultKeys
}
selectKey=
{
selectKey
}
loading=
{
treeload
}
build=
{
bulidTree
}
/>
</
Card
>
</
Card
>
</
Col
>
</
Col
>
<
Col
md=
{
1
8
}
>
<
Col
md=
{
1
9
}
>
<
Card
bordered=
{
false
}
className=
'asset-table'
>
<
Card
bordered=
{
false
}
className=
'asset-table'
>
<
ListBox
<
ListBox
loading=
{
tableload
}
loading=
{
tableload
}
...
...
src/view/Manage/Assets/components/AssetList.js
View file @
d441b2a8
...
@@ -159,19 +159,19 @@ class AssetListCOM extends Component {
...
@@ -159,19 +159,19 @@ class AssetListCOM extends Component {
const
ListContent
=
({
item
})
=>
(
const
ListContent
=
({
item
})
=>
(
<
React
.
Fragment
>
<
React
.
Fragment
>
<
Row
>
<
Row
>
<
Col
md
=
{
6
}
>
<
Col
md
=
{
8
}
>
<
Text
>
所属部门:
<
/Text
>
<
Text
>
所属部门:
<
/Text
>
{
item
.
depart
M
ent
}
{
item
.
depart
m
ent
}
<
/Col
>
<
/Col
>
<
Col
md
=
{
6
}
>
<
Col
md
=
{
8
}
>
<
Text
>
更新周期:
<
/Text
>
<
Text
>
更新周期:
<
/Text
>
{
item
.
updateCycle
}
{
item
.
updateCycle
}
<
/Col
>
<
/Col
>
<
Col
md
=
{
6
}
>
{
/*
<Col md={6}>
<Text>发布时间:</Text>
<Text>发布时间:</Text>
{item.createTime_str}
{item.createTime_str}
<
/Col
>
</Col>
*/
}
<
Col
md
=
{
6
}
>
<
Col
md
=
{
8
}
>
<
Text
>
所属系统:
<
/Text
>
<
Text
>
所属系统:
<
/Text
>
{
item
.
system
}
{
item
.
system
}
<
/Col
>
<
/Col
>
...
@@ -210,7 +210,7 @@ class AssetListCOM extends Component {
...
@@ -210,7 +210,7 @@ class AssetListCOM extends Component {
<
span
dangerouslySetInnerHTML
=
{{
__html
:
item
.
remarks
}}
/
>
<
span
dangerouslySetInnerHTML
=
{{
__html
:
item
.
remarks
}}
/
>
<
/Col
>
<
/Col
>
<
Col
md
=
{
6
}
>
<
Col
md
=
{
6
}
>
{
item
.
expireDate
&&
<
Text
>
失效
时间:
<
/Text>
}
{
item
.
expireDate
&&
<
Text
>
数据验收确认
时间:
<
/Text>
}
{
item
.
expireDate
}
{
item
.
expireDate
}
<
/Col
>
<
/Col
>
<
/Row
>
<
/Row
>
...
@@ -357,6 +357,7 @@ class AssetListCOM extends Component {
...
@@ -357,6 +357,7 @@ class AssetListCOM extends Component {
onCancel
=
{
e
=>
{
onCancel
=
{
e
=>
{
this
.
setState
({
showModal
:
false
});
this
.
setState
({
showModal
:
false
});
}}
}}
footer
=
{
null
}
>
>
<
DataDetail
<
DataDetail
tableModel
=
{
tableModel
}
tableModel
=
{
tableModel
}
...
...
src/view/Manage/Assets/components/AssetListHelper.js
View file @
d441b2a8
import
React
,
{
Component
,
Fragment
,
useState
}
from
'react'
;
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
classnames
from
'classnames'
;
import
{
CheckOutlined
}
from
'@ant-design/icons'
;
import
{
CheckOutlined
}
from
'@ant-design/icons'
;
...
@@ -103,6 +103,7 @@ export class DataDetail extends Component {
...
@@ -103,6 +103,7 @@ export class DataDetail extends Component {
const
{
tableModel
,
showApplyButton
,
isAppling
,
onApply
}
=
this
.
props
;
const
{
tableModel
,
showApplyButton
,
isAppling
,
onApply
}
=
this
.
props
;
return
(
return
(
<
div
>
<
Descriptions
size
=
"small"
column
=
{
3
}
>
<
Descriptions
size
=
"small"
column
=
{
3
}
>
<
Descriptions
.
Item
label
=
"资产名称"
>
<
Descriptions
.
Item
label
=
"资产名称"
>
<
span
dangerouslySetInnerHTML
=
{{
__html
:
`
${
tableModel
.
name
}
`
}}
/
>
<
span
dangerouslySetInnerHTML
=
{{
__html
:
`
${
tableModel
.
name
}
`
}}
/
>
...
@@ -124,12 +125,16 @@ export class DataDetail extends Component {
...
@@ -124,12 +125,16 @@ export class DataDetail extends Component {
dangerouslySetInnerHTML
=
{{
dangerouslySetInnerHTML
=
{{
__html
:
tableModel
.
remarks
?
tableModel
.
remarks
:
'无'
,
__html
:
tableModel
.
remarks
?
tableModel
.
remarks
:
'无'
,
}}
}}
/
>
>
字段申请
<
/span
>
<
/Descriptions.Item
>
<
/Descriptions.Item
>
<
/Descriptions
>
{
{
showApplyButton
&&<
Descriptions
.
Item
>
showApplyButton
&&<
Button
<
span
type
=
{
isAppling
?
''
:
'primary'
}
className
=
{
classnames
(
'pointer'
,
isAppling
?
'text-warning'
:
'text-primary'
)
}
style
=
{{
height
:
30
,
marginBottom
:
8
,}
}
onClick
=
{
e
=>
{
onClick
=
{
e
=>
{
e
.
preventDefault
();
e
.
preventDefault
();
if
(
onApply
)
{
if
(
onApply
)
{
...
@@ -137,11 +142,10 @@ export class DataDetail extends Component {
...
@@ -137,11 +142,10 @@ export class DataDetail extends Component {
}
}
}}
}}
>
>
字段申请
申请授权
<
/span
>
<
/Button
>
<
/Descriptions.Item
>
}
}
<
/
Descriptions
>
<
/
div
>
);
);
}
}
}
}
...
@@ -181,12 +185,22 @@ const ApplyDescFunc = ({ dataDesc, form, apply }) => {
...
@@ -181,12 +185,22 @@ const ApplyDescFunc = ({ dataDesc, form, apply }) => {
let
options
=
[];
let
options
=
[];
options
=
dataSource
.
map
((
o
,
i
)
=>
{
options
=
dataSource
.
map
((
o
,
i
)
=>
{
return
{
return
{
label
:
o
.
n
ame
,
label
:
o
.
displayN
ame
,
value
:
o
.
ordinalPosition
,
value
:
o
.
ordinalPosition
,
};
};
});
});
const
normFile
=
e
=>
{
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
=
[]
let
data
=
[]
if
(
e
.
fileList
[
0
]){
if
(
e
.
fileList
[
0
]){
data
=
e
.
fileList
.
slice
(
-
1
)
data
=
e
.
fileList
.
slice
(
-
1
)
...
@@ -197,19 +211,25 @@ const ApplyDescFunc = ({ dataDesc, form, apply }) => {
...
@@ -197,19 +211,25 @@ const ApplyDescFunc = ({ dataDesc, form, apply }) => {
const
props
=
{
const
props
=
{
beforeUpload
:
file
=>
{
beforeUpload
:
file
=>
{
const
isLt20M
=
file
.
size
/
1024
/
1024
<
20
;
const
isLt20M
=
file
.
size
/
1024
/
1024
<
20
;
const
isJPG
=
file
.
type
===
'image/jpeg'
;
const
isPNG
=
file
.
type
===
'image/png'
;
if
(
!
isLt20M
)
{
if
(
!
isLt20M
)
{
return
message
.
error
(
'上传文件不能超过 20MB!'
)
message
.
error
(
'上传文件不能超过 20MB!'
)
return
false
}
}
if
(
!
(
isJPG
||
isPNG
)){
return
false
;
message
.
error
(
'上传格式错误'
)
return
false
}
return
false
},
},
};
};
return
(
return
(
<
Fragment
>
<
Fragment
>
<
Row
>
<
Row
>
<
Col
md
=
{
4
}
><
h3
>
字段概览
<
/h3></
Col
>
<
Col
md
=
{
4
}
style
=
{{
lineHeight
:
'32px'
}}
><
h3
>
字段概览
<
/h3></
Col
>
<
Col
md
=
{
20
}
className
=
'text-right pt-4'
>
<
Col
md
=
{
20
}
>
<
Search
<
Search
placeholder
=
"请输入字段过滤"
placeholder
=
"请输入字段过滤"
style
=
{{
width
:
200
}}
style
=
{{
width
:
200
}}
...
@@ -272,12 +292,14 @@ const ApplyDescFunc = ({ dataDesc, form, apply }) => {
...
@@ -272,12 +292,14 @@ const ApplyDescFunc = ({ dataDesc, form, apply }) => {
rules
:
[{
required
:
true
,
message
:
'请填写申请说明'
}],
rules
:
[{
required
:
true
,
message
:
'请填写申请说明'
}],
})(
<
Input
.
TextArea
placeholder
=
"申请说明"
/>
)}
})(
<
Input
.
TextArea
placeholder
=
"申请说明"
/>
)}
<
/Form.Item
>
<
/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'
,
{
{
getFieldDecorator
(
'expire'
,
{
rules
:
[{
required
:
true
,
message
:
'请选择结束时间'
}],
rules
:
[{
required
:
true
,
message
:
'请选择结束时间'
}],
})(
<
DatePicker
/>
)}
})(
<
DatePicker
/>
)}
<
/Form.Item
>
<
/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'
,
{
{
getFieldDecorator
(
'file'
,
{
rules
:
[{
required
:
true
,
message
:
'请上传附件'
}],
rules
:
[{
required
:
true
,
message
:
'请上传附件'
}],
valuePropName
:
'fileList'
,
valuePropName
:
'fileList'
,
...
@@ -295,7 +317,6 @@ const ApplyDescFunc = ({ dataDesc, form, apply }) => {
...
@@ -295,7 +317,6 @@ const ApplyDescFunc = ({ dataDesc, form, apply }) => {
message
.
error
(
'请选择下列字段'
);
message
.
error
(
'请选择下列字段'
);
return
;
return
;
}
}
if
(
!
err
)
{
if
(
!
err
)
{
if
(
apply
)
{
if
(
apply
)
{
set_keyword
({
keyword
:
''
});
set_keyword
({
keyword
:
''
});
...
...
src/view/Manage/Assets/components/AssetTree.js
View file @
d441b2a8
...
@@ -40,13 +40,13 @@ class AssetTreeCOM extends Component {
...
@@ -40,13 +40,13 @@ class AssetTreeCOM extends Component {
return
(
return
(
<
Card
bordered
=
{
false
}
className
=
"asset-tree"
>
<
Card
bordered
=
{
false
}
className
=
"asset-tree"
>
{
treeData
?
(
{
treeData
?
(
<
Tree
<
Tree
.
DirectoryTree
defaultExpandedKeys
=
{[
'0-0'
]}
defaultExpandedKeys
=
{[
'0-0'
]}
defaultSelectedKeys
=
{[
'0-0'
]}
defaultSelectedKeys
=
{[
'0-0'
]}
onSelect
=
{
this
.
onSelect
}
onSelect
=
{
this
.
onSelect
}
>
>
{
getTreeNodes
(
treeData
)}
{
getTreeNodes
(
treeData
)}
<
/Tree
>
<
/Tree
.DirectoryTree
>
)
:
(
)
:
(
<
Spin
/>
<
Spin
/>
)}
)}
...
...
src/view/Manage/Assets/index.jsx
View file @
d441b2a8
...
@@ -77,10 +77,10 @@ class Assets extends Component {
...
@@ -77,10 +77,10 @@ class Assets extends Component {
}
}
>
>
<
Row
gutter=
{
10
}
className=
"manage-asset"
>
<
Row
gutter=
{
10
}
className=
"manage-asset"
>
<
Col
md=
{
6
}
>
<
Col
md=
{
5
}
>
<
AssetTreeCOM
treeData=
{
treeData
}
onSelect=
{
this
.
getList
}
/>
<
AssetTreeCOM
treeData=
{
treeData
}
onSelect=
{
this
.
getList
}
/>
</
Col
>
</
Col
>
<
Col
md=
{
1
8
}
>
<
Col
md=
{
1
9
}
>
<
Card
bordered=
{
false
}
className=
'asset-table'
>
<
Card
bordered=
{
false
}
className=
'asset-table'
>
<
AssetListCOM
<
AssetListCOM
loading=
{
loading
}
loading=
{
loading
}
...
...
src/view/Manage/index.jsx
View file @
d441b2a8
...
@@ -35,10 +35,7 @@ class Manage extends Component {
...
@@ -35,10 +35,7 @@ class Manage extends Component {
content=
{
content=
{
session
&&
session
.
userId
?
(
session
&&
session
.
userId
?
(
<
Switch
>
<
Switch
>
<
Route
<
Route
path=
{
`${match.path}/search`
}
component=
{
Search
}
/>
path=
{
`${match.path}/search`
}
component=
{
Search
}
/>
<
Route
path=
{
`${match.path}/assets`
}
component=
{
Assets
}
/>
<
Route
path=
{
`${match.path}/assets`
}
component=
{
Assets
}
/>
<
Route
path=
{
`${match.path}/metadata`
}
component=
{
Metadata
}
/>
<
Route
path=
{
`${match.path}/metadata`
}
component=
{
Metadata
}
/>
<
Route
path=
{
`${match.path}/indicator`
}
component=
{
Indicator
}
/>
<
Route
path=
{
`${match.path}/indicator`
}
component=
{
Indicator
}
/>
...
...
src/view/Metadata/Indicator/components/MetadataList.js
View file @
d441b2a8
...
@@ -115,6 +115,7 @@ export default class MetadataListCOM extends Component {
...
@@ -115,6 +115,7 @@ export default class MetadataListCOM extends Component {
onCancel
=
{
e
=>
{
onCancel
=
{
e
=>
{
this
.
setState
({
showModal
:
false
});
this
.
setState
({
showModal
:
false
});
}}
}}
footer
=
{
null
}
>
>
<
DataDetail
tableModel
=
{
tableModel
}
/
>
<
DataDetail
tableModel
=
{
tableModel
}
/
>
<
Tabs
<
Tabs
...
...
src/view/Metadata/Indicator/components/MetadataTree.js
View file @
d441b2a8
...
@@ -151,13 +151,14 @@ class MetadataTreeCOM extends Component {
...
@@ -151,13 +151,14 @@ class MetadataTreeCOM extends Component {
<
/Row
>
<
/Row
>
<
Row
>
<
Row
>
{
treeData
?
(
{
treeData
?
(
<
Tree
<
Tree
.
DirectoryTree
showLine
showLine
expandedKeys
=
{
expandedKeys
}
expandedKeys
=
{
expandedKeys
}
selectedKeys
=
{
selectedKeys
}
selectedKeys
=
{
selectedKeys
}
loadData
=
{
this
.
onLoadData
}
loadData
=
{
this
.
onLoadData
}
treeData
=
{
treeData
}
treeData
=
{
treeData
}
onSelect
=
{
this
.
onTreeSelect
}
onSelect
=
{
this
.
onTreeSelect
}
showLine
=
{
false
}
/
>
/
>
)
:
(
)
:
(
<
Spin
/>
<
Spin
/>
...
...
src/view/Metadata/Indicator/index.jsx
View file @
d441b2a8
...
@@ -67,10 +67,10 @@ export default class Indicator extends Component {
...
@@ -67,10 +67,10 @@ export default class Indicator extends Component {
}
}
>
>
<
Row
gutter=
{
10
}
className=
"indicator-container"
>
<
Row
gutter=
{
10
}
className=
"indicator-container"
>
<
Col
md=
{
6
}
>
<
Col
md=
{
5
}
>
<
MetadataTreeCOM
type=
"IndicatorCatalog"
onSelect=
{
this
.
onTreeSelect
}
/>
<
MetadataTreeCOM
type=
"IndicatorCatalog"
onSelect=
{
this
.
onTreeSelect
}
/>
</
Col
>
</
Col
>
<
Col
md=
{
1
8
}
>
<
Col
md=
{
1
9
}
>
<
Card
bordered=
{
false
}
>
<
Card
bordered=
{
false
}
>
<
MetadataListCOM
<
MetadataListCOM
loading=
{
loading
}
loading=
{
loading
}
...
...
src/view/Metadata/Standard/index.jsx
View file @
d441b2a8
...
@@ -66,10 +66,10 @@ export default class Standard extends Component {
...
@@ -66,10 +66,10 @@ export default class Standard extends Component {
}
}
>
>
<
Row
gutter=
{
16
}
>
<
Row
gutter=
{
16
}
>
<
Col
md=
{
6
}
>
<
Col
md=
{
5
}
>
<
MetadataTreeCOM
type=
"StandardCatalog"
onSelect=
{
this
.
onTreeSelect
}
/>
<
MetadataTreeCOM
type=
"StandardCatalog"
onSelect=
{
this
.
onTreeSelect
}
/>
</
Col
>
</
Col
>
<
Col
md=
{
1
8
}
>
<
Col
md=
{
1
9
}
>
<
Card
bordered=
{
false
}
>
<
Card
bordered=
{
false
}
>
<
MetadataListCOM
<
MetadataListCOM
loading=
{
loading
}
loading=
{
loading
}
...
...
src/view/User/Apply/components/ListBox.jsx
View file @
d441b2a8
...
@@ -134,10 +134,10 @@ export default class ListBox extends Component {
...
@@ -134,10 +134,10 @@ export default class ListBox extends Component {
const
ListContent
=
({
item
})
=>
(
const
ListContent
=
({
item
})
=>
(
<
React
.
Fragment
>
<
React
.
Fragment
>
<
Row
>
<
Row
>
<
Col
md=
{
6
}
>
<
Text
>
所属部门:
</
Text
>
{
item
.
departM
ent
}
</
Col
>
<
Col
md=
{
8
}
>
<
Text
>
所属部门:
</
Text
>
{
item
.
departm
ent
}
</
Col
>
<
Col
md=
{
6
}
>
<
Text
>
更新周期:
</
Text
>
{
item
.
updateCycle
}
</
Col
>
<
Col
md=
{
8
}
>
<
Text
>
更新周期:
</
Text
>
{
item
.
updateCycle
}
</
Col
>
<
Col
md=
{
6
}
>
<
Text
>
发布时间:
</
Text
>
{
item
.
createTime_str
}
</
Col
>
{
/* <Col md={6}> <Text>发布时间:</Text> {item.createTime_str} </Col> */
}
<
Col
md=
{
6
}
>
<
Text
>
所属系统:
</
Text
>
{
item
.
system
}
</
Col
>
<
Col
md=
{
8
}
>
<
Text
>
所属系统:
</
Text
>
{
item
.
system
}
</
Col
>
</
Row
>
</
Row
>
<
Row
>
<
Row
>
<
Col
md=
{
18
}
>
<
Text
>
资产名称:
</
Text
>
<
span
dangerouslySetInnerHTML=
{
{
__html
:
item
.
name
}
}
/>
</
Col
>
<
Col
md=
{
18
}
>
<
Text
>
资产名称:
</
Text
>
<
span
dangerouslySetInnerHTML=
{
{
__html
:
item
.
name
}
}
/>
</
Col
>
...
@@ -145,7 +145,7 @@ export default class ListBox extends Component {
...
@@ -145,7 +145,7 @@ export default class ListBox extends Component {
<
Row
>
<
Row
>
<
Col
md=
{
18
}
>
<
Text
>
资产备注:
</
Text
>
<
span
dangerouslySetInnerHTML=
{
{
__html
:
item
.
remarks
}
}
/>
</
Col
>
<
Col
md=
{
18
}
>
<
Text
>
资产备注:
</
Text
>
<
span
dangerouslySetInnerHTML=
{
{
__html
:
item
.
remarks
}
}
/>
</
Col
>
<
Col
md=
{
6
}
>
<
Col
md=
{
6
}
>
{
item
.
expireDate
&&
<
Text
>
失效
时间:
</
Text
>
}
{
item
.
expireDate
&&
<
Text
>
数据验收确认
时间:
</
Text
>
}
{
item
.
expireDate
}
{
item
.
expireDate
}
</
Col
>
</
Col
>
</
Row
>
</
Row
>
...
@@ -199,11 +199,7 @@ export default class ListBox extends Component {
...
@@ -199,11 +199,7 @@ export default class ListBox extends Component {
onCancel=
{
e
=>
{
onCancel=
{
e
=>
{
this
.
setState
({
showModal
:
false
});
this
.
setState
({
showModal
:
false
});
}
}
}
}
footer=
{
footer=
{
null
}
<
div
>
<
Button
type=
"primary"
onClick=
{
e
=>
{
this
.
setState
({
showModal
:
false
,
});
}
}
>
关闭
</
Button
>
</
div
>
}
>
>
<
DetailBox
<
DetailBox
tableModel=
{
tableModel
}
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