zoukankan      html  css  js  c++  java
  • vue如何下载报表

    _export() {
    const _c = this.$createElement;
    this.$msgbox({
    title: '请确认',
    showCancelButton: true,
    confirmButtonText: '导出',
    cancelButtonText: '放弃',
    message: _c('div', null, [
    // _c('ul', null, [
    // _c('li', null, '是否导出当前待发货订单:'),
    // _c('li', { style: 'margin: .5em 0 .5rem 2em' }, '商品: ' + _item.productName),
    // _c('li', { style: 'margin: .5em 0 .5rem 2em' }, '颜色: ' + _item.proColorName),
    // _c('li', { style: 'margin: .5em 0 .5rem 2em' }, '尺码: ' + _item.proSizesName),
    // _c('li', { style: 'margin: .5em 0 .5rem 2em' }, '时间: ' + _item.applyTime),
    // _c('li', { style: 'margin: .5em 0 .5rem 2em' }, '金额: ' + _item.refundAmount),
    // ]),
    _c('p', { style: 'margin-button: 15px;' }, [
    _c('span', null, '您是否'),
    _c('i', { style: 'color: #3598dc; font-style: normal; margin: 0 5px;' }, '导出'),
    _c('span', null, '当前'),
    _c('i', { style: 'color: #cb5a5e; font-style: normal; margin: 0 5px;' }, '待发货'),
    _c('span', null, '订单信息?'),
    ]),
    ]),
    }).then(action => {
    this.selectForm.ordersState = 1;
    this._getData();
    var _downSrc = this.baseUrl + '/orders/export/exportOrdersDelivery?';
    _downSrc = _downSrc + 'token=' + this.token;
    _downSrc = _downSrc + '&download=1';
    _downSrc = _downSrc + '&exportType=1';
    if (this.selectDate != null) {
    _downSrc = _downSrc + '&startTime=' + this.selectForm.startTime;
    _downSrc = _downSrc + '&endTime=' + this.selectForm.endTime;
    }
    if (this.selectForm.acceptPhone != '') {
    _downSrc = _downSrc + '&phone=' + this.selectForm.acceptPhone;
    }
    if (this.selectForm.totalOrderNo != '') {
    _downSrc = _downSrc + '&ordersNo=' + this.selectForm.totalOrderNo;
    }
    if (this.selectForm.proxyName != '') {
    _downSrc = _downSrc + '&proxyName=' + this.selectForm.proxyName;
    }
    window.open(_downSrc);
    }).catch(() => {
    // this.$message({ type: 'info', message: '已取消操作' });
    });
  • 相关阅读:
    [ssh] 通过ssh私钥生成公钥的方法
    [redis] hiredis-vip 简单使用
    [redis] redis cli的学习记录
    [ovs] 编写openflow流表的文档指引
    [iptables] 如何用iptables管理桥接模式下的设备
    [qemu][kvm] 在kvm嵌套kvm的虚拟机里启动kvm加速
    [qemu] 差分盘使用
    [yum] yum加速
    [ovs] openvswitch 从源码编译安装
    [qemu] qemu从源码编译安装
  • 原文地址:https://www.cnblogs.com/chase-star/p/10005655.html
Copyright © 2011-2022 走看看