Commit 70d6663f authored by Mac's avatar Mac

提交课耗导出文字显示

parent 2279f88f
...@@ -260,8 +260,22 @@ ...@@ -260,8 +260,22 @@
this.getList() this.getList()
}, },
txexport() { txexport() {
if(this.valuemonth ==null || this.valueyear==null){
this.$q.notify({
type: 'negative',
position: "top",
message: `请选择日期`
})
return
}
let text = '';
if (this.datetype == 2) {
text = this.valuemonth +'课耗统计.xls'
} else if (this.datetype == 1) {
text = this.valueyear+'年课耗统计.xls'
}
var msg = JSON.parse(JSON.stringify(this.msg)); var msg = JSON.parse(JSON.stringify(this.msg));
EduDownLoad("/finance/GetTeacherConsumptionHoursStatisticsToExcel", msg, "课耗统计.xls") EduDownLoad("/finance/GetTeacherConsumptionHoursStatisticsToExcel", msg, text)
} }
......
...@@ -278,8 +278,22 @@ ...@@ -278,8 +278,22 @@
this.getList() this.getList()
}, },
txexport(){ txexport(){
if(this.valuemonth ==null || this.valueyear==null){
this.$q.notify({
type: 'negative',
position: "top",
message: `请选择日期`
})
return
}
let text = '';
if (this.datetype == 2) {
text = this.valuemonth +'课耗学生明细.xls'
} else if (this.datetype == 1) {
text = this.valueyear+'年课耗学生明细.xls'
}
var msg = JSON.parse(JSON.stringify(this.msg)); var msg = JSON.parse(JSON.stringify(this.msg));
EduDownLoad("/finance/GetStudentConsumptionHoursDetialPageListToExcel", msg, "课耗学生明细.xls") EduDownLoad("/finance/GetStudentConsumptionHoursDetialPageListToExcel", msg, text)
}, },
gobaoming(Id){ gobaoming(Id){
this.OpenNewUrl('/sale/orderStatistics', { this.OpenNewUrl('/sale/orderStatistics', {
......
...@@ -248,8 +248,22 @@ ...@@ -248,8 +248,22 @@
this.getList() this.getList()
}, },
txexport(){ txexport(){
if(this.valuemonth ==null || this.valueyear==null){
this.$q.notify({
type: 'negative',
position: "top",
message: `请选择日期`
})
return
}
let text = '';
if (this.datetype == 2) {
text = this.valuemonth +'课耗老师明细.xls'
} else if (this.datetype == 1) {
text = this.valueyear+'年课耗老师明细.xls'
}
var msg = JSON.parse(JSON.stringify(this.msg)); var msg = JSON.parse(JSON.stringify(this.msg));
EduDownLoad("/finance/GetTeacherConsumptionHoursDetialPageListToExcel", msg, "课耗老师明细.xls") EduDownLoad("/finance/GetTeacherConsumptionHoursDetialPageListToExcel", msg, text)
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment