|
@@ -85,7 +85,7 @@
|
|
|
/> -->
|
|
/> -->
|
|
|
<ul class="h-full flex flex-justify-around flex-items-center">
|
|
<ul class="h-full flex flex-justify-around flex-items-center">
|
|
|
<li
|
|
<li
|
|
|
- v-for="item,i in listComputed"
|
|
|
|
|
|
|
+ v-for="(item, i) in listComputed"
|
|
|
:key="i"
|
|
:key="i"
|
|
|
@click.stop="toolsHandler(item.type)"
|
|
@click.stop="toolsHandler(item.type)"
|
|
|
class="cursor-pointer"
|
|
class="cursor-pointer"
|
|
@@ -151,16 +151,19 @@ const downEvent = "mousedown";
|
|
|
const upEvent = "mouseup";
|
|
const upEvent = "mouseup";
|
|
|
|
|
|
|
|
const planShow = ref(false);
|
|
const planShow = ref(false);
|
|
|
-const props = defineProps({
|
|
|
|
|
- CameraId: String,
|
|
|
|
|
- KeyId: String,
|
|
|
|
|
- Id: String,
|
|
|
|
|
- tagId: String,
|
|
|
|
|
- index: Number,
|
|
|
|
|
- className: {
|
|
|
|
|
- type: String,
|
|
|
|
|
|
|
+const props = withDefaults(
|
|
|
|
|
+ defineProps<{
|
|
|
|
|
+ CameraId: string;
|
|
|
|
|
+ KeyId?: string;
|
|
|
|
|
+ Id?: string;
|
|
|
|
|
+ tagId?: string;
|
|
|
|
|
+ index?: number;
|
|
|
|
|
+ className?: string;
|
|
|
|
|
+ }>(),
|
|
|
|
|
+ {
|
|
|
|
|
+ className: "",
|
|
|
},
|
|
},
|
|
|
-});
|
|
|
|
|
|
|
+);
|
|
|
// 球机重连
|
|
// 球机重连
|
|
|
const reconnect = (err, data?, api?) => {
|
|
const reconnect = (err, data?, api?) => {
|
|
|
if ([7].includes(err.code)) {
|
|
if ([7].includes(err.code)) {
|
|
@@ -182,7 +185,7 @@ const reconnect = (err, data?, api?) => {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const isHR = ref(false);
|
|
const isHR = ref(false);
|
|
|
-const setPZTmove = (direction, isKey) => {
|
|
|
|
|
|
|
+const setPZTmove = (direction?: string, isKey?: string) => {
|
|
|
let data: any = { id: 0 };
|
|
let data: any = { id: 0 };
|
|
|
let isDownOrUp = "down";
|
|
let isDownOrUp = "down";
|
|
|
switch (direction) {
|
|
switch (direction) {
|
|
@@ -338,15 +341,15 @@ const tools = ref([
|
|
|
},
|
|
},
|
|
|
]);
|
|
]);
|
|
|
const state = ref(false);
|
|
const state = ref(false);
|
|
|
-const toolsHandler = (type) => {
|
|
|
|
|
|
|
+const toolsHandler = (type?: string) => {
|
|
|
switch (type) {
|
|
switch (type) {
|
|
|
case "lx":
|
|
case "lx":
|
|
|
// switchState()
|
|
// switchState()
|
|
|
state.value = !state.value;
|
|
state.value = !state.value;
|
|
|
- ballPlayerObj.value.recording(state.value);
|
|
|
|
|
|
|
+ ballPlayerObj?.value.recording(state.value);
|
|
|
break;
|
|
break;
|
|
|
case "jt":
|
|
case "jt":
|
|
|
- ballPlayerObj.value.screenshot();
|
|
|
|
|
|
|
+ ballPlayerObj?.value.screenshot();
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|