Commit c439b88d authored by KeYong's avatar KeYong

修改换流站首页信息展示

parent 8e351250
......@@ -258,6 +258,11 @@ class StationMainten extends Component {
this.setState({ isClick: false }); //将isClick 变成false,将不会执行处理事件
this.model.validate((valid, dataValues) => {
if (valid) {
const { allUserList } = this.state;
const stationChargeName = allUserList.filter(item => item.userId === dataValues.stationChargeUserId )[0].realName;
const safetyChargeName = allUserList.filter(item => item.userId === dataValues.safetyChargeUserId )[0].realName;
dataValues.stationChargeUserName = stationChargeName;
dataValues.safetyChargeUserName = safetyChargeName;
let param = dataValues;
addStationMaintenAction(param).then(
data => {
......@@ -475,6 +480,7 @@ class StationMainten extends Component {
<Row style={{ width: '400px' }}>
<Col span={9}>
<Select data={allUserList}
field="stationChargeName"
className="left-station-select"
disabled={!editable}
value={form.stationChargeUserId}
......@@ -486,6 +492,7 @@ class StationMainten extends Component {
<Col span={15}>
<FormItem label={<span>安全负责人</span>} field="safetyChargeUserName" {...formItemV3Layout}>
<Select data={allUserList}
field="safetyChargeName"
className="left-station-select"
disabled={!editable}
value={form.safetyChargeUserId}
......
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