Browse Source

修改部分样式问题

Version1.0
YF-yuan 3 years ago
parent
commit
50df8e45da
4 changed files with 26 additions and 21 deletions
  1. +17
    -8
      src/views/Home.vue
  2. +6
    -11
      src/views/leftCompoents/landUse.vue
  3. +1
    -0
      src/views/leftCompoents/outletComponents.vue
  4. +2
    -2
      src/views/leftCompoents/popupComponents.vue

+ 17
- 8
src/views/Home.vue View File

:key="$index" :index="index + $index+1+''" @click="selectParams($item.type, $item.value, index, $index)">{{$item.name}}: {{ $item.cf }}</el-menu-item> :key="$index" :index="index + $index+1+''" @click="selectParams($item.type, $item.value, index, $index)">{{$item.name}}: {{ $item.cf }}</el-menu-item>
</el-menu-item-group> </el-menu-item-group>
<el-menu-item-group> <el-menu-item-group>
<template slot="title">反演参照</template>
<template slot="title">风险源</template>
<el-menu-item v-for="($item, $index) in refList" <el-menu-item v-for="($item, $index) in refList"
:key="$index" :index="index + '-5'"> :key="$index" :index="index + '-5'">
<input <input
["居民地", "#1E6510"], ["居民地", "#1E6510"],
["拆迁未利用地", "#7FFFFF"], ["拆迁未利用地", "#7FFFFF"],
["堆土", "#571919 "], ["堆土", "#571919 "],
['林地', 'brown']
]; ];
this.landColorList = this.landColor; // 土地占有面积 this.landColorList = this.landColor; // 土地占有面积


return this.outletActiveIcon return this.outletActiveIcon


} }
} else {
return new Style({
stroke:new Stroke({
color: "cyan",
width: 5
})
})
} }
} }
}); });
this.map.removeOverlay(this.overlayPlace); this.map.removeOverlay(this.overlayPlace);
if(properties.river) { // 表示为采样点数据 if(properties.river) { // 表示为采样点数据
this.popupData = properties; this.popupData = properties;
console.log(this.popupData);
let coordinate = e.mapBrowserEvent.coordinate; let coordinate = e.mapBrowserEvent.coordinate;
this.overlay.setPosition(coordinate); this.overlay.setPosition(coordinate);
this.overlay.setOffset([140, -10]); this.overlay.setOffset([140, -10]);
/* */ /* */
.markBox { .markBox {
position: absolute; position: absolute;
bottom: 40px;
bottom: 10px;
left: 10px; left: 10px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center;
align-items: flex-end;
} }
/* 色带 */ /* 色带 */
.colorMark { .colorMark {
} }
/* 数据统计弹框 */ /* 数据统计弹框 */
.chart { .chart {
width: 360px;
width: 380px;
padding: 10px; padding: 10px;
position: absolute; position: absolute;
top: 80px; top: 80px;
} }
.placeChart { .placeChart {
width: 100%; width: 100%;
padding: 10px;
/* padding: 10px; */
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: flex-start; justify-content: flex-start;
/* 弹出框 */ /* 弹出框 */
.showPopupPoint { .showPopupPoint {
width: 220px; width: 220px;
height: 180px;
height: 170px;
padding: 10px; padding: 10px;
background-color: rgb(255, 255, 255); background-color: rgb(255, 255, 255);
} }
.showPopupPlace { .showPopupPlace {
width: 250px;
width: 220px;
height: 140px;
padding: 10px; padding: 10px;
background-color: rgb(255, 255, 255); background-color: rgb(255, 255, 255);
} }
.showPopupOutlet { .showPopupOutlet {
width: 220px; width: 220px;
height: 230px;
padding: 10px; padding: 10px;
background-color: rgb(255, 255, 255); background-color: rgb(255, 255, 255);
} }

+ 6
- 11
src/views/leftCompoents/landUse.vue View File

const chart = new Chart({ const chart = new Chart({
  container: 'landUse',   container: 'landUse',
//   autoFit: true, //   autoFit: true,
width: 300,
width: 320,
  height: 230,   height: 230,
padding: [0, 30, 10, 30],
padding: [0, 30, 10, 60],
}); });
chart.data(data); chart.data(data);
chart.scale('ratio', { chart.scale('ratio', {
  },   },
}); });
chart.coordinate('theta', { chart.coordinate('theta', {
  radius: 0.6,
  radius: 0.55,
  innerRadius: 0.7,   innerRadius: 0.7,
}); });
chart.tooltip({ chart.tooltip({
  showTitle: false,   showTitle: false,
  showMarkers: false,   showMarkers: false,
  itemTpl: '<li class="g2-tooltip-list-item"><span style="background-color:{color};" class="g2-tooltip-marker"></span>{name}: {value}</li>',
}); });
chart.legend(false); chart.legend(false);
// 辅助文本 // 辅助文本
  .label('ratio', (ratio) => {   .label('ratio', (ratio) => {
    return {     return {
      content: (data) => {       content: (data) => {
        return `${data.lc.substr(0, 4) + '...'} ${parseFloat(ratio).toFixed(2)}%`;
        return `${data.lc.substr(0, 4)} ${parseFloat(ratio).toFixed(2)}%`;
      },       },
    };     };
  })   })
</script> </script>


<style scoped> <style scoped>
.g2-tooltip {
/* width: 80px; */
height: 30px;
line-height: 30px;
text-align: center;
}

</style> </style>

+ 1
- 0
src/views/leftCompoents/outletComponents.vue View File

<span>纬度:{{dataList.lat=='0.0'?'31.996371':dataList.lat}}</span> <span>纬度:{{dataList.lat=='0.0'?'31.996371':dataList.lat}}</span>
<span class="imgtitle">现场照片</span> <span class="imgtitle">现场照片</span>
<img class="outletImg" src="../../assets/img/gisdemo/outletImg.png" alt=""> <img class="outletImg" src="../../assets/img/gisdemo/outletImg.png" alt="">
<!-- <img src="" alt=""> -->
</li> </li>
</ul> </ul>
</div> </div>

+ 2
- 2
src/views/leftCompoents/popupComponents.vue View File

</p> </p>
<ul class="paramsList"> <ul class="paramsList">
<li class="value"> <li class="value">
<span>COD:{{dataList.cod}} mg/L</span>
<span>COD_Mn:{{dataList.cod}} mg/L</span>
<span class="upImg" v-show="dataList.cod > 20"></span> <span class="upImg" v-show="dataList.cod > 20"></span>
</li> </li>
<li class="value"> <li class="value">
} }
#popupComponents .paramsList { #popupComponents .paramsList {
width: 100%; width: 100%;
margin: 10px;
margin-left: 10px;
list-style: none; list-style: none;
display: flex; display: flex;
flex-direction: column; flex-direction: column;

Loading…
Cancel
Save