数据概览功导出+优化功能提交

This commit is contained in:
ywh 2024-08-18 17:03:33 +08:00
parent 1b8deaa3aa
commit 393987d292
1 changed files with 74 additions and 55 deletions

View File

@ -27,7 +27,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<!-- <el-row :gutter="10" class="mb8">--> <el-row :gutter="10" class="mb8">
<!-- <el-col :span="1.5">--> <!-- <el-col :span="1.5">-->
<!-- <el-button--> <!-- <el-button-->
<!-- type="primary"--> <!-- type="primary"-->
@ -71,7 +71,19 @@
<!-- >导出</el-button>--> <!-- >导出</el-button>-->
<!-- </el-col>--> <!-- </el-col>-->
<!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>--> <!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>-->
<!-- </el-row>-->
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleOverviewExport"
v-hasPermi="['system:info:export']"
>导出</el-button>
</el-col>
</el-row>
<el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
@ -392,6 +404,13 @@ export default {
this.download('excel/info/export', { this.download('excel/info/export', {
...this.queryParams1 ...this.queryParams1
}, data.storeName+`_${new Date().getTime()}.xlsx`) }, data.storeName+`_${new Date().getTime()}.xlsx`)
},
handleOverviewExport(){
this.download('excel/info/exportDataOverview', {
...this.queryParams
}, `sale_${new Date().getTime()}.xlsx`)
} }
} }
}; };