import {
DingdingOutlined,
DownOutlined,
EllipsisOutlined,
InfoCircleOutlined,
} from '@ant-design/icons';
import {
Badge,
Button,
Card,
Statistic,
Descriptions,
Divider,
Dropdown,
Menu,
Popover,
Steps,
Table,
Tooltip,
Empty,
} from 'antd';
import { GridContent, PageHeaderWrapper, RouteContext } from '@ant-design/pro-layout';
import React, { Component, Fragment } from 'react';
import { Dispatch } from 'redux';
import classNames from 'classnames';
import { connect } from 'dva';
import { AdvancedProfileData } from './data.d';
import styles from './style.less';
const { Step } = Steps;
const ButtonGroup = Button.Group;
const menu = (
);
const mobileMenu = (
);
const action = (
{({ isMobile }) => {
if (isMobile) {
return (
}
overlay={mobileMenu}
placement="bottomRight"
>
主操作
);
}
return (
);
}}
);
const extra = (
);
const description = (
{({ isMobile }) => (
曲丽丽
XX 服务
2017-07-07
12421
2017-07-07 ~ 2017-08-08
请于两个工作日内确认
)}
);
const desc1 = (
);
const desc2 = (
);
const popoverContent = (
);
const customDot = (
dot: React.ReactNode,
{
status,
}: {
status: string;
},
) => {
if (status === 'process') {
return (
{dot}
);
}
return dot;
};
const operationTabList = [
{
key: 'tab1',
tab: '操作日志一',
},
{
key: 'tab2',
tab: '操作日志二',
},
{
key: 'tab3',
tab: '操作日志三',
},
];
const columns = [
{
title: '操作类型',
dataIndex: 'type',
key: 'type',
},
{
title: '操作人',
dataIndex: 'name',
key: 'name',
},
{
title: '执行结果',
dataIndex: 'status',
key: 'status',
render: (text: string) => {
if (text === 'agree') {
return ;
}
return ;
},
},
{
title: '操作时间',
dataIndex: 'updatedAt',
key: 'updatedAt',
},
{
title: '备注',
dataIndex: 'memo',
key: 'memo',
},
];
interface PAGE_NAME_UPPER_CAMEL_CASEState {
operationKey: string;
tabActiveKey: string;
}
class PAGE_NAME_UPPER_CAMEL_CASE extends Component<
{ loading: boolean; BLOCK_NAME_CAMEL_CASE: AdvancedProfileData; dispatch: Dispatch },
PAGE_NAME_UPPER_CAMEL_CASEState
> {
public state: PAGE_NAME_UPPER_CAMEL_CASEState = {
operationKey: 'tab1',
tabActiveKey: 'detail',
};
componentDidMount() {
const { dispatch } = this.props;
dispatch({
type: 'BLOCK_NAME_CAMEL_CASE/fetchAdvanced',
});
}
onOperationTabChange = (key: string) => {
this.setState({ operationKey: key });
};
onTabChange = (tabActiveKey: string) => {
this.setState({ tabActiveKey });
};
render() {
const { operationKey, tabActiveKey } = this.state;
const { BLOCK_NAME_CAMEL_CASE, loading } = this.props;
const { advancedOperation1, advancedOperation2, advancedOperation3 } = BLOCK_NAME_CAMEL_CASE;
const contentList = {
tab1: (
),
tab2: (
),
tab3: (
),
};
return (
{({ isMobile }) => (
)}
付小小
32943898021309809423
3321944288191034921
18112345678
曲丽丽 18100000000 浙江省杭州市西湖区黄姑山路工专路交叉路口
725
2017-08-08
某某数据
}
>
725
2017-08-08
信息组
林东东
1234567
XX公司 - YY部
2017-08-08
这段描述很长很长很长很长很长很长很长很长很长很长很长很长很长很长...
Citrullus lanatus (Thunb.) Matsum. et
Nakai一年生蔓生藤本;茎、枝粗壮,具明显的棱。卷须较粗..
付小小
1234568
{contentList[operationKey]}
);
}
}
export default connect(
({
BLOCK_NAME_CAMEL_CASE,
loading,
}: {
BLOCK_NAME_CAMEL_CASE: AdvancedProfileData;
loading: {
effects: { [key: string]: boolean };
};
}) => ({
BLOCK_NAME_CAMEL_CASE,
loading: loading.effects['BLOCK_NAME_CAMEL_CASE/fetchAdvanced'],
}),
)(PAGE_NAME_UPPER_CAMEL_CASE);