task#15348,培训文档和文档材料获取supplierId

This commit is contained in:
2024-10-09 09:37:49 +08:00
parent 31d3bcf071
commit f255bf48e4
2 changed files with 9 additions and 5 deletions

View File

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

View File

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