From 93d6a77c5f9a1e8b796db773c36533e6d8f2cf07 Mon Sep 17 00:00:00 2001
From: wjt <1797368093@qq.com>
Date: 星期五, 21 六月 2024 15:50:36 +0800
Subject: [PATCH] 执法相关接口对接

---
 /dev/null                                  |    0 
 api/policy.js                              |    8 +++-
 policy/translateRecord/translateRecord.vue |    8 ---
 static/i02.png                             |    0 
 policy/translate/translate.vue             |   48 ++++++++++++++++++------
 static/i01.png                             |    0 
 policy/translate/translate.scss            |    1 
 static/i03.png                             |    0 
 static/qiye/q07.png                        |    0 
 9 files changed, 44 insertions(+), 21 deletions(-)

diff --git a/api/policy.js b/api/policy.js
index 8021a4b..7f62732 100644
--- a/api/policy.js
+++ b/api/policy.js
@@ -23,8 +23,12 @@
 export function orderDetails(data) {
 	return http.get(`/enforce/order/${data.orderId}`, {params: data}, { custom: { loading: true }});
 }
-// 鎵ф硶瀹℃壒 
+// 鎵ф硶瀹℃壒鍒楄〃 
 
 export function checkLogList(data) {
 	return http.get(`/enforce/check/log/list`, {params: data}, { custom: { loading: true }});
-}
\ No newline at end of file
+}
+// 鎵ф硶瀹℃壒 /enforce/check/log/upd
+export function checkUpd(data) {
+	return http.get(`/enforce/check/log/upd`, {params: data}, { custom: { loading: true }});
+}
diff --git a/policy/translate/translate.scss b/policy/translate/translate.scss
index 0b2161f..1828f2e 100644
--- a/policy/translate/translate.scss
+++ b/policy/translate/translate.scss
@@ -1,4 +1,5 @@
 .page-box{
+	padding-bottom: 140rpx;
 	.list{
 		margin: 20rpx 32rpx;
 		.select-image{
diff --git a/policy/translate/translate.vue b/policy/translate/translate.vue
index 31976b5..f463722 100644
--- a/policy/translate/translate.vue
+++ b/policy/translate/translate.vue
@@ -8,13 +8,13 @@
 				</view>
 				<view class="list-item">
 					<view class="top-title">
-						<text>24骞�5鏈堢獊鍑绘鏌ユ秷闃插畨鍏�</text>
+						<text>{{item.checkReason}}</text>
 						<text class="status">寰呭鎵�</text>
 					</view>
 					<view class="user-info">
 						<text>鐜嬫�濋洦</text>
 						<view class="driver"></view>
-						<text>鎵ф硶涓�澶ч槦</text>
+						<text>{{item.checkDeptName}}</text>
 					</view>
 					<view class="set-line">
 						<text>鎵ф硶瀵硅薄锛�</text>娌冲崡瑙夐啋绉戞妧鏈夐檺鍏徃
@@ -35,6 +35,7 @@
 					</view>
 				</view>
 			</view>
+			<u-empty v-if="!list.length"></u-empty>
 		</view>
 		<view class="down" v-if="!isJudege">
 			<view class="button" @click="goRecord">瀹℃壒璁板綍</view>
@@ -54,30 +55,44 @@
 
 <script>
 	import popupCom from '@/policy/components/popup.vue'
+	import { checkLogList,checkUpd } from '@/api/policy.js'
 	export default {
 		components: {
 			popupCom
 		},
 		data() {
 			return {
-				list1: [{
-					name: '寰呬笂鎶�',
-				}, {
-					name: '宸蹭笂鎶�',
-				}],
 				isJudege: false,
 				list: [
-					{
-						isSelect: false
-					}
+					
 				],
+				total: 1,
+				queryms: {
+					pageNum: 1,
+					pageSize: 10,
+					checkStatus: 0
+				}
 			}
 		},
 		computed: {
 			isAllSelect(){
-				const value = this.list.every(item => item.isSelect)
-				return value
+				if(this.list.length) {
+					const value = this.list.every(item => item.isSelect)
+					return value
+				} else {
+					return false
+				}
 			}
+		},
+		onLoad() {
+			this.checkLogList()
+		},
+		onReachBottom() {
+			if(this.total == this.list.length) {
+				return
+			}
+			this.queryms.pageNum++
+			this.checkLogList()
 		},
 		methods: {
 			goRecord() {
@@ -121,6 +136,15 @@
 			cancelSelect() {
 				this.isJudege = false
 				this.list.map(item => item.isSelect = false)
+			},
+			checkLogList() {
+				checkLogList(this.queryms).then(val => {
+					val.data.rows.map(item => {
+						item.isSelect = false
+					})
+					this.list = [...this.list,...val.data.rows ]
+					this.total = val.data.total
+				})
 			}
 		}
 	}
diff --git a/policy/translateRecord/translateRecord.vue b/policy/translateRecord/translateRecord.vue
index c80671f..7ba1ee2 100644
--- a/policy/translateRecord/translateRecord.vue
+++ b/policy/translateRecord/translateRecord.vue
@@ -45,13 +45,7 @@
 	export default {
 		data() {
 			return {
-				list1: [{
-					name: '鍏ㄩ儴',
-				}, {
-					name: '閫氳繃',
-				}, {
-					name: '鎷掔粷',
-				}]
+			
 			}
 		},
 		methods: {
diff --git a/static/i01.png b/static/i01.png
index 6588be6..d4ce466 100644
--- a/static/i01.png
+++ b/static/i01.png
Binary files differ
diff --git a/static/i02.png b/static/i02.png
index c691772..9182cdd 100644
--- a/static/i02.png
+++ b/static/i02.png
Binary files differ
diff --git a/static/i03.png b/static/i03.png
index 7514b15..5e01eb9 100644
--- a/static/i03.png
+++ b/static/i03.png
Binary files differ
diff --git a/static/qiye/q05.png b/static/qiye/q05.png
deleted file mode 100644
index 09dcb16..0000000
--- a/static/qiye/q05.png
+++ /dev/null
Binary files differ
diff --git a/static/qiye/q07.png b/static/qiye/q07.png
index dde1bd4..6fdffee 100644
--- a/static/qiye/q07.png
+++ b/static/qiye/q07.png
Binary files differ

--
Gitblit v1.9.1