query: {},
接口 1
aa(){
this.lockLoading = true
this.loading = true;
request.get(‘/api/commission/v1/getStoreManagerPerformanceList‘, {
params: this.query
}).then(result => {
this.loading = false;
this.dataList = result.data;
})
},
}
接口 2
aa(){
this.lockLoading = true
await request.get(`/api/commission/v1/storeManagerPerformanceListLock?beginDate=${this.query.beginDate}&endDate=${this.query.endDate}`)
.then( res => {
console.log(‘res‘,res)
if (res.code == 200) {
//this.dataList = result.data;
this.$message.success("操作成功!")
} else {
this.$message.error(res.err);
}
this.lockLoading = false
})
}
接口 3
aa(){
this.lockLoading = true
await request.get(‘/api/commission/v1/getConsultantPerformanceList/excel?beginDate=‘ + this.query.beginDate +‘&endDate=‘+this.query.endDate)
.then( res => {
console.log(‘res‘,res)
if (res.code == 200) {
//this.dataList = result.data;
this.$message.success("操作成功!")
} else {
this.$message.error(res.err);
}
this.lockLoading = false
})
}