4.12视频检测接口调试成功

main
coco1986509808 2023-04-12 19:09:03 +08:00
parent d4762dee5c
commit 03ca605c8c
1 changed files with 6 additions and 2 deletions

View File

@ -88,7 +88,7 @@
<!-- 背景图 -->
<!-- fits: ['fill', 'contain', 'cover', 'none', 'scale-down'], -->
<div style="width: 100%;display: flex;justify-content: center;background-color: #333;height:600px;">
<el-image style="width: 100%;" :src="require('./test.png')" :preview-src-list="[require('./test.png')]"fit="contain">
<el-image style="width: 100%;" :src="faceBgUrltest" :preview-src-list="[faceBgUrltest]" fit="contain">
<div slot="error" class="image-slot" style="text-align: center;margin-top:270px ;">
<i style="color: #666;font-size: 60px;" class="el-icon-picture-outline"></i>
</div>
@ -192,6 +192,7 @@
label: 'label'
},
//
faceBgUrltest: "http://192.168.1.133:9000/middleware/103/1028345463.jpg",
faceBgUrl: "",
faces: [],
currentFaces: [],
@ -205,17 +206,20 @@
},
mounted() {
//this.timer = setInterval(this.get, 1000);
this.get()
},
beforeDestroy() {},
created() {
//
this.initGetCameraId()
// 4
this.initGetWarningPicture()
// this.initGetWarningPicture()
},
methods: {
get(){
this.warningList = [];
// console.log("this waringlist"+this.warningList);
this.$http.get("/faces/list").then(res => {
this.warningList = res.data;
})