|
@@ -25,7 +25,7 @@
|
|
|
v-doubleClick="cropFullInfo"
|
|
|
:style="{
|
|
|
width: '100%',
|
|
|
- transform: `rotateZ(${cropFullInfo.Rotate}deg)`,
|
|
|
+ // transform: `rotateZ(${cropFullInfo.Rotate}deg)`,
|
|
|
}"
|
|
|
></canvas>
|
|
|
</div>
|
|
@@ -57,7 +57,7 @@
|
|
|
position="top"
|
|
|
:content-style="{ padding: '0 15px' }"
|
|
|
>
|
|
|
- <a-button @click="speechClick">
|
|
|
+ <a-button>
|
|
|
<template #icon>
|
|
|
<Icon icon="ri:speak-line" width="22" height="22" />
|
|
|
</template>
|
|
@@ -174,7 +174,7 @@
|
|
|
:id="'video-canvas-part' + i"
|
|
|
:style="{
|
|
|
width: '100%',
|
|
|
- transform: `rotateZ(${cropFullInfo.Rotate}deg)`,
|
|
|
+ // transform: `rotateZ(${cropFullInfo.Rotate}deg)`,
|
|
|
}"
|
|
|
></canvas>
|
|
|
</div>
|
|
@@ -205,7 +205,7 @@
|
|
|
:width="180"
|
|
|
>
|
|
|
</a-table-column>
|
|
|
- <a-table-column
|
|
|
+ <!-- <a-table-column
|
|
|
:title="t('previewList.status')"
|
|
|
data-index="status"
|
|
|
:width="150"
|
|
@@ -222,8 +222,8 @@
|
|
|
: t('previewList.wcl')
|
|
|
}}</span>
|
|
|
</template>
|
|
|
- </a-table-column>
|
|
|
- <a-table-column
|
|
|
+ </a-table-column> -->
|
|
|
+ <!-- <a-table-column
|
|
|
:title="t('previewList.dqstatus')"
|
|
|
data-index="isRead"
|
|
|
:width="150"
|
|
@@ -240,22 +240,13 @@
|
|
|
: t('previewList.wd')
|
|
|
}}</span>
|
|
|
</template>
|
|
|
- </a-table-column>
|
|
|
+ </a-table-column> -->
|
|
|
<a-table-column :title="t('previewList.cz')" :width="150">
|
|
|
<template #cell="{ record }">
|
|
|
<a-button
|
|
|
type="text"
|
|
|
size="mini"
|
|
|
- @click="
|
|
|
- () => (
|
|
|
- (record.isRead = true),
|
|
|
- $modal.info({
|
|
|
- title: '提示',
|
|
|
- draggable: true,
|
|
|
- content: record.type,
|
|
|
- })
|
|
|
- )
|
|
|
- "
|
|
|
+ @click="showView(record)"
|
|
|
>{{ t('previewList.ck') }}</a-button
|
|
|
>
|
|
|
</template>
|
|
@@ -265,7 +256,7 @@
|
|
|
<a-button
|
|
|
type="text"
|
|
|
size="mini"
|
|
|
- style="position: absolute; right: 40px"
|
|
|
+ style="position: absolute; right: 8px"
|
|
|
@click="modalRef.open()"
|
|
|
>
|
|
|
<template #icon>
|
|
@@ -273,7 +264,7 @@
|
|
|
</template>
|
|
|
</a-button>
|
|
|
</a-tooltip>
|
|
|
- <a-tooltip :content="$t('previewList.tip1')">
|
|
|
+ <!-- <a-tooltip :content="$t('previewList.tip1')">
|
|
|
<a-button
|
|
|
type="text"
|
|
|
size="mini"
|
|
@@ -297,7 +288,7 @@
|
|
|
</a-badge>
|
|
|
</template>
|
|
|
</a-button>
|
|
|
- </a-tooltip>
|
|
|
+ </a-tooltip> -->
|
|
|
</template>
|
|
|
</a-table-column>
|
|
|
</template>
|
|
@@ -313,8 +304,14 @@
|
|
|
:fullscreen="true"
|
|
|
:closable="true"
|
|
|
>
|
|
|
- <AlarmAll :guid="data.id" />
|
|
|
+ <AlarmAll :guid="data.id" :is-show-cl="isShowCl" />
|
|
|
</PubModal>
|
|
|
+ <ViewDrawer
|
|
|
+ ref="viewDrawerRef"
|
|
|
+ v-model:view-data="viewData"
|
|
|
+ :guid="data.id"
|
|
|
+ :is-show-cl="false"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -332,14 +329,20 @@
|
|
|
import Speech from '../components/speech.vue';
|
|
|
import AlarmAll from '../components/alarm-all.vue';
|
|
|
import PubModal from '../components/pub-modal.vue';
|
|
|
+ import ViewDrawer from '../components/view-drawer.vue';
|
|
|
|
|
|
const { t } = useI18n();
|
|
|
interface IBtn {
|
|
|
label: string;
|
|
|
value: number;
|
|
|
}
|
|
|
+ interface AlarmData {
|
|
|
+ [key: string]: number | string | boolean;
|
|
|
+ }
|
|
|
const app = useAppStore();
|
|
|
|
|
|
+ const viewData = ref<AlarmData>({});
|
|
|
+ const isShowCl = ref(false);
|
|
|
const modalRef = ref();
|
|
|
const workerObj: any = ref({ qj: null });
|
|
|
const cropFullInfo = ref<{
|
|
@@ -534,7 +537,14 @@
|
|
|
// (app.ip as string).split('//')[1]
|
|
|
IntercomFn(intercomDisabled, '39.107.83.190');
|
|
|
};
|
|
|
- const speechClick = () => {};
|
|
|
+ const viewDrawerRef = ref();
|
|
|
+ const showView = (record: any) => {
|
|
|
+ record.isRead = true;
|
|
|
+ console.log(record);
|
|
|
+
|
|
|
+ viewData.value = record;
|
|
|
+ viewDrawerRef.value.open();
|
|
|
+ };
|
|
|
watch(
|
|
|
radioActive,
|
|
|
(newV) => {
|
|
@@ -573,7 +583,8 @@
|
|
|
document.querySelectorAll('.video-box')[screenActive.value],
|
|
|
`#video-canvas-part${screenActive.value}`
|
|
|
);
|
|
|
- }
|
|
|
+ },
|
|
|
+ JSON.stringify(cropFullInfo.value)
|
|
|
);
|
|
|
});
|
|
|
});
|
|
@@ -625,11 +636,17 @@
|
|
|
alarmSSE();
|
|
|
getCropFullInfo({ GUID: props.data.id }).then((res) => {
|
|
|
cropFullInfo.value = res.data;
|
|
|
- });
|
|
|
- const videoUrl = `${app.ip}/VideoShow/Preview/Full/Main?GUID=${props.data.id}`;
|
|
|
- qjLoading.value = true;
|
|
|
- workerObj.value.qj = useWorker(videoUrl, `#video-canvas-qj`, null, () => {
|
|
|
- qjLoading.value = false;
|
|
|
+ const videoUrl = `${app.ip}/VideoShow/Preview/Full/Main?GUID=${props.data.id}`;
|
|
|
+ qjLoading.value = true;
|
|
|
+ workerObj.value.qj = useWorker(
|
|
|
+ videoUrl,
|
|
|
+ `#video-canvas-qj`,
|
|
|
+ null,
|
|
|
+ () => {
|
|
|
+ qjLoading.value = false;
|
|
|
+ },
|
|
|
+ JSON.stringify(cropFullInfo.value)
|
|
|
+ );
|
|
|
});
|
|
|
});
|
|
|
onUnmounted(() => {
|