考核编辑页项目列表分页修复

dev_2022-05-11
jialong.yu 3 years ago
parent fc2de99dbf
commit 9b30febee4
  1. 13
      src/pages/assessment/add/index.vue

@ -404,17 +404,10 @@ export default {
projectName:this.keyword
}
this.$post(this.api.projectListByCourseId,data).then(res => {
console.log(res)
let { status, data } = res;
if (status === 200 && data.records) {
let list = data.records;
let result = [];
list.map(n => {
n.enable || result.push(n);
});
this.projectDataAll = result;
this.total = result.length;
this.handlePage();
this.projectData = data.records
this.total = data.total
}
}).catch(err => {
});
@ -546,7 +539,7 @@ export default {
},
handleCurrentChange(val) {
this.page = val;
this.handlePage();
this.getProjectData();
},
goBack() {
if (this.isDetail) {

Loading…
Cancel
Save