Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hnyc-data-pro
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-pro
Commits
4dde59eb
Commit
4dde59eb
authored
Jun 10, 2020
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产增加更新周期字段
parent
564eb96a
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
31 additions
and
38 deletions
+31
-38
config.ts
config/config.ts
+2
-1
routes.ts
config/routes.ts
+6
-6
global.less
src/global.less
+0
-3
router.js
src/pages/.umi/router.js
+0
-22
AssetList.tsx
src/pages/assets/components/AssetList.tsx
+6
-3
AssetListHelper.tsx
src/pages/assets/components/AssetListHelper.tsx
+4
-2
index.tsx
src/pages/assets/index.tsx
+1
-0
index.tsx
src/pages/data/dataindicator/index.tsx
+1
-0
index.tsx
src/pages/data/dataquality/index.tsx
+3
-0
index.tsx
src/pages/data/datastandard/index.tsx
+1
-0
HomeHelper.js
src/pages/home/HomeHelper.js
+1
-1
index.tsx
src/pages/manage/categorieSearch/index.tsx
+1
-0
index.tsx
src/pages/manage/commonSearch/index.tsx
+1
-0
index.tsx
src/pages/user/apply/index.tsx
+1
-0
index.tsx
src/pages/user/assets/index.tsx
+1
-0
index.tsx
src/pages/user/question/index.tsx
+1
-0
index.tsx
src/pages/user/subscrible/index.tsx
+1
-0
No files found.
config/config.ts
View file @
4dde59eb
...
@@ -152,9 +152,10 @@ export default {
...
@@ -152,9 +152,10 @@ export default {
*/
*/
proxy
:
{
proxy
:
{
'/api'
:
{
'/api'
:
{
target
:
'http://139.198.126.96:9011'
,
//
target: 'http://139.198.126.96:9011',
// target: 'http://192.168.0.220',
// target: 'http://192.168.0.220',
// target: 'http://139.198.127.54:18392',
// target: 'http://139.198.127.54:18392',
target
:
'http://192.168.0.216:8762'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
},
},
},
},
...
...
config/routes.ts
View file @
4dde59eb
...
@@ -88,12 +88,12 @@ export default [
...
@@ -88,12 +88,12 @@ export default [
icon
:
'appstore'
,
icon
:
'appstore'
,
component
:
'./data/datastandard'
,
component
:
'./data/datastandard'
,
},
},
{
//
{
path
:
'./dataquality'
,
//
path: './dataquality',
name
:
'dataquality'
,
//
name: 'dataquality',
icon
:
'appstore'
,
//
icon: 'appstore',
component
:
'./data/dataquality'
,
//
component: './data/dataquality',
},
//
},
],
],
},
},
{
{
...
...
src/global.less
View file @
4dde59eb
...
@@ -70,12 +70,10 @@ ol {
...
@@ -70,12 +70,10 @@ ol {
.ant-modal-body {
.ant-modal-body {
.ant-descriptions-item-label, .ant-table-column-title {
.ant-descriptions-item-label, .ant-table-column-title {
color: #333 !important;
color: #333 !important;
font-size: 12px !important;
}
}
.ant-descriptions-item-content, .ant-table-tbody {
.ant-descriptions-item-content, .ant-table-tbody {
color: #666 !important;
color: #666 !important;
font-size: 10px !important;
}
}
.ant-tabs-nav {
.ant-tabs-nav {
...
@@ -85,7 +83,6 @@ ol {
...
@@ -85,7 +83,6 @@ ol {
}
}
.ant-modal
/* 滚动条 */
/* 滚动条 */
::-webkit-scrollbar-track-piece {
::-webkit-scrollbar-track-piece {
...
...
src/pages/.umi/router.js
View file @
4dde59eb
...
@@ -210,28 +210,6 @@ const routes = [
...
@@ -210,28 +210,6 @@ const routes = [
exact
:
true
,
exact
:
true
,
},
},
{
{
path
:
'/manage/dataquality'
,
name
:
'dataquality'
,
icon
:
'appstore'
,
component
:
__IS_BROWSER
?
_dvaDynamic
({
app
:
require
(
'@tmp/dva'
).
getApp
(),
models
:
()
=>
[
import
(
/* webpackChunkName: 'p__data__dataquality__model.ts' */
'/Users/zcx/Desktop/react/hnyc-data-pro/src/pages/data/dataquality/model.ts'
).
then
(
m
=>
{
return
{
namespace
:
'model'
,
...
m
.
default
};
},
),
],
component
:
()
=>
import
(
/* webpackChunkName: "p__data__dataquality" */
'../data/dataquality'
),
LoadingComponent
:
require
(
'/Users/zcx/Desktop/react/hnyc-data-pro/src/components/PageLoading/index'
)
.
default
,
})
:
require
(
'../data/dataquality'
).
default
,
exact
:
true
,
},
{
component
:
()
=>
component
:
()
=>
React
.
createElement
(
React
.
createElement
(
require
(
'/Users/zcx/Desktop/react/hnyc-data-pro/node_modules/umi-build-dev/lib/plugins/404/NotFound.js'
)
require
(
'/Users/zcx/Desktop/react/hnyc-data-pro/node_modules/umi-build-dev/lib/plugins/404/NotFound.js'
)
...
...
src/pages/assets/components/AssetList.tsx
View file @
4dde59eb
...
@@ -48,6 +48,8 @@ export interface TableModel {
...
@@ -48,6 +48,8 @@ export interface TableModel {
rated
?:
boolean
;
rated
?:
boolean
;
tableIdInSource
?:
string
;
tableIdInSource
?:
string
;
processId
?:
string
|
undefined
;
processId
?:
string
|
undefined
;
updateCycle
:
string
;
dataCycle
:
string
;
}
}
export
interface
AssetListStateType
{
export
interface
AssetListStateType
{
...
@@ -221,6 +223,7 @@ class AssetListCOM extends React.Component<Props, State> {
...
@@ -221,6 +223,7 @@ class AssetListCOM extends React.Component<Props, State> {
expireDate
,
expireDate
,
score
,
score
,
rated
,
rated
,
updateCycle
},
},
item
,
item
,
}:
{
}:
{
...
@@ -234,8 +237,8 @@ class AssetListCOM extends React.Component<Props, State> {
...
@@ -234,8 +237,8 @@ class AssetListCOM extends React.Component<Props, State> {
{
departMent
}
{
departMent
}
</
Col
>
</
Col
>
<
Col
md=
{
6
}
>
<
Col
md=
{
6
}
>
<
Text
>
更新
时间
:
</
Text
>
<
Text
>
更新
周期
:
</
Text
>
{
update
Time_str
}
{
update
Cycle
}
</
Col
>
</
Col
>
<
Col
md=
{
6
}
>
<
Col
md=
{
6
}
>
<
Text
>
发布时间:
</
Text
>
<
Text
>
发布时间:
</
Text
>
...
@@ -254,7 +257,7 @@ class AssetListCOM extends React.Component<Props, State> {
...
@@ -254,7 +257,7 @@ class AssetListCOM extends React.Component<Props, State> {
</
Row
>
</
Row
>
<
Row
>
<
Row
>
<
Col
md=
{
18
}
>
<
Col
md=
{
18
}
>
<
Text
>
资产
摘要
:
</
Text
>
<
Text
>
资产
备注
:
</
Text
>
<
span
dangerouslySetInnerHTML=
{
{
__html
:
remarks
}
}
/>
<
span
dangerouslySetInnerHTML=
{
{
__html
:
remarks
}
}
/>
</
Col
>
</
Col
>
<
Col
md=
{
6
}
>
<
Col
md=
{
6
}
>
...
...
src/pages/assets/components/AssetListHelper.tsx
View file @
4dde59eb
...
@@ -68,6 +68,7 @@ export const DataDesc: React.FunctionComponent<DataDescProps> = ({ dataDesc }) =
...
@@ -68,6 +68,7 @@ export const DataDesc: React.FunctionComponent<DataDescProps> = ({ dataDesc }) =
pageSize=
{
pageSize
}
pageSize=
{
pageSize
}
defaultCurrent=
{
1
}
defaultCurrent=
{
1
}
total=
{
dataDesc
.
columns
.
length
}
total=
{
dataDesc
.
columns
.
length
}
showTotal=
{
total
=>
`共 ${total} 条`
}
/>
/>
)
}
)
}
</
Fragment
>
</
Fragment
>
...
@@ -166,9 +167,9 @@ export const DataDetail: React.FunctionComponent<DataDetailProps> = ({
...
@@ -166,9 +167,9 @@ export const DataDetail: React.FunctionComponent<DataDetailProps> = ({
<
Descriptions
.
Item
label=
"所属系统"
>
{
tableModel
.
system
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"所属系统"
>
{
tableModel
.
system
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"发布时间"
>
{
tableModel
.
createTime_str
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"发布时间"
>
{
tableModel
.
createTime_str
}
</
Descriptions
.
Item
>
{
/* <Descriptions.Item label="资产密级">{tableModel.assetStrictLevel_}</Descriptions.Item> */
}
{
/* <Descriptions.Item label="资产密级">{tableModel.assetStrictLevel_}</Descriptions.Item> */
}
<
Descriptions
.
Item
label=
"更新
时间"
>
{
tableModel
.
updateTime_str
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"更新
周期"
>
{
tableModel
.
updateCycle
}
</
Descriptions
.
Item
>
{
/* <Descriptions.Item label="表内容及业务含义">{metaData.business}</Descriptions.Item> */
}
{
/* <Descriptions.Item label="表内容及业务含义">{metaData.business}</Descriptions.Item> */
}
<
Descriptions
.
Item
label=
"
源系统"
>
{
metaData
.
sourceSystem
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"
数据周期"
>
{
tableModel
.
dataCycle
}
</
Descriptions
.
Item
>
{
/* <Descriptions.Item label="数据更新特点">{metaData.updateFeature}</Descriptions.Item> */
}
{
/* <Descriptions.Item label="数据更新特点">{metaData.updateFeature}</Descriptions.Item> */
}
{
/* <Descriptions.Item label="主题域">{metaData.domain}</Descriptions.Item> */
}
{
/* <Descriptions.Item label="主题域">{metaData.domain}</Descriptions.Item> */
}
{
/* {metaData.hasOwnProperty('leaderInfo') && (
{
/* {metaData.hasOwnProperty('leaderInfo') && (
...
@@ -312,6 +313,7 @@ const ApplyDescFunc: React.FunctionComponent<ApplyDescProps> = ({ dataDesc, form
...
@@ -312,6 +313,7 @@ const ApplyDescFunc: React.FunctionComponent<ApplyDescProps> = ({ dataDesc, form
pageSize=
{
pageSize
}
pageSize=
{
pageSize
}
defaultCurrent=
{
1
}
defaultCurrent=
{
1
}
total=
{
dataDesc
.
columns
.
length
}
total=
{
dataDesc
.
columns
.
length
}
showTotal=
{
total
=>
`共 ${total} 条`
}
/>
/>
)
}
)
}
<
Divider
/>
<
Divider
/>
...
...
src/pages/assets/index.tsx
View file @
4dde59eb
...
@@ -142,6 +142,7 @@ class DataAssetsCOM extends React.Component<DataAssetsProps, DataAssetsState> {
...
@@ -142,6 +142,7 @@ class DataAssetsCOM extends React.Component<DataAssetsProps, DataAssetsState> {
pageSize=
{
pageSize
}
pageSize=
{
pageSize
}
defaultCurrent=
{
1
}
defaultCurrent=
{
1
}
total=
{
tableModelNum
}
total=
{
tableModelNum
}
showTotal=
{
total
=>
`共 ${total} 条`
}
/>
/>
</
Card
>
</
Card
>
</
Col
>
</
Col
>
...
...
src/pages/data/dataindicator/index.tsx
View file @
4dde59eb
...
@@ -243,6 +243,7 @@ class DataIndicator extends Component<DataIndicatorProps, DataIndicatorState> {
...
@@ -243,6 +243,7 @@ class DataIndicator extends Component<DataIndicatorProps, DataIndicatorState> {
pageSize=
{
pageSize
}
pageSize=
{
pageSize
}
defaultCurrent=
{
1
}
defaultCurrent=
{
1
}
total=
{
totalPage
}
total=
{
totalPage
}
showTotal=
{
total
=>
`共 ${total} 条`
}
/>
/>
</
Card
>
</
Card
>
</
Col
>
</
Col
>
...
...
src/pages/data/dataquality/index.tsx
View file @
4dde59eb
...
@@ -409,6 +409,7 @@ class DataQuality extends React.Component<Props, State> {
...
@@ -409,6 +409,7 @@ class DataQuality extends React.Component<Props, State> {
pageSize=
{
errorPage
.
pageSize
}
pageSize=
{
errorPage
.
pageSize
}
defaultCurrent=
{
1
}
defaultCurrent=
{
1
}
total=
{
errorTotal
}
total=
{
errorTotal
}
showTotal=
{
total
=>
`共 ${total} 条`
}
/>
/>
</
Card
>
</
Card
>
</
Col
>
</
Col
>
...
@@ -452,6 +453,7 @@ class DataQuality extends React.Component<Props, State> {
...
@@ -452,6 +453,7 @@ class DataQuality extends React.Component<Props, State> {
pageSize=
{
goodPage
.
pageSize
}
pageSize=
{
goodPage
.
pageSize
}
defaultCurrent=
{
1
}
defaultCurrent=
{
1
}
total=
{
goodTotal
}
total=
{
goodTotal
}
showTotal=
{
total
=>
`共 ${total} 条`
}
/>
/>
</
Card
>
</
Card
>
</
Col
>
</
Col
>
...
@@ -495,6 +497,7 @@ class DataQuality extends React.Component<Props, State> {
...
@@ -495,6 +497,7 @@ class DataQuality extends React.Component<Props, State> {
pageSize=
{
neverPage
.
pageSize
}
pageSize=
{
neverPage
.
pageSize
}
defaultCurrent=
{
1
}
defaultCurrent=
{
1
}
total=
{
neverTotal
}
total=
{
neverTotal
}
showTotal=
{
total
=>
`共 ${total} 条`
}
/>
/>
</
Card
>
</
Card
>
</
Col
>
</
Col
>
...
...
src/pages/data/datastandard/index.tsx
View file @
4dde59eb
...
@@ -243,6 +243,7 @@ class DataStandard extends Component<DataStandardProps, DataStandardState> {
...
@@ -243,6 +243,7 @@ class DataStandard extends Component<DataStandardProps, DataStandardState> {
pageSize=
{
pageSize
}
pageSize=
{
pageSize
}
defaultCurrent=
{
1
}
defaultCurrent=
{
1
}
total=
{
totalPage
}
total=
{
totalPage
}
showTotal=
{
total
=>
`共 ${total} 条`
}
/>
/>
</
Card
>
</
Card
>
</
Col
>
</
Col
>
...
...
src/pages/home/HomeHelper.js
View file @
4dde59eb
...
@@ -135,7 +135,7 @@ const homeMenu = [
...
@@ -135,7 +135,7 @@ const homeMenu = [
},
},
{
title
:
'数据指标'
,
img
:
menuImg3
,
url
:
'/manage/dataindicator'
},
{
title
:
'数据指标'
,
img
:
menuImg3
,
url
:
'/manage/dataindicator'
},
{
title
:
'数据标准'
,
img
:
menuImg4
,
url
:
'/manage/datastandard'
},
{
title
:
'数据标准'
,
img
:
menuImg4
,
url
:
'/manage/datastandard'
},
{
title
:
'数据质量'
,
img
:
menuImg5
,
url
:
'/manage/dataquality'
},
//
{ title: '数据质量', img: menuImg5, url: '/manage/dataquality' },
];
];
export
class
HomeMenu
extends
Component
{
export
class
HomeMenu
extends
Component
{
...
...
src/pages/manage/categorieSearch/index.tsx
View file @
4dde59eb
...
@@ -230,6 +230,7 @@ class CategoriesSearch extends React.Component<CategoriesSearchProps, Categories
...
@@ -230,6 +230,7 @@ class CategoriesSearch extends React.Component<CategoriesSearchProps, Categories
pageSize=
{
pageSize
}
pageSize=
{
pageSize
}
defaultCurrent=
{
1
}
defaultCurrent=
{
1
}
total=
{
tableModelTotal
}
total=
{
tableModelTotal
}
showTotal=
{
total
=>
`共 ${total} 条`
}
/>
/>
</
Spin
>
</
Spin
>
</
Card
>
</
Card
>
...
...
src/pages/manage/commonSearch/index.tsx
View file @
4dde59eb
...
@@ -250,6 +250,7 @@ class SearchResult extends React.Component<SearchResultProps, SearchResultState>
...
@@ -250,6 +250,7 @@ class SearchResult extends React.Component<SearchResultProps, SearchResultState>
pageSize=
{
pageSize
}
pageSize=
{
pageSize
}
defaultCurrent=
{
1
}
defaultCurrent=
{
1
}
total=
{
tableModelTotal
}
total=
{
tableModelTotal
}
showTotal=
{
total
=>
`共 ${total} 条`
}
/>
/>
</
Spin
>
</
Spin
>
</
Card
>
</
Card
>
...
...
src/pages/user/apply/index.tsx
View file @
4dde59eb
...
@@ -83,6 +83,7 @@ class DataAssetsCOM extends React.Component<Props, State> {
...
@@ -83,6 +83,7 @@ class DataAssetsCOM extends React.Component<Props, State> {
pageSize=
{
pageSize
}
pageSize=
{
pageSize
}
defaultCurrent=
{
1
}
defaultCurrent=
{
1
}
total=
{
tableModelNum
}
total=
{
tableModelNum
}
showTotal=
{
total
=>
`共 ${total} 条`
}
/>
/>
</
Card
>
</
Card
>
</
Col
>
</
Col
>
...
...
src/pages/user/assets/index.tsx
View file @
4dde59eb
...
@@ -90,6 +90,7 @@ class DataAssetsCOM extends React.Component<Props, State> {
...
@@ -90,6 +90,7 @@ class DataAssetsCOM extends React.Component<Props, State> {
pageSize=
{
pageSize
}
pageSize=
{
pageSize
}
defaultCurrent=
{
1
}
defaultCurrent=
{
1
}
total=
{
tableModelNum
}
total=
{
tableModelNum
}
showTotal=
{
total
=>
`共 ${total} 条`
}
/>
/>
</
Card
>
</
Card
>
</
Col
>
</
Col
>
...
...
src/pages/user/question/index.tsx
View file @
4dde59eb
...
@@ -219,6 +219,7 @@ class UserQuestion extends React.Component<UserQuestionProps, UserQuestionState>
...
@@ -219,6 +219,7 @@ class UserQuestion extends React.Component<UserQuestionProps, UserQuestionState>
pageSize=
{
pageSize
}
pageSize=
{
pageSize
}
current=
{
pageNum
}
current=
{
pageNum
}
total=
{
total
}
total=
{
total
}
showTotal=
{
total
=>
`共 ${total} 条`
}
defaultCurrent=
{
1
}
defaultCurrent=
{
1
}
showSizeChanger
showSizeChanger
showQuickJumper
showQuickJumper
...
...
src/pages/user/subscrible/index.tsx
View file @
4dde59eb
...
@@ -107,6 +107,7 @@ class UserSubscrible extends React.Component<UserSubscribleProps, UserSubscrible
...
@@ -107,6 +107,7 @@ class UserSubscrible extends React.Component<UserSubscribleProps, UserSubscrible
current=
{
pageNum
}
current=
{
pageNum
}
defaultCurrent=
{
1
}
defaultCurrent=
{
1
}
total=
{
tableModel
.
length
}
total=
{
tableModel
.
length
}
showTotal=
{
total
=>
`共 ${total} 条`
}
onChange=
{
(
_pageNum
:
number
,
_pageSize
:
number
|
undefined
)
=>
{
onChange=
{
(
_pageNum
:
number
,
_pageSize
:
number
|
undefined
)
=>
{
this
.
setState
({
pageNum
:
_pageNum
,
pageSize
:
_pageSize
||
10
});
this
.
setState
({
pageNum
:
_pageNum
,
pageSize
:
_pageSize
||
10
});
}
}
}
}
...
...
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