task#15348,培训文档和文档材料获取supplierId
This commit is contained in:
@ -66,10 +66,13 @@ export default {
|
|||||||
// trainingType:1,
|
// trainingType:1,
|
||||||
isLoading:false,
|
isLoading:false,
|
||||||
show:false,
|
show:false,
|
||||||
showEmpty:false
|
showEmpty:false,
|
||||||
|
supplierId:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
this.supplierId = urlParams.get('supplierId');
|
||||||
this.getNormalList()
|
this.getNormalList()
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
@ -87,7 +90,7 @@ export default {
|
|||||||
async getNormalList(){
|
async getNormalList(){
|
||||||
let res= await getNormalList({
|
let res= await getNormalList({
|
||||||
type:2,
|
type:2,
|
||||||
id:33041,
|
id:this.supplierId,//33041,
|
||||||
text:this.keyword || '',
|
text:this.keyword || '',
|
||||||
})
|
})
|
||||||
this.totalList=[]
|
this.totalList=[]
|
||||||
|
@ -70,12 +70,13 @@ export default {
|
|||||||
show:false,
|
show:false,
|
||||||
showEmpty:false,
|
showEmpty:false,
|
||||||
isLoading:false,
|
isLoading:false,
|
||||||
|
supplierId:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
const supplierId = urlParams.get('supplierId');
|
this.supplierId = urlParams.get('supplierId');
|
||||||
this.$toast(supplierId);
|
// this.$toast(this.supplierId);
|
||||||
this.getTrainingList();
|
this.getTrainingList();
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
@ -93,7 +94,7 @@ export default {
|
|||||||
async getTrainingList(){
|
async getTrainingList(){
|
||||||
let res= await getTrainingList({
|
let res= await getTrainingList({
|
||||||
type:2,
|
type:2,
|
||||||
id:33041,
|
id:this.supplierId,//33041,
|
||||||
text:this.keyword || '',
|
text:this.keyword || '',
|
||||||
})
|
})
|
||||||
this.totalList=[]
|
this.totalList=[]
|
||||||
|
Reference in New Issue
Block a user