From e981e0414f455769506574dc288b42a135178c14 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Mon, 21 Mar 2022 10:21:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inspectionPointQrCode.html | 29 ++++++++++ .../inspectionPointQrCode.js | 35 +++++++++++ .../simplifyMeterWaterLog.html | 58 +++++++++---------- .../inspectionPointManage.html | 5 ++ .../inspectionPointManage.js | 36 +++++++----- 5 files changed, 118 insertions(+), 45 deletions(-) create mode 100644 public/components/property/inspectionPointQrCode/inspectionPointQrCode.html create mode 100644 public/components/property/inspectionPointQrCode/inspectionPointQrCode.js diff --git a/public/components/property/inspectionPointQrCode/inspectionPointQrCode.html b/public/components/property/inspectionPointQrCode/inspectionPointQrCode.html new file mode 100644 index 000000000..16af995ae --- /dev/null +++ b/public/components/property/inspectionPointQrCode/inspectionPointQrCode.html @@ -0,0 +1,29 @@ +
\ No newline at end of file diff --git a/public/components/property/inspectionPointQrCode/inspectionPointQrCode.js b/public/components/property/inspectionPointQrCode/inspectionPointQrCode.js new file mode 100644 index 000000000..d4445cb95 --- /dev/null +++ b/public/components/property/inspectionPointQrCode/inspectionPointQrCode.js @@ -0,0 +1,35 @@ +(function(vc) { + + vc.extends({ + data: { + inspectionPointQrCodeInfo: { + url: '', + inspectionName: '', + } + }, + _initMethod: function() {}, + _initEvent: function() { + vc.on('inspectionPointQrCode', 'openInspectionPointQrCodeModal', function(_param) { + vc.copyObject(_param, $that.inspectionPointQrCodeInfo); + $('#inspectionPointQrCodeModel').modal('show'); + $that._viewQr($that.inspectionPointQrCodeInfo.url); + }); + }, + methods: { + // 两分钟后显示遮罩层 + _viewQr: function(_url) { + document.getElementById("qrcode").innerHTML = ""; + let qrcode = new QRCode(document.getElementById("qrcode"), { + text: "213", //你想要填写的文本 + width: 200, //生成的二维码的宽度 + height: 200, //生成的二维码的高度 + colorDark: "#000000", // 生成的二维码的深色部分 + colorLight: "#ffffff", //生成二维码的浅色部分 + correctLevel: QRCode.CorrectLevel.L + }); + qrcode.makeCode(_url); + } + } + }); + +})(window.vc); \ No newline at end of file diff --git a/public/components/property/simplifyMeterWaterLog/simplifyMeterWaterLog.html b/public/components/property/simplifyMeterWaterLog/simplifyMeterWaterLog.html index c3cd77b4b..55e47de4c 100644 --- a/public/components/property/simplifyMeterWaterLog/simplifyMeterWaterLog.html +++ b/public/components/property/simplifyMeterWaterLog/simplifyMeterWaterLog.html @@ -8,8 +8,7 @@| 表类型 | -对象名称 | -上期度数 | -本期度数 | -上期读表时间 | -本期读表时间 | -创建时间 | -操作 | -||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 表类型 | +对象名称 | +上期度数 | +本期度数 | +上期读表时间 | +本期读表时间 | +创建时间 | +操作 | +||||||||
| {{_getMeteTypeName(meterWater.meterType)}} | -{{meterWater.objName}} | -{{meterWater.preDegrees}} | -{{meterWater.curDegrees}} | -{{meterWater.preReadingTime}} | -{{meterWater.curReadingTime}} | -{{meterWater.createTime}} | -
-
-
+ {{meterWater.meterTypeName}} |
+ {{meterWater.objName}} |
+ {{meterWater.preDegrees}} |
+ {{meterWater.curDegrees}} |
+ {{meterWater.preReadingTime}} |
+ {{meterWater.curReadingTime}} |
+ {{meterWater.createTime}} |
+
+ |
-
+
-
-
+
+
- |
+