优化云台设置

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

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

Loading…
Cancel
Save