Commit 6970a539 authored by 王珂's avatar 王珂

修改bug

parent 7510808d
......@@ -113,11 +113,14 @@ class Equipment extends Component {
} else {
this.setState({ equipClassify: val });
}
if (val) {
let searchParam = [{ name: type, value: val, type: 'LIKE' }];
searchParam.current = 0;
this.getEquipmentListData(searchParam);
}
// if (val) {
// let searchParam = [{ name: type, value: val, type: 'LIKE' }];
// searchParam.current = 0;
// this.getEquipmentListData(searchParam);
// }
let searchParam = [{ name: type, value: val, type: 'LIKE' }];
searchParam.current = 0;
this.getEquipmentListData(searchParam);
}
onRowClick = record => {
......@@ -214,6 +217,11 @@ class Equipment extends Component {
return;
}
if (selectedRowKeys.length !== 1) {
AmosAlert.warning('提示', '请选择一条数据');
return;
}
let equipId = selectedRowKeys;
if (selectedRowKeys.length > 1) {
equipId = selectedRowKeys[selectedRowKeys.length - 1];
......
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