修复课程列表重复问题
This commit is contained in:
@@ -149,16 +149,13 @@ export default {
|
|||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
page: this.pageIndex,
|
page: this.pageIndex,
|
||||||
limit: this.pageSize,
|
limit: this.pageSize,
|
||||||
courseName: this.query.courseName,
|
title: this.query.courseName
|
||||||
type:1,
|
|
||||||
medicalId:"",//医学标签id,type为1时生效,空字符串为全部
|
|
||||||
sociologyId:""//国学标签id,type为2时生效,空字符串为全部
|
|
||||||
})
|
})
|
||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if(data.code != 0) return this.$message.error(data.msg);
|
if(data.code != 0) return this.$message.error(data.msg);
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.dataList = data.page.records;
|
this.dataList = data.courses.records;
|
||||||
this.totalPage = data.page.total;
|
this.totalPage = data.courses.total;
|
||||||
} else {
|
} else {
|
||||||
this.dataList = [];
|
this.dataList = [];
|
||||||
this.totalPage = 0;
|
this.totalPage = 0;
|
||||||
|
|||||||
@@ -401,7 +401,7 @@ export default {
|
|||||||
},
|
},
|
||||||
addLinkPro(){
|
addLinkPro(){
|
||||||
this.showSelectPro = true
|
this.showSelectPro = true
|
||||||
this.requesturl = '/master/course/getCourseList'
|
this.requesturl = '/common/coupon/getCourseList'
|
||||||
},
|
},
|
||||||
changeCate(e) {
|
changeCate(e) {
|
||||||
console.log("e", e);
|
console.log("e", e);
|
||||||
|
|||||||
Reference in New Issue
Block a user