刘妍 2 months ago
commit b8477a2679

@ -134,7 +134,7 @@ const delDate = (record) => {
const exportDevice = () => {
ExportDevice().then(res => {
const elink = document.createElement('a');
elink.download = '飞行器信息.xlsx';
elink.download = '飞行器信息.txt';
elink.style.display = 'none';
elink.href = URL.createObjectURL(res);
document.body.appendChild(elink);

@ -49,8 +49,13 @@ const [registerTable, { reload, expandAll, getForm}] = useTable({
//
showTableSetting: true,
bordered: true,
beforeFetch(data) {
return data
beforeFetch(params) {
if(params.time){
params.startTime = params.time[0]
params.endTime = params.time[1]
}
params.time = null
return params
},
afterFetch(data) {
},

Loading…
Cancel
Save