Commit 1597d420005474ee779a7f3d76c1ac2ee03a4c4b
1 parent
0c2dc4f9
v1.9 解决巡检点二维码打开bug
Showing
2 changed files
with
2 additions
and
5 deletions
src/components/inspection/inspectionPointQrCode.vue
| @@ -36,7 +36,7 @@ export default { | @@ -36,7 +36,7 @@ export default { | ||
| 36 | open(inspectionPoint) { | 36 | open(inspectionPoint) { |
| 37 | this.dialogVisible = true | 37 | this.dialogVisible = true |
| 38 | this.inspectionPointQrCodeInfo = { | 38 | this.inspectionPointQrCodeInfo = { |
| 39 | - url: this.generateQrUrl(inspectionPoint), | 39 | + url: inspectionPoint.url, |
| 40 | inspectionName: inspectionPoint.inspectionName | 40 | inspectionName: inspectionPoint.inspectionName |
| 41 | } | 41 | } |
| 42 | 42 | ||
| @@ -45,10 +45,6 @@ export default { | @@ -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 | generateQrCode() { | 49 | generateQrCode() { |
| 54 | // 清除现有的二维码 | 50 | // 清除现有的二维码 |
src/views/inspection/inspectionPointList.vue
| @@ -236,6 +236,7 @@ export default { | @@ -236,6 +236,7 @@ export default { | ||
| 236 | this.$refs.deleteInspectionPoint.open(point) | 236 | this.$refs.deleteInspectionPoint.open(point) |
| 237 | }, | 237 | }, |
| 238 | _pointQrCode(point) { | 238 | _pointQrCode(point) { |
| 239 | + console.log(point) | ||
| 239 | this.$refs.inspectionPointQrCode.open(point) | 240 | this.$refs.inspectionPointQrCode.open(point) |
| 240 | } | 241 | } |
| 241 | } | 242 | } |