wangxy 1 month ago
parent
commit
fc8892a47c

+ 6 - 1
pages/admin/zijiazheng/banzhengshuliang.vue

@@ -32,8 +32,13 @@
 	
 	const certList = ref([])
 	
+	const startDate = ref(null)
+	const endDate = ref(null)
+	
 	onLoad((options) =>{
 			listIds.value = options.listIds.split(',');
+			startDate.value = options.startDate;
+			endDate.value = options.endDate;
 			getCertInfo()
 	})
 	
@@ -50,7 +55,7 @@
 	}
 	 function goUpPage() {
 		  uni.redirectTo({
-		  	url:'/pages/admin/zijiazheng/index'
+		  	url:`/pages/admin/zijiazheng/index?startDate=${startDate.value}&endDate=${endDate.value}`
 		  })
 	  }
 </script>

+ 12 - 2
pages/admin/zijiazheng/index.vue

@@ -34,6 +34,9 @@
 		reactive,
 		ref
 	} from "vue";
+	import {
+		onLoad
+	} from "@dcloudio/uni-app"
 
 	const data = reactive({
 		list: [], // 办证列表
@@ -41,6 +44,13 @@
 		endDate: '',
 		range: []
 	})
+	onLoad((options) => {
+		data.range[0] = options.startDate;
+		data.range[1] = options.endDate;
+		if (data.range.length) {
+			getZigongsiList()
+		}
+	})
 
 	function goUpPage() {
 		uni.redirectTo({
@@ -70,13 +80,13 @@
 
 	function checkApplyCert(item) {
 		uni.redirectTo({
-			url: `/pages/admin/zijiazheng/banzhengshuliang?listIds=${item.applyList.join(',')}`
+			url: `/pages/admin/zijiazheng/banzhengshuliang?listIds=${item.applyList.join(',')}&startDate=${data.range[0]}&endDate=${data.range[1]}`
 		})
 	}
 
 	function checkCert(item) {
 		uni.redirectTo({
-			url: `/pages/admin/zijiazheng/yibanzhengshuliang?listIds=${item.certList.join(',')}`
+			url: `/pages/admin/zijiazheng/yibanzhengshuliang?listIds=${item.certList.join(',')}&startDate=${data.range[0]}&endDate=${data.range[1]}`
 		})
 	}
 </script>

+ 6 - 1
pages/admin/zijiazheng/yibanzhengshuliang.vue

@@ -32,8 +32,13 @@
 	
 	const certList = ref([])
 	
+	const startDate = ref(null)
+	const endDate = ref(null)
+	
 	onLoad((options) =>{
 			listIds.value = options.listIds.split(',');
+			startDate.value = options.startDate;
+			endDate.value = options.endDate;
 			getCertInfo()
 	})
 	
@@ -51,7 +56,7 @@
 	
 	function goUpPage() {
 		  uni.redirectTo({
-		  	url:'/pages/admin/zijiazheng/index'
+		  	url:`/pages/admin/zijiazheng/index?startDate=${startDate.value}&endDate=${endDate.value}`
 		  })
 	}
 </script>