Issues
This commit is contained in:
parent
1dbc40ddfb
commit
65cc0d0816
6 changed files with 34 additions and 30 deletions
|
|
@ -304,7 +304,7 @@ function fetchDataPeriodNew() {
|
|||
store.groupId && fetchDataQuota(store.groupId);
|
||||
}
|
||||
|
||||
function onClickDownload(data: DataOption) {
|
||||
function onClickDownload(data: DataOption, type: string = "xlsx") {
|
||||
showLoader();
|
||||
if (data.id === "go1" || data.id === "go2") {
|
||||
const formData = {
|
||||
|
|
@ -354,7 +354,7 @@ function onClickDownload(data: DataOption) {
|
|||
.get(finalUrl)
|
||||
.then((res) => {
|
||||
const dataList = res.data.result;
|
||||
genReportXLSX(dataList, data.name);
|
||||
genReportXLSX(dataList, data.name, type);
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
@ -539,7 +539,7 @@ const updateIsShowRetire = async () => {
|
|||
:key="index"
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="onClickDownload(item)"
|
||||
@click="onClickDownload(item, item.type)"
|
||||
>
|
||||
<q-item-section>
|
||||
<q-item-label>{{ item.name }}</q-item-label>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue