index.jsx 1.75 KB
Newer Older
熊成伟's avatar
熊成伟 committed
1 2 3
import React from 'react';
import './index.less'

熊成伟's avatar
熊成伟 committed
4
const Index = (props) => {
熊成伟's avatar
熊成伟 committed
5
    const {data} = props
熊成伟's avatar
熊成伟 committed
6
    return (
熊成伟's avatar
熊成伟 committed
7
        <div className="auto-step">
熊成伟's avatar
熊成伟 committed
8
            <ul className="auto-step-card">
熊成伟's avatar
熊成伟 committed
9
                {
熊成伟's avatar
熊成伟 committed
10
                    data.map((item, index) => (
熊成伟's avatar
熊成伟 committed
11
                        <li className="auto-step-item" key={index}>
熊成伟's avatar
熊成伟 committed
12 13
                            <div className={`auto-step-item-title ${index === data.length -1 ? 'step-current' : 'step-success'}`}>
                                <div className="auto-step-item-title-name">{item.FLOW_ALIASED}</div>
熊成伟's avatar
熊成伟 committed
14 15
                            </div>
                            <div className={`auto-step-content ${item.s ? '' : 'step-success'}`}>
熊成伟's avatar
熊成伟 committed
16 17 18 19
                                <div className="step-content-wrapper">
                                    <div className="auto-step-content-flow">
                                        <div className="auto-step-content-head">
                                            <img src="/img/test/test-2.png" alt="" className="step-content-head-img"/>
熊成伟's avatar
熊成伟 committed
20
                                            <span>{item.FROMUSER_ALIASED}</span>
熊成伟's avatar
熊成伟 committed
21
                                        </div>
熊成伟's avatar
熊成伟 committed
22
                                      <div className="pos-center">{item.SENDDATE}</div>
熊成伟's avatar
熊成伟 committed
23
                                    </div>
熊成伟's avatar
熊成伟 committed
24
                                    {item.BLYJ && (
熊成伟's avatar
熊成伟 committed
25
                                        <div className="auto-step-content-result">
熊成伟's avatar
熊成伟 committed
26
                                            {item.BLYJ}
熊成伟's avatar
熊成伟 committed
27 28 29
                                        </div>
                                    )}
                                </div>
熊成伟's avatar
熊成伟 committed
30 31 32
                            </div>

                        </li>
熊成伟's avatar
熊成伟 committed
33 34 35
                    ))
                }
            </ul>
熊成伟's avatar
熊成伟 committed
36

熊成伟's avatar
熊成伟 committed
37 38 39 40 41
        </div>
    );
};

export default Index;