master
fanluyan 2 years ago
parent ff8e190e53
commit b8cd7c287a

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

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

@ -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

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

Loading…
Cancel
Save