Explorar el Código

添加显示视频限制

wangchao hace 3 años
padre
commit
0abf847a9c
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. 6 2
      pages/user/depotMonitoring.vue

+ 6 - 2
pages/user/depotMonitoring.vue

@@ -10,7 +10,8 @@
 					:range="warehouseList"></u-picker>
 			</view>
 		</view>
-		<view class="content">
+		<view class="content no-content" v-if="warehouseName!='山东诸城迈饶库'">暂无视频</view>
+		<view class="content" v-if="warehouseName=='山东诸城迈饶库'">
 			<view class='title'>监控视频</view>
 			<view class="video-list">
 				<view class="video-list-item" v-for="(item,index) in videoList" :key="index">
@@ -87,7 +88,7 @@
 		computed: {
 			...mapState(['hasLogin', 'userInfo']),
 		},
-		onShow() {
+		onShow() {debugger
 			this.$api.doRequest('get', '/commonUser/api/checkSession').then(res => {
 				console.log("checkSession", res)
 				if (res.data.data == "INVALID") {
@@ -251,4 +252,7 @@
 			}
 		}
 	}
+	.no-content{
+		text-align: center;
+	}
 </style>