trunk/pc4mobx/organization/public/tree/standard_common.jsx

27 lines
703 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { Component } from "react";
import './node.less'
export default class StandardCommon extends Component {
render() {
const {empName,job,label,onDuty,prepared} = this.props.data;
return (
<div className="common-content">
<div className="info">
<img src={require('../../images/img_1.png')} />
<div><span>{empName}</span><div>{label}/{job}</div></div>
</div>
<div className="detail">
<span>编制 {prepared}</span>
<span>在岗 {onDuty}</span>
</div>
</div>
)
}
}