| | |
| | | posts && posts.length > 0 ? posts.map((p, posIndex) => ( |
| | | <Card.Grid style={gridStyle} hoverable={false} key={p.id}> |
| | | <Row type="flex" gutter={10}> |
| | | <Col> |
| | | <Col style={{ height: 22 }}> |
| | | {/* 岗位名(编辑,删除) */} |
| | | <Dropdown overlay={<Menu> |
| | | <Menu.Item key="1" onClick={() => this.modifyFun(p)}>编辑岗位</Menu.Item> |
| | |
| | | </Dropdown> |
| | | </Col> |
| | | {p.userTrueName && |
| | | <Col> |
| | | <Col style={{ height: 22 }}> |
| | | <Dropdown overlay={<Menu> |
| | | <Menu.Item key="1" onClick={() => this.setCG({ ...p, deptIndex, posIndex })}>撤岗</Menu.Item> |
| | | </Menu>} trigger={['contextMenu']}> |