master
fanluyan 2 years ago
parent ff8e190e53
commit b8cd7c287a

@ -106,10 +106,10 @@ export default {
index: "/devicePhotoSchedule",
title: "拍照时间表设置",
},
{
index: "/deviceUpgrade",
title: "装置升级",
},
// {
// index: "/deviceUpgrade",
// title: "",
// },
// {
// icon: "el-icon-picture-outline",
// index: "imageSettings",

@ -14,8 +14,8 @@
ref="dataForm"
label-width="90px"
>
<el-form-item label="版本号" prop="version">
<el-input v-model="formData.version" placeholder="审批人"></el-input>
<el-form-item label="版本号" prop="version">
<el-input v-model="formData.version" placeholder="版本号"></el-input>
</el-form-item>
<el-form-item label="上传Apk" prop="file">
<el-input v-model="apkname" disabled></el-input>

@ -99,7 +99,11 @@
<h3>操作项</h3>
<div class="buttonGroup">
<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>
</el-button>
<el-dropdown-menu slot="dropdown" class="picdropStyle">
@ -112,7 +116,11 @@
</el-dropdown-menu>
</el-dropdown>
<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>
</el-button>
<el-dropdown-menu slot="dropdown" class="videodropStyle">
@ -125,10 +133,17 @@
</el-dropdown-menu>
</el-dropdown>
<el-button type="primary" @click="handleShowInfo">
<el-button
type="primary"
@click="handleShowInfo"
:disabled="zzstatus == 0"
>
装置信息</el-button
>
<el-button type="primary" @click.native.stop="handleSetSchedule()"
<el-button
type="primary"
@click.native.stop="handleSetSchedule()"
:disabled="zzstatus == 0"
>拍照时间表</el-button
>
<!-- <el-dropdown
@ -149,7 +164,7 @@
trigger="click"
@command="handleCommandWarn"
>
<el-button type="primary">
<el-button type="primary" :disabled="zzstatus == 0">
声光报警<i class="el-icon-arrow-down el-icon--right"></i>
</el-button>
<el-dropdown-menu slot="dropdown" class="gpsdropStyle">
@ -242,14 +257,17 @@ export default {
treenum: 0,
i: 0,
newTermId: "",
zzstatus: "",
};
},
watch: {
lineTreeData: function (newVal, oldVal) {
console.log("11111111111111111");
console.log(newVal, oldVal);
},
},
// watch: {
// lineTreeData: {
// handler() {
// console.log("count");
// },
// immediate: true, //
// },
// },
computed: {
...mapState(["channelid", "termid"]),
channelid() {
@ -265,11 +283,11 @@ export default {
mounted() {},
created() {
this.getLineTreeList();
// this.treetimer = window.setInterval(() => {
// setTimeout(this.getLineTreeList(), 0);
// }, 3000);
this.getDateTime();
console.log(this.dateValue);
// this.treetimer = window.setInterval(() => {
// setTimeout(this.getLineTreeStatus(), 0);
// }, 3000);
//this.getLineTreeStatus();
},
methods: {
@ -295,12 +313,12 @@ export default {
// console.log(res);
// this.treeStatus = res.data.list;
// this.lineTreeData = this.treeStatus;
// console.log(this.treeStatus);
// // console.log(this.treeStatus);
// })
// .catch((err) => {
// console.log(err); //
// });
// }, 300000);
// }, 10000);
// },
//
getLineTreeList() {
@ -316,7 +334,8 @@ export default {
this.newTermId = this.lineTreeData[0].list[0].list[0].id;
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.$refs.tree.setCurrentKey(this.currentNodekey); //
this.channelId = this.currentNodekey;
@ -335,7 +354,8 @@ export default {
if (data.list) {
this.$refs.tree.setCurrentKey(data.list[0].id);
}
this.zzstatus = data.onlinestatus;
console.log(this.zzstatus);
this.channelId = data.id; //id
this.cmdid = data.cmdid;
this.newTermId = data.id; //id

@ -175,7 +175,7 @@ export default {
},
picList: [],
page: 1, //
pageSize: 10, //
pageSize: 20, //
total: 0, //
loading: false,
signtype: 0, //0

Loading…
Cancel
Save