diff --git a/component/public/exit.vue b/component/public/exit.vue
index 4488ef7..340ec0a 100644
--- a/component/public/exit.vue
+++ b/component/public/exit.vue
@@ -53,7 +53,6 @@
}
const go = () => {
uni.setStorageSync('token', 1);
- // plus.runtime.quit();
uni.redirectTo({
url: '/pages/login/login'
@@ -97,25 +96,17 @@
background-color: #fff;
display: flex;
flex-direction: column;
- // justify-content: center;
align-items: center;
-
- // background-image: url('https://www.focusnu.com/media/directive/index/whitepeople.png');
- // // background-size: 100% auto;
- // background-position: top center;
- // background-repeat: no-repeat;
z-index: 1;
padding: 0 10%;
}
.button {
width: 47%;
- // background: linear-gradient(to left, #00C9FF, #0076FF);
background-color: #ddf0ff;
display: flex;
justify-content: center;
align-items: center;
- // color: #fff;
color: #007CFF;
border: 1rpx solid #007CFF;
font-size: 25rpx;
diff --git a/pages/NursingNew/component/api.js b/pages/NursingNew/component/api.js
new file mode 100644
index 0000000..7c157e6
--- /dev/null
+++ b/pages/NursingNew/component/api.js
@@ -0,0 +1,81 @@
+// 引入 request 文件
+import request from '@/request/guanli.js'
+
+// 所有信息查询
+export const electricityMeterlist = () => {
+ return request({
+ url: `${uni.getStorageSync('serverUrl')}/api/iot/common/list?nuId=${uni.getStorageSync('nuId')}`,
+ method: 'get'
+ })
+}
+
+// 智能电表设备信息清零
+export const electricityMetereleReset = (cid,address) => {
+ return request({
+ url: `${uni.getStorageSync('serverUrl')}/api/iot/electricityMeter/eleReset?cid=${cid}&address=${address}`,
+ method: 'get'
+ })
+}
+
+// 智能电表设备拉闸合闸
+export const electricityMetereleControl = (cid,address,type) => {
+ return request({
+ url: `${uni.getStorageSync('serverUrl')}/api/iot/electricityMeter/eleControl?cid=${cid}&address=${address}&type=${type}`,
+ method: 'get'
+ })
+}
+
+// 智能电表设备保修
+export const electricityMeterbaoxiu = (id) => {
+ return request({
+ url: `${uni.getStorageSync('serverUrl')}/api/iot/electricityMeter/baoxiu`,
+ method: 'post',
+ data: {
+ id:id
+ },
+ })
+}
+
+// 智能电表设备抄表
+export const electricityMeteleRead = (cid,address) => {
+ return request({
+ url: `${uni.getStorageSync('serverUrl')}/api/iot/electricityMeter/eleRead?cid=${cid}&address=${address}`,
+ method: 'get'
+ })
+}
+
+// ===============================================
+// 智能水表设备信息清零
+export const waterwaterReset = (cid,address) => {
+ return request({
+ url: `${uni.getStorageSync('serverUrl')}/api/iot/water/waterReset?cid=${cid}&address=${address}`,
+ method: 'get'
+ })
+}
+
+// 智能水表设备拉闸合闸
+export const waterwaterControl = (cid,address,type) => {
+ return request({
+ url: `${uni.getStorageSync('serverUrl')}/api/iot/water/waterControl?cid=${cid}&address=${address}&type=${type}`,
+ method: 'get'
+ })
+}
+
+// 智能水表设备保修
+export const waterbaoxiu = (id) => {
+ return request({
+ url: `${uni.getStorageSync('serverUrl')}/api/iot/water/baoxiu`,
+ method: 'post',
+ data: {
+ id:id
+ },
+ })
+}
+
+// 智能电表设备抄表
+export const waterwaterRead = (cid,address) => {
+ return request({
+ url: `${uni.getStorageSync('serverUrl')}/api/iot/water/waterRead?cid=${cid}&address=${address}`,
+ method: 'get'
+ })
+}
\ No newline at end of file
diff --git a/pages/NursingNew/component/equipment.vue b/pages/NursingNew/component/equipment.vue
index f7de507..62dda22 100644
--- a/pages/NursingNew/component/equipment.vue
+++ b/pages/NursingNew/component/equipment.vue
@@ -1,5 +1,64 @@
+
+
+
+
+ 取消
+ 确定
+
+
+
+ 确定要清零吗
+
+
+
+
+
+ 取消
+ 确定
+
+
+
+ 确定要抄表吗
+
+
+
+
+ 取消
+
+ 确定
+
+
+
+ 确定要{{ typeNow===1?'拉闸' : typeNow===2?'开阀' :"" }}吗
+
+
+
+
+ 取消
+
+ 确定
+
+
+
+ 确定要报修吗
+
+
+
+
+ 取消
+
+ 确定
+
+
+
+ 确定要{{ typeNow===1?'合闸' : typeNow===2?'关阀' :"" }}吗
+
+
+
+
NUID:{{ uni.getStorageSync('nuId')}}
@@ -30,7 +89,7 @@
+
+
+
+
+
+
+ {{ randomValue }}
+
+
+ {{indexmessage.eleValue?indexmessage.eleValue:'0.00'}}
+
+
+ KWH
+
-
-
-
-
-
-
- {{ randomValue }}
-
-
- 289.00
-
-
- KWH
-
-
-
- 用电量
-
-
-
-
-
-
- 在线
-
-
- SN:250425201185
-
-
- 上次抄表时间:2025-06-27 20:18:06
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ {{ randomValue }}
+
+
+ {{watermessage.waterValue?watermessage.waterValue:'0.00'}}
+
+
+ m³
+
+
+
+ 用水量
+
+
+
+
+
+
+ {{watermessage.relayState=='1'?'关阀':'开阀'}}
+
+
+ SN:{{watermessage.address}}
+
+
+ 上次抄表时间:{{watermessage.readTime?watermessage.readTime:'未抄表'}}
+
+
+
+
+
+
-
-