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