智慧园区前端大屏
shuishen
2024-11-12 40f2cc4bdc91f63954c8b2bbd351bc650657affc
配置更改;
图层默认显示调整;
弹窗关闭相关调整;
4 files modified
27 ■■■■■ changed files
src/components/global/publicBox.vue 2 ●●● patch | view | raw | blame | history
src/pages/layout/components/mainTool.vue 4 ●●● patch | view | raw | blame | history
src/pages/layout/components/scomponents/layersControl.vue 15 ●●●● patch | view | raw | blame | history
vite.config.js 6 ●●●● patch | view | raw | blame | history
src/components/global/publicBox.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2024-10-29 13:33:11
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-10-29 19:58:45
 * @LastEditTime: 2024-11-12 14:24:37
 * @FilePath: \bigScreen\src\components\global\publicBox.vue
 * @Description: 
 * 
src/pages/layout/components/mainTool.vue
@@ -7,7 +7,7 @@
  </div>
  <base-map v-show="currentComponent == 'map'" @close="closeBox"></base-map>
  <layers-control v-show="currentComponent == 'layers'" @close="closeBox"></layers-control>
  <layers-control :show="currentComponent == 'layers'" @close="closeBox"></layers-control>
  <tool-list :moreToolShow="moreToolShow" @close="closeBox"></tool-list>
</template>
@@ -57,6 +57,8 @@
  } else {
    currentComponent.value = ''
  }
  console.log(type, currentComponent.value, 4444)
}
</script>
src/pages/layout/components/scomponents/layersControl.vue
@@ -2,20 +2,20 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2024-10-31 10:47:29
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-11-12 13:29:29
 * @LastEditTime: 2024-11-12 14:20:54
 * @FilePath: \bigScreen\src\pages\layout\components\scomponents\layersControl.vue
 * @Description:
 *
 * Copyright (c) 2024 by shuishen, All Rights Reserved.
-->
<template>
  <public-box>
  <public-box v-show="showLayerControl">
    <template #name>
      <div class="name"><i class="fa fa-tasks"></i>&nbsp;图层</div>
    </template>
    <template #close>
      <div class="close" @click="$emit('close', 'layers')"><i class="fa fa-close"></i></div>
      <div class="close cursor-p" @click="$emit('close', 'layers')"><i class="fa fa-close"></i></div>
    </template>
    <template #content>
@@ -49,6 +49,13 @@
</template>
<script setup>
const {
  show: showLayerControl
} = defineProps({
  show: {
    default: false
  }
})
import panorama from './popup/panorama.vue'
import { getPage } from '@/api/indParkInfo'
import { getList } from "@/api/space/space"
@@ -302,7 +309,7 @@
      ) {
        attrParams.url = attrParams.url.replace(
          "http://vr.jxpskj.com:180",
          "/panorama/url"
          "/panorama"
        )
      }
vite.config.js
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2024-10-25 10:56:27
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-11-11 17:48:23
 * @LastEditTime: 2024-11-12 14:02:19
 * @FilePath: \bigScreen\vite.config.js
 * @Description: 
 * 
@@ -85,11 +85,11 @@
      //   overlay:false
      // },
      proxy: {
        '/panorama/url': {
        '/panorama': {
          // target: 'http://localhost',
          target: 'http://vr.jxpskj.com:180',
          changeOrigin: true,
          rewrite: path => path.replace(/^\/panorama\/url/, ''),
          rewrite: path => path.replace(/^\/panorama/, ''),
        },
        '/zhyq/mx': {