Success.js 2.76 KB
Newer Older
陈帅's avatar
陈帅 committed
1
import React, { Fragment } from 'react';
2
import { Button, Row, Col, Icon, Steps, Card } from 'antd';
niko's avatar
niko committed
3
import Result from 'components/Result';
愚道's avatar
愚道 committed
4
import PageHeaderLayout from '../layouts/PageHeaderLayout';
5

afc163's avatar
afc163 committed
6
const { Step } = Steps;
7 8

const desc1 = (
jim's avatar
jim committed
9 10 11 12 13 14 15 16
  <div
    style={{
      fontSize: 12,
      color: 'rgba(0, 0, 0, 0.45)',
      position: 'relative',
      left: 42,
    }}
  >
ddcat1115's avatar
ddcat1115 committed
17
    <div style={{ margin: '8px 0 4px' }}>
陈帅's avatar
陈帅 committed
18 19
      曲丽丽
      <Icon style={{ marginLeft: 8 }} type="dingding-o" />
20 21 22 23 24 25
    </div>
    <div>2016-12-12 12:32</div>
  </div>
);

const desc2 = (
ddcat1115's avatar
ddcat1115 committed
26
  <div style={{ fontSize: 12, position: 'relative', left: 42 }}>
ddcat1115's avatar
ddcat1115 committed
27
    <div style={{ margin: '8px 0 4px' }}>
陈帅's avatar
陈帅 committed
28 29
      周毛毛
      <Icon type="dingding-o" style={{ color: '#00A0E9', marginLeft: 8 }} />
30
    </div>
jim's avatar
jim committed
31 32 33
    <div>
      <a href="">催一下</a>
    </div>
34 35 36 37
  </div>
);

const extra = (
陈帅's avatar
陈帅 committed
38
  <Fragment>
jim's avatar
jim committed
39 40 41 42 43 44 45 46
    <div
      style={{
        fontSize: 16,
        color: 'rgba(0, 0, 0, 0.85)',
        fontWeight: '500',
        marginBottom: 20,
      }}
    >
47 48
      项目名称
    </div>
ddcat1115's avatar
ddcat1115 committed
49 50 51 52 53 54 55 56 57 58 59 60 61
    <Row style={{ marginBottom: 16 }}>
      <Col xs={24} sm={12} md={12} lg={12} xl={6}>
        <span style={{ color: 'rgba(0, 0, 0, 0.85)' }}>项目 ID</span>
        23421
      </Col>
      <Col xs={24} sm={12} md={12} lg={12} xl={6}>
        <span style={{ color: 'rgba(0, 0, 0, 0.85)' }}>负责人</span>
        曲丽丽
      </Col>
      <Col xs={24} sm={24} md={24} lg={24} xl={12}>
        <span style={{ color: 'rgba(0, 0, 0, 0.85)' }}>生效时间</span>
        2016-12-12 ~ 2017-12-12
      </Col>
62
    </Row>
ddcat1115's avatar
ddcat1115 committed
63 64 65 66 67
    <Steps style={{ marginLeft: -42, width: 'calc(100% + 84px)' }} progressDot current={1}>
      <Step title={<span style={{ fontSize: 14 }}>创建项目</span>} description={desc1} />
      <Step title={<span style={{ fontSize: 14 }}>部门初审</span>} description={desc2} />
      <Step title={<span style={{ fontSize: 14 }}>财务复核</span>} />
      <Step title={<span style={{ fontSize: 14 }}>完成</span>} />
68
    </Steps>
陈帅's avatar
陈帅 committed
69
  </Fragment>
70 71 72
);

const actions = (
陈帅's avatar
陈帅 committed
73
  <Fragment>
afc163's avatar
afc163 committed
74 75 76
    <Button type="primary">返回列表</Button>
    <Button>查看项目</Button>
    <Button> </Button>
陈帅's avatar
陈帅 committed
77
  </Fragment>
78 79 80 81
);

export default () => (
  <PageHeaderLayout>
82
    <Card bordered={false}>
83 84 85 86 87 88 89 90 91
      <Result
        type="success"
        title="提交成功"
        description="提交结果页用于反馈一系列操作任务的处理结果,
        如果仅是简单操作,使用 Message 全局提示反馈即可。
        本文字区域可以展示简单的补充说明,如果有类似展示
        “单据”的需求,下面这个灰色区域可以呈现比较复杂的内容。"
        extra={extra}
        actions={actions}
ddcat1115's avatar
ddcat1115 committed
92
        style={{ marginTop: 48, marginBottom: 16 }}
93 94 95 96
      />
    </Card>
  </PageHeaderLayout>
);