隐患整改记录确认
This commit is contained in:
parent
33de5ca8f6
commit
f8f1b95f21
@ -38,7 +38,23 @@ class SK022ShowPrint extends React.Component {
|
|||||||
if (typeof this.props.data.onCancel != "undefined" && typeof this.props.data.onCancel == 'function')
|
if (typeof this.props.data.onCancel != "undefined" && typeof this.props.data.onCancel == 'function')
|
||||||
this.props.data.onCancel();
|
this.props.data.onCancel();
|
||||||
}
|
}
|
||||||
|
onTableBtnAgree() {
|
||||||
|
this.props.dispatch({
|
||||||
|
type: 'app/getDataByPost',
|
||||||
|
url: 'SK/SKHiddenDangerRectifyRecord/IdentityUpdate',
|
||||||
|
payload: {
|
||||||
|
ID: this.props.data.id,
|
||||||
|
TaskID: this.props.data.TaskID,
|
||||||
|
},
|
||||||
|
onComplete: (ret) => {
|
||||||
|
if (ret) {
|
||||||
|
message.success('确认成功!');
|
||||||
|
this.setState({ BtnAgreeDisplay: 'none' })
|
||||||
|
this.BtnClose();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
loadData = (dataId, taskID) => {
|
loadData = (dataId, taskID) => {
|
||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
@ -108,6 +124,7 @@ class SK022ShowPrint extends React.Component {
|
|||||||
pageStyle=".printDIV { padding:0 40px;} img{width :120px}"
|
pageStyle=".printDIV { padding:0 40px;} img{width :120px}"
|
||||||
/>
|
/>
|
||||||
<Button style={{ marginLeft: '8px', display: data && data.STATUS === 30 ? "inline" : "none" }} onClick={() => this.onTableBtnExport()} icon="export" >导出</Button>
|
<Button style={{ marginLeft: '8px', display: data && data.STATUS === 30 ? "inline" : "none" }} onClick={() => this.onTableBtnExport()} icon="export" >导出</Button>
|
||||||
|
<Button type="primary" style={{ marginLeft: '8px', display: data && data.STATUS === 21 ? "inline" : "none" }} onClick={() => this.onTableBtnAgree()} icon="check" >确认</Button>
|
||||||
</div>
|
</div>
|
||||||
<div ref={el => (this.componentRef = el)} style={{ padding: '20px' }} id={'tableId' + this.props.data.id}>
|
<div ref={el => (this.componentRef = el)} style={{ padding: '20px' }} id={'tableId' + this.props.data.id}>
|
||||||
<h1 style={{ textAlign: 'center', margin: '15px' }}>隐患整改记录</h1>
|
<h1 style={{ textAlign: 'center', margin: '15px' }}>隐患整改记录</h1>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user