Commit cda6c058 authored by zhengjiawei's avatar zhengjiawei

bug

parent 502bdccc
......@@ -475,10 +475,12 @@ class StationMainten extends Component {
</Select>
</FormItem>
<FormItem label={<span>状态</span>} field="status" {...formItemLayout}>
<RadioGroup disabled={!editable} value={form.status} onChange={this.onRadioChange}>
{editable && <RadioGroup disabled={!editable} value={form.status} onChange={this.onRadioChange}>
<Radio value={zero} >启用</Radio>
<Radio value={1} >停用</Radio>
</RadioGroup>
</RadioGroup>}
{!editable && form.status === 0 && <div><Input className="staus-input" required disabled={!editable} value={'启用'} /></div>}
{!editable && form.status === 1 && <div><Input className="staus-input" required disabled={!editable} value={'停用'} /></div>}
</FormItem>
<FormItem label={<span>换流站负责人</span>} field="stationChargeUserName" {...formItemLayout}>
<Row style={{ width: '400px' }}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment