+
+
+
-
-
-
-
-
-
-
@@ -194,15 +217,17 @@
placeholder="请选择云台功能"
>
-
+
+
-
+
+
@@ -266,12 +291,14 @@ import jessibucaPlayer from '../common/jessibuca.vue'
import PtzPreset from "../common/ptzPreset.vue";
import PtzCruising from "../common/ptzCruising.vue";
import ptzScan from "../common/ptzScan.vue";
+import ptzWiper from "../common/ptzWiper.vue";
+import ptzSwitch from "../common/ptzSwitch.vue";
export default {
name: 'devicePlayer',
props: {},
components: {
- PtzPreset,PtzCruising,ptzScan,
+ PtzPreset,PtzCruising,ptzScan,ptzWiper,ptzSwitch,
LivePlayer, jessibucaPlayer, rtcPlayer,
},
computed: {
@@ -537,8 +564,22 @@ export default {
console.log('云台控制:' + command);
let that = this;
this.$axios({
- method: 'post',
- url: '/api/front-end/ptz/' + this.deviceId + '/' + this.channelId + '?command=' + command + '&horizonSpeed=' + this.controSpeed + '&verticalSpeed=' + this.controSpeed + '&zoomSpeed=' + this.controSpeed
+ method: 'get',
+ url: '/api/front-end/ptz/' + this.deviceId + '/' + this.channelId + '?command=' + command + '&horizonSpeed=' + parseInt(this.controSpeed * 255/100) + '&verticalSpeed=' + parseInt(this.controSpeed * 255/100) + '&zoomSpeed=' + parseInt(this.controSpeed * 16/100)
+ }).then(function (res) {
+ });
+ },
+ irisCamera: function (command) {
+ this.$axios({
+ method: 'get',
+ url: '/api/front-end/fi/iris/' + this.deviceId + '/' + this.channelId + '?command=' + command + '&speed=' + parseInt(this.controSpeed * 255/100)
+ }).then(function (res) {
+ });
+ },
+ focusCamera: function (command) {
+ this.$axios({
+ method: 'get',
+ url: '/api/front-end/fi/focus/' + this.deviceId + '/' + this.channelId + '?command=' + command + '&speed=' + parseInt(this.controSpeed * 255/100)
}).then(function (res) {
});
},
@@ -946,4 +987,11 @@ export default {
.el-dialog__body{
padding: 10px 20px;
}
+.ptz-btn-box {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ padding: 0 2rem;
+ height: 3rem;
+ line-height: 4rem;
+}
diff --git a/web_src/static/css/iconfont.css b/web_src/static/css/iconfont.css
index 2249c45d..892c01a6 100644
--- a/web_src/static/css/iconfont.css
+++ b/web_src/static/css/iconfont.css
@@ -1,8 +1,8 @@
@font-face {
font-family: "iconfont"; /* Project id 1291092 */
- src: url('iconfont.woff2?t=1726109971995') format('woff2'),
- url('iconfont.woff?t=1726109971995') format('woff'),
- url('iconfont.ttf?t=1726109971995') format('truetype');
+ src: url('iconfont.woff2?t=1731484250872') format('woff2'),
+ url('iconfont.woff?t=1731484250872') format('woff'),
+ url('iconfont.ttf?t=1731484250872') format('truetype');
}
.iconfont {
@@ -13,6 +13,22 @@
-moz-osx-font-smoothing: grayscale;
}
+.icon-bianjiao-suoxiao:before {
+ content: "\e8c8";
+}
+
+.icon-bianjiao-fangda:before {
+ content: "\e8c9";
+}
+
+.icon-guangquan-:before {
+ content: "\e7e9";
+}
+
+.icon-guangquan:before {
+ content: "\e7ea";
+}
+
.icon-a-mti-1fenpingshi:before {
content: "\e7e5";
}
diff --git a/web_src/static/css/iconfont.woff2 b/web_src/static/css/iconfont.woff2
index e9f9cd16..4073daf1 100644
Binary files a/web_src/static/css/iconfont.woff2 and b/web_src/static/css/iconfont.woff2 differ