|
@@ -199,46 +199,46 @@ export default {
|
|
|
window.removeEventListener('resize', this.setTableHeight)
|
|
|
},
|
|
|
methods: {
|
|
|
- //导出
|
|
|
- async exportex() {
|
|
|
- let that = this
|
|
|
- this.$confirm({
|
|
|
- title: '是否确认导出',
|
|
|
- content: '是否确认导出',
|
|
|
- onOk() {
|
|
|
- return waybilleclex(that.FormData).then((response) => {
|
|
|
- that.download(response.msg)
|
|
|
- that.$message.success('导出成功')
|
|
|
- })
|
|
|
- },
|
|
|
- })
|
|
|
- // this.downlodTable()
|
|
|
- },
|
|
|
- //导出
|
|
|
- downlodTable() {
|
|
|
- this.$confirm('是否需要导出xlsx文档, 是否继续?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- // this.downFile()
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: '导出成功!',
|
|
|
- })
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- this.$message({
|
|
|
- type: 'info',
|
|
|
- message: '已取消导出',
|
|
|
- })
|
|
|
- })
|
|
|
- },
|
|
|
// //导出
|
|
|
// async exportex() {
|
|
|
- // this.downFile()
|
|
|
+ // let that = this
|
|
|
+ // this.$confirm({
|
|
|
+ // title: '是否确认导出',
|
|
|
+ // content: '是否确认导出',
|
|
|
+ // onOk() {
|
|
|
+ // return waybilleclex(that.FormData).then((response) => {
|
|
|
+ // that.download(response.msg)
|
|
|
+ // that.$message.success('导出成功')
|
|
|
+ // })
|
|
|
+ // },
|
|
|
+ // })
|
|
|
+ // // this.downlodTable()
|
|
|
+ // },
|
|
|
+ // //导出
|
|
|
+ // downlodTable() {
|
|
|
+ // this.$confirm('是否需要导出xlsx文档, 是否继续?', '提示', {
|
|
|
+ // confirmButtonText: '确定',
|
|
|
+ // cancelButtonText: '取消',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // .then(() => {
|
|
|
+ // // this.downFile()
|
|
|
+ // this.$message({
|
|
|
+ // type: 'success',
|
|
|
+ // message: '导出成功!',
|
|
|
+ // })
|
|
|
+ // })
|
|
|
+ // .catch(() => {
|
|
|
+ // this.$message({
|
|
|
+ // type: 'info',
|
|
|
+ // message: '已取消导出',
|
|
|
+ // })
|
|
|
+ // })
|
|
|
// },
|
|
|
+ //导出
|
|
|
+ async exportex() {
|
|
|
+ this.downFile()
|
|
|
+ },
|
|
|
downFile() {
|
|
|
var wb = XLSX.utils.table_to_book(document.querySelector('#table2'))
|
|
|
var wbout = XLSX.write(wb, {
|