|
@@ -78,7 +78,8 @@
|
|
|
:cameralist="cameralist"
|
|
|
:height="height"
|
|
|
:doorcount="ndoorcount"
|
|
|
- ></doorAnimate>
|
|
|
+ >
|
|
|
+ </doorAnimate>
|
|
|
</div>
|
|
|
<div class="flcard" v-if="this.TabCur == 'windrect'">
|
|
|
<windrectAnimate
|
|
@@ -87,7 +88,8 @@
|
|
|
:videoURL="viedeoUrl"
|
|
|
:height="height"
|
|
|
:type="deviceType"
|
|
|
- ></windrectAnimate>
|
|
|
+ >
|
|
|
+ </windrectAnimate>
|
|
|
</div>
|
|
|
<div class="flcard" v-if="this.TabCur == 'fanlocal'">
|
|
|
<fanlocalAnimate
|
|
@@ -96,7 +98,8 @@
|
|
|
:title="title"
|
|
|
:videoURL="viedeoUrl"
|
|
|
:height="height"
|
|
|
- ></fanlocalAnimate>
|
|
|
+ >
|
|
|
+ </fanlocalAnimate>
|
|
|
</div>
|
|
|
<div class="flcard" v-if="this.TabCur == 'fanmain'">
|
|
|
<fanmainAnimate
|
|
@@ -139,76 +142,55 @@
|
|
|
>
|
|
|
<div
|
|
|
class="itemback"
|
|
|
- v-for="(item, index) in showColum[TabCur + '_detail']"
|
|
|
+ v-for="(item, index) in deviceShowList"
|
|
|
:key="index"
|
|
|
- v-show="item.appShow == 1"
|
|
|
+ v-show="
|
|
|
+ item.appShow == 1 &&
|
|
|
+ item.monitorcode != 'strinstallpos' &&
|
|
|
+ item.monitorcode != 'netStatus' &&
|
|
|
+ item.monitorcode != 'warnFlag' &&
|
|
|
+ item.monitorcode != 'readTime' &&
|
|
|
+ item.monitorcode != ''
|
|
|
+ "
|
|
|
>
|
|
|
- <div
|
|
|
- class="datacardtime"
|
|
|
- v-if="item.monitorcode == 'readTime' && item.datatype == 1"
|
|
|
- >
|
|
|
- <view
|
|
|
- class="demo-layout bg-purple-light"
|
|
|
- style="padding: 20rpx; color: #3787fe"
|
|
|
- >
|
|
|
- {{ readTime }}
|
|
|
- </view>
|
|
|
- </div>
|
|
|
- <div class="datacard" v-if="item.monitorcode !== 'readTime'">
|
|
|
+ <div class="datacard">
|
|
|
<div class="left-content">
|
|
|
<view
|
|
|
- v-if="item.monitorcode == 'ndoortype' && item.datatype == 1"
|
|
|
+ v-if="item.datatype == 1 && item.monitorcode == 'doorUse'"
|
|
|
class="demo-layout bg-purple-light"
|
|
|
style="margin-top: 60rpx; color: #3787fe"
|
|
|
>
|
|
|
{{
|
|
|
- tableData[item.monitorcode] == "1"
|
|
|
+ tableData[item.monitorcode] == "2"
|
|
|
? "行人"
|
|
|
- : tableData[item.monitorcode] == "2"
|
|
|
+ : tableData[item.monitorcode] == "1"
|
|
|
? "行车"
|
|
|
- : "--"
|
|
|
+ : "-"
|
|
|
}}
|
|
|
</view>
|
|
|
<view
|
|
|
- v-else-if="
|
|
|
- item.monitorcode == 'netStatus' && item.datatype == 1
|
|
|
- "
|
|
|
- class="demo-layout bg-purple-light"
|
|
|
- style="margin-top: 60rpx; color: #3787fe"
|
|
|
- >
|
|
|
- {{ doorNetStatus == "1" ? "正常" : "异常" }}
|
|
|
- </view>
|
|
|
- <view
|
|
|
- v-else-if="
|
|
|
- item.monitorcode == 'warnFlag' && item.datatype == 1
|
|
|
- "
|
|
|
- class="demo-layout bg-purple-light"
|
|
|
- style="margin-top: 60rpx; color: #3787fe"
|
|
|
- >
|
|
|
- {{ warnFlag == "1" ? "正常" : "异常" }}
|
|
|
- </view>
|
|
|
- <view
|
|
|
v-else-if="item.datatype == 1"
|
|
|
class="demo-layout bg-purple-light"
|
|
|
style="margin-top: 60rpx; color: #3787fe"
|
|
|
>
|
|
|
{{
|
|
|
- tableData[item.monitorcode] == null ||
|
|
|
- tableData[item.monitorcode] == ""
|
|
|
- ? "--"
|
|
|
- : tableData[item.monitorcode]
|
|
|
+ tableData[item.monitorcode] != undefined &&
|
|
|
+ tableData[item.monitorcode] != null
|
|
|
+ ? tableData[item.monitorcode]
|
|
|
+ : "-"
|
|
|
}}
|
|
|
</view>
|
|
|
+
|
|
|
<view
|
|
|
v-else-if="item.datatype == 2"
|
|
|
class="demo-layout bg-purple-light"
|
|
|
style="margin-top: 60rpx; color: #3787fe"
|
|
|
>
|
|
|
{{
|
|
|
- tableData.readData[item.monitorcode] == null ||
|
|
|
- tableData.readData[item.monitorcode] == ""
|
|
|
- ? "--"
|
|
|
- : tableData.readData[item.monitorcode]
|
|
|
+ tableData[item.monitorcode] != undefined &&
|
|
|
+ tableData[item.monitorcode] != null
|
|
|
+ ? tableData[item.monitorcode]
|
|
|
+ : "-"
|
|
|
}}
|
|
|
</view>
|
|
|
<div class="spacer"></div>
|
|
@@ -281,17 +263,17 @@
|
|
|
style="margin-top: 60rpx; color: #3787fe"
|
|
|
>
|
|
|
{{
|
|
|
- tableData.readData[
|
|
|
+ tableData[
|
|
|
item.monitorcode.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
: item.monitorcode
|
|
|
] !== undefined &&
|
|
|
- tableData.readData[
|
|
|
+ tableData[
|
|
|
item.monitorcode.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
: item.monitorcode
|
|
|
] !== null
|
|
|
- ? tableData.readData[
|
|
|
+ ? tableData[
|
|
|
item.monitorcode.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
: item.monitorcode
|
|
@@ -367,17 +349,17 @@
|
|
|
style="margin-top: 60rpx; color: #3787fe"
|
|
|
>
|
|
|
{{
|
|
|
- tableData.readData[
|
|
|
+ tableData[
|
|
|
item.monitorcode.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
: item.monitorcode
|
|
|
] !== undefined &&
|
|
|
- tableData.readData[
|
|
|
+ tableData[
|
|
|
item.monitorcode.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
: item.monitorcode
|
|
|
] !== null
|
|
|
- ? tableData.readData[
|
|
|
+ ? tableData[
|
|
|
item.monitorcode.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
: item.monitorcode
|
|
@@ -455,17 +437,17 @@
|
|
|
style="margin-top: 60rpx; color: #3787fe"
|
|
|
>
|
|
|
{{
|
|
|
- tableData.readData[
|
|
|
+ tableData[
|
|
|
item.monitorcode.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
: item.monitorcode
|
|
|
] !== undefined &&
|
|
|
- tableData.readData[
|
|
|
+ tableData[
|
|
|
item.monitorcode.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
: item.monitorcode
|
|
|
] !== null
|
|
|
- ? tableData.readData[
|
|
|
+ ? tableData[
|
|
|
item.monitorcode.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
: item.monitorcode
|
|
@@ -541,17 +523,17 @@
|
|
|
style="margin-top: 60rpx; color: #3787fe"
|
|
|
>
|
|
|
{{
|
|
|
- tableData.readData[
|
|
|
+ tableData[
|
|
|
item.monitorcode.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
: item.monitorcode
|
|
|
] !== undefined &&
|
|
|
- tableData.readData[
|
|
|
+ tableData[
|
|
|
item.monitorcode.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
: item.monitorcode
|
|
|
] !== null
|
|
|
- ? tableData.readData[
|
|
|
+ ? tableData[
|
|
|
item.monitorcode.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
: item.monitorcode
|
|
@@ -671,6 +653,7 @@ export default {
|
|
|
deviceid: "", //ID
|
|
|
cameralist: [], //摄像数据
|
|
|
showColum: {},
|
|
|
+ deviceShowList: [],
|
|
|
};
|
|
|
},
|
|
|
onLoad(query) {
|
|
@@ -722,6 +705,14 @@ export default {
|
|
|
var showlist = response.data.result;
|
|
|
this.$store.commit("SET_SHOWCOLUM", showlist);
|
|
|
this.showColum = showlist;
|
|
|
+ const key = this.TabCur + "_monitor";
|
|
|
+ const key1 = this.deviceType + "_monitor";
|
|
|
+ if (this.showColum[key1].length > 0) {
|
|
|
+ this.deviceShowList = this.showColum[key1];
|
|
|
+ } else {
|
|
|
+ this.deviceShowList = this.showColum[key];
|
|
|
+ }
|
|
|
+ // this.deviceShowList = this.showColum[key];
|
|
|
} else {
|
|
|
resolve(response);
|
|
|
}
|
|
@@ -767,18 +758,25 @@ export default {
|
|
|
response.data.result.msgTxt[0].datalist.length > 0
|
|
|
) {
|
|
|
var result = response.data.result.msgTxt[0].datalist[0];
|
|
|
- this.tableData = result;
|
|
|
- if (this.tableData.frontGateOpen == "1") {
|
|
|
+ let newData = { ...result, ...result.readData };
|
|
|
+ this.tableData = newData;
|
|
|
+ if (this.tableData["frontGateClose"] == "1") {
|
|
|
+ this.tableData.frontGateOpen = "关闭";
|
|
|
+ } else if (this.tableData["frontGateClose"] == "0") {
|
|
|
this.tableData.frontGateOpen = "打开";
|
|
|
} else {
|
|
|
this.tableData.frontGateOpen = "关闭";
|
|
|
}
|
|
|
- if (this.tableData.midGateOpen == "1") {
|
|
|
+ if (this.tableData["midGateClose"] == "1") {
|
|
|
+ this.tableData.midGateOpen = "关闭";
|
|
|
+ } else if (this.tableData["midGateClose"] == "0") {
|
|
|
this.tableData.midGateOpen = "打开";
|
|
|
} else {
|
|
|
this.tableData.midGateOpen = "关闭";
|
|
|
}
|
|
|
- if (this.tableData.rearGateOpen == "1") {
|
|
|
+ if (this.tableData["rearGateClose"] == "1") {
|
|
|
+ this.tableData.rearGateOpen = "关闭";
|
|
|
+ } else if (this.tableData["rearGateClose"] == "0") {
|
|
|
this.tableData.rearGateOpen = "打开";
|
|
|
} else {
|
|
|
this.tableData.rearGateOpen = "关闭";
|