feat: 修改导出逻辑
This commit is contained in:
@ -65,7 +65,7 @@ import AccountTable from './components/account-table';
|
|||||||
import { getAccountBoardOverview, getAccountBoardList, postAccountBoardExport } from '@/api/all/propertyMarketing';
|
import { getAccountBoardOverview, getAccountBoardList, postAccountBoardExport } from '@/api/all/propertyMarketing';
|
||||||
import { formatNumberShow } from '@/utils/tools';
|
import { formatNumberShow } from '@/utils/tools';
|
||||||
import { INITIAL_QUERY, CARD_FIELDS } from './constants';
|
import { INITIAL_QUERY, CARD_FIELDS } from './constants';
|
||||||
import { downloadByUrl } from '@/utils/tools';
|
// import { downloadByUrl } from '@/utils/tools';
|
||||||
import { showExportNotification } from '@/utils/arcoD';
|
import { showExportNotification } from '@/utils/arcoD';
|
||||||
|
|
||||||
import icon1 from '@/assets/img/icon-question.png';
|
import icon1 from '@/assets/img/icon-question.png';
|
||||||
@ -140,7 +140,7 @@ const handleExport = () => {
|
|||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
const { code, data } = res;
|
const { code, data } = res;
|
||||||
if (code === 200) {
|
if (code === 200) {
|
||||||
downloadByUrl(data.download_url);
|
showExportNotification(`正在下载“${data.name}”,请稍后...`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@ -26,7 +26,7 @@ import AuthorizedAccountModal from '../authorized-account-modal';
|
|||||||
import StatusBox from '../status-box';
|
import StatusBox from '../status-box';
|
||||||
import SyncDataModal from '../sync-data-modal';
|
import SyncDataModal from '../sync-data-modal';
|
||||||
|
|
||||||
import { downloadByUrl } from '@/utils/tools';
|
// import { downloadByUrl } from '@/utils/tools';
|
||||||
import { showExportNotification } from '@/utils/arcoD';
|
import { showExportNotification } from '@/utils/arcoD';
|
||||||
import {
|
import {
|
||||||
fetchAccountTags,
|
fetchAccountTags,
|
||||||
|
|||||||
@ -68,8 +68,9 @@ import {
|
|||||||
postPlacementAccountDataListExport,
|
postPlacementAccountDataListExport,
|
||||||
} from '@/api/all/propertyMarketing';
|
} from '@/api/all/propertyMarketing';
|
||||||
|
|
||||||
|
import { showExportNotification } from '@/utils/arcoD';
|
||||||
import { INITIAL_QUERY, INITIAL_PAGE_INFO } from './constants';
|
import { INITIAL_QUERY, INITIAL_PAGE_INFO } from './constants';
|
||||||
import { downloadByUrl } from '@/utils/tools';
|
// import { downloadByUrl } from '@/utils/tools';
|
||||||
|
|
||||||
import icon2 from '@/assets/img/media-account/icon-group.png';
|
import icon2 from '@/assets/img/media-account/icon-group.png';
|
||||||
|
|
||||||
@ -148,7 +149,7 @@ const handleExport = () => {
|
|||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
const { code, data } = res;
|
const { code, data } = res;
|
||||||
if (code === 200) {
|
if (code === 200) {
|
||||||
downloadByUrl(data.download_url);
|
showExportNotification(`正在下载“${data.name}”,请稍后...`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user