拍照时间表和实时监控

master
fanluyan 2 years ago
parent d625361698
commit a51863ffdc

@ -12,7 +12,7 @@
" "
@click="handleBigPicbox(bigPicPath)" @click="handleBigPicbox(bigPicPath)"
> >
<img ref="picJpg" class="animImg" :src="bigPicPath + '!1280x720'" /> <img ref="picJpg" class="animImg" :src="bigPicPath" />
<canvas id="myCanvas" class="myCanvas" ref="myCanvas"></canvas> <canvas id="myCanvas" class="myCanvas" ref="myCanvas"></canvas>
<!-- <p class="mark"> <!-- <p class="mark">
@ -202,7 +202,8 @@ export default {
console.log(this.fiveList); console.log(this.fiveList);
//points //points
getCoordinate({ getCoordinate({
channelId: this.fiveList[0].channelId, channelId:
this.fiveList[0].channelId == null ? 1 : this.fiveList[0].channelId,
needPic: "0", needPic: "0",
termId: this.fiveList[0].termId, termId: this.fiveList[0].termId,
}) })

@ -46,12 +46,16 @@
class="custom-tree-node" class="custom-tree-node"
slot-scope="{ data }" slot-scope="{ data }"
> >
<span class="mr10">{{ data.name }}--{{ data.id }}</span> <span class="mr10">{{ data.name }}</span>
<!-- <el-tag size="mini" type="success">装置下发成功</el-tag> <!-- <el-tag size="mini" type="success" v-if="zzsuccess"
>装置下发成功</el-tag
>
<el-tag size="mini" v-if="zzpending" <el-tag size="mini" v-if="zzpending"
><i class="el-icon-loading"></i>装置下发中</el-tag ><i class="el-icon-loading"></i>装置下发中</el-tag
> >
<el-tag size="mini" type="danger">装置下发失败</el-tag> --> <el-tag size="mini" type="danger" v-if="zzerror"
>装置下发失败</el-tag
> -->
</span> </span>
<span v-else class="custom-tree-node" slot-scope="{ data }"> <span v-else class="custom-tree-node" slot-scope="{ data }">
<span>{{ data.name }}</span> <span>{{ data.name }}</span>
@ -229,12 +233,14 @@ export default {
return value.status !== 1; return value.status !== 1;
}); });
if (this.requestList.length == 0) { if (this.requestList.length == 0) {
this.zzsuccess = true;
this.$message.success("下发成功"); this.$message.success("下发成功");
clearInterval(this.timer); clearInterval(this.timer);
this.timer = null; this.timer = null;
this.isShow = false; this.isShow = false;
this.sureloading = false; this.sureloading = false;
} else if (this.i > 9) { } else if (this.i > 9) {
this.zzerror = true;
this.i = 0; this.i = 0;
this.$message.warning("下发失败,请稍后再试!"); this.$message.warning("下发失败,请稍后再试!");
clearInterval(this.timer); clearInterval(this.timer);

@ -304,6 +304,7 @@ export default {
changeSelect() { changeSelect() {
console.log(this.selaccess); console.log(this.selaccess);
this.loading = true; this.loading = true;
this.newshedulenr = [];
getSchedulenr({ getSchedulenr({
channelid: this.selaccess, channelid: this.selaccess,
terminalid: this.selfacilityId, terminalid: this.selfacilityId,
@ -365,9 +366,9 @@ export default {
} }
}) })
.catch((err) => { .catch((err) => {
this.$message.error("查询失败");
clearInterval(this.timer); clearInterval(this.timer);
this.timer = null; this.timer = null;
this.$message.error("查询失败");
}); });
}, },
//线 //线
@ -542,7 +543,7 @@ export default {
}, },
closebtn() { closebtn() {
this.isShowset = false; this.isShowset = false;
clearInterval(this.timer);
this.deviceList(); this.deviceList();
clearInterval(this.timers); clearInterval(this.timers);
this.timers = null; this.timers = null;
@ -554,7 +555,9 @@ export default {
this.isShow = false; this.isShow = false;
}, },
handleclose() { handleclose() {
clearInterval(this.timer); this.newshedulenr = [];
this.shedulenr = [];
console.log("关闭轮询"); console.log("关闭轮询");
clearInterval(this.timers); clearInterval(this.timers);
this.timers = null; this.timers = null;
@ -598,6 +601,12 @@ export default {
} }
.timeShow { .timeShow {
display: flex; display: flex;
.leftTime {
width: 50%;
}
.rightTime {
width: 50%;
}
} }
} }
.searchBtn { .searchBtn {

@ -44,6 +44,10 @@
</div> --> </div> -->
</div> </div>
<div class="parameterArea"> <div class="parameterArea">
<div class="zzbox">
<!-- <h3>装置名称</h3> -->
<p class="zzidname">{{ cmdid }}</p>
</div>
<div class="paramsDate"> <div class="paramsDate">
<h3>日历快速查询</h3> <h3>日历快速查询</h3>
<el-date-picker <el-date-picker
@ -202,7 +206,6 @@ import {
getLatestPhotoJoggle, getLatestPhotoJoggle,
getReturnedPhotoJoggle, getReturnedPhotoJoggle,
alarmMarkJoggle, alarmMarkJoggle,
getCoordinate,
} from "@/utils/api/index"; } from "@/utils/api/index";
import { mapState } from "vuex"; import { mapState } from "vuex";
import carouselChart from "../components/carouselChart.vue"; import carouselChart from "../components/carouselChart.vue";
@ -378,6 +381,7 @@ export default {
this.terminalPhoto = [ this.terminalPhoto = [
{ {
path: this.nopicPath, path: this.nopicPath,
termId: id,
}, },
]; ];
console.log(this.terminalPhoto); console.log(this.terminalPhoto);
@ -396,6 +400,7 @@ export default {
this.terminalPhoto = [ this.terminalPhoto = [
{ {
path: this.nopicPath, path: this.nopicPath,
termId: id,
}, },
]; ];
console.log(this.terminalPhoto); console.log(this.terminalPhoto);
@ -418,6 +423,7 @@ export default {
this.terminalPhoto = [ this.terminalPhoto = [
{ {
path: this.nopicPath, path: this.nopicPath,
termId: termId,
}, },
]; ];
this.totalPic = 0; this.totalPic = 0;
@ -741,7 +747,8 @@ export default {
.monitorItemBox, .monitorItemBox,
.paramsDate, .paramsDate,
.setTimebtn, .setTimebtn,
.GPSItemBox { .GPSItemBox,
.zzbox {
margin-bottom: 16px; margin-bottom: 16px;
h3 { h3 {
font-size: 14px; font-size: 14px;
@ -752,6 +759,9 @@ export default {
.el-date-editor.el-input { .el-date-editor.el-input {
width: 215px; width: 215px;
} }
.zzidname {
font-weight: normal;
}
} }
.setTimebtn { .setTimebtn {
// position: absolute; // position: absolute;

Loading…
Cancel
Save