From f3a15b829f8def9e0033c5482f72c9e0a92eb646 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Fri, 20 Dec 2024 11:22:18 +0800 Subject: [PATCH] =?UTF-8?q?task#=EF=BC=8C=E5=8F=B8=E6=9C=BA=E5=9F=B9?= =?UTF-8?q?=E8=AE=AD=E6=96=87=E6=A1=A3=E5=92=8C=E6=96=87=E6=A1=A3=E6=9D=90?= =?UTF-8?q?=E6=96=99=E6=B7=BB=E5=8A=A0=E5=85=B3=E9=94=AE=E8=AF=8D=E6=8E=A5?= =?UTF-8?q?=E6=94=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/documentView/diverTrainDocment.vue | 1 + src/views/documentView/docmentList.vue | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/views/documentView/diverTrainDocment.vue b/src/views/documentView/diverTrainDocment.vue index 74121483..ce11214d 100644 --- a/src/views/documentView/diverTrainDocment.vue +++ b/src/views/documentView/diverTrainDocment.vue @@ -101,6 +101,7 @@ export default { const urlParams = new URLSearchParams(window.location.search); this.driverId = urlParams.get('driverId'); this.time=timeFormat(Date.now()) + this.keyword=urlParams.get('keyWord') || '' this.getTrainingList(); document.addEventListener('visibilitychange', async ( ) => { let state = document.visibilityState diff --git a/src/views/documentView/docmentList.vue b/src/views/documentView/docmentList.vue index d0b71ab4..92701c95 100644 --- a/src/views/documentView/docmentList.vue +++ b/src/views/documentView/docmentList.vue @@ -103,6 +103,9 @@ export default { const urlParams = new URLSearchParams(window.location.search); this.supplierId = urlParams.get('supplierId'); this.driverId = urlParams.get('driverId'); + if(this.driverId){ + this.keyword=urlParams.get('keyWord') || '' + } this.getNormalList() }, methods:{