刘妍 2 months ago
commit b8477a2679

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

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

Loading…
Cancel
Save