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=[]