|
@@ -266,8 +266,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const url = 'id=' + item.srcDeviceCode + '&type=dustbin'
|
|
const url = 'id=' + item.srcDeviceCode + '&type=dustbin'
|
|
- _this.shName = item.name
|
|
|
|
- console.log(item.srcDeviceCode)
|
|
|
|
|
|
+ _this.shName = (item.stationName?item.stationName:"")+item.srcDeviceCode.substring(item.srcDeviceCode.length-6)
|
|
if (url) {
|
|
if (url) {
|
|
QRCode.toDataURL(url, opts, function (err, url) {
|
|
QRCode.toDataURL(url, opts, function (err, url) {
|
|
_this.qrCode = url
|
|
_this.qrCode = url
|
|
@@ -279,7 +278,7 @@ export default {
|
|
downloadCode (item) {
|
|
downloadCode (item) {
|
|
const link = document.createElement('a')
|
|
const link = document.createElement('a')
|
|
link.href = this.qrCode
|
|
link.href = this.qrCode
|
|
- link.download = this.shName + '.png'
|
|
|
|
|
|
+ link.download = this.shName + '.jpg'
|
|
link.click()
|
|
link.click()
|
|
},
|
|
},
|
|
closeModal () {
|
|
closeModal () {
|