| | |
| | | |
| | | deletedetail = (cell) => { |
| | | const { card } = this.props |
| | | let _this = this |
| | | let that = this |
| | | |
| | | confirm({ |
| | | content: `确定删除 - ${cell.content} ?`, |
| | |
| | | |
| | | _details = _details.filter(item => item.uuid !== cell.uuid) |
| | | |
| | | _this.plotChange({details: _details}) |
| | | that.plotChange({details: _details}) |
| | | }, |
| | | onCancel() {} |
| | | }) |
| | | } |
| | | |
| | | deleteElem = (type) => { |
| | | let _this = this |
| | | let that = this |
| | | |
| | | confirm({ |
| | | content: '确定删除?', |
| | | onOk() { |
| | | let _subelement = fromJS(_this.props.card.subelement).toJS() |
| | | let _subelement = fromJS(that.props.card.subelement).toJS() |
| | | _subelement = _subelement.filter(_type => _type !== type) |
| | | |
| | | _this.plotChange({subelement: _subelement}) |
| | | that.plotChange({subelement: _subelement}) |
| | | }, |
| | | onCancel() {} |
| | | }) |