Commit 1597d420005474ee779a7f3d76c1ac2ee03a4c4b

Authored by wuxw
1 parent 0c2dc4f9

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

src/components/inspection/inspectionPointQrCode.vue
... ... @@ -36,7 +36,7 @@ export default {
36 36 open(inspectionPoint) {
37 37 this.dialogVisible = true
38 38 this.inspectionPointQrCodeInfo = {
39   - url: this.generateQrUrl(inspectionPoint),
  39 + url: inspectionPoint.url,
40 40 inspectionName: inspectionPoint.inspectionName
41 41 }
42 42  
... ... @@ -45,10 +45,6 @@ export default {
45 45 })
46 46 },
47 47  
48   - generateQrUrl(inspectionPoint) {
49   - // 这里根据实际业务生成二维码URL
50   - return `${window.location.origin}/inspection/task?inspectionId=${inspectionPoint.inspectionId}&communityId=${this.communityId}`
51   - },
52 48  
53 49 generateQrCode() {
54 50 // 清除现有的二维码
... ...
src/views/inspection/inspectionPointList.vue
... ... @@ -236,6 +236,7 @@ export default {
236 236 this.$refs.deleteInspectionPoint.open(point)
237 237 },
238 238 _pointQrCode(point) {
  239 + console.log(point)
239 240 this.$refs.inspectionPointQrCode.open(point)
240 241 }
241 242 }
... ...