xuqiang 4 лет назад
Родитель
Сommit
a62f4e8d14

+ 6 - 5
src/main/vue/src/components/ProgrammeLog.vue

@@ -118,11 +118,7 @@
                             </div>
                             </div>
                             <div v-else>
                             <div v-else>
                                 <el-form-item prop="video" label="作品视频" v-if="formData.video">
                                 <el-form-item prop="video" label="作品视频" v-if="formData.video">
-                                    <video-upload
-                                        v-model="formData.video"
-                                        class="width"
-                                        :readonly="true"
-                                    ></video-upload>
+                                    <video-upload v-model="videos" class="width" :readonly="true"></video-upload>
                                 </el-form-item>
                                 </el-form-item>
                             </div>
                             </div>
                         </el-card>
                         </el-card>
@@ -229,6 +225,7 @@ export default {
             formData: {},
             formData: {},
             show: false,
             show: false,
             showMore: false,
             showMore: false,
+            videos: {},
             level: '',
             level: '',
             rules: {
             rules: {
                 phone: [
                 phone: [
@@ -283,6 +280,10 @@ export default {
                     .get('programme/getByAdmin/' + id)
                     .get('programme/getByAdmin/' + id)
                     .then(res => {
                     .then(res => {
                         this.formData = res;
                         this.formData = res;
+                        // this.aaa = res.video;
+                        this.videos = {
+                            src: res.video
+                        };
                         console.log(res);
                         console.log(res);
                         this.$http
                         this.$http
                             .post('/participant/all', { size: 100, query: { programmeId: id } }, { body: 'json' })
                             .post('/participant/all', { size: 100, query: { programmeId: id } }, { body: 'json' })

+ 2 - 0
src/main/vue/src/views/performance/ProgrammeList.vue

@@ -632,6 +632,8 @@ export default {
         //     document.exitPictureInPicture();
         //     document.exitPictureInPicture();
         // },
         // },
         playVideo(row) {
         playVideo(row) {
+            this.showViedo = true;
+            this.videoUrl = row.video;
             if (row.video) {
             if (row.video) {
                 this.showViedo = true;
                 this.showViedo = true;
                 this.videoUrl = row.video;
                 this.videoUrl = row.video;