提交 721a043c 作者: 郁骅焌

发布

上级 f224b13e
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -34,3 +34,12 @@ export function editCoupon(data) {
data: data
})
}
// 导出
export function exportCoupon(data) {
return request({
url: '/xh/coupon/coupon/export',
method: 'post',
data: data
})
}
......@@ -44,7 +44,7 @@
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" plain icon="el-icon-download" size="mini" @click="handleAdd">下载报表</el-button>
<el-button type="primary" plain icon="el-icon-download" size="mini" @click="handleExport">下载报表</el-button>
</el-col>
</el-row>
......@@ -92,6 +92,7 @@
<script>
import { verificationList } from "@/api/coupon/couponData";
import { exportCoupon } from '@/api/coupon/list'
export default {
......@@ -357,10 +358,13 @@ export default {
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$modal.confirm('是否确认导出所有用户数据项?').then(() => {
queryParams.couponInfoId = this.$route.query.id
this.$modal.confirm('是否确认导出所有数据项?').then(() => {
this.exportLoading = true;
return exportRole(queryParams);
return exportCoupon(queryParams);
}).then(response => {
console.log(response)
this.$download.name(response.msg);
this.exportLoading = false;
}).catch(() => { });
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论