|
@ -20,6 +20,7 @@ const employeeInformation = (props) => { |
|
|
|
|
|
|
|
|
const [setup, setSetup] = useState(false);//表格设置是否显现 |
|
|
const [setup, setSetup] = useState(false);//表格设置是否显现 |
|
|
const [setupp, setSetupp] = useState([]);//实际显示的表格列表 |
|
|
const [setupp, setSetupp] = useState([]);//实际显示的表格列表 |
|
|
|
|
|
const [lookup, setLookup] = useState({});//搜索 |
|
|
const [query, setQuery] = useState({ limit: 10, page: 0 }); //页码信息 |
|
|
const [query, setQuery] = useState({ limit: 10, page: 0 }); //页码信息 |
|
|
const [order, setOrder] = useState({ orderBy: 'hiredate', orderDirection: 'DESC' }); //页码信息 |
|
|
const [order, setOrder] = useState({ orderBy: 'hiredate', orderDirection: 'DESC' }); //页码信息 |
|
|
const [limits, setLimits] = useState()//每页实际条数 |
|
|
const [limits, setLimits] = useState()//每页实际条数 |
|
@ -88,10 +89,10 @@ const employeeInformation = (props) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getMemberSearchList () {//查询人员列表 |
|
|
function getMemberSearchList () {//查询人员列表 |
|
|
let obj = form.current.getValues() |
|
|
let obj = lookup |
|
|
if (form.current.getValues().entryTime?.length > 1) { |
|
|
if (lookup.entryTime?.length > 1) { |
|
|
obj.hiredateStart = moment(form.current.getValues().entryTime[0]).format('YYYY-MM-DD') |
|
|
obj.hiredateStart = moment(lookup.entryTime[0]).format('YYYY-MM-DD') |
|
|
obj.hiredateEnd = moment(form.current.getValues().entryTime[1]).format('YYYY-MM-DD') |
|
|
obj.hiredateEnd = moment(lookup.entryTime[1]).format('YYYY-MM-DD') |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
obj.hiredateStart = '' |
|
|
obj.hiredateStart = '' |
|
@ -582,6 +583,7 @@ const employeeInformation = (props) => { |
|
|
/> |
|
|
/> |
|
|
<Button theme='solid' type='primary' style={{ width: 80, borderRadius: 2, height: 32, background: '#DBECFF', color: '#005ABD' }} |
|
|
<Button theme='solid' type='primary' style={{ width: 80, borderRadius: 2, height: 32, background: '#DBECFF', color: '#005ABD' }} |
|
|
onClick={() => { |
|
|
onClick={() => { |
|
|
|
|
|
setLookup(form.current.getValues()) |
|
|
setQuery({ limit: 10, page: 0 }) |
|
|
setQuery({ limit: 10, page: 0 }) |
|
|
}}>查询</Button> |
|
|
}}>查询</Button> |
|
|
</div> |
|
|
</div> |
|
|