|
@ -276,21 +276,21 @@ function OutNvrMgm(props) { |
|
|
title: "设备名称", |
|
|
title: "设备名称", |
|
|
dataIndex: "name", |
|
|
dataIndex: "name", |
|
|
align: "center", |
|
|
align: "center", |
|
|
width: 150, |
|
|
|
|
|
|
|
|
width: 220, |
|
|
ellipsis: true |
|
|
ellipsis: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: "区域", |
|
|
title: "区域", |
|
|
dataIndex: "area_name", |
|
|
dataIndex: "area_name", |
|
|
align: "center", |
|
|
align: "center", |
|
|
width: 150, |
|
|
|
|
|
|
|
|
width: 220, |
|
|
ellipsis: true |
|
|
ellipsis: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: "所属车场", |
|
|
title: "所属车场", |
|
|
dataIndex: "road_name", |
|
|
dataIndex: "road_name", |
|
|
align: "center", |
|
|
align: "center", |
|
|
width: 150, |
|
|
|
|
|
|
|
|
width: 200, |
|
|
ellipsis: true |
|
|
ellipsis: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -306,7 +306,7 @@ function OutNvrMgm(props) { |
|
|
title: "国际编号", |
|
|
title: "国际编号", |
|
|
dataIndex: "standard_code", |
|
|
dataIndex: "standard_code", |
|
|
align: "center", |
|
|
align: "center", |
|
|
width: 150, |
|
|
|
|
|
|
|
|
width: 250, |
|
|
ellipsis: true |
|
|
ellipsis: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -345,7 +345,7 @@ function OutNvrMgm(props) { |
|
|
title: "更新时间", |
|
|
title: "更新时间", |
|
|
dataIndex: "update_time", |
|
|
dataIndex: "update_time", |
|
|
align: "center", |
|
|
align: "center", |
|
|
width: 150, |
|
|
|
|
|
|
|
|
width: 220, |
|
|
ellipsis: true |
|
|
ellipsis: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -444,7 +444,11 @@ function OutNvrMgm(props) { |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let reg=/^[1-9]\d*$/ |
|
|
|
|
|
if(!reg.test(values.standard_code)&&values.standard_code){ |
|
|
|
|
|
message.warning("国标编号为纯数字") |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
console.log(values, rowData?.id); |
|
|
console.log(values, rowData?.id); |
|
|
ajax[rowData?.id ? "doEditOutNvr" : "doAddOutNvr"](values).then( |
|
|
ajax[rowData?.id ? "doEditOutNvr" : "doAddOutNvr"](values).then( |
|
|
(res) => { |
|
|
(res) => { |
|
@ -452,6 +456,7 @@ function OutNvrMgm(props) { |
|
|
message.success(res.message); |
|
|
message.success(res.message); |
|
|
// setPageInfo({ ...pageInfo, ...{ pn: 1 } }); |
|
|
// setPageInfo({ ...pageInfo, ...{ pn: 1 } }); |
|
|
setVisible(false); |
|
|
setVisible(false); |
|
|
|
|
|
form.resetFields(); |
|
|
setIsAjax(!isAjax); |
|
|
setIsAjax(!isAjax); |
|
|
} else { |
|
|
} else { |
|
|
message.error(res.message); |
|
|
message.error(res.message); |
|
@ -777,7 +782,7 @@ function OutNvrMgm(props) { |
|
|
name={"standard_code"} |
|
|
name={"standard_code"} |
|
|
rules={[{ required: true, message: "国标编号不能为空" }]} |
|
|
rules={[{ required: true, message: "国标编号不能为空" }]} |
|
|
> |
|
|
> |
|
|
<Input autoComplete="off" /> |
|
|
|
|
|
|
|
|
<Input autoComplete="off" maxLength={30}/> |
|
|
</Form.Item> |
|
|
</Form.Item> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|