From 41e576a67d57dbd1f0aa6bc2fb035973d0fc25a0 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 23 Apr 2021 09:16:24 +0800
Subject: [PATCH] 追踪页面相关改动
---
src/views/policeTracking/policeTracking.vue | 29 ++++++++++++++++++-----------
1 files changed, 18 insertions(+), 11 deletions(-)
diff --git a/src/views/policeTracking/policeTracking.vue b/src/views/policeTracking/policeTracking.vue
index ee81226..02ffe9c 100644
--- a/src/views/policeTracking/policeTracking.vue
+++ b/src/views/policeTracking/policeTracking.vue
@@ -145,7 +145,7 @@
</el-col>
<el-col span="12">
<el-form-item label="历史视频">
- <el-button type="primary" @click.stop="oldVideoSatart = true"
+ <el-button type="primary" @click.stop="oldOpenVideo"
>视频播放
</el-button>
</el-form-item>
@@ -502,7 +502,6 @@
:visible.sync="oldVideoSatart"
:close-on-press-escape="false"
:close-on-click-modal="false"
- @opened="oldOpenVideo"
@close="vaddress = ''"
append-to-body
>
@@ -812,6 +811,8 @@
});
}
});
+
+ console.log(that.tableData, 789, 10)
});
},
@@ -848,7 +849,8 @@
jid: this.form.id,
},
}).then((resdata) => {
- this.audios = resdata.data.data.records;
+ if (resdata.data.data.records.length > 0)
+ this.audios = resdata.data.data.records;
});
},
@@ -860,22 +862,27 @@
jid: this.form.id,
},
}).then((resdata) => {
- console.log(resdata.data.data[0], 56569);
- this.security = resdata.data.data[0].List[0];
- this.imgSrc = resdata.data.data[0].tp;
- this.srcList = resdata.data.data[0].tp;
- this.feedbackVideo = resdata.data.data[0].sp[0];
+ if (resdata.data.data[0].List.length > 0)
+ this.security = resdata.data.data[0].List[0];
+ if (resdata.data.data[0].tp.length > 0) {
+ this.imgSrc = resdata.data.data[0].tp;
+ this.srcList = resdata.data.data[0].tp;
+ }
+ if (resdata.data.data[0].sp.length > 0) {
+ this.feedbackVideo = resdata.data.data[0].sp[0];
+ }
});
},
oldOpenVideo() {
getclient(this.form.id).then((res) => {
if (res.data.data.vaddress != "") {
- this.vaddress = res.data.data.vaddress;
+ this.vaddress = res.data.data.vaddress;
}
+ this.oldVideoSatart = true;
+ console.log(this.oldVideoSatart);
});
- }
-
+ },
},
};
</script>
--
Gitblit v1.9.3