|
|
|
@ -15,7 +15,6 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<span class="direction-item">变倍</span>
|
|
|
|
<span class="direction-item">变倍</span>
|
|
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<div class="direction-item">
|
|
|
|
<div class="direction-item">
|
|
|
|
@ -28,7 +27,6 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="10" justify="center">
|
|
|
|
<el-row :gutter="10" justify="center">
|
|
|
|
@ -42,11 +40,9 @@
|
|
|
|
@mouseleave="handleControl('focusSub', 'stop')"
|
|
|
|
@mouseleave="handleControl('focusSub', 'stop')"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<span class="direction-item">变焦</span>
|
|
|
|
<span class="direction-item">变焦</span>
|
|
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<div class="direction-item">
|
|
|
|
<div class="direction-item">
|
|
|
|
@ -75,7 +71,6 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<span class="direction-item">光圈</span>
|
|
|
|
<span class="direction-item">光圈</span>
|
|
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<div class="direction-item">
|
|
|
|
<div class="direction-item">
|
|
|
|
@ -138,10 +133,7 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<div class="direction-item">
|
|
|
|
<div class="direction-item">
|
|
|
|
<Icon
|
|
|
|
<Icon :icon="centerIcon" @click="refresh" alt="Center" title="刷新" />
|
|
|
|
:icon="centerIcon"
|
|
|
|
|
|
|
|
alt="Center"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
@ -207,7 +199,7 @@ export default {
|
|
|
|
default: 2
|
|
|
|
default: 2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
setup(props) {
|
|
|
|
setup(props, { emit }) {
|
|
|
|
console.log(props.cameraId)
|
|
|
|
console.log(props.cameraId)
|
|
|
|
// 定义响应式数据
|
|
|
|
// 定义响应式数据
|
|
|
|
const zoomSubIcon = ref('ep:zoom-out') // 替换为实际的图标名称
|
|
|
|
const zoomSubIcon = ref('ep:zoom-out') // 替换为实际的图标名称
|
|
|
|
@ -220,12 +212,17 @@ export default {
|
|
|
|
const upIcon = ref('ep:arrow-up') // 替换为实际的图标名称
|
|
|
|
const upIcon = ref('ep:arrow-up') // 替换为实际的图标名称
|
|
|
|
const rightUpIcon = ref('ep:top-right') // 替换为实际的图标名称
|
|
|
|
const rightUpIcon = ref('ep:top-right') // 替换为实际的图标名称
|
|
|
|
const leftIcon = ref('ep:arrow-left') // 替换为实际的图标名称
|
|
|
|
const leftIcon = ref('ep:arrow-left') // 替换为实际的图标名称
|
|
|
|
const centerIcon = ref('ep:aim') // 替换为实际的图标名称
|
|
|
|
const centerIcon = ref('ep:refresh') // 替换为实际的图标名称
|
|
|
|
const rightIcon = ref('ep:arrow-right') // 替换为实际的图标名称
|
|
|
|
const rightIcon = ref('ep:arrow-right') // 替换为实际的图标名称
|
|
|
|
const leftDownIcon = ref('ep:bottom-left') // 替换为实际的图标名称
|
|
|
|
const leftDownIcon = ref('ep:bottom-left') // 替换为实际的图标名称
|
|
|
|
const downIcon = ref('ep:arrow-down') // 替换为实际的图标名称
|
|
|
|
const downIcon = ref('ep:arrow-down') // 替换为实际的图标名称
|
|
|
|
const rightDownIcon = ref('ep:bottom-right') // 替换为实际的图标名称
|
|
|
|
const rightDownIcon = ref('ep:bottom-right') // 替换为实际的图标名称
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const refresh = () => {
|
|
|
|
|
|
|
|
console.log("刷新");
|
|
|
|
|
|
|
|
// 使用 $emit 触发事件,并传递参数
|
|
|
|
|
|
|
|
emit('childTriggerParent')
|
|
|
|
|
|
|
|
}
|
|
|
|
const activeIcons = {
|
|
|
|
const activeIcons = {
|
|
|
|
zoomSub: 'ep:zoom-out-active',
|
|
|
|
zoomSub: 'ep:zoom-out-active',
|
|
|
|
zoomAdd: 'ep:zoom-in-active',
|
|
|
|
zoomAdd: 'ep:zoom-in-active',
|
|
|
|
@ -255,9 +252,8 @@ export default {
|
|
|
|
} else if (state === 'stop') {
|
|
|
|
} else if (state === 'stop') {
|
|
|
|
eval(`${iconRef}.value = '${eval(iconRef).value.replace('-active', '')}'`)
|
|
|
|
eval(`${iconRef}.value = '${eval(iconRef).value.replace('-active', '')}'`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const data ={"id":props.cameraId}
|
|
|
|
const data = { id: props.cameraId }
|
|
|
|
CameraControlApi.cameraControl(`/camera/control/${action}/${state}`, data)
|
|
|
|
CameraControlApi.cameraControl(`/camera/control/${action}/${state}`, data)
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const close = () => {
|
|
|
|
const close = () => {
|
|
|
|
|