解决课程重复问题
This commit is contained in:
@@ -484,6 +484,8 @@ export default {
|
||||
if(percentCompleted == 100){
|
||||
that.$message.success('文件上传成功,正在写入数据')
|
||||
that.loadText = '文件上传成功,正在写入数据'
|
||||
}else{
|
||||
that.loadText = `${percentCompleted}%`
|
||||
}
|
||||
console.log(`Upload Progress: ${percentCompleted}%`);
|
||||
}
|
||||
|
||||
@@ -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 = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user