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
564eb96a
Commit
564eb96a
authored
May 14, 2020
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除多余功能
parent
77bee8c9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
73 deletions
+19
-73
routes.ts
config/routes.ts
+6
-6
BasicLayout.tsx
src/layouts/BasicLayout.tsx
+3
-3
router.js
src/pages/.umi/router.js
+0
-22
AssetList.tsx
src/pages/assets/components/AssetList.tsx
+0
-32
AssetListHelper.tsx
src/pages/assets/components/AssetListHelper.tsx
+10
-10
No files found.
config/routes.ts
View file @
564eb96a
...
@@ -113,12 +113,12 @@ export default [
...
@@ -113,12 +113,12 @@ export default [
icon
:
'appstore'
,
icon
:
'appstore'
,
component
:
'./user/assets'
,
component
:
'./user/assets'
,
},
},
{
//
{
path
:
'question'
,
//
path: 'question',
name
:
'user-question'
,
//
name: 'user-question',
icon
:
'appstore'
,
//
icon: 'appstore',
component
:
'./user/question'
,
//
component: './user/question',
},
//
},
// {
// {
// path: 'apply',
// path: 'apply',
// name: 'user-apply',
// name: 'user-apply',
...
...
src/layouts/BasicLayout.tsx
View file @
564eb96a
...
@@ -155,9 +155,9 @@ const BasicLayout: React.FC<BasicLayoutProps> = props => {
...
@@ -155,9 +155,9 @@ const BasicLayout: React.FC<BasicLayoutProps> = props => {
dispatch
({
dispatch
({
type
:
'user/fetchCurrent'
,
type
:
'user/fetchCurrent'
,
});
});
dispatch
({
//
dispatch({
type
:
'global/isHaveQuestion'
,
//
type: 'global/isHaveQuestion',
});
//
});
dispatch
({
dispatch
({
type
:
'settings/getSetting'
,
type
:
'settings/getSetting'
,
});
});
...
...
src/pages/.umi/router.js
View file @
564eb96a
...
@@ -291,28 +291,6 @@ const routes = [
...
@@ -291,28 +291,6 @@ const routes = [
exact
:
true
,
exact
:
true
,
},
},
{
{
path
:
'/user/question'
,
name
:
'user-question'
,
icon
:
'appstore'
,
component
:
__IS_BROWSER
?
_dvaDynamic
({
app
:
require
(
'@tmp/dva'
).
getApp
(),
models
:
()
=>
[
import
(
/* webpackChunkName: 'p__user__question__model.ts' */
'/Users/zcx/Desktop/react/hnyc-data-pro/src/pages/user/question/model.ts'
).
then
(
m
=>
{
return
{
namespace
:
'model'
,
...
m
.
default
};
},
),
],
component
:
()
=>
import
(
/* webpackChunkName: "p__user__question" */
'../user/question'
),
LoadingComponent
:
require
(
'/Users/zcx/Desktop/react/hnyc-data-pro/src/components/PageLoading/index'
)
.
default
,
})
:
require
(
'../user/question'
).
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 @
564eb96a
...
@@ -251,33 +251,6 @@ class AssetListCOM extends React.Component<Props, State> {
...
@@ -251,33 +251,6 @@ class AssetListCOM extends React.Component<Props, State> {
<
Text
>
资产名称:
</
Text
>
<
Text
>
资产名称:
</
Text
>
<
span
dangerouslySetInnerHTML=
{
{
__html
:
name
}
}
/>
<
span
dangerouslySetInnerHTML=
{
{
__html
:
name
}
}
/>
</
Col
>
</
Col
>
<
Col
md=
{
6
}
>
<
Text
>
评分:
</
Text
>
{
' '
}
<
Rate
allowHalf
defaultValue=
{
score
}
disabled=
{
rated
}
onChange=
{
(
_score
:
number
)
=>
{
if
(
dispatch
)
{
dispatch
({
type
:
'assets/setTableModelScore'
,
payload
:
{
tableModelId
,
score
:
_score
},
callback
:
(
response
:
any
)
=>
{
if
(
response
!==
null
)
{
notification
.
success
({
message
:
'评分成功'
});
item
.
rated
=
true
;
item
.
score
=
_score
;
// dispatch(
{
type
:
'DataAssets/refreshList'
,
payload
:
tableModels
});
if
(
refreshList
)
{
refreshList
();
}
}
},
});
}
}
}
/>
</
Col
>
</
Row
>
</
Row
>
<
Row
>
<
Row
>
<
Col
md=
{
18
}
>
<
Col
md=
{
18
}
>
...
@@ -381,11 +354,6 @@ class AssetListCOM extends React.Component<Props, State> {
...
@@ -381,11 +354,6 @@ class AssetListCOM extends React.Component<Props, State> {
renderItem=
{
item
=>
(
renderItem=
{
item
=>
(
<
List
.
Item
<
List
.
Item
actions=
{
[
actions=
{
[
<
IconText
type=
"cloud-download"
text=
{
item
.
downloadCount
}
key=
"list-cloud-download"
/>,
<
IconText
type=
"eye"
text=
{
item
.
visitCount
}
key=
"list-eye"
/>,
<
IconText
type=
"eye"
text=
{
item
.
visitCount
}
key=
"list-eye"
/>,
...
getActions
(
item
),
...
getActions
(
item
),
]
}
]
}
...
...
src/pages/assets/components/AssetListHelper.tsx
View file @
564eb96a
...
@@ -24,10 +24,10 @@ const despColumns = [
...
@@ -24,10 +24,10 @@ const despColumns = [
{
key
:
'displayName'
,
dataIndex
:
'displayName'
,
title
:
'显示名称'
},
{
key
:
'displayName'
,
dataIndex
:
'displayName'
,
title
:
'显示名称'
},
{
key
:
'typeName'
,
dataIndex
:
'typeName'
,
title
:
'数据格式'
},
{
key
:
'typeName'
,
dataIndex
:
'typeName'
,
title
:
'数据格式'
},
{
key
:
'remarks'
,
dataIndex
:
'remarks'
,
title
:
'备注'
},
{
key
:
'remarks'
,
dataIndex
:
'remarks'
,
title
:
'备注'
},
{
key
:
'filterAble_Desc'
,
dataIndex
:
'filterAble_Desc'
,
title
:
'是否筛选项'
},
//
{ key: 'filterAble_Desc', dataIndex: 'filterAble_Desc', title: '是否筛选项' },
{
key
:
'filterType_Desc'
,
dataIndex
:
'filterType_Desc'
,
title
:
'筛选类型'
},
//
{ key: 'filterType_Desc', dataIndex: 'filterType_Desc', title: '筛选类型' },
{
key
:
'filterConditonDesc'
,
dataIndex
:
'filterConditonDesc'
,
title
:
'条件描述'
},
//
{ key: 'filterConditonDesc', dataIndex: 'filterConditonDesc', title: '条件描述' },
{
key
:
'filterMatchStandard'
,
dataIndex
:
'filterMatchStandard'
,
title
:
'匹配标准'
},
//
{ key: 'filterMatchStandard', dataIndex: 'filterMatchStandard', title: '匹配标准' },
];
];
export
interface
DataDescProps
{
export
interface
DataDescProps
{
...
@@ -165,15 +165,15 @@ export const DataDetail: React.FunctionComponent<DataDetailProps> = ({
...
@@ -165,15 +165,15 @@ export const DataDetail: React.FunctionComponent<DataDetailProps> = ({
<
Descriptions
.
Item
label=
"所属目录"
>
{
tableModel
.
topic
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"所属目录"
>
{
tableModel
.
topic
}
</
Descriptions
.
Item
>
<
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
.
updateTime_str
}
</
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=
"源系统"
>
{
metaData
.
sourceSystem
}
</
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') && (
<Descriptions.Item label="负责人">{metaData.leaderInfo}</Descriptions.Item>
<Descriptions.Item label="负责人">{metaData.leaderInfo}</Descriptions.Item>
)
}
)}
*/
}
<
Descriptions
.
Item
label=
"描述"
>
<
Descriptions
.
Item
label=
"描述"
>
<
span
<
span
dangerouslySetInnerHTML=
{
{
dangerouslySetInnerHTML=
{
{
...
...
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