From 9b30febee47ef501c9522e71eccd810e7134143c Mon Sep 17 00:00:00 2001 From: "jialong.yu" Date: Tue, 18 Jan 2022 17:53:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E6=A0=B8=E7=BC=96=E8=BE=91=E9=A1=B5?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=88=97=E8=A1=A8=E5=88=86=E9=A1=B5=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/assessment/add/index.vue | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) 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) {