Commit 26ff28d4 authored by zhengjiangtao's avatar zhengjiangtao

CSFAS-941【消防指挥】安全执行>隐患排查,巡检点巡检记录页面,按状态/人员/内容查询功能失效(附图)

parent b597bb79
......@@ -3,3 +3,4 @@ lib
libs
*.js
*.md
*.scss
......@@ -51,7 +51,19 @@ class XJCheckSearch extends Component {
onSelectedChange = (value, type) => {
let { searchParam } = this.state;
searchParam[type] = value;
if ( type === 'status') {
if ( '合格' === value) {
searchParam[type] = '1';
} else if ('不合格' === value) {
searchParam[type] = '2';
} else {
searchParam[type] = '';
}
} else if (type === 'userID') {
searchParam[type] = value;
}
this.setState({ searchParam });
Object.assign(searchParam,{ pageNumber: 0, pageSize: 10 });
searchParam && this.props.setSearchParam(searchParam);
......
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