Commit 4dde59eb by zhaochengxiang

资产增加更新周期字段

parent 564eb96a
...@@ -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,
}, },
}, },
......
...@@ -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',
}, // },
], ],
}, },
{ {
......
...@@ -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 {
......
...@@ -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')
......
...@@ -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>
{updateTime_str} {updateCycle}
</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}>
......
...@@ -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 />
......
...@@ -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>
......
...@@ -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>
......
...@@ -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>
......
...@@ -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>
......
...@@ -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 {
......
...@@ -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>
......
...@@ -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>
......
...@@ -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>
......
...@@ -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>
......
...@@ -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
......
...@@ -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 });
}} }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment