v1.9 解决巡检点二维码打开bug

This commit is contained in:
wuxw 2025-09-02 11:31:16 +08:00
parent 0c2dc4f9dc
commit 1597d42000
2 changed files with 2 additions and 5 deletions

View File

@ -36,7 +36,7 @@ export default {
open(inspectionPoint) { open(inspectionPoint) {
this.dialogVisible = true this.dialogVisible = true
this.inspectionPointQrCodeInfo = { this.inspectionPointQrCodeInfo = {
url: this.generateQrUrl(inspectionPoint), url: inspectionPoint.url,
inspectionName: inspectionPoint.inspectionName inspectionName: inspectionPoint.inspectionName
} }
@ -45,10 +45,6 @@ export default {
}) })
}, },
generateQrUrl(inspectionPoint) {
// URL
return `${window.location.origin}/inspection/task?inspectionId=${inspectionPoint.inspectionId}&communityId=${this.communityId}`
},
generateQrCode() { generateQrCode() {
// //

View File

@ -236,6 +236,7 @@ export default {
this.$refs.deleteInspectionPoint.open(point) this.$refs.deleteInspectionPoint.open(point)
}, },
_pointQrCode(point) { _pointQrCode(point) {
console.log(point)
this.$refs.inspectionPointQrCode.open(point) this.$refs.inspectionPointQrCode.open(point)
} }
} }