|
@@ -18,6 +18,7 @@ class Index extends Component {
|
|
|
params: {},
|
|
|
businessName: '',
|
|
|
reason: '',
|
|
|
+ expireTime:0,
|
|
|
}
|
|
|
this.formSetting = [{
|
|
|
label: '业务标识',
|
|
@@ -56,13 +57,14 @@ class Index extends Component {
|
|
|
}
|
|
|
|
|
|
onOk = () => {
|
|
|
- const { params ,reason} = this.state;
|
|
|
+ const { params ,reason, expireTime} = this.state;
|
|
|
this.props.dispatch({
|
|
|
type: 'template/_appendList',
|
|
|
payload: {
|
|
|
"business":params.business,
|
|
|
"content":params.nameList,
|
|
|
- "reason":reason
|
|
|
+ "reason":reason,
|
|
|
+ "expireTime":expireTime
|
|
|
},
|
|
|
callback: res => {
|
|
|
const { code, data } = res || {}
|
|
@@ -131,6 +133,13 @@ class Index extends Component {
|
|
|
reason,
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ onExpireTimeChange = event => {
|
|
|
+ const expireTime = event.target.value;
|
|
|
+ this.setState({
|
|
|
+ expireTime
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
render () {
|
|
|
const { showModal, onCancel, loading } = this.props
|
|
@@ -154,7 +163,21 @@ class Index extends Component {
|
|
|
<Col span={6} style={{
|
|
|
textAlign: 'right',
|
|
|
lineHeight: '32px',
|
|
|
- }}>追加理由:</Col>
|
|
|
+ }}>过期时间戳 (默认0:代表永久):</Col>
|
|
|
+ <Col span={16}>
|
|
|
+ <Input style={{
|
|
|
+ width: 450,
|
|
|
+ }} value={this.state.expireTime} onChange={this.onExpireTimeChange}></Input>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+ }
|
|
|
+ <br></br>
|
|
|
+ {
|
|
|
+ <Row>
|
|
|
+ <Col span={6} style={{
|
|
|
+ textAlign: 'right',
|
|
|
+ lineHeight: '32px',
|
|
|
+ }}>追加理由(选填):</Col>
|
|
|
<Col span={16}>
|
|
|
<Input style={{
|
|
|
width: 450,
|