|
|
@@ -70,6 +70,10 @@ export default {
|
|
|
this.$Message.warning('请先选择一个打印机再打印')
|
|
|
return
|
|
|
}
|
|
|
+ if(!this.id){
|
|
|
+ this.$Message.warning('请先选择一条数据再打印')
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
this.excuteNoParams(this.service, this.service.print,
|
|
|
[this.currentTemplate, this.currentPrinter, this.id]).then(res=>{
|