ming 3 gadi atpakaļ
vecāks
revīzija
7d6e94c84b

+ 1 - 1
pages/analyse/monthDetail/monthDetail.vue

@@ -80,7 +80,7 @@
 
 					<tr>
 						<td colspan="3">合计</td>
-						<td>{{getData.point_count!='null'?getData.point_count:0}}</td>
+						<td>{{getData.point_count=='null'?'-':getData.point_count}}</td>
 					</tr>
 				</table>
 			</view>

+ 1 - 1
pages/device-Manage/export/export.vue

@@ -4,7 +4,7 @@
 		<view class="ding">
 			<!-- <calendar></calendar> -->
 			<view class="example-body">
-				<uni-datetime-picker v-model="datetimerange" type="datetimerange" start-placeholder="请选择开始时间"
+				<uni-datetime-picker v-model="datetimerange" type="daterange" start-placeholder="请选择开始时间"
 					end-placeholder="请选择结束时间" start="2000-3-20 12:00:00" end="2025-10-20 20:00:00" rangeSeparator="至" />
 			</view>
 		</view>

+ 1 - 1
pages/export/export.vue

@@ -4,7 +4,7 @@
 		<view class="ding">
 			<!-- <calendar></calendar> -->
 			<view class="example-body">
-				<uni-datetime-picker v-model="datetimerange" type="datetimerange" start-placeholder="请选择开始时间"
+				<uni-datetime-picker v-model="datetimerange" type="daterange" start-placeholder="请选择开始时间"
 					end-placeholder="请选择结束时间" start="2000-3-20 12:00:00" end="2025-10-20 20:00:00" rangeSeparator="至" />
 			</view>
 		</view>

+ 1 - 1
pages/index/index.vue

@@ -66,7 +66,7 @@
 					v-for="(item,index) in cuIconList" :key="index">
 					<image :src="item.imgUrl" style="width:100rpx;height:100rpx"></image>
 					<view class="cu-tag badge" v-if="item.badge!=0">
-						<block v-if="item.badge!=1">{{item.badge>99?'99+':item.badge}}</block>
+						<block v-if="item.badge!=0">{{item.badge>99?'99+':item.badge}}</block>
 					</view>
 					<text>{{item.name}}</text>
 				</view>

+ 4 - 8
pages/inspectList/processList/processList.vue

@@ -5,14 +5,9 @@
 			<scroll-view scroll-x class="bg-white nav text-center">
 				<view class="cu-item" :class="index==TabCur?'text-blue cur':''" v-for="(item,index) in tabNav"
 					:key="index" @tap="tabSelect" :data-id="index">
-					<!-- <view v-if="TabCur==index" class="cu-tag badge">
-						<block class="cu-tag badge">{{TabCur? unporcessList.length:record_count}} </block>
-					</view> -->
-					
-					<view v-if="TabCur==index&&!TabCur" class="cu-tag badge">
-						<block class="cu-tag badge">{{record_count}} </block>
+					<view v-if="TabCur==index&&!TabCur&&record_count" class="cu-tag badge">
+						<block class="">{{record_count}} </block>
 					</view>
-					
 					{{item}}
 				</view>
 			</scroll-view>
@@ -41,7 +36,7 @@
 						</view>
 					</view>
 					<view class=" text-center margin-top" v-if="record_count == 0">暂无数据...</view>
-					<view v-show="isLoadMore&&record_count != 0">
+					<view v-show="isLoadMore&&record_count != 0&&this.page>1">
 						<uni-load-more :status="loadStatus"></uni-load-more>
 					</view>
 				</view>
@@ -174,6 +169,7 @@
 					data: params,
 					showLoading: true
 				})
+				// this.data_res = res.data.record_count ? 1 : 0
 				if (res.data.record_count) {
 					if (whichTab == 0) {
 						this.unporcessList = this.unporcessList.concat(res.data.data)

+ 2 - 2
pages/inspectList/processedDetail/processedDetail.vue

@@ -13,8 +13,8 @@
 				</view>
 				<view class="info-content">
 					<view class="info-one-info " style="display:block">
-						<text >{{type==1?this.getData.artificial_code:this.getData.supervise_code}}:</text>  
-						<br>
+						<text style="width:auto!important">{{type==1?this.getData.artificial_code:this.getData.supervise_code}}:</text>  
+						
 					
 						<text>{{this.getData.content}}</text>
 					</view>

+ 3 - 2
pages/inspectList/unprocessDetail/unprocessDetail.vue

@@ -13,8 +13,9 @@
 				</view>
 				<view class="info-content">
 					<view class="info-one-info ">
-						<text>{{type==1?this.getData.artificial_code:this.getData.supervise_code}}</text>  
-						<text>{{this.getData.content}}</text>
+						<text style="width:100%!important">{{type==1?this.getData.artificial_code:this.getData.supervise_code}}:</text>  
+					
+						<text  style="width:100%!important">{{this.getData.content}}</text>
 					</view>
 				
 				</view>

+ 73 - 28
pages/processList/processList.vue

@@ -1,6 +1,7 @@
 <template>
 	<view class="processWrapper ">
-		<view style="height:98rpx"></view>
+		<view v-if="TabCur==0" style="height:98rpx"></view>
+		<view v-if="TabCur==1" style="height:198rpx"></view>
 		<view class="ding">
 			<scroll-view scroll-x class="bg-white nav text-center">
 				<view class="cu-item" :class="index==TabCur?'text-blue cur':''" v-for="(item,index) in tabNav"
@@ -14,6 +15,11 @@
 					{{item}}
 				</view>
 			</scroll-view>
+
+			<view class="example-body" v-if="TabCur==1">
+				<uni-datetime-picker v-model="datetimerange" type="daterange" start-placeholder="请选择开始时间"
+					end-placeholder="请选择结束时间" start="2000-3-20 12:00:00" end="2025-10-20 20:00:00" rangeSeparator="至" />
+			</view>
 		</view>
 
 		<block v-if="TabCur==0">
@@ -39,16 +45,20 @@
 						</view>
 					</view>
 					<view class=" text-center margin-top" v-if="alarm_count == 0&&data_res == 0">暂无数据...</view>
-					
+
 					<view v-show="isLoadMore&&alarm_count != 0&&this.page>1">
 						<uni-load-more :status="loadStatus"></uni-load-more>
 					</view>
-					
+
 				</view>
 			</view>
 		</block>
 
 		<block v-if="TabCur==1">
+
+			<!-- <calendar></calendar> -->
+
+
 			<view class="processList">
 				<view class="cu-list menu-avatar ">
 					<view class="cu-item" v-for="(item,index) in porcessedList" :key="index">
@@ -77,7 +87,7 @@
 				</view>
 			</view>
 		</block>
-		
+
 	</view>
 </template>
 
@@ -97,8 +107,11 @@
 				tabNav: ['未处理', '已处理'],
 				alarm_count: '',
 				alarm_count1: '',
-				
-				data_res:1,
+				datetimerange: ['', ''],
+
+				data_res: 1,
+				start_time: '',
+				end_time: '',
 
 				page: 1,
 				pageSize: 10,
@@ -106,14 +119,14 @@
 				isLoadMore: false, //是否加载中
 			};
 		},
-		
+
 		onBackPress(event) {
 			uni.redirectTo({
 				url: '../alarmingList/alarmingList'
 			});
 			return true;
 		},
-		
+
 
 		onReachBottom() { //上拉触底函数
 			if (!this.isLoadMore) { //此处判断,上锁,防止重复请求
@@ -121,27 +134,49 @@
 				this.page += 1
 				this.getProcessData({
 					"company_code": uni.getStorageSync('selectedCode'),
-					"type": this.type, 
+					"type": this.type,
 					"processing_status": this.TabCur,
 					"page": this.page,
 					"pageSize": this.pageSize,
+					"start_time": this.start_time,
+					"end_time": this.end_time,
 				}, this.TabCur);
 			}
 		},
+		watch: {
+			datetimerange(newval) {
+				console.log('newval')
+				console.log(newval)
+
+				this.start_time = newval[0];
+				this.end_time = newval[1]
+
+				this.porcessedList = [],
+					this.page = 1,
+
+					this.goDone()
+
+
+
+			}
+		},
+		onShow: function() {
+			console.log(111)
+
+
+		},
 
 		onLoad: function(option) {
-			this.getProcessData({
-				"company_code": uni.getStorageSync('selectedCode'),
-				"type": option.type, 
-				"processing_status": 0,
-				"page": this.page,
-				"pageSize": this.pageSize,
-			}, 0);
+			console.log(222)
 
 			this.companyCode = option.companyCode;
 			this.processingStatus = 1
 			this.type = option.type;
 
+			this.goDone()
+
+
+
 			let url = "";
 			switch (parseInt(option.type)) {
 				case 1:
@@ -194,7 +229,21 @@
 				complete: () => {}
 			});
 		},
+
 		methods: {
+			goDone() {
+				this.getProcessData({
+					"company_code": uni.getStorageSync('selectedCode'),
+					"type": this.type,
+					"processing_status": this.TabCur,
+					"page": this.page,
+					"pageSize": this.pageSize,
+					"start_handle_time": this.start_time,
+					"end_handle_time": this.end_time,
+				}, this.TabCur);
+			},
+
+
 
 			async getProcessData(params, whichTab) {
 				const res = await this.$myRequest({
@@ -202,8 +251,8 @@
 					data: params,
 					showLoading: true
 				})
-				this.data_res = res.data.alarm_count?1:0
-				if (res.data.alarm_count) {
+				this.data_res = res.data.alarm_count ? 1 : 0
+				if (res.data.data) {
 					if (whichTab == 0) {
 						this.unporcessList = this.unporcessList.concat(res.data.data)
 						this.alarm_count = parseInt(res.data.alarm_count)
@@ -224,23 +273,19 @@
 			},
 
 			tabSelect(e) {
+
 				this.unporcessList = [],
 					this.porcessedList = [],
-					this.page = 1
+					this.page = 1,
+					this.datetimerange = ['', ''],
 
-				console.log(e.currentTarget);
+					console.log(e.currentTarget);
 				this.TabCur = e.currentTarget.dataset.id;
 				this.scrollLeft = (e.currentTarget.dataset.id - 1) * 60;
-
-				this.getProcessData({
-					"company_code": uni.getStorageSync('selectedCode'),
-					"type": this.type,
-					"processing_status": e.currentTarget.dataset.id,
-					"page": this.page,
-					"pageSize": this.pageSize
-				}, this.TabCur);
 			},
 
+
+
 			// 页面跳转
 			goUnprocessDetail(item) {
 				uni.navigateTo({

+ 3 - 1
pages/videoList/videoDetail/videoDetail.vue

@@ -48,7 +48,9 @@
 			this.companyCode = option.companyCode
 			this.deviceType = option.deviceType
 			this.deviceCode=option.deviceCode
-			this.videoUrl = 'http://47.103.74.123/hls/'+option.deviceCode+'.m3u8';
+			// this.videoUrl = 'http://47.103.74.123/hls/'+option.deviceCode+'.m3u8';
+			this.videoUrl='http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8'
+			alert(this.videoUrl)
 			
 		},
 

+ 0 - 1
pages/videoList/videoList.vue

@@ -87,7 +87,6 @@
 		methods: {
 
 			chk_video() {
-			
 				uni.request({
 					url: 'https://fire.usky.cn:8443/YtIoT/cgi-bin/demo2.cgi',
 					data: 'queryJson:' + JSON.stringify({