mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
v1.9 解决巡检点二维码打开bug
This commit is contained in:
parent
0c2dc4f9dc
commit
1597d42000
@ -36,7 +36,7 @@ export default {
|
||||
open(inspectionPoint) {
|
||||
this.dialogVisible = true
|
||||
this.inspectionPointQrCodeInfo = {
|
||||
url: this.generateQrUrl(inspectionPoint),
|
||||
url: inspectionPoint.url,
|
||||
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() {
|
||||
// 清除现有的二维码
|
||||
|
||||
@ -236,6 +236,7 @@ export default {
|
||||
this.$refs.deleteInspectionPoint.open(point)
|
||||
},
|
||||
_pointQrCode(point) {
|
||||
console.log(point)
|
||||
this.$refs.inspectionPointQrCode.open(point)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user