diff --git a/src/pages/assessment/add/index.vue b/src/pages/assessment/add/index.vue index 1d7ebde..970ec55 100644 --- a/src/pages/assessment/add/index.vue +++ b/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) {