|
@@ -156,6 +156,7 @@ export default {
|
|
this.totalNums = 0
|
|
this.totalNums = 0
|
|
this.totalNums = []
|
|
this.totalNums = []
|
|
},
|
|
},
|
|
|
|
+ // 导出表格excel,dom 表格对象,title 导出表格名称
|
|
exportTable (dom, title) {
|
|
exportTable (dom, title) {
|
|
const zim = 'A、B、C、D、E、F、G、H、I、J、K、L、M、N、O、P、Q、R、S、T、U、V、W、X、Y、Z'.split('、')
|
|
const zim = 'A、B、C、D、E、F、G、H、I、J、K、L、M、N、O、P、Q、R、S、T、U、V、W、X、Y、Z'.split('、')
|
|
var ws = XLSX.utils.table_to_sheet(dom)
|
|
var ws = XLSX.utils.table_to_sheet(dom)
|
|
@@ -180,7 +181,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+ // 设置百分比格式
|
|
// 表格0
|
|
// 表格0
|
|
if (this.activeKey == 0) {
|
|
if (this.activeKey == 0) {
|
|
const ri = [6, 11, 20, 23]
|
|
const ri = [6, 11, 20, 23]
|
|
@@ -232,7 +233,7 @@ export default {
|
|
XLSX.utils.book_append_sheet(wb, ws, 'Sheet1')
|
|
XLSX.utils.book_append_sheet(wb, ws, 'Sheet1')
|
|
XLSX.writeFile(wb, this.queryParam.month.split('-')[1] + '月' + title + '-' + timeStr + '.xlsx')
|
|
XLSX.writeFile(wb, this.queryParam.month.split('-')[1] + '月' + title + '-' + timeStr + '.xlsx')
|
|
},
|
|
},
|
|
- // 导出
|
|
|
|
|
|
+ // 点击导出
|
|
handleExport () {
|
|
handleExport () {
|
|
const excelTitle = this.tabsList.find(item => item.id == this.activeKey)
|
|
const excelTitle = this.tabsList.find(item => item.id == this.activeKey)
|
|
if (this.$refs.table0 && this.activeKey == 0) {
|
|
if (this.$refs.table0 && this.activeKey == 0) {
|
|
@@ -288,6 +289,7 @@ export default {
|
|
}
|
|
}
|
|
this.spinning = false
|
|
this.spinning = false
|
|
},
|
|
},
|
|
|
|
+ // 项目销售日报1列数据
|
|
getColumns () {
|
|
getColumns () {
|
|
const row = this.tableData[0]
|
|
const row = this.tableData[0]
|
|
const ret = []
|
|
const ret = []
|