修改课程编辑报错,删除打印的日志
This commit is contained in:
parent
c1aa1f7abc
commit
257610227c
|
@ -149,7 +149,6 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
//加载数据
|
//加载数据
|
||||||
loadData() {
|
loadData() {
|
||||||
this.getCourseTreeData(0)
|
|
||||||
if (this.$route.query.id) {
|
if (this.$route.query.id) {
|
||||||
getCourseDetails({ id: this.$route.query.id }).then((res) => {
|
getCourseDetails({ id: this.$route.query.id }).then((res) => {
|
||||||
this.form = res.data
|
this.form = res.data
|
||||||
|
@ -202,7 +201,6 @@ export default {
|
||||||
|
|
||||||
//返回
|
//返回
|
||||||
goback() {
|
goback() {
|
||||||
console.log('this.$route.query.type', this.$route.query.type)
|
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
// /course/CourseList/sys
|
// /course/CourseList/sys
|
||||||
path: '/course/CourseList/' + this.$route.query.type,
|
path: '/course/CourseList/' + this.$route.query.type,
|
||||||
|
|
|
@ -62,12 +62,10 @@ export default {
|
||||||
this.detailData = res.data;
|
this.detailData = res.data;
|
||||||
|
|
||||||
this.detailData.coverPath = JSON.parse(res.data.coverPath);
|
this.detailData.coverPath = JSON.parse(res.data.coverPath);
|
||||||
console.log('JSON:::::', this.detailData.coverPath);
|
|
||||||
|
|
||||||
if (this.detailData.coverPath && this.detailData.coverPath.length != 0) {
|
if (this.detailData.coverPath && this.detailData.coverPath.length != 0) {
|
||||||
this.detailData.imagePath = this.detailData.coverPath[0].url;
|
this.detailData.imagePath = this.detailData.coverPath[0].url;
|
||||||
}
|
}
|
||||||
console.log('url', this.detailData.imagePath);
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -109,7 +107,6 @@ export default {
|
||||||
dictionaryDropDown({ dictionaryCode: '0008' }).then(res => {
|
dictionaryDropDown({ dictionaryCode: '0008' }).then(res => {
|
||||||
this.dictCourseTag = res.data;
|
this.dictCourseTag = res.data;
|
||||||
|
|
||||||
console.log(this.dictCourseTag);
|
|
||||||
|
|
||||||
// const tags = []
|
// const tags = []
|
||||||
// for (let i = 0; i < this.dictCourseTag.length; i++) {
|
// for (let i = 0; i < this.dictCourseTag.length; i++) {
|
||||||
|
|
Loading…
Reference in New Issue