diff --git a/src/renderer/components.d.ts b/src/renderer/components.d.ts index eae5d7c..5cb6634 100644 --- a/src/renderer/components.d.ts +++ b/src/renderer/components.d.ts @@ -25,7 +25,6 @@ declare module 'vue' { ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTabPane: typeof import('element-plus/es')['ElTabPane'] ElTabs: typeof import('element-plus/es')['ElTabs'] - ElTag: typeof import('element-plus/es')['ElTag'] ElUpload: typeof import('element-plus/es')['ElUpload'] Index_b: typeof import('./src/components/SvgIcon/index_b.vue')['default'] Pagination: typeof import('./src/components/Pagination/index.vue')['default'] diff --git a/src/renderer/src/views/components/bottomSide/bottomSide.vue b/src/renderer/src/views/components/bottomSide/bottomSide.vue index 2c6b2bb..eada9c9 100644 --- a/src/renderer/src/views/components/bottomSide/bottomSide.vue +++ b/src/renderer/src/views/components/bottomSide/bottomSide.vue @@ -234,8 +234,8 @@ const bottomMenuList = ref([ "params": options } console.log(params) - eventBus.emit("openDialog", 'circle'); - // TreeApi.addOtherSource(params) + // eventBus.emit("openDialog", 'circle'); + TreeApi.addOtherSource(params) }) } }, diff --git a/src/renderer/src/views/components/leftSide/leftSideFirst.vue b/src/renderer/src/views/components/leftSide/leftSideFirst.vue index 1e599d2..df13ccf 100644 --- a/src/renderer/src/views/components/leftSide/leftSideFirst.vue +++ b/src/renderer/src/views/components/leftSide/leftSideFirst.vue @@ -39,8 +39,8 @@ import { bus } from '@/utils/bus' import leftSideSecond from '@/views/components/leftSide/leftSideSecond.vue' const { t } = useI18n() -const eventBus = inject('bus') -const menuList = ref([ +const eventBus: any = inject('bus') +const menuList: any = ref([ // 方案推演 { name: 'situation', diff --git a/src/renderer/src/views/components/propertyBox/CircleViewShed.vue b/src/renderer/src/views/components/propertyBox/CircleViewShed.vue index 574fb94..1e1a1b1 100644 --- a/src/renderer/src/views/components/propertyBox/CircleViewShed.vue +++ b/src/renderer/src/views/components/propertyBox/CircleViewShed.vue @@ -69,8 +69,8 @@ import { ref, reactive, onMounted } from 'vue' import { inject } from 'vue' import Dialog from '@/components/dialog/baseDialog.vue' -const baseDialog = ref(null) -const eventBus = inject('bus') +const baseDialog: any = ref(null) +const eventBus: any = inject('bus') const viewPointHeight: any = ref(1.8) const precision: any = ref(20) @@ -92,7 +92,7 @@ const viewPointHeightChange = () => { visibility.viewPointHeights = viewPointHeight.value } const viewPointHeightInput = () => { - let dom = document.getElementById('viewPointHeight') + let dom: any = document.getElementById('viewPointHeight') if (viewPointHeight.value < dom.min * 1) { viewPointHeight.value = dom.min * 1 } else if (viewPointHeight.value > dom.max * 1) { diff --git a/src/renderer/src/views/components/propertyBox/Contour.vue b/src/renderer/src/views/components/propertyBox/Contour.vue index eaf4123..ed7c8d8 100644 --- a/src/renderer/src/views/components/propertyBox/Contour.vue +++ b/src/renderer/src/views/components/propertyBox/Contour.vue @@ -155,8 +155,8 @@ import { ref, reactive, onMounted } from 'vue' import { inject } from 'vue' import Dialog from '@/components/dialog/baseDialog.vue' -const baseDialog = ref(null) -const eventBus = inject('bus') +const baseDialog: any = ref(null) +const eventBus: any = inject('bus') eventBus.on('contourDialog', () => { baseDialog.value?.open() diff --git a/src/renderer/src/views/components/propertyBox/CoorLocation.vue b/src/renderer/src/views/components/propertyBox/CoorLocation.vue index 6460af5..cc0a04c 100644 --- a/src/renderer/src/views/components/propertyBox/CoorLocation.vue +++ b/src/renderer/src/views/components/propertyBox/CoorLocation.vue @@ -117,8 +117,8 @@ import { ref, reactive } from 'vue' import { inject } from 'vue' import Dialog from '@/components/dialog/baseDialog.vue' -const baseDialog = ref(null) -const eventBus = inject('bus') +const baseDialog: any = ref(null) +const eventBus: any = inject('bus') const activeName = ref('first') @@ -135,6 +135,7 @@ eventBus.on('coorLocationDialog', () => { baseDialog.value?.open() }) +// @ts-ignore (define in dts) const handleClick = (tab: TabsPaneContext, event: Event) => { console.log(tab, event) longitude.value = null @@ -160,9 +161,13 @@ const flyto = (e) => { }) break case 'second': + // @ts-ignore (define in dts) var lng = Math.abs(longitude.value) + Math.abs(lngMin.value) / 60 + // @ts-ignore (define in dts) var lat = Math.abs(latitude.value) + Math.abs(latMin.value) / 60 + // @ts-ignore (define in dts) lng = longitude.value < 0 ? -lng : lng + // @ts-ignore (define in dts) lat = latitude.value < 0 ? -lat : lat var position = { lng, lat, alt: 100 } @@ -172,11 +177,15 @@ const flyto = (e) => { break case 'third': var lng = + // @ts-ignore (define in dts) Math.abs(longitude.value) + Math.abs(lngMin.value) / 60 + Math.abs(lngSec.value) / 3600 var lat = + // @ts-ignore (define in dts) Math.abs(latitude.value) + Math.abs(latMin.value) / 60 + Math.abs(latSec.value) / 3600 + // @ts-ignore (define in dts) lng = longitude.value < 0 ? -lng : lng + // @ts-ignore (define in dts) lat = latitude.value < 0 ? -lat : lat var position = { lng, lat, alt: 100 } diff --git a/src/renderer/src/views/components/propertyBox/CutFill.vue b/src/renderer/src/views/components/propertyBox/CutFill.vue index 058776f..8d85bb0 100644 --- a/src/renderer/src/views/components/propertyBox/CutFill.vue +++ b/src/renderer/src/views/components/propertyBox/CutFill.vue @@ -112,8 +112,8 @@ import { ref, reactive } from 'vue' import { inject } from 'vue' import Dialog from '@/components/dialog/baseDialog.vue' -const baseDialog = ref(null) -const eventBus = inject('bus') +const baseDialog: any = ref(null) +const eventBus: any = inject('bus') var height: any = ref(70) var precision: any = ref(125) @@ -135,7 +135,7 @@ eventBus.on('cutFillDialog', () => { }) const heightInput = () => { - let dom = document.getElementById('height') + let dom: any = document.getElementById('height') if (height.value < dom.min * 1) { height.value = dom.min * 1 } else if (height.value > dom.max * 1) { diff --git a/src/renderer/src/views/components/propertyBox/FlyRoam.vue b/src/renderer/src/views/components/propertyBox/FlyRoam.vue index 3223f5c..3c56ad2 100644 --- a/src/renderer/src/views/components/propertyBox/FlyRoam.vue +++ b/src/renderer/src/views/components/propertyBox/FlyRoam.vue @@ -1,4 +1,4 @@ -