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

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

Loading…
Cancel
Save