Merge branch 'build' of http://git.sinoecare.com/sinoecare/digital_village_v2/dvcp_v2_webapp into build
This commit is contained in:
		| @@ -2,27 +2,28 @@ | ||||
|   <div class="AiDvRender" style="width: 100%; height: 100%;"> | ||||
|     <ai-dv-display v-if="data.type === 'display'" :title="data.title" :list="values"></ai-dv-display> | ||||
|     <ai-dv-panel | ||||
|       style="height: 100%; width: 100%;" | ||||
|       v-if="data.type !== 'display'" | ||||
|       :title="data.title" | ||||
|       :theme="theme" | ||||
|       :border="data.border || ''"> | ||||
|       <AiDvSummary v-if="data.type === 'summary'" :theme="theme" :summaryTitle="data.summaryTitle" :key="`summary${index}`" :type="data.display" :data="values"/> | ||||
|         style="height: 100%; width: 100%;" | ||||
|         v-if="data.type !== 'display'" | ||||
|         :title="data.title" | ||||
|         :theme="theme" | ||||
|         :border="data.border || ''"> | ||||
|       <AiDvSummary v-if="data.type === 'summary'" :theme="theme" :summaryTitle="data.summaryTitle" :key="`summary${index}`" :type="data.display" | ||||
|                    :data="values"/> | ||||
|       <AiSwiper v-else-if="data.type === 'swiper'" :heigth="'100%'" :data="values"/> | ||||
|       <dv-scroll-board | ||||
|         v-if="data.type === 'table'" | ||||
|         :class="'dvScrollBoard' + theme" | ||||
|         :config="formatTable(values, data.isShowIndex, data.rowNum)" | ||||
|         :key="data.height" | ||||
|         :theme="theme" | ||||
|         :style="{height: data.height + 'px', width: '100%'}"/> | ||||
|           v-if="data.type === 'table'" | ||||
|           :class="'dvScrollBoard' + theme" | ||||
|           :config="formatTable(values, data.isShowIndex, data.rowNum)" | ||||
|           :key="data.height" | ||||
|           :theme="theme" | ||||
|           :style="{height: data.height + 'px', width: '100%'}"/> | ||||
|       <ai-echart-v2 v-else-if="/Chart/.test(data.type)" | ||||
|         style="height: 100%; width: 100%;" | ||||
|         :ref="'chart' + index" | ||||
|         :key="`chart-${index}`" | ||||
|         :theme="theme" | ||||
|         :data="values" | ||||
|         :ops="chartList[data.config]"/> | ||||
|                     style="height: 100%; width: 100%;" | ||||
|                     :ref="'chart' + index" | ||||
|                     :key="`chart-${index}`" | ||||
|                     :theme="theme" | ||||
|                     :data="values" | ||||
|                     :ops="chartList[data.config]"/> | ||||
|       <!-- <ai-q-map | ||||
|         v-else-if="data.type=='map'" | ||||
|         :area-id="data.areaId" | ||||
| @@ -32,20 +33,20 @@ | ||||
|         :is3dAround="data.is3dAround === '1'"> | ||||
|       </ai-q-map> --> | ||||
|       <AiDvTable | ||||
|         v-else-if="data.type === 'AiDvTable'" | ||||
|         :heigth="'100%'" | ||||
|         :stripe="data.stripe" | ||||
|         :theme="theme" | ||||
|         :isShowIndex="data.isShowIndex" | ||||
|         :config="dvTableConfig" | ||||
|         :data="values"> | ||||
|           v-else-if="data.type === 'AiDvTable'" | ||||
|           :heigth="'100%'" | ||||
|           :stripe="data.stripe" | ||||
|           :theme="theme" | ||||
|           :isShowIndex="data.isShowIndex" | ||||
|           :config="dvTableConfig" | ||||
|           :data="values"> | ||||
|       </AiDvTable> | ||||
|       <AiRanking | ||||
|         v-else-if="data.type === 'AiRanking'" | ||||
|         :theme="theme" | ||||
|         :heigth="'100%'" | ||||
|         :subType="data.subType" | ||||
|         :data="values"> | ||||
|           v-else-if="data.type === 'AiRanking'" | ||||
|           :theme="theme" | ||||
|           :heigth="'100%'" | ||||
|           :subType="data.subType" | ||||
|           :data="values"> | ||||
|       </AiRanking> | ||||
|       <AiDvMap v-else-if="data.type === 'AiDvMap'" style="width: 100%; height: 100%" :ref="'chart' + index" :key="`AiDvMap${index}`" :theme="theme"></AiDvMap> | ||||
|       <ai-map v-else-if="data.type=='map'" :mask="data.mask === '1'" :areaId="data.areaId" :is3d="data.is3d==1" :is3dAround="data.is3dAround === '1'" | ||||
| @@ -111,12 +112,9 @@ export default { | ||||
|     values: { | ||||
|       immediate: true, | ||||
|       deep: true, handler(v) { | ||||
|  | ||||
|           console.log(v) | ||||
|         if (this.currentType == 'map') { | ||||
|           // this.renderMap() | ||||
|           this.renderMap() | ||||
|         } | ||||
|  | ||||
|         if (this.currentType === 'AiDvTable') { | ||||
|           this.dvTableConfig = this.data[this.data.dataType].map((v, i) => { | ||||
|             return { | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| import instance from '../../ui/lib/js/request' | ||||
| import {Message} from 'element-ui' | ||||
| import instance from '../../ui/lib/js/request' | ||||
|  | ||||
| let baseURLs = { | ||||
|   production: "/", | ||||
| @@ -21,8 +21,8 @@ instance.interceptors.request.use(config => { | ||||
|     config.baseURL = "/qxn" | ||||
|   } else if (/\/xiushan/.test(location.pathname)) { | ||||
|     config.baseURL = "/xsjr" | ||||
|   // } else if (/project\/oms/.test(location.pathname)) { | ||||
|   //   config.baseURL = "/omsapi" | ||||
|   } else if (/project\/oms/.test(location.pathname)) { | ||||
|     config.baseURL = "/omsapi" | ||||
|   } else if (/#url-/.test(location.hash)) { | ||||
|     config.baseURL = location.hash.replace(/#url-/, '/') | ||||
|   } | ||||
|   | ||||
| @@ -36,6 +36,10 @@ | ||||
|             <el-button @click="clear()">清除绘制</el-button> | ||||
|           </el-button-group> | ||||
|         </div> | ||||
|         <div class="mapLayerSwitcher" flex> | ||||
|           <div class="item" :class="{current:mapType=='vector'}" @click="mapType='vector'"/> | ||||
|           <div class="item satellite" :class="{current:mapType=='satellite'}" @click="mapType='satellite'"/> | ||||
|         </div> | ||||
|       </div> | ||||
|     </ai-dialog> | ||||
|   </section> | ||||
| @@ -58,6 +62,19 @@ export default { | ||||
|   computed: { | ||||
|     ...mapState(['user']), | ||||
|   }, | ||||
|   watch: { | ||||
|     mapType(v) { | ||||
|       if (v == 'satellite') { | ||||
|         for (const k in this.layers) { | ||||
|           this.layers[k].show() | ||||
|         } | ||||
|       } else { | ||||
|         for (const k in this.layers) { | ||||
|           this.layers[k].hide() | ||||
|         } | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   data() { | ||||
|     return { | ||||
|       map: null, | ||||
| @@ -66,7 +83,9 @@ export default { | ||||
|       searchAddress: "", | ||||
|       overlays: [], | ||||
|       points: [], | ||||
|       dialog: false | ||||
|       dialog: false, | ||||
|       mapType: "vector", | ||||
|       layers: {}, | ||||
|     } | ||||
|   }, | ||||
|   methods: { | ||||
| @@ -100,6 +119,14 @@ export default { | ||||
|         this.map = new AMap.Map("container", { | ||||
|           resizeEnable: true, | ||||
|         }); | ||||
|         /* 添加卫星图层*/ | ||||
|         this.layers.roadNet = new AMap.TileLayer.RoadNet({zIndex: 11}) | ||||
|         this.layers.satellite = new AMap.TileLayer.Satellite({zIndex: 10}) | ||||
|         this.map.addLayer(this.layers.roadNet) | ||||
|         this.map.addLayer(this.layers.satellite) | ||||
|         this.layers.roadNet.hide() | ||||
|         this.layers.satellite.hide() | ||||
|         /*end*/ | ||||
|         this.placeSearch = new AMap.PlaceSearch({ | ||||
|           pageSize: 5, // 单页显示结果条数 | ||||
|           pageIndex: 1, // 页码 | ||||
| @@ -197,9 +224,76 @@ export default { | ||||
|       bottom: 20px; | ||||
|       z-index: 10000; | ||||
|     } | ||||
|  | ||||
|     .mapLayerSwitcher { | ||||
|       position: absolute; | ||||
|       z-index: 202304061607; | ||||
|       bottom: 20px; | ||||
|       right: 12px; | ||||
|       background-color: #fff; | ||||
|       padding: 5px; | ||||
|       width: fit-content; | ||||
|       height: 56px; | ||||
|       box-sizing: content-box; | ||||
|       overflow: hidden; | ||||
|       transition: width 2s ease; | ||||
|       gap: 10px; | ||||
|  | ||||
|       &:hover { | ||||
|         .item { | ||||
|           display: block; | ||||
|         } | ||||
|       } | ||||
|  | ||||
|       .item { | ||||
|         position: relative; | ||||
|         width: 80px; | ||||
|         height: 56px; | ||||
|         border: 1px dashed #ddd; | ||||
|         cursor: pointer; | ||||
|         flex-shrink: 0; | ||||
|         background-image: url("https://cdn.cunwuyun.cn/map/defaultMap.png"); | ||||
|         box-sizing: border-box; | ||||
|         color: #fff; | ||||
|         background-size: 100%; | ||||
|         display: none; | ||||
|  | ||||
|         &.current { | ||||
|           border: 1px solid #366FFF; | ||||
|           display: block !important; | ||||
|  | ||||
|           &:before { | ||||
|             background-color: #366FFF; | ||||
|           } | ||||
|         } | ||||
|  | ||||
|         &:hover { | ||||
|           border-color: #333; | ||||
|         } | ||||
|  | ||||
|         &:before { | ||||
|           font-size: 12px; | ||||
|           line-height: 18px; | ||||
|           padding: 0 3px; | ||||
|           position: absolute; | ||||
|           bottom: 0; | ||||
|           right: 0; | ||||
|           content: "地图"; | ||||
|           user-select: none; | ||||
|         } | ||||
|  | ||||
|         &.satellite { | ||||
|           background-image: url("https://cdn.cunwuyun.cn/map/satelliteMap.png"); | ||||
|  | ||||
|           &:before { | ||||
|             content: "卫星" | ||||
|           } | ||||
|         } | ||||
|       } | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   :deep(.fullscreenMap ){ | ||||
|   :deep(.fullscreenMap ) { | ||||
|     .el-dialog { | ||||
|       display: flex; | ||||
|       flex-direction: column; | ||||
| @@ -222,11 +316,11 @@ export default { | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   :deep( .amap-copyright ){ | ||||
|   :deep( .amap-copyright ) { | ||||
|     display: none !important; | ||||
|   } | ||||
|  | ||||
|   :deep( .amap-logo ){ | ||||
|   :deep( .amap-logo ) { | ||||
|     display: none !important; | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -1,6 +0,0 @@ | ||||
| import component from './AppGridBlock.vue' | ||||
|  | ||||
| component.install = function (Vue) { | ||||
|   Vue.component(component.name, component) | ||||
| } | ||||
| export default component | ||||
		Reference in New Issue
	
	Block a user