|
|
|
@ -123,7 +123,7 @@
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
const zoomVale = ref(2);
|
|
|
|
|
const maxval = ref(200);
|
|
|
|
|
const maxval = ref(20);
|
|
|
|
|
const marks = ref<Record<number, any>>({
|
|
|
|
|
2: {
|
|
|
|
|
style: {
|
|
|
|
@ -131,13 +131,13 @@
|
|
|
|
|
},
|
|
|
|
|
label: createVNode('strong', {}, '2'),
|
|
|
|
|
},
|
|
|
|
|
100: {
|
|
|
|
|
10: {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#f50',
|
|
|
|
|
},
|
|
|
|
|
label: createVNode('strong', {}, '100'),
|
|
|
|
|
},
|
|
|
|
|
200: {
|
|
|
|
|
20: {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#f50',
|
|
|
|
|
},
|
|
|
|
@ -148,45 +148,6 @@
|
|
|
|
|
() => props.cameraType,
|
|
|
|
|
(val) => {
|
|
|
|
|
console.log('props.cameraType', val);
|
|
|
|
|
if (val == 'ir') {
|
|
|
|
|
maxval.value = 20;
|
|
|
|
|
marks.value = {
|
|
|
|
|
2: {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#f50',
|
|
|
|
|
},
|
|
|
|
|
label: createVNode('strong', {}, '2'),
|
|
|
|
|
},
|
|
|
|
|
20: {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#f50',
|
|
|
|
|
},
|
|
|
|
|
label: createVNode('strong', {}, '20'),
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
} else {
|
|
|
|
|
maxval.value = 200;
|
|
|
|
|
marks.value = {
|
|
|
|
|
2: {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#f50',
|
|
|
|
|
},
|
|
|
|
|
label: createVNode('strong', {}, '2'),
|
|
|
|
|
},
|
|
|
|
|
100: {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#f50',
|
|
|
|
|
},
|
|
|
|
|
label: createVNode('strong', {}, '100'),
|
|
|
|
|
},
|
|
|
|
|
200: {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#f50',
|
|
|
|
|
},
|
|
|
|
|
label: createVNode('strong', {}, '200'),
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
cameraZoom();
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|