瀏覽代碼

修改色带数据问题

Version1.0
YF-yuan 3 年之前
父節點
當前提交
b49ca26da6
共有 4 個文件被更改,包括 20 次插入11 次删除
  1. +11
    -6
      src/views/Home.vue
  2. +3
    -2
      src/views/leftCompoents/landUse.vue
  3. +4
    -1
      src/views/leftCompoents/outletComponents.vue
  4. +2
    -2
      src/views/leftCompoents/pointQulity.vue

+ 11
- 6
src/views/Home.vue 查看文件

@@ -39,7 +39,8 @@
<p class="utils" v-else>(mg/L)</p>
</div>
<point-qulity :dataList="pointParamsData"></point-qulity>
<p class="pointId">点号</p>
<p class="pointId">(点号)</p>
</div>

@@ -121,7 +122,7 @@
<span>{{colorHL&&colorHL.value.low}}</span>
<span v-if="checkedParams=='tp'">单位:μg/L</span>
<span v-else>单位:mg/L</span>
<span v-if="checkedParams=='tp'">{{colorHL&&colorHL.value.high*100}}</span>
<span v-if="checkedParams=='tp'">{{colorHL&&colorHL.value.high*1000}}</span>
<span v-else>{{colorHL&&colorHL.value.high}}</span>
</p>
@@ -1233,6 +1234,10 @@ body {
.chartContent {
width: 100%;
}
.pointChart {
position: relative;
padding-bottom: 20px;
}
.chooseParams {
width: 90%;
margin: 0 auto;
@@ -1262,9 +1267,9 @@ body {
.pointId {
font-size: 12px;
color: #666;
text-align: end;
padding-right: 30px;
margin-bottom: 15px;
position: absolute;
bottom: 20px;
right: 30px;
}
.placeChart {
width: 100%;
@@ -1287,7 +1292,7 @@ body {
/* 弹出框 */
.showPopupPoint {
width: 220px;
height: 170px;
height: 160px;
padding: 10px;
background-color: rgb(255, 255, 255);
}

+ 3
- 2
src/views/leftCompoents/landUse.vue 查看文件

@@ -108,10 +108,11 @@ chart
      },
    };
  })
  .tooltip('lc*ratio', (lc,ratio) => {
  .tooltip('lc*area', (lc,area) => {
    return {
      name:lc,
      value: parseFloat(ratio).toFixed(2) + ' 公顷',
      value: parseFloat(area).toFixed(2) + ' 公顷',
    };
  });


+ 4
- 1
src/views/leftCompoents/outletComponents.vue 查看文件

@@ -6,7 +6,7 @@
</p>
<ul class="paramsList">
<li class="value">
<span>经度:{{dataList.lon=='0.0'?'118.808797':dataList.lon}}</span>
<span class="lon">经度:{{dataList.lon=='0.0'?'118.808797':dataList.lon}}</span>
<span>纬度:{{dataList.lat=='0.0'?'31.996371':dataList.lat}}</span>
<span class="imgtitle">现场照片</span>
<img v-if="checked==0" class="outletImg" src="../../assets/img/gisdemo/outletImg.png" alt="">
@@ -105,4 +105,7 @@ export default {
width: 100%;
height: auto;
}
.lon {
margin-bottom: 8px;
}
</style>

+ 2
- 2
src/views/leftCompoents/pointQulity.vue 查看文件

@@ -38,9 +38,9 @@ export default {
const data = this.dataList;
let chart = new Chart({
container: "pointQulity",
width: 300,
width: 280,
height: 200,
padding: [10, 10, 20, 40],
padding: [10, 30, 20, 30],
});

chart.data(data);

Loading…
取消
儲存