正常
维修中
@@ -38,7 +48,7 @@
-
+

预览
@@ -279,7 +289,7 @@
-
+
提示:请联系平台运维组技术人员绑定物联设备!
@@ -400,8 +410,7 @@ function getWsdj(record) {
// 抄电表
async function handleRead(record) {
const params = {
- 'cid': record.cid,
- 'address': record.address,
+ 'sn': record.sn,
};
await eleRead(params);
setTimeout(() => {
@@ -422,9 +431,8 @@ async function handleControlLz(record) {
return;
}
const params = {
- 'cid': record.cid,
- 'address': record.address,
- 'type': '10',
+ 'sn' : record.sn,
+ 'type': '10'
};
await eleControl(params);
setTimeout(() => {
@@ -445,8 +453,7 @@ async function handleControlHz(record) {
return;
}
const params = {
- 'cid': record.cid,
- 'address': record.address,
+ 'sn' : record.sn,
'type': '11',
};
await eleControl(params);
@@ -458,8 +465,7 @@ async function handleControlHz(record) {
// 电表清零
async function handleReset(record) {
const params = {
- 'cid': record.cid,
- 'address': record.address,
+ 'sn': record.sn,
};
await eleReset(params);
setTimeout(() => {
@@ -597,6 +603,7 @@ function showWsdjApiLog(record) {
* 摄像头预览
*/
function handlePreview(record: Recordable) {
+ record.streamType = 1;
previewModal.value.disableSubmit = true;
previewModal.value.edit(record);
}
diff --git a/src/views/biz/nuBaseInfo/iotDevices/IotDevices.data.ts b/src/views/biz/nuBaseInfo/iotDevices/IotDevices.data.ts
index c57800e..2f7b90d 100644
--- a/src/views/biz/nuBaseInfo/iotDevices/IotDevices.data.ts
+++ b/src/views/biz/nuBaseInfo/iotDevices/IotDevices.data.ts
@@ -18,7 +18,7 @@ export const columns: BasicColumn[] = [
{
title: '设备标识',
align: "center",
- dataIndex: 'deviceIndex'
+ dataIndex: 'sn'
},
{
title: '设备型号',
diff --git a/src/views/biz/nuBaseInfo/iotDevices/IotDevicesList.vue b/src/views/biz/nuBaseInfo/iotDevices/IotDevicesList.vue
index d22c35c..688948f 100644
--- a/src/views/biz/nuBaseInfo/iotDevices/IotDevicesList.vue
+++ b/src/views/biz/nuBaseInfo/iotDevices/IotDevicesList.vue
@@ -51,7 +51,7 @@
-
+