|
|
@ -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) { |
|
|
|