|
@@ -64,6 +64,15 @@
|
|
<img src="@/assets/images/web/tools-ship.png"/>
|
|
<img src="@/assets/images/web/tools-ship.png"/>
|
|
</div>
|
|
</div>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
|
|
+ <el-tooltip
|
|
|
|
+ effect="light"
|
|
|
|
+ content="Dasdas"
|
|
|
|
+ placement="right"
|
|
|
|
+ >
|
|
|
|
+ <div class="tools-item __hover" @click="ShipMapStore.mockWarningWS()">
|
|
|
|
+ <img src="@/assets/images/web/tools-ship.png"/>
|
|
|
|
+ </div>
|
|
|
|
+ </el-tooltip>
|
|
</div>
|
|
</div>
|
|
<configCom ref="ref_config" v-model:show="state.tools.showConfig" :map="state.map" :mapFunc="state.mapFunc"/>
|
|
<configCom ref="ref_config" v-model:show="state.tools.showConfig" :map="state.map" :mapFunc="state.mapFunc"/>
|
|
<archiveCom v-model:show="state.tools.showArchive"/>
|
|
<archiveCom v-model:show="state.tools.showArchive"/>
|
|
@@ -73,12 +82,13 @@
|
|
<trackPointCom ref="ref_trackPoint"/>
|
|
<trackPointCom ref="ref_trackPoint"/>
|
|
<trackArchiveCom/>
|
|
<trackArchiveCom/>
|
|
</div>
|
|
</div>
|
|
|
|
+ <assistantCom v-if="state.map" v-model:show="state.showAssistant" :mapHeight="state.mapFunc?.mapHeight"/>
|
|
<div class="layout-foot"></div>
|
|
<div class="layout-foot"></div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
-import {computed, getCurrentInstance, reactive, ref, watch} from "vue";
|
|
|
|
|
|
+import {computed, getCurrentInstance, nextTick, onMounted, reactive, ref, watch} from "vue";
|
|
import configCom from './config/index.vue'
|
|
import configCom from './config/index.vue'
|
|
import archiveCom from './archive/index.vue'
|
|
import archiveCom from './archive/index.vue'
|
|
import warningCom from './warning/index.vue'
|
|
import warningCom from './warning/index.vue'
|
|
@@ -87,6 +97,7 @@ import exampleCom from './example.vue'
|
|
import trackArchiveCom from './track/archive.vue'
|
|
import trackArchiveCom from './track/archive.vue'
|
|
import {useShipMapStore} from "@/stores";
|
|
import {useShipMapStore} from "@/stores";
|
|
import trackPointCom from './track/track-point.vue'
|
|
import trackPointCom from './track/track-point.vue'
|
|
|
|
+import assistantCom from './warning/assistant.vue'
|
|
|
|
|
|
const ShipMapStore = useShipMapStore()
|
|
const ShipMapStore = useShipMapStore()
|
|
const {proxy} = getCurrentInstance()
|
|
const {proxy} = getCurrentInstance()
|
|
@@ -98,7 +109,8 @@ const state: any = reactive({
|
|
showArchive: false,
|
|
showArchive: false,
|
|
showWarning: false,
|
|
showWarning: false,
|
|
showExample: false,
|
|
showExample: false,
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ showAssistant: false
|
|
})
|
|
})
|
|
const ref_web = ref()
|
|
const ref_web = ref()
|
|
const ref_trackPoint = ref()
|
|
const ref_trackPoint = ref()
|
|
@@ -110,6 +122,9 @@ const mapLoad = (map, mapFunc) => {
|
|
state.map = map
|
|
state.map = map
|
|
state.mapFunc = mapFunc
|
|
state.mapFunc = mapFunc
|
|
// ShipMapStore.initMap(state.map, state.mapFunc, {trackPointDom: ref_trackPoint.value.$el})
|
|
// ShipMapStore.initMap(state.map, state.mapFunc, {trackPointDom: ref_trackPoint.value.$el})
|
|
|
|
+ nextTick(() => {
|
|
|
|
+ state.showAssistant = true
|
|
|
|
+ })
|
|
}
|
|
}
|
|
const mapParamsListener = (p) => {
|
|
const mapParamsListener = (p) => {
|
|
ref_web.value?.style.setProperty('--easy-map-height', p.resizeMapHeight + 'px')
|
|
ref_web.value?.style.setProperty('--easy-map-height', p.resizeMapHeight + 'px')
|