panhui 4 лет назад
Родитель
Сommit
ba3dd6db28

+ 1 - 0
src/main/vue/src/components/VideoGrid.vue

@@ -48,6 +48,7 @@ export default {
     },
     methods: {
         init(form = {}) {
+            console.log(this.name);
             let token = form.accessToken || this.token;
             let device = form.deviceSerial || this.device;
 

+ 3 - 3
src/main/vue/src/views/record/VideoList.vue

@@ -72,12 +72,12 @@
                     ref="video"
                     :token="token"
                     :device="item.deviceSerial"
-                    :key="item.id"
+                    :key="item.recordId"
                     :organizer="item.organizer"
                     :address="item.examinationAddress"
                     :owner="item.examOwner"
                     :phone="item.examOwnerPhone"
-                    :name="`video_${item.id}`"
+                    :name="`video_${item.recordId}`"
                 ></video-grid>
             </div>
         </el-col>
@@ -194,7 +194,7 @@ export default {
                     this.$nextTick(() => {
                         if (res.length > 0) {
                             res.forEach((item, index) => {
-                                if (index == 0) {
+                                if (index <= 1) {
                                     this.$refs.video[index].init();
                                 } else {
                                     let _index = this.randomNum(0, 4);