|
@@ -5,12 +5,12 @@
|
|
|
<image style="width: 40px; height: 40px; margin: auto 15px auto 0" :src="'/static/images/404.png'" mode="aspectFill"></image>
|
|
|
|
|
|
<view style="margin: auto auto auto 0">
|
|
|
- <view style="font-size: 15px"> {{ commonStore.$state.deviceDetailsArray.deviceName }} </view>
|
|
|
+ <view style="font-size: 15px"> {{ commonStore.deviceDetailsArray.deviceName }} </view>
|
|
|
</view>
|
|
|
|
|
|
<view style="margin: auto 0 auto 0">
|
|
|
- <view :style="{ fontSize: '15px', color: commonStore.$state.deviceDetailsArray.deviceStatus == 1 ? '#16bf00' : 'red' }">
|
|
|
- {{ commonStore.$state.deviceDetailsArray.deviceStatus == 1 ? "在线" : "离线" }}
|
|
|
+ <view :style="{ fontSize: '15px', color: commonStore.deviceDetailsArray.deviceStatus == 1 ? '#16bf00' : 'red' }">
|
|
|
+ {{ commonStore.deviceDetailsArray.deviceStatus == 1 ? "在线" : "离线" }}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -106,23 +106,23 @@ const commonStore = commonStores();
|
|
|
const dataList = ref([
|
|
|
{
|
|
|
title: "设备类型",
|
|
|
- value: commonStore.$state.deviceDetailsArray.productName,
|
|
|
+ value: commonStore.deviceDetailsArray.productName,
|
|
|
},
|
|
|
{
|
|
|
title: "设备编号",
|
|
|
- value: commonStore.$state.deviceDetailsArray.deviceId,
|
|
|
+ value: commonStore.deviceDetailsArray.deviceId,
|
|
|
},
|
|
|
{
|
|
|
title: "物联网卡号",
|
|
|
- value: commonStore.$state.deviceDetailsArray.simCode,
|
|
|
+ value: commonStore.deviceDetailsArray.simCode,
|
|
|
},
|
|
|
{
|
|
|
title: "安装位置",
|
|
|
- value: commonStore.$state.deviceDetailsArray.installAddress,
|
|
|
+ value: commonStore.deviceDetailsArray.installAddress,
|
|
|
},
|
|
|
{
|
|
|
title: "添加时间",
|
|
|
- value: commonStore.$state.deviceDetailsArray.createdTime ? commonStore.$state.deviceDetailsArray.createdTime.replace("T", " ") : "",
|
|
|
+ value: commonStore.deviceDetailsArray.createdTime ? commonStore.deviceDetailsArray.createdTime.replace("T", " ") : "",
|
|
|
},
|
|
|
]);
|
|
|
|
|
@@ -150,7 +150,7 @@ function init() {
|
|
|
current: 1,
|
|
|
size: 100,
|
|
|
attributeName: "",
|
|
|
- productId: commonStore.$state.deviceDetailsArray.productId,
|
|
|
+ productId: commonStore.deviceDetailsArray.productId,
|
|
|
}).then((requset) => {
|
|
|
if (requset.status === "SUCCESS") {
|
|
|
checkboxDataList.value = requset.data.records;
|
|
@@ -163,7 +163,7 @@ function init() {
|
|
|
});
|
|
|
|
|
|
last({
|
|
|
- deviceId: commonStore.$state.deviceDetailsArray.deviceId,
|
|
|
+ deviceId: commonStore.deviceDetailsArray.deviceId,
|
|
|
metrics: array,
|
|
|
}).then((requsets) => {
|
|
|
if (requsets.status === "SUCCESS") {
|
|
@@ -216,8 +216,8 @@ function historyMetricsApi() {
|
|
|
historyMetrics({
|
|
|
startTime: calendarStartTime.value,
|
|
|
endTime: calendarEndTime.value,
|
|
|
- deviceId: commonStore.$state.deviceDetailsArray.deviceId,
|
|
|
- deviceType: commonStore.$state.deviceDetailsArray.deviceType,
|
|
|
+ deviceId: commonStore.deviceDetailsArray.deviceId,
|
|
|
+ deviceType: commonStore.deviceDetailsArray.deviceType,
|
|
|
metrics: checkboxValueList.value,
|
|
|
}).then((requset) => {
|
|
|
if (requset.status === "SUCCESS") {
|