Browse Source

修改色带数据问题

Version1.0
YF-yuan 3 years ago
parent
commit
b49ca26da6
4 changed files with 20 additions and 11 deletions
  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 View File

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


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

+ 3
- 2
src/views/leftCompoents/landUse.vue View File

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



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

</p> </p>
<ul class="paramsList"> <ul class="paramsList">
<li class="value"> <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>纬度:{{dataList.lat=='0.0'?'31.996371':dataList.lat}}</span>
<span class="imgtitle">现场照片</span> <span class="imgtitle">现场照片</span>
<img v-if="checked==0" class="outletImg" src="../../assets/img/gisdemo/outletImg.png" alt=""> <img v-if="checked==0" class="outletImg" src="../../assets/img/gisdemo/outletImg.png" alt="">
width: 100%; width: 100%;
height: auto; height: auto;
} }
.lon {
margin-bottom: 8px;
}
</style> </style>

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

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


chart.data(data); chart.data(data);

Loading…
Cancel
Save