优化云台设置

menu1.0
fanluyan 7 months ago
parent 42a0f2dd15
commit 4b1456a99b

@ -1,7 +1,7 @@
<template>
<div class="drawDialog">
<el-drawer
:title="`云台设置${this.areaData.name}`"
:title="`云台设置${this.areaData.name}--${this.areaData.protocol}`"
:visible.sync="ptzdrawer"
direction="rtl"
>
@ -310,62 +310,165 @@ export default {
console.log(val);
this.powerOn = !this.powerOn;
if (val) {
if (this.areaData.protocol == "65281") {
console.log("安徽规约");
//
this.fucType = 9;
this.presetNum = 0;
console.log("点击了关闭");
} else {
console.log("其它规约规约");
//
this.fucType = 10;
this.presetNum = 0;
console.log("点击了关闭");
}
} else {
//
if (this.areaData.protocol == "65281") {
console.log("安徽规约");
//
this.fucType = 0;
this.presetNum = 0;
console.log("点击了开启");
console.log("点击了关闭");
} else {
console.log("其它规约规约");
//
this.fucType = 1;
this.presetNum = 0;
console.log("点击了关闭");
}
// this.fucType = 0;
// this.presetNum = 0;
// console.log("");
}
this.termstatusFun();
},
//
openPowerFun() {
if (this.areaData.protocol == "65281") {
console.log("安徽规约");
//
this.fucType = 0;
this.presetNum = 0;
} else {
console.log("其它规约规约");
//
this.fucType = 1;
this.presetNum = 0;
}
this.termstatusFun();
},
//
closePowerFun() {
if (this.areaData.protocol == "65281") {
console.log("安徽规约");
//
this.fucType = 9;
this.presetNum = 0;
console.log("点击了关闭");
} else {
console.log("其它规约规约");
//
this.fucType = 10;
this.presetNum = 0;
}
this.termstatusFun();
},
//
handleTop() {
console.log("我点击了向上移动一个单位");
if (this.areaData.protocol == "65281") {
console.log("安徽规约");
this.fucType = 2;
this.presetNum = 0;
} else {
console.log("其它规约规约");
this.fucType = 3;
this.presetNum = 0;
}
// this.fucType = 2;
// this.presetNum = 0;
this.termstatusFun();
},
handleBottom() {
console.log("我点击了向下移动一个单位");
if (this.areaData.protocol == "65281") {
console.log("安徽规约");
this.fucType = 3;
this.presetNum = 0;
} else {
console.log("其它规约规约");
this.fucType = 4;
this.presetNum = 0;
}
this.termstatusFun();
},
handleLeft() {
console.log("我点击了向左移动一个单位");
if (this.areaData.protocol == "65281") {
console.log("安徽规约");
this.fucType = 4;
this.presetNum = 0;
} else {
console.log("其它规约规约");
this.fucType = 5;
this.presetNum = 0;
}
this.termstatusFun();
},
handleRight() {
console.log("我点击了向右移动一个单位");
if (this.areaData.protocol == "65281") {
console.log("安徽规约");
this.fucType = 5;
this.presetNum = 0;
} else {
console.log("其它规约规约");
this.fucType = 6;
this.presetNum = 0;
}
this.termstatusFun();
},
//
sfAdd() {
console.log("sf增加");
if (this.areaData.protocol == "65281") {
console.log("安徽规约");
this.fucType = 6;
this.presetNum = 0;
} else if (
this.areaData.protocol == "65284" ||
this.areaData.protocol == "65290" ||
this.areaData.protocol == "65298" ||
this.areaData.protocol == "65283" ||
this.areaData.protocol == "65282"
) {
console.log("浙江规约、河南 V2020、宁夏规约长沙、江苏规约jj增加");
this.fucType = 7;
this.presetNum = 0;
}
this.termstatusFun();
},
sfMin() {
console.log("sf减少");
if (this.areaData.protocol == "65281") {
console.log("安徽规约");
this.fucType = 7;
this.presetNum = 0;
} else if (
this.areaData.protocol == "65284" ||
this.areaData.protocol == "65290" ||
this.areaData.protocol == "65298" ||
this.areaData.protocol == "65283" ||
this.areaData.protocol == "65282"
) {
console.log("浙江规约、河南 V2020、宁夏规约长沙、江苏规约jj增加");
this.fucType = 8;
this.presetNum = 0;
}
this.termstatusFun();
},
//
gqAdd() {
@ -374,18 +477,32 @@ export default {
gqMin() {
console.log("gq减少");
},
//
//
jjAdd() {
console.log("jj增加");
this.fucType = 6;
if (this.areaData.protocol == "65282") {
console.log("江苏规约jj增加");
this.fucType = 102;
this.presetNum = 0;
this.termstatusFun();
} else if (this.areaData.protocol == "2") {
this.fucType = 13;
this.presetNum = 0;
this.termstatusFun();
}
},
jjMin() {
console.log("jj减少");
this.fucType = 7;
if (this.areaData.protocol == "65282") {
console.log("江苏规约jj减少");
this.fucType = 103;
this.presetNum = 0;
this.termstatusFun();
} else if (this.areaData.protocol == "2") {
this.fucType = 14;
this.presetNum = 0;
this.termstatusFun();
}
},
//
savePreset() {
@ -394,7 +511,20 @@ export default {
},
commitPrest() {
console.log(this.presetform);
if (this.areaData.protocol == "65281") {
console.log("安徽规约");
this.fucType = 8;
} else if (
this.areaData.protocol == "65284" ||
this.areaData.protocol == "65290" ||
this.areaData.protocol == "65298" ||
this.areaData.protocol == "65283" ||
this.areaData.protocol == "65282"
) {
console.log("浙江规约、河南 V2020、宁夏规约长沙、江苏规约jj增加");
this.fucType = 9;
}
//this.fucType = 8;
this.presetNum = this.presetform.presetVal;
this.termstatusFun();
//
@ -421,9 +551,17 @@ export default {
this.presetform.name = val.name;
this.presetform.presetVal = val.presetNo;
},
//
handlePlay(val) {
console.log(val);
if (this.areaData.protocol == "65281") {
console.log("安徽规约");
this.fucType = 1;
} else {
console.log("其它规约规约");
this.fucType = 2;
}
// this.fucType = 1;
this.presetNum = val.presetNo;
this.termstatusFun();
},
@ -794,7 +932,7 @@ export default {
}
}
.presetList {
height: calc(100% - 354px);
height: calc(100% - 390px);
margin-top: 12px;
h3 {
font-size: 14px;

Loading…
Cancel
Save