From 8228dd9b0ffb625044f2c33db7785468f8a378d2 Mon Sep 17 00:00:00 2001 From: 18571350067 Date: Tue, 9 Nov 2021 19:08:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=98=E5=BA=93=E7=BB=86=E8=8A=82=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/course/CourseAdd.vue | 22 +++- src/views/course/CourseList.vue | 126 ++++++++++++--------- src/views/course/CoursewareList.vue | 2 +- src/views/course/courseDetail.vue | 6 +- src/views/course/question/QuestionAdd.vue | 7 +- src/views/course/question/QuestionList.vue | 105 +++++++++-------- 6 files changed, 156 insertions(+), 112 deletions(-) diff --git a/src/views/course/CourseAdd.vue b/src/views/course/CourseAdd.vue index e844101..6754fbc 100644 --- a/src/views/course/CourseAdd.vue +++ b/src/views/course/CourseAdd.vue @@ -115,13 +115,15 @@ export default { data() { return { dataValue: 1, - form: {}, + form: { + coverPath:'', + }, personType: [ { id: '1', name: '人员类别1' }, { id: '2', name: '人员类别2' }, { id: '3', name: '人员类别3' }, ], - + url:'', previewVisible: false, fileList: [], previewImage :[ @@ -147,7 +149,6 @@ export default { } }, methods: { - //获取字典值 // getPersonType() { // return dictGet(Object.assign(parameter)).then((res) => { // return res @@ -171,7 +172,9 @@ export default { //返回 goback(){ - this.$router.push({path:"/course/CourseList",query:{} }) + this.$router.push({path:"/course/CourseList",query:{ + courseName:this.$route.query.courseName + } }) }, getToken() { @@ -195,6 +198,17 @@ export default { }, handleChange({ fileList }) { this.fileList = fileList; + console.log("fileList-------",fileList); + this.fileList.file=fileList[0]; + console.log('file``````',this.fileList.file) + console.log('response``````',this.fileList.file.response.url) + + + this.form.coverPath = this.fileList.file.response.url; + + console.log("url",this.form.coverPath) + + }, }, diff --git a/src/views/course/CourseList.vue b/src/views/course/CourseList.vue index 90924b6..d48a676 100644 --- a/src/views/course/CourseList.vue +++ b/src/views/course/CourseList.vue @@ -1,87 +1,109 @@