|
@@ -206,349 +206,369 @@
|
|
|
</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"
|
|
|
+ <div class="monitor-content">
|
|
|
+ <div class="zhuji">
|
|
|
+ <div>主机</div>
|
|
|
+ <div
|
|
|
+ class="itemback"
|
|
|
+ v-for="(item, index) in showColum[TabCur + '_monitor_left']"
|
|
|
+ :key="index"
|
|
|
+ v-show="item.appShow == 1"
|
|
|
>
|
|
|
- {{ 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"
|
|
|
+ <div
|
|
|
+ class="datacardtime"
|
|
|
+ v-if="item.monitorcode == 'readTime' && item.datatype == 1"
|
|
|
>
|
|
|
- {{
|
|
|
- tableData[
|
|
|
- item.monitorcode.startsWith("Fan")
|
|
|
- ? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
- : item.monitorcode
|
|
|
- ] !== undefined &&
|
|
|
- tableData[
|
|
|
- item.monitorcode.startsWith("Fan")
|
|
|
- ? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
- : item.monitorcode
|
|
|
- ] !== null
|
|
|
- ? tableData[
|
|
|
+ <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.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
: item.monitorcode
|
|
|
- ]
|
|
|
- : "-"
|
|
|
- }}
|
|
|
- </view>
|
|
|
- <view
|
|
|
- v-else-if="item.datatype == 2"
|
|
|
- class="demo-layout bg-purple-light"
|
|
|
- style="margin-top: 60rpx; color: #3787fe"
|
|
|
- >
|
|
|
- {{
|
|
|
- tableData[
|
|
|
- item.monitorcode.startsWith("Fan")
|
|
|
- ? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
- : item.monitorcode
|
|
|
- ] !== undefined &&
|
|
|
- tableData[
|
|
|
- item.monitorcode.startsWith("Fan")
|
|
|
- ? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
- : item.monitorcode
|
|
|
- ] !== null
|
|
|
- ? tableData[
|
|
|
+ ] !== undefined &&
|
|
|
+ tableData[
|
|
|
item.monitorcode.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
: item.monitorcode
|
|
|
- ]
|
|
|
- : "-"
|
|
|
- }}
|
|
|
- </view>
|
|
|
- <div class="spacer"></div>
|
|
|
- <!-- 间距 -->
|
|
|
- <view
|
|
|
- class="demo-layout bg-purple-light"
|
|
|
- style="color: #677799"
|
|
|
- >
|
|
|
- {{ item.des }}
|
|
|
- </view>
|
|
|
+ ] !== null
|
|
|
+ ? tableData[
|
|
|
+ item.monitorcode.startsWith("Fan")
|
|
|
+ ? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
+ : item.monitorcode
|
|
|
+ ]
|
|
|
+ : "-"
|
|
|
+ }}
|
|
|
+ </view>
|
|
|
+ <view
|
|
|
+ v-else-if="item.datatype == 2"
|
|
|
+ class="demo-layout bg-purple-light"
|
|
|
+ style="margin-top: 60rpx; color: #3787fe"
|
|
|
+ >
|
|
|
+ {{
|
|
|
+ tableData[
|
|
|
+ item.monitorcode.startsWith("Fan")
|
|
|
+ ? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
+ : item.monitorcode
|
|
|
+ ] !== undefined &&
|
|
|
+ tableData[
|
|
|
+ item.monitorcode.startsWith("Fan")
|
|
|
+ ? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
+ : item.monitorcode
|
|
|
+ ] !== null
|
|
|
+ ? tableData[
|
|
|
+ item.monitorcode.startsWith("Fan")
|
|
|
+ ? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
+ : 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>
|
|
|
- <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"
|
|
|
+ <div class="beiji">
|
|
|
+ <div>备机</div>
|
|
|
+ <div
|
|
|
+ class="itemback"
|
|
|
+ v-for="(item, index) in showColum[TabCur + '_monitor_left']"
|
|
|
+ :key="index"
|
|
|
+ v-show="item.appShow == 1"
|
|
|
>
|
|
|
- {{ 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"
|
|
|
+ <div
|
|
|
+ class="datacardtime"
|
|
|
+ v-if="item.monitorcode == 'readTime' && item.datatype == 1"
|
|
|
>
|
|
|
- {{
|
|
|
- tableData[
|
|
|
- item.monitorcode.startsWith("Fan")
|
|
|
- ? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
- : item.monitorcode
|
|
|
- ] !== undefined &&
|
|
|
- tableData[
|
|
|
- item.monitorcode.startsWith("Fan")
|
|
|
- ? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
- : item.monitorcode
|
|
|
- ] !== null
|
|
|
- ? tableData[
|
|
|
+ <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.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
: item.monitorcode
|
|
|
- ]
|
|
|
- : "-"
|
|
|
- }}
|
|
|
- </view>
|
|
|
- <view
|
|
|
- v-else-if="item.datatype == 2"
|
|
|
- class="demo-layout bg-purple-light"
|
|
|
- style="margin-top: 60rpx; color: #3787fe"
|
|
|
- >
|
|
|
- {{
|
|
|
- tableData[
|
|
|
- item.monitorcode.startsWith("Fan")
|
|
|
- ? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
- : item.monitorcode
|
|
|
- ] !== undefined &&
|
|
|
- tableData[
|
|
|
- item.monitorcode.startsWith("Fan")
|
|
|
- ? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
- : item.monitorcode
|
|
|
- ] !== null
|
|
|
- ? tableData[
|
|
|
+ ] !== undefined &&
|
|
|
+ tableData[
|
|
|
item.monitorcode.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
: item.monitorcode
|
|
|
- ]
|
|
|
- : "-"
|
|
|
- }}
|
|
|
- </view>
|
|
|
- <div class="spacer"></div>
|
|
|
- <!-- 间距 -->
|
|
|
- <view
|
|
|
- class="demo-layout bg-purple-light"
|
|
|
- style="color: #677799"
|
|
|
- >
|
|
|
- {{ item.des }}
|
|
|
- </view>
|
|
|
+ ] !== null
|
|
|
+ ? tableData[
|
|
|
+ item.monitorcode.startsWith("Fan")
|
|
|
+ ? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
+ : item.monitorcode
|
|
|
+ ]
|
|
|
+ : "-"
|
|
|
+ }}
|
|
|
+ </view>
|
|
|
+ <view
|
|
|
+ v-else-if="item.datatype == 2"
|
|
|
+ class="demo-layout bg-purple-light"
|
|
|
+ style="margin-top: 60rpx; color: #3787fe"
|
|
|
+ >
|
|
|
+ {{
|
|
|
+ tableData[
|
|
|
+ item.monitorcode.startsWith("Fan")
|
|
|
+ ? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
+ : item.monitorcode
|
|
|
+ ] !== undefined &&
|
|
|
+ tableData[
|
|
|
+ item.monitorcode.startsWith("Fan")
|
|
|
+ ? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
+ : item.monitorcode
|
|
|
+ ] !== null
|
|
|
+ ? tableData[
|
|
|
+ item.monitorcode.startsWith("Fan")
|
|
|
+ ? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
+ : 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>
|
|
|
</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"
|
|
|
+ <div class="monitor-content">
|
|
|
+ <div class="zhuji">
|
|
|
+ <div>主机</div>
|
|
|
+ <div
|
|
|
+ class="itemback"
|
|
|
+ v-for="(item, index) in showColum[TabCur + '_monitor_right']"
|
|
|
+ :key="index"
|
|
|
+ v-show="item.appShow == 1"
|
|
|
>
|
|
|
- {{ 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"
|
|
|
+ <div
|
|
|
+ class="datacardtime"
|
|
|
+ v-if="item.monitorcode == 'readTime' && item.datatype == 1"
|
|
|
>
|
|
|
- {{
|
|
|
- tableData[
|
|
|
- item.monitorcode.startsWith("Fan")
|
|
|
- ? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
- : item.monitorcode
|
|
|
- ] !== undefined &&
|
|
|
- tableData[
|
|
|
- item.monitorcode.startsWith("Fan")
|
|
|
- ? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
- : item.monitorcode
|
|
|
- ] !== null
|
|
|
- ? tableData[
|
|
|
+ <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.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
: item.monitorcode
|
|
|
- ]
|
|
|
- : "-"
|
|
|
- }}
|
|
|
- </view>
|
|
|
- <view
|
|
|
- v-else-if="item.datatype == 2"
|
|
|
- class="demo-layout bg-purple-light"
|
|
|
- style="margin-top: 60rpx; color: #3787fe"
|
|
|
- >
|
|
|
- {{
|
|
|
- tableData[
|
|
|
- item.monitorcode.startsWith("Fan")
|
|
|
- ? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
- : item.monitorcode
|
|
|
- ] !== undefined &&
|
|
|
- tableData[
|
|
|
- item.monitorcode.startsWith("Fan")
|
|
|
- ? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
- : item.monitorcode
|
|
|
- ] !== null
|
|
|
- ? tableData[
|
|
|
+ ] !== undefined &&
|
|
|
+ tableData[
|
|
|
item.monitorcode.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
: item.monitorcode
|
|
|
- ]
|
|
|
- : "-"
|
|
|
- }}
|
|
|
- </view>
|
|
|
- <div class="spacer"></div>
|
|
|
- <!-- 间距 -->
|
|
|
- <view
|
|
|
- class="demo-layout bg-purple-light"
|
|
|
- style="color: #677799"
|
|
|
- >
|
|
|
- {{ item.des }}
|
|
|
- </view>
|
|
|
+ ] !== null
|
|
|
+ ? tableData[
|
|
|
+ item.monitorcode.startsWith("Fan")
|
|
|
+ ? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
+ : item.monitorcode
|
|
|
+ ]
|
|
|
+ : "-"
|
|
|
+ }}
|
|
|
+ </view>
|
|
|
+ <view
|
|
|
+ v-else-if="item.datatype == 2"
|
|
|
+ class="demo-layout bg-purple-light"
|
|
|
+ style="margin-top: 60rpx; color: #3787fe"
|
|
|
+ >
|
|
|
+ {{
|
|
|
+ tableData[
|
|
|
+ item.monitorcode.startsWith("Fan")
|
|
|
+ ? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
+ : item.monitorcode
|
|
|
+ ] !== undefined &&
|
|
|
+ tableData[
|
|
|
+ item.monitorcode.startsWith("Fan")
|
|
|
+ ? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
+ : item.monitorcode
|
|
|
+ ] !== null
|
|
|
+ ? tableData[
|
|
|
+ item.monitorcode.startsWith("Fan")
|
|
|
+ ? item.monitorcode.replace(/^Fan/, "Fan1")
|
|
|
+ : 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>
|
|
|
- <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"
|
|
|
+ <div class="beiji">
|
|
|
+ <div>备机</div>
|
|
|
+ <div
|
|
|
+ class="itemback"
|
|
|
+ v-for="(item, index) in showColum[TabCur + '_monitor_right']"
|
|
|
+ :key="index"
|
|
|
+ v-show="item.appShow == 1"
|
|
|
>
|
|
|
- {{ 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"
|
|
|
+ <div
|
|
|
+ class="datacardtime"
|
|
|
+ v-if="item.monitorcode == 'readTime' && item.datatype == 1"
|
|
|
>
|
|
|
- {{
|
|
|
- tableData[
|
|
|
- item.monitorcode.startsWith("Fan")
|
|
|
- ? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
- : item.monitorcode
|
|
|
- ] !== undefined &&
|
|
|
- tableData[
|
|
|
- item.monitorcode.startsWith("Fan")
|
|
|
- ? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
- : item.monitorcode
|
|
|
- ] !== null
|
|
|
- ? tableData[
|
|
|
+ <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.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
: item.monitorcode
|
|
|
- ]
|
|
|
- : "-"
|
|
|
- }}
|
|
|
- </view>
|
|
|
- <view
|
|
|
- v-else-if="item.datatype == 2"
|
|
|
- class="demo-layout bg-purple-light"
|
|
|
- style="margin-top: 60rpx; color: #3787fe"
|
|
|
- >
|
|
|
- {{
|
|
|
- tableData[
|
|
|
- item.monitorcode.startsWith("Fan")
|
|
|
- ? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
- : item.monitorcode
|
|
|
- ] !== undefined &&
|
|
|
- tableData[
|
|
|
- item.monitorcode.startsWith("Fan")
|
|
|
- ? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
- : item.monitorcode
|
|
|
- ] !== null
|
|
|
- ? tableData[
|
|
|
+ ] !== undefined &&
|
|
|
+ tableData[
|
|
|
item.monitorcode.startsWith("Fan")
|
|
|
? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
: item.monitorcode
|
|
|
- ]
|
|
|
- : "-"
|
|
|
- }}
|
|
|
- </view>
|
|
|
- <div class="spacer"></div>
|
|
|
- <!-- 间距 -->
|
|
|
- <view
|
|
|
- class="demo-layout bg-purple-light"
|
|
|
- style="color: #677799"
|
|
|
- >
|
|
|
- {{ item.des }}
|
|
|
- </view>
|
|
|
+ ] !== null
|
|
|
+ ? tableData[
|
|
|
+ item.monitorcode.startsWith("Fan")
|
|
|
+ ? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
+ : item.monitorcode
|
|
|
+ ]
|
|
|
+ : "-"
|
|
|
+ }}
|
|
|
+ </view>
|
|
|
+ <view
|
|
|
+ v-else-if="item.datatype == 2"
|
|
|
+ class="demo-layout bg-purple-light"
|
|
|
+ style="margin-top: 60rpx; color: #3787fe"
|
|
|
+ >
|
|
|
+ {{
|
|
|
+ tableData[
|
|
|
+ item.monitorcode.startsWith("Fan")
|
|
|
+ ? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
+ : item.monitorcode
|
|
|
+ ] !== undefined &&
|
|
|
+ tableData[
|
|
|
+ item.monitorcode.startsWith("Fan")
|
|
|
+ ? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
+ : item.monitorcode
|
|
|
+ ] !== null
|
|
|
+ ? tableData[
|
|
|
+ item.monitorcode.startsWith("Fan")
|
|
|
+ ? item.monitorcode.replace(/^Fan/, "Fan2")
|
|
|
+ : 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>
|
|
@@ -707,14 +727,20 @@ export default {
|
|
|
this.showColum = showlist;
|
|
|
const key = this.TabCur + "_monitor";
|
|
|
const key1 = this.deviceType + "_monitor";
|
|
|
- if (
|
|
|
- this.showColum[key1].length &&
|
|
|
- this.showColum[key1].length > 0
|
|
|
- ) {
|
|
|
+ // if (
|
|
|
+ // this.showColum[key1].length &&
|
|
|
+ // this.showColum[key1].length > 0
|
|
|
+ // ) {
|
|
|
+ // this.deviceShowList = this.showColum[key1];
|
|
|
+ // } else {
|
|
|
+ // this.deviceShowList = this.showColum[key] || [];
|
|
|
+ // }
|
|
|
+ if (this.showColum?.[key1]?.length > 0) {
|
|
|
this.deviceShowList = this.showColum[key1];
|
|
|
} else {
|
|
|
- this.deviceShowList = this.showColum[key] || [];
|
|
|
+ this.deviceShowList = this.showColum[key] ?? [];
|
|
|
}
|
|
|
+
|
|
|
// this.deviceShowList = this.showColum[key];
|
|
|
} else {
|
|
|
resolve(response);
|
|
@@ -1110,4 +1136,8 @@ div.window_new_5 {
|
|
|
.passArea {
|
|
|
border-color: red;
|
|
|
}
|
|
|
+.monitor-content {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+}
|
|
|
</style>
|