diff --git a/src/views/earthMap/edit/EarthComp.vue b/src/views/earthMap/edit/EarthComp.vue index 9e5ce14..667935e 100644 --- a/src/views/earthMap/edit/EarthComp.vue +++ b/src/views/earthMap/edit/EarthComp.vue @@ -627,9 +627,6 @@ this.clearAlarmModel(eventSerialNum) } }) - $mitt.on('fly', function (callback) { - that.fly(callback) - }) } @@ -844,7 +841,7 @@ }); } - async fly(callback:any = null) { + async fly() { let position, rotation, viewDistance, duration; // let parentData = @@ -869,11 +866,6 @@ rotation = [data.rotationX, data.rotationY, data.rotationZ]; viewDistance = data.viewDistance; duration = data.duration ? data.duration : 0; - // 处理mitt事件 - if(callback){ - callback(position,rotation,viewDistance,duration); - return - } this._earth.camera.flyTo(position, viewDistance, rotation, duration); // 地图复原事件 window.$flyTo = this.flyTo = () => { @@ -885,11 +877,6 @@ rotation = [parentData[0].rotationX, parentData[0].rotationY, parentData[0].rotationZ]; viewDistance = parentData[0].viewDistance; duration = parentData[0].duration; - // 处理mitt事件 - if(callback){ - callback(position,rotation,viewDistance,duration); - return - } // 先飞入到能看见红旗 this._earth.camera.flyTo(position, viewDistance, rotation, duration); // 地图复原事件 diff --git a/src/views/military/modules/ai/aiModel/DtAiModel.data.ts b/src/views/military/modules/ai/aiModel/DtAiModel.data.ts index 47fe12f..779fe6a 100644 --- a/src/views/military/modules/ai/aiModel/DtAiModel.data.ts +++ b/src/views/military/modules/ai/aiModel/DtAiModel.data.ts @@ -1,54 +1,53 @@ -import {BasicColumn} from '/@/components/Table'; -import {FormSchema} from '/@/components/Table'; -import { rules} from '/@/utils/helper/validator'; +import { BasicColumn } from '/@/components/Table'; +import { FormSchema } from '/@/components/Table'; +import { rules } from '/@/utils/helper/validator'; import { render } from '/@/utils/common/renderUtils'; //列表数据 export const columns: BasicColumn[] = [ { title: '模型编号', - align: "center", - dataIndex: 'modelCode' + align: 'center', + dataIndex: 'modelCode', }, { title: '模型名称', - align: "center", - dataIndex: 'modelName' + align: 'center', + dataIndex: 'modelName', }, { title: '备注', - align: "center", - dataIndex: 'remark' - }, - { - title: '备用1', - align: "center", - dataIndex: 'field1' - }, - { - title: '备用2', - align: "center", - dataIndex: 'field2' - }, - { - title: '备用3', - align: "center", - dataIndex: 'field3' - }, - { - title: '所属区域', - align: "center", - dataIndex: 'sysAreaCode' - }, - { - title: '所属单位', - align: "center", - dataIndex: 'sysUnitCode' - }, + align: 'center', + dataIndex: 'remark', + }, + // { + // title: '备用1', + // align: "center", + // dataIndex: 'field1' + // }, + // { + // title: '备用2', + // align: "center", + // dataIndex: 'field2' + // }, + // { + // title: '备用3', + // align: "center", + // dataIndex: 'field3' + // }, + // { + // title: '所属区域', + // align: "center", + // dataIndex: 'sysAreaCode' + // }, + // { + // title: '所属单位', + // align: "center", + // dataIndex: 'sysUnitCode' + // }, ]; //查询数据 -export const searchFormSchema: FormSchema[] = [ -]; +export const searchFormSchema: FormSchema[] = []; //表单数据 export const formSchema: FormSchema[] = [ @@ -92,7 +91,7 @@ export const formSchema: FormSchema[] = [ field: 'sysUnitCode', component: 'Input', }, - // TODO 主键隐藏字段,目前写死为ID + // TODO 主键隐藏字段,目前写死为ID { label: '', field: 'id', diff --git a/src/views/military/modules/ai/aiModel/components/DtAiModelForm.vue b/src/views/military/modules/ai/aiModel/components/DtAiModelForm.vue index ffc706a..34c44d7 100644 --- a/src/views/military/modules/ai/aiModel/components/DtAiModelForm.vue +++ b/src/views/military/modules/ai/aiModel/components/DtAiModelForm.vue @@ -17,7 +17,7 @@ - + @@ -54,48 +54,46 @@ import { getValueType } from '/@/utils'; import { saveOrUpdate } from '../DtAiModel.api'; import { Form } from 'ant-design-vue'; - + const props = defineProps({ formDisabled: { type: Boolean, default: false }, - formData: { type: Object, default: ()=>{} }, - formBpm: { type: Boolean, default: true } + formData: { type: Object, default: () => {} }, + formBpm: { type: Boolean, default: true }, }); const formRef = ref(); const useForm = Form.useForm; const emit = defineEmits(['register', 'ok']); const formData = reactive>({ id: '', - modelCode: '', - modelName: '', - remark: '', - field1: '', - field2: '', - field3: '', - sysAreaCode: '', - sysUnitCode: '', + modelCode: '', + modelName: '', + remark: '', + field1: '', + field2: '', + field3: '', + sysAreaCode: '', + sysUnitCode: '', }); const { createMessage } = useMessage(); const labelCol = ref({ xs: { span: 24 }, sm: { span: 5 } }); const wrapperCol = ref({ xs: { span: 24 }, sm: { span: 16 } }); const confirmLoading = ref(false); //表单验证 - const validatorRules = { - }; + const validatorRules = {}; const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: true }); // 表单禁用 - const disabled = computed(()=>{ - if(props.formBpm === true){ - if(props.formData.disabled === false){ + const disabled = computed(() => { + if (props.formBpm === true) { + if (props.formData.disabled === false) { return false; - }else{ + } else { return true; } } return props.formDisabled; }); - /** * 新增 */ @@ -152,7 +150,6 @@ }); } - defineExpose({ add, edit, diff --git a/src/views/military/modules/ai/aiMonitorArea/DtAiMonitorArea.data.ts b/src/views/military/modules/ai/aiMonitorArea/DtAiMonitorArea.data.ts index 873d87c..04b8373 100644 --- a/src/views/military/modules/ai/aiMonitorArea/DtAiMonitorArea.data.ts +++ b/src/views/military/modules/ai/aiMonitorArea/DtAiMonitorArea.data.ts @@ -1,69 +1,70 @@ -import {BasicColumn} from '/@/components/Table'; -import {FormSchema} from '/@/components/Table'; -import { rules} from '/@/utils/helper/validator'; +import { BasicColumn } from '/@/components/Table'; +import { FormSchema } from '/@/components/Table'; +import { rules } from '/@/utils/helper/validator'; import { render } from '/@/utils/common/renderUtils'; //列表数据 export const columns: BasicColumn[] = [ { title: '模型编号', - align: "center", - dataIndex: 'modelCode' + align: 'center', + dataIndex: 'modelCode', + width: 100, }, { title: '模型名称', - align: "center", - dataIndex: 'modelName' + align: 'center', + dataIndex: 'modelName', }, { - title: '模型范围数据', - align: "center", - dataIndex: 'areaData' - }, - { - title: '画图数据', - align: "center", - dataIndex: 'drawdata' - }, - { - title: '相机id', - align: "center", - dataIndex: 'cameraId' - }, - { - title: '备注', - align: "center", - dataIndex: 'remark' - }, - { - title: '备用1', - align: "center", - dataIndex: 'field1' + title: 'rtsp地址', + align: 'center', + dataIndex: 'rtspUrl', }, { - title: '备用2', - align: "center", - dataIndex: 'field2' + title: 'webrtc地址', + align: 'center', + dataIndex: 'webrtcUrl', }, { - title: '备用3', - align: "center", - dataIndex: 'field3' - }, - { - title: '所属区域', - align: "center", - dataIndex: 'sysAreaCode' + title: '模型范围数据', + align: 'center', + dataIndex: 'areaData', }, { - title: '所属单位', - align: "center", - dataIndex: 'sysUnitCode' - }, + title: '画图数据', + align: 'center', + dataIndex: 'drawdata', + }, + // , + // { + // title: '备注', + // align: 'center', + // dataIndex: 'remark', + // }, + // { + // title: '备用2', + // align: "center", + // dataIndex: 'field2' + // }, + // { + // title: '备用3', + // align: "center", + // dataIndex: 'field3' + // }, + // { + // title: '所属区域', + // align: "center", + // dataIndex: 'sysAreaCode' + // }, + // { + // title: '所属单位', + // align: "center", + // dataIndex: 'sysUnitCode' + // }, ]; //查询数据 -export const searchFormSchema: FormSchema[] = [ -]; +export const searchFormSchema: FormSchema[] = []; //表单数据 export const formSchema: FormSchema[] = [ @@ -88,18 +89,18 @@ export const formSchema: FormSchema[] = [ component: 'Input', }, { - label: '相机id', - field: 'cameraId', + label: 'rtsp地址', + field: 'rtspUrl', component: 'Input', }, { - label: '备注', - field: 'remark', + label: 'webrtc地址', + field: 'webrtcUrl', component: 'Input', }, { - label: '备用1', - field: 'field1', + label: '备注', + field: 'remark', component: 'Input', }, { @@ -122,7 +123,7 @@ export const formSchema: FormSchema[] = [ field: 'sysUnitCode', component: 'Input', }, - // TODO 主键隐藏字段,目前写死为ID + // TODO 主键隐藏字段,目前写死为ID { label: '', field: 'id', diff --git a/src/views/military/modules/ai/aiMonitorArea/DtAiMonitorAreaList.vue b/src/views/military/modules/ai/aiMonitorArea/DtAiMonitorAreaList.vue index 9a5b0dd..3401094 100644 --- a/src/views/military/modules/ai/aiMonitorArea/DtAiMonitorAreaList.vue +++ b/src/views/military/modules/ai/aiMonitorArea/DtAiMonitorAreaList.vue @@ -53,6 +53,8 @@ + + @@ -64,7 +66,13 @@ import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './DtAiMonitorArea.api'; import { downloadFile } from '/@/utils/common/renderUtils'; import DtAiMonitorAreaModal from './components/DtAiMonitorAreaModal.vue'; - + import CheckCom from './checkCom/CheckCom.vue'; + // 查看监控弹窗 + const videoVisible = ref(false); + // 显示组件 + function videoCheck(record) { + videoVisible.value = true; + } const formRef = ref(); const queryParam = reactive({}); const toggleSearchStatus = ref(false); @@ -78,7 +86,7 @@ canResize: false, useSearchForm: false, actionColumn: { - width: 120, + width: 180, fixed: 'right', }, beforeFetch: (params) => { @@ -156,6 +164,10 @@ */ function getTableAction(record) { return [ + { + label: '查看监控', + onClick: videoCheck.bind(null, record), + }, { label: '编辑', onClick: handleEdit.bind(null, record), @@ -198,6 +210,10 @@ //刷新数据 reload(); } + + defineExpose({ + videoVisible, + }); diff --git a/src/views/military/modules/ai/aiMonitorArea/components/DtAiMonitorAreaForm.vue b/src/views/military/modules/ai/aiMonitorArea/components/DtAiMonitorAreaForm.vue index 12362ea..efb245d 100644 --- a/src/views/military/modules/ai/aiMonitorArea/components/DtAiMonitorAreaForm.vue +++ b/src/views/military/modules/ai/aiMonitorArea/components/DtAiMonitorAreaForm.vue @@ -12,31 +12,53 @@ - - - + + + 绘制标注数据 - - + + + - - + + + - - + + - - + + + + + @@ -184,4 +291,10 @@ overflow-y: auto; padding: 24px 24px 24px 24px; } + .dwImg { + width: 10%; + height: 10%; + margin-left: 3%; + cursor: pointer !important; + } diff --git a/src/views/military/modules/ai/aiMonitorArea/selectCom/SelectCom.vue b/src/views/military/modules/ai/aiMonitorArea/selectCom/SelectCom.vue new file mode 100644 index 0000000..3b95ebb --- /dev/null +++ b/src/views/military/modules/ai/aiMonitorArea/selectCom/SelectCom.vue @@ -0,0 +1,360 @@ + + + + diff --git a/src/views/military/modules/ai/aiMonitorArea/selectCom/assets/circle_icon.png b/src/views/military/modules/ai/aiMonitorArea/selectCom/assets/circle_icon.png new file mode 100644 index 0000000..4941739 Binary files /dev/null and b/src/views/military/modules/ai/aiMonitorArea/selectCom/assets/circle_icon.png differ diff --git a/src/views/military/modules/ai/aiMonitorArea/selectCom/assets/hide.png b/src/views/military/modules/ai/aiMonitorArea/selectCom/assets/hide.png new file mode 100644 index 0000000..d7579c3 Binary files /dev/null and b/src/views/military/modules/ai/aiMonitorArea/selectCom/assets/hide.png differ diff --git a/src/views/military/modules/ai/aiMonitorArea/selectCom/assets/line_icon.png b/src/views/military/modules/ai/aiMonitorArea/selectCom/assets/line_icon.png new file mode 100644 index 0000000..8202a05 Binary files /dev/null and b/src/views/military/modules/ai/aiMonitorArea/selectCom/assets/line_icon.png differ diff --git a/src/views/military/modules/ai/aiMonitorArea/selectCom/assets/point_icon.png b/src/views/military/modules/ai/aiMonitorArea/selectCom/assets/point_icon.png new file mode 100644 index 0000000..376a059 Binary files /dev/null and b/src/views/military/modules/ai/aiMonitorArea/selectCom/assets/point_icon.png differ diff --git a/src/views/military/modules/ai/aiMonitorArea/selectCom/assets/polo_icon.png b/src/views/military/modules/ai/aiMonitorArea/selectCom/assets/polo_icon.png new file mode 100644 index 0000000..bfd3211 Binary files /dev/null and b/src/views/military/modules/ai/aiMonitorArea/selectCom/assets/polo_icon.png differ diff --git a/src/views/military/modules/ai/aiMonitorArea/selectCom/assets/rect_icon.png b/src/views/military/modules/ai/aiMonitorArea/selectCom/assets/rect_icon.png new file mode 100644 index 0000000..ead0020 Binary files /dev/null and b/src/views/military/modules/ai/aiMonitorArea/selectCom/assets/rect_icon.png differ diff --git a/src/views/military/modules/ai/monitorArea/components/DtMonitorAreaForm.vue b/src/views/military/modules/ai/monitorArea/components/DtMonitorAreaForm.vue index e7229ae..4f58e1f 100644 --- a/src/views/military/modules/ai/monitorArea/components/DtMonitorAreaForm.vue +++ b/src/views/military/modules/ai/monitorArea/components/DtMonitorAreaForm.vue @@ -75,6 +75,9 @@ + @@ -91,7 +94,7 @@ import VCEarthViewer from './VCEarthViewer.vue'; import Area from '@/views/military/modules/ai/MonitorArea/components/Area.vue'; import AreaByXbsjEarthUI from '@/views/military/modules/ai/MonitorArea/components/AreaByXbsjEarthUI.vue'; - + import EarthMapModal from '/@/views/military/modules/earthMap/scene/model/mapModel/EarthMapModal.vue'; import locationPng from '@/assets/images/getLocation.png'; import { FormatPainterOutlined } from '@ant-design/icons-vue'; diff --git a/src/views/system/loginmini/CanvasVideoPage.vue b/src/views/system/loginmini/CanvasVideoPage.vue index a1c06d4..7d56279 100644 --- a/src/views/system/loginmini/CanvasVideoPage.vue +++ b/src/views/system/loginmini/CanvasVideoPage.vue @@ -45,8 +45,8 @@ 保存 -
-
+    
   
@@ -95,7 +94,7 @@ const mouseX = ref(0); const mouseY = ref(0); const isRightMouseDown = ref(false); - // + // 开启rtsp播放 const open = () => { const res = ipcRenderer.sendSync('openRtsp', rtspUrl.value); @@ -252,7 +251,7 @@ width: 800px; height: 480px; position: absolute; - z-index: 999; + z-index: 999999; left: 0; top: 0; }