|
@@ -133,10 +133,13 @@
|
|
|
></windowAnimate>
|
|
|
</div>
|
|
|
<div class="flcard">
|
|
|
- <div class="flex-container">
|
|
|
+ <div
|
|
|
+ class="flex-container"
|
|
|
+ v-if="TabCur != 'fanlocal' && TabCur != 'fanmain'"
|
|
|
+ >
|
|
|
<div
|
|
|
class="itemback"
|
|
|
- v-for="(item, index) in typeList"
|
|
|
+ v-for="(item, index) in showColum[TabCur + '_detail']"
|
|
|
:key="index"
|
|
|
v-show="item.appShow == 1"
|
|
|
>
|
|
@@ -252,6 +255,134 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="flex-container" v-else-if="TabCur == 'fanmain'">
|
|
|
+ <!-- <div>主机</div> -->
|
|
|
+ <div
|
|
|
+ class="itemback"
|
|
|
+ v-for="(item, index) in showColum[TabCur + '_monitor_left']"
|
|
|
+ :key="index"
|
|
|
+ v-show="item.appShow == 1"
|
|
|
+ >
|
|
|
+ <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="left-content">
|
|
|
+ <view
|
|
|
+ v-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.datatype == 1"
|
|
|
+ class="demo-layout bg-purple-light"
|
|
|
+ style="margin-top: 60rpx; color: #3787fe"
|
|
|
+ >
|
|
|
+ {{
|
|
|
+ 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] !== undefined &&
|
|
|
+ tableData.readData[item.monitorcode] !== null
|
|
|
+ ? tableData.readData[item.monitorcode]
|
|
|
+ : "-"
|
|
|
+ }}
|
|
|
+ </view>
|
|
|
+ <div class="spacer"></div>
|
|
|
+ <!-- 间距 -->
|
|
|
+ <view
|
|
|
+ class="demo-layout bg-purple-light"
|
|
|
+ style="color: #677799"
|
|
|
+ >
|
|
|
+ {{ item.des }}
|
|
|
+ </view>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="flex-container" v-else-if="TabCur == 'fanlocal'">
|
|
|
+ <!-- <div>主机</div> -->
|
|
|
+ <div
|
|
|
+ class="itemback"
|
|
|
+ v-for="(item, index) in showColum[TabCur + '_monitor_right']"
|
|
|
+ :key="index"
|
|
|
+ v-show="item.appShow == 1"
|
|
|
+ >
|
|
|
+ <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="left-content">
|
|
|
+ <view
|
|
|
+ v-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.datatype == 1"
|
|
|
+ class="demo-layout bg-purple-light"
|
|
|
+ style="margin-top: 60rpx; color: #3787fe"
|
|
|
+ >
|
|
|
+ {{
|
|
|
+ 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] !== undefined &&
|
|
|
+ tableData.readData[item.monitorcode] !== null
|
|
|
+ ? tableData.readData[item.monitorcode]
|
|
|
+ : "-"
|
|
|
+ }}
|
|
|
+ </view>
|
|
|
+ <div class="spacer"></div>
|
|
|
+ <!-- 间距 -->
|
|
|
+ <view
|
|
|
+ class="demo-layout bg-purple-light"
|
|
|
+ style="color: #677799"
|
|
|
+ >
|
|
|
+ {{ item.des }}
|
|
|
+ </view>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -351,6 +482,7 @@ export default {
|
|
|
fan2State: "",
|
|
|
deviceid: "", //ID
|
|
|
cameralist: [], //摄像数据
|
|
|
+ showColum: {},
|
|
|
};
|
|
|
},
|
|
|
onLoad(query) {
|
|
@@ -368,7 +500,7 @@ export default {
|
|
|
fanmainAnimate,
|
|
|
},
|
|
|
created() {
|
|
|
- this.getShowList(this.TabCur);
|
|
|
+ this.getShowColum();
|
|
|
this.getDeviceInfo(this.itemId);
|
|
|
this.getVideoUrlById(this.itemId);
|
|
|
},
|
|
@@ -393,29 +525,48 @@ export default {
|
|
|
delta: 1,
|
|
|
});
|
|
|
},
|
|
|
- //获取app展示字段数据
|
|
|
- getShowList(type) {
|
|
|
- const params = {
|
|
|
- devicekind: type,
|
|
|
- pagetype: "monitor",
|
|
|
- pageNo: 1,
|
|
|
- pageSize: 100,
|
|
|
- };
|
|
|
+ getShowColum() {
|
|
|
new Promise((resolve, reject) => {
|
|
|
api
|
|
|
- .getShowColumList(params)
|
|
|
+ .getShowColum({})
|
|
|
.then((response) => {
|
|
|
if (response.data.code == 200) {
|
|
|
- this.typeList = response.data.result.records;
|
|
|
+ var showlist = response.data.result;
|
|
|
+ this.$store.commit("SET_SHOWCOLUM", showlist);
|
|
|
+ this.showColum = showlist;
|
|
|
} else {
|
|
|
resolve(response);
|
|
|
}
|
|
|
})
|
|
|
.catch((error) => {
|
|
|
+ console.log("catch===>response", response);
|
|
|
reject(error);
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ // //获取app展示字段数据
|
|
|
+ // getShowList(type) {
|
|
|
+ // const params = {
|
|
|
+ // devicekind: type,
|
|
|
+ // pagetype: "detail",
|
|
|
+ // pageNo: 1,
|
|
|
+ // pageSize: 100,
|
|
|
+ // };
|
|
|
+ // new Promise((resolve, reject) => {
|
|
|
+ // api
|
|
|
+ // .getShowColumList(params)
|
|
|
+ // .then((response) => {
|
|
|
+ // if (response.data.code == 200) {
|
|
|
+ // this.typeList = response.data.result.records;
|
|
|
+ // } else {
|
|
|
+ // resolve(response);
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // .catch((error) => {
|
|
|
+ // reject(error);
|
|
|
+ // });
|
|
|
+ // });
|
|
|
+ // },
|
|
|
//获取详情数据
|
|
|
getDeviceInfo(ID) {
|
|
|
let IDString = String(ID); // 将 ID 转换为字符串
|
|
@@ -456,6 +607,9 @@ export default {
|
|
|
this.doorNetStatus = result.netStatus;
|
|
|
this.warnFlag = result.warnLevel_str;
|
|
|
this.readTime = result.readTime;
|
|
|
+ this.qidongfengji = result.readData.Fan1StartStatus
|
|
|
+ ? result.readData.Fan1StartStatus
|
|
|
+ : result.readData.Fan2StartStatus;
|
|
|
var maxarea = result.maxarea;
|
|
|
this.windowAngle =
|
|
|
(this.tableData.forntArea / maxarea) * 100 * 0.9;
|
|
@@ -561,7 +715,16 @@ export default {
|
|
|
grid-template-columns: repeat(4, 1fr);
|
|
|
gap: 5px; /* 可以根据需要调整行列之间的间距 */
|
|
|
}
|
|
|
-
|
|
|
+.fanContent {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ margin-top: 10rpx;
|
|
|
+ margin-bottom: 10rpx;
|
|
|
+}
|
|
|
+.top,
|
|
|
+.bottom {
|
|
|
+ flex: 1; /* 各占 50% */
|
|
|
+}
|
|
|
.flcard {
|
|
|
padding: 20rpx;
|
|
|
background-color: #ffffff;
|