From f255bf48e4a7fc72253108654e54f56ea56f19d0 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Wed, 9 Oct 2024 09:37:49 +0800 Subject: [PATCH] =?UTF-8?q?task#15348,=E5=9F=B9=E8=AE=AD=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=92=8C=E6=96=87=E6=A1=A3=E6=9D=90=E6=96=99=E8=8E=B7=E5=8F=96?= =?UTF-8?q?supplierId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/documentView/docmentList.vue | 7 +++++-- src/views/documentView/trainDocment.vue | 7 ++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/views/documentView/docmentList.vue b/src/views/documentView/docmentList.vue index 89aae2a0..641f23a8 100644 --- a/src/views/documentView/docmentList.vue +++ b/src/views/documentView/docmentList.vue @@ -66,10 +66,13 @@ export default { // trainingType:1, isLoading:false, show:false, - showEmpty:false + showEmpty:false, + supplierId:'', } }, mounted() { + const urlParams = new URLSearchParams(window.location.search); + this.supplierId = urlParams.get('supplierId'); this.getNormalList() }, methods:{ @@ -87,7 +90,7 @@ export default { async getNormalList(){ let res= await getNormalList({ type:2, - id:33041, + id:this.supplierId,//33041, text:this.keyword || '', }) this.totalList=[] diff --git a/src/views/documentView/trainDocment.vue b/src/views/documentView/trainDocment.vue index 0b0a7aa1..bd022484 100644 --- a/src/views/documentView/trainDocment.vue +++ b/src/views/documentView/trainDocment.vue @@ -70,12 +70,13 @@ export default { show:false, showEmpty:false, isLoading:false, + supplierId:'', } }, mounted() { const urlParams = new URLSearchParams(window.location.search); - const supplierId = urlParams.get('supplierId'); - this.$toast(supplierId); + this.supplierId = urlParams.get('supplierId'); + // this.$toast(this.supplierId); this.getTrainingList(); }, methods:{ @@ -93,7 +94,7 @@ export default { async getTrainingList(){ let res= await getTrainingList({ type:2, - id:33041, + id:this.supplierId,//33041, text:this.keyword || '', }) this.totalList=[]