|
|
@ -99,7 +99,11 @@
|
|
|
|
<h3>操作项</h3>
|
|
|
|
<h3>操作项</h3>
|
|
|
|
<div class="buttonGroup">
|
|
|
|
<div class="buttonGroup">
|
|
|
|
<el-dropdown trigger="click" @command="handleCommandpic">
|
|
|
|
<el-dropdown trigger="click" @command="handleCommandpic">
|
|
|
|
<el-button type="primary" :loading="btnpicloading">
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
:loading="btnpicloading"
|
|
|
|
|
|
|
|
:disabled="zzstatus == 0"
|
|
|
|
|
|
|
|
>
|
|
|
|
主动拍照<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
主动拍照<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-dropdown-menu slot="dropdown" class="picdropStyle">
|
|
|
|
<el-dropdown-menu slot="dropdown" class="picdropStyle">
|
|
|
@ -112,7 +116,11 @@
|
|
|
|
</el-dropdown-menu>
|
|
|
|
</el-dropdown-menu>
|
|
|
|
</el-dropdown>
|
|
|
|
</el-dropdown>
|
|
|
|
<el-dropdown trigger="click" @command="handleCommandvideo">
|
|
|
|
<el-dropdown trigger="click" @command="handleCommandvideo">
|
|
|
|
<el-button type="primary" :loading="btnvideoloading">
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
:loading="btnvideoloading"
|
|
|
|
|
|
|
|
:disabled="zzstatus == 0"
|
|
|
|
|
|
|
|
>
|
|
|
|
主动录像<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
主动录像<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-dropdown-menu slot="dropdown" class="videodropStyle">
|
|
|
|
<el-dropdown-menu slot="dropdown" class="videodropStyle">
|
|
|
@ -125,10 +133,17 @@
|
|
|
|
</el-dropdown-menu>
|
|
|
|
</el-dropdown-menu>
|
|
|
|
</el-dropdown>
|
|
|
|
</el-dropdown>
|
|
|
|
|
|
|
|
|
|
|
|
<el-button type="primary" @click="handleShowInfo">
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
@click="handleShowInfo"
|
|
|
|
|
|
|
|
:disabled="zzstatus == 0"
|
|
|
|
|
|
|
|
>
|
|
|
|
装置信息</el-button
|
|
|
|
装置信息</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-button type="primary" @click.native.stop="handleSetSchedule()"
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
@click.native.stop="handleSetSchedule()"
|
|
|
|
|
|
|
|
:disabled="zzstatus == 0"
|
|
|
|
>拍照时间表</el-button
|
|
|
|
>拍照时间表</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<!-- <el-dropdown
|
|
|
|
<!-- <el-dropdown
|
|
|
@ -149,7 +164,7 @@
|
|
|
|
trigger="click"
|
|
|
|
trigger="click"
|
|
|
|
@command="handleCommandWarn"
|
|
|
|
@command="handleCommandWarn"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-button type="primary">
|
|
|
|
<el-button type="primary" :disabled="zzstatus == 0">
|
|
|
|
声光报警<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
声光报警<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-dropdown-menu slot="dropdown" class="gpsdropStyle">
|
|
|
|
<el-dropdown-menu slot="dropdown" class="gpsdropStyle">
|
|
|
@ -242,14 +257,17 @@ export default {
|
|
|
|
treenum: 0,
|
|
|
|
treenum: 0,
|
|
|
|
i: 0,
|
|
|
|
i: 0,
|
|
|
|
newTermId: "",
|
|
|
|
newTermId: "",
|
|
|
|
|
|
|
|
zzstatus: "",
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
// watch: {
|
|
|
|
lineTreeData: function (newVal, oldVal) {
|
|
|
|
// lineTreeData: {
|
|
|
|
console.log("11111111111111111");
|
|
|
|
// handler() {
|
|
|
|
console.log(newVal, oldVal);
|
|
|
|
// console.log("count改变");
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
},
|
|
|
|
// immediate: true, // 加此属性
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// },
|
|
|
|
computed: {
|
|
|
|
computed: {
|
|
|
|
...mapState(["channelid", "termid"]),
|
|
|
|
...mapState(["channelid", "termid"]),
|
|
|
|
channelid() {
|
|
|
|
channelid() {
|
|
|
@ -265,11 +283,11 @@ export default {
|
|
|
|
mounted() {},
|
|
|
|
mounted() {},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.getLineTreeList();
|
|
|
|
this.getLineTreeList();
|
|
|
|
// this.treetimer = window.setInterval(() => {
|
|
|
|
|
|
|
|
// setTimeout(this.getLineTreeList(), 0);
|
|
|
|
|
|
|
|
// }, 3000);
|
|
|
|
|
|
|
|
this.getDateTime();
|
|
|
|
this.getDateTime();
|
|
|
|
console.log(this.dateValue);
|
|
|
|
console.log(this.dateValue);
|
|
|
|
|
|
|
|
// this.treetimer = window.setInterval(() => {
|
|
|
|
|
|
|
|
// setTimeout(this.getLineTreeStatus(), 0);
|
|
|
|
|
|
|
|
// }, 3000);
|
|
|
|
//this.getLineTreeStatus();
|
|
|
|
//this.getLineTreeStatus();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
@ -295,12 +313,12 @@ export default {
|
|
|
|
// console.log(res);
|
|
|
|
// console.log(res);
|
|
|
|
// this.treeStatus = res.data.list;
|
|
|
|
// this.treeStatus = res.data.list;
|
|
|
|
// this.lineTreeData = this.treeStatus;
|
|
|
|
// this.lineTreeData = this.treeStatus;
|
|
|
|
// console.log(this.treeStatus);
|
|
|
|
// // console.log(this.treeStatus);
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
// .catch((err) => {
|
|
|
|
// .catch((err) => {
|
|
|
|
// console.log(err); //代码错误、请求失败捕获
|
|
|
|
// console.log(err); //代码错误、请求失败捕获
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
// }, 300000);
|
|
|
|
// }, 10000);
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
//获取左侧树结构
|
|
|
|
//获取左侧树结构
|
|
|
|
getLineTreeList() {
|
|
|
|
getLineTreeList() {
|
|
|
@ -316,7 +334,8 @@ export default {
|
|
|
|
this.newTermId = this.lineTreeData[0].list[0].list[0].id;
|
|
|
|
this.newTermId = this.lineTreeData[0].list[0].list[0].id;
|
|
|
|
|
|
|
|
|
|
|
|
this.cmdid = this.lineTreeData[0].list[0].list[0].cmdid;
|
|
|
|
this.cmdid = this.lineTreeData[0].list[0].list[0].cmdid;
|
|
|
|
|
|
|
|
this.zzstatus = this.lineTreeData[0].list[0].list[0].onlinestatus;
|
|
|
|
|
|
|
|
console.log(this.zzstatus);
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$refs.tree.setCurrentKey(this.currentNodekey); //一定要加这个选中了否则样式没有出来
|
|
|
|
this.$refs.tree.setCurrentKey(this.currentNodekey); //一定要加这个选中了否则样式没有出来
|
|
|
|
this.channelId = this.currentNodekey;
|
|
|
|
this.channelId = this.currentNodekey;
|
|
|
@ -335,7 +354,8 @@ export default {
|
|
|
|
if (data.list) {
|
|
|
|
if (data.list) {
|
|
|
|
this.$refs.tree.setCurrentKey(data.list[0].id);
|
|
|
|
this.$refs.tree.setCurrentKey(data.list[0].id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
this.zzstatus = data.onlinestatus;
|
|
|
|
|
|
|
|
console.log(this.zzstatus);
|
|
|
|
this.channelId = data.id; //获取当前点击的id
|
|
|
|
this.channelId = data.id; //获取当前点击的id
|
|
|
|
this.cmdid = data.cmdid;
|
|
|
|
this.cmdid = data.cmdid;
|
|
|
|
this.newTermId = data.id; //获取当前点击的id
|
|
|
|
this.newTermId = data.id; //获取当前点击的id
|
|
|
|