解决课程重复问题

This commit is contained in:
@fawn-nine
2024-08-30 16:33:25 +08:00
parent 40af077306
commit 3aa551853d
4 changed files with 12511 additions and 26493 deletions

View File

@@ -484,6 +484,8 @@ export default {
if(percentCompleted == 100){
that.$message.success('文件上传成功,正在写入数据')
that.loadText = '文件上传成功,正在写入数据'
}else{
that.loadText = `${percentCompleted}%`
}
console.log(`Upload Progress: ${percentCompleted}%`);
}

View File

@@ -377,20 +377,21 @@ export default {
},
getCourseList(query) {
this.$http({
url: this.$http.adornUrl("/master/course/getCourseList"),
url: this.$http.adornUrl("/common/class/getClassModelCourseList"),
method: "post",
data: this.$http.adornData({
page: 1,
limit: 10,
courseName: query, //关键字
type: 1,
medicalId: "",
sociologyId: ""
title:query,
// page: 1,
// limit: 10,
// courseName: query, //关键字
// type: 1,
// medicalId: "",
// sociologyId: ""
})
})
.then(({ data }) => {
if (data && data.code === 0) {
this.courseList = data.page.records;
this.courseList = data.courseList;
} else {
this.courseList = [];
}