Commit 8b5c841a by Kyle_Li

修复批量积分导入详情分页

parent 320345da
......@@ -134,11 +134,23 @@ export default {
exportExcel() {
window.location.href = `${url.downloadErrorData}?requestProject=member&batchType=${this.batchType}&batchId=${this.batchId}` ;
},
// 换页
handleCurrentChange(val) {
this.page.currentPage = val;
this.getLogsDetail();
},
// 修改每页显示数量
handleSizeChange(val) {
this.page.pageSize = val;
this.getLogsDetail();
},
// 获取数据
getLogsDetail() {
let params = {
batchId: this.batchId,
batchType: this.batchType
batchType: this.batchType,
currentPage: this.page.currentPage,
pageSize: this.page.pageSize
}
doFetchqs(url.queryBatchRetErrInfo, params).then(res => {
if(res.data.errorCode == 0) {
......@@ -156,9 +168,13 @@ export default {
},
created() {
if(!this.$route.query.data) {
checkFalse('123')
// checkFalse('123')
this.$router.go(-1);
} else {
const { batchId, batchType, total, succeedNum, errorNum } = this.$route.query.data;
if(!batchType) {
this.$router.go(-1);
}
this.batchId = batchId;
this.batchType = batchType;
console.log(this.batchType)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment