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
6c0a72f5
Commit
6c0a72f5
authored
Apr 23, 2020
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整数据资产,指标,标准样式
parent
332b613c
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
49 additions
and
19 deletions
+49
-19
config.ts
config/config.ts
+2
-2
global.less
src/global.less
+18
-0
index.tsx
src/pages/assets/index.tsx
+4
-3
style.less
src/pages/assets/style.less
+9
-3
DomainTree.tsx
src/pages/data/dataindicator/components/DomainTree.tsx
+2
-2
index.tsx
src/pages/data/dataindicator/index.tsx
+2
-2
DomainTree.tsx
src/pages/data/datastandard/components/DomainTree.tsx
+2
-2
index.tsx
src/pages/data/datastandard/index.tsx
+2
-2
style.less
src/pages/data/style.less
+8
-3
No files found.
config/config.ts
View file @
6c0a72f5
...
@@ -152,9 +152,9 @@ export default {
...
@@ -152,9 +152,9 @@ 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',
changeOrigin
:
true
,
changeOrigin
:
true
,
},
},
},
},
...
...
src/global.less
View file @
6c0a72f5
...
@@ -66,3 +66,21 @@ ol {
...
@@ -66,3 +66,21 @@ ol {
color: #007bff !important;
color: #007bff !important;
background-color: #0168cf !important;
background-color: #0168cf !important;
}
}
/* 滚动条 */
::-webkit-scrollbar-track-piece {
background-color:#ededed;
}
::-webkit-scrollbar {
width:5px;
height:5px;
}
::-webkit-scrollbar-thumb {
background-color:#bbb;
background-clip:padding-box;
min-height:30px;
}
::-webkit-scrollbar-thumb:hover {
background-color:#bbb;
}
src/pages/assets/index.tsx
View file @
6c0a72f5
import
React
from
'react'
;
import
React
from
'react'
;
import
{
connect
}
from
'dva'
;
import
{
connect
}
from
'dva'
;
import
{
Dispatch
}
from
'redux'
;
import
{
Dispatch
}
from
'redux'
;
import
{
Row
,
Col
,
Card
,
Input
,
Pagination
}
from
'antd'
;
import
{
Row
,
Col
,
Card
,
Input
,
Pagination
,
Divider
}
from
'antd'
;
import
PageHeaderWrapper
from
'@/components/PageHeaderWrapper'
;
import
PageHeaderWrapper
from
'@/components/PageHeaderWrapper'
;
import
{
StateType
}
from
'./model'
;
import
{
StateType
}
from
'./model'
;
...
@@ -114,12 +114,13 @@ class DataAssetsCOM extends React.Component<DataAssetsProps, DataAssetsState> {
...
@@ -114,12 +114,13 @@ class DataAssetsCOM extends React.Component<DataAssetsProps, DataAssetsState> {
);
);
return
(
return
(
<
PageHeaderWrapper
extra=
{
extraContent
}
>
<
PageHeaderWrapper
extra=
{
extraContent
}
>
<
Row
gutter=
{
16
}
>
<
Row
>
<
Col
md=
{
6
}
>
<
Col
md=
{
6
}
>
<
AssetTreeCOM
treeData=
{
treeData
}
onSelect=
{
this
.
getList
}
/>
<
AssetTreeCOM
treeData=
{
treeData
}
onSelect=
{
this
.
getList
}
/>
<
Divider
type=
{
'vertical'
}
/>
</
Col
>
</
Col
>
<
Col
md=
{
18
}
>
<
Col
md=
{
18
}
>
<
Card
bordered=
{
false
}
>
<
Card
bordered=
{
false
}
className=
{
styles
[
'asset-table'
]
}
>
<
AssetListCOM
<
AssetListCOM
loading=
{
loadingList
}
loading=
{
loadingList
}
tableModels=
{
tableModels
}
tableModels=
{
tableModels
}
...
...
src/pages/assets/style.less
View file @
6c0a72f5
...
@@ -5,10 +5,15 @@
...
@@ -5,10 +5,15 @@
font-size: 14px;
font-size: 14px;
}
}
.asset-table:global(.ant-card) {
height: calc(100vh - 176px);
overflow: auto;
}
.asset-tree:global(.ant-card) {
.asset-tree:global(.ant-card) {
min-height: 300px;
height: calc(100vh - 176px);
max-height: calc(100vh - 180px);
overflow: auto;
overflow: auto;
border-right: 1px solid #ededed;
}
}
.extraContentSearch {
.extraContentSearch {
...
@@ -29,4 +34,4 @@
...
@@ -29,4 +34,4 @@
&::after {
&::after {
content: ',';
content: ',';
}
}
}
}
\ No newline at end of file
src/pages/data/dataindicator/components/DomainTree.tsx
View file @
6c0a72f5
...
@@ -140,7 +140,7 @@ class DomainTree extends React.Component<DomainTreeProps, DomainTreeState> {
...
@@ -140,7 +140,7 @@ class DomainTree extends React.Component<DomainTreeProps, DomainTreeState> {
const
expandTreeKeys
=
this
.
getExpandTreeKey
(
treeParent
,
expandTreeKey
);
const
expandTreeKeys
=
this
.
getExpandTreeKey
(
treeParent
,
expandTreeKey
);
return
(
return
(
<
Card
bordered=
{
false
}
>
<
Card
bordered=
{
false
}
className=
{
styles
[
'asset-tree'
]
}
>
<
Row
style=
{
{
marginBottom
:
'16px'
}
}
>
<
Row
style=
{
{
marginBottom
:
'16px'
}
}
>
<
Select
<
number
>
<
Select
<
number
>
loading=
{
loading
.
effects
[
'dataindicator/queryDomain'
]
||
false
}
loading=
{
loading
.
effects
[
'dataindicator/queryDomain'
]
||
false
}
...
@@ -156,7 +156,7 @@ class DomainTree extends React.Component<DomainTreeProps, DomainTreeState> {
...
@@ -156,7 +156,7 @@ class DomainTree extends React.Component<DomainTreeProps, DomainTreeState> {
))
}
))
}
</
Select
>
</
Select
>
</
Row
>
</
Row
>
<
Row
className=
{
styles
[
'asset-tree'
]
}
>
<
Row
>
<
Spin
<
Spin
spinning=
{
spinning=
{
loading
.
effects
[
'dataindicator/queryDomain'
]
||
loading
.
effects
[
'dataindicator/queryDomain'
]
||
...
...
src/pages/data/dataindicator/index.tsx
View file @
6c0a72f5
...
@@ -203,7 +203,7 @@ class DataIndicator extends Component<DataIndicatorProps, DataIndicatorState> {
...
@@ -203,7 +203,7 @@ class DataIndicator extends Component<DataIndicatorProps, DataIndicatorState> {
);
);
return
(
return
(
<
PageHeaderWrapper
extra=
{
extraContent
}
>
<
PageHeaderWrapper
extra=
{
extraContent
}
>
<
Row
gutter=
{
16
}
>
<
Row
>
<
Col
md=
{
6
}
>
<
Col
md=
{
6
}
>
<
DomainTree
<
DomainTree
domainList=
{
domainList
}
domainList=
{
domainList
}
...
@@ -217,7 +217,7 @@ class DataIndicator extends Component<DataIndicatorProps, DataIndicatorState> {
...
@@ -217,7 +217,7 @@ class DataIndicator extends Component<DataIndicatorProps, DataIndicatorState> {
/>
/>
</
Col
>
</
Col
>
<
Col
md=
{
18
}
>
<
Col
md=
{
18
}
>
<
Card
bordered=
{
false
}
>
<
Card
bordered=
{
false
}
className=
{
styles
[
'asset-table'
]
}
>
<
DataList
<
DataList
dataList=
{
pageData
}
dataList=
{
pageData
}
domainList=
{
domainList
}
domainList=
{
domainList
}
...
...
src/pages/data/datastandard/components/DomainTree.tsx
View file @
6c0a72f5
...
@@ -140,7 +140,7 @@ class DomainTree extends React.Component<DomainTreeProps, DomainTreeState> {
...
@@ -140,7 +140,7 @@ class DomainTree extends React.Component<DomainTreeProps, DomainTreeState> {
const
expandTreeKeys
=
this
.
getExpandTreeKey
(
treeParent
,
expandTreeKey
);
const
expandTreeKeys
=
this
.
getExpandTreeKey
(
treeParent
,
expandTreeKey
);
return
(
return
(
<
Card
bordered=
{
false
}
>
<
Card
bordered=
{
false
}
className=
{
styles
[
'asset-tree'
]
}
>
<
Row
style=
{
{
marginBottom
:
'16px'
}
}
>
<
Row
style=
{
{
marginBottom
:
'16px'
}
}
>
<
Select
<
number
>
<
Select
<
number
>
loading=
{
loading
.
effects
[
'dataStandard/queryDomain'
]
||
false
}
loading=
{
loading
.
effects
[
'dataStandard/queryDomain'
]
||
false
}
...
@@ -156,7 +156,7 @@ class DomainTree extends React.Component<DomainTreeProps, DomainTreeState> {
...
@@ -156,7 +156,7 @@ class DomainTree extends React.Component<DomainTreeProps, DomainTreeState> {
))
}
))
}
</
Select
>
</
Select
>
</
Row
>
</
Row
>
<
Row
className=
{
styles
[
'asset-tree'
]
}
>
<
Row
>
<
Spin
<
Spin
spinning=
{
spinning=
{
loading
.
effects
[
'dataStandard/queryDomain'
]
||
loading
.
effects
[
'dataStandard/queryDomain'
]
||
...
...
src/pages/data/datastandard/index.tsx
View file @
6c0a72f5
...
@@ -203,7 +203,7 @@ class DataStandard extends Component<DataStandardProps, DataStandardState> {
...
@@ -203,7 +203,7 @@ class DataStandard extends Component<DataStandardProps, DataStandardState> {
);
);
return
(
return
(
<
PageHeaderWrapper
extra=
{
extraContent
}
>
<
PageHeaderWrapper
extra=
{
extraContent
}
>
<
Row
gutter=
{
16
}
>
<
Row
>
<
Col
md=
{
6
}
>
<
Col
md=
{
6
}
>
<
DomainTree
<
DomainTree
domainList=
{
domainList
}
domainList=
{
domainList
}
...
@@ -217,7 +217,7 @@ class DataStandard extends Component<DataStandardProps, DataStandardState> {
...
@@ -217,7 +217,7 @@ class DataStandard extends Component<DataStandardProps, DataStandardState> {
/>
/>
</
Col
>
</
Col
>
<
Col
md=
{
18
}
>
<
Col
md=
{
18
}
>
<
Card
bordered=
{
false
}
>
<
Card
bordered=
{
false
}
className=
{
styles
[
'asset-table'
]
}
>
<
DataList
<
DataList
dataList=
{
pageData
}
dataList=
{
pageData
}
domainList=
{
domainList
}
domainList=
{
domainList
}
...
...
src/pages/data/style.less
View file @
6c0a72f5
.asset-tree {
.asset-table:global(.ant-card) {
min-height: 300px;
height: calc(100vh - 176px);
max-height: calc(100vh - 180px);
overflow: auto;
overflow: auto;
}
}
.asset-tree:global(.ant-card) {
height: calc(100vh - 176px);
overflow: auto;
border-right: 1px solid #ededed;
}
.asset-list :global(.ant-list-item-action) {
.asset-list :global(.ant-list-item-action) {
text-align: right;
text-align: right;
}
}
...
...
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