Commit 3bb32123 authored by zhangjianqian's avatar zhangjianqian

回显问题

parent 4d27df41
...@@ -230,6 +230,7 @@ ...@@ -230,6 +230,7 @@
}, },
}, },
created() { created() {
console.log(this.fileArr);
// this.fileList = this.list; // this.fileList = this.list;
this.addShow = this.fileArr.length > 0 ? true : false; this.addShow = this.fileArr.length > 0 ? true : false;
}, },
......
...@@ -11,14 +11,14 @@ ...@@ -11,14 +11,14 @@
class="add-lession" class="add-lession"
:title="title" :title="title"
:visible.sync="visible" :visible.sync="visible"
width="1000px" width="1050px"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
:before-close="dialogCancel" :before-close="dialogCancel"
@closed="closeFinished" @closed="closeFinished"
destroy-on-close destroy-on-close
> >
<div v-if="visible" ref="myBody" class="body"> <div v-if="visible" ref="myBody" class="body ">
<transition name="fade" mode="out-in"> <transition name="fade" mode="out-in">
<component <component
:is="currentComponent" :is="currentComponent"
......
...@@ -204,7 +204,7 @@ export default { ...@@ -204,7 +204,7 @@ export default {
getLessonById(this.courseId).then((res) => { getLessonById(this.courseId).then((res) => {
if (res.code == 200) { if (res.code == 200) {
const data = res.data; const data = res.data;
const { courseName, courseType, courseConent, video, enclosure } = const { courseName, courseType, courseConent, video, enclosure,duration,testStartTime,testEndTime } =
data; data;
this.form = { this.form = {
courseName, courseName,
...@@ -212,6 +212,9 @@ export default { ...@@ -212,6 +212,9 @@ export default {
courseConent, courseConent,
video, video,
enclosure, enclosure,
duration,
testStartTime,
testEndTime
}; };
this.fileListVideo = [ this.fileListVideo = [
{ {
...@@ -225,6 +228,7 @@ export default { ...@@ -225,6 +228,7 @@ export default {
url: uploadfile, url: uploadfile,
}, },
]; ];
console.log("--",this.fileListFile);
} }
}); });
}, },
...@@ -303,7 +307,7 @@ export default { ...@@ -303,7 +307,7 @@ export default {
.form-wrapper { .form-wrapper {
padding-top: 22px; padding-top: 22px;
width: 100%; width: 100%;
height: 550px; height: 650px;
overflow: hidden; overflow: hidden;
// padding-bottom: 10px; // padding-bottom: 10px;
margin-bottom: 20px; margin-bottom: 20px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment