fix(): 修复bug

master
李神峰 2024-07-01 17:17:25 +08:00
parent 15aff6f8e4
commit 61387d7a12
4 changed files with 7 additions and 6 deletions

View File

@ -82,7 +82,7 @@
<uni-col :span="12">
<view class="second-row">{{tableData.rzDiff > 0 ? "+" :"" }}{{tableData.rzDiff?tableData.rzDiff.toFixed(2) : 0}}</view>
</uni-col> <uni-col :span="12">
<view class="first-row" style="border-bottom: 1px solid #dfdfdf;">本年最高水位(mm)</view>
<view class="first-row" style="border-bottom: 1px solid #dfdfdf;">本年最高水位(m)</view>
</uni-col>
<uni-col :span="12">
<view class="second-row" style="border-bottom: 1px solid #dfdfdf;">{{tableData.maxRz ? tableData.maxRz.toFixed(2) :0}}</view>

View File

@ -833,7 +833,7 @@ export default {
if (data.code == 200) {
if (data.data.records.length > 0) {
console.log('1111111data', data)
this.level = level(data.data.records[0].status)
this.level = level(data.data.records[0].level)
} else {
this.level = '无'
}
@ -858,6 +858,7 @@ export default {
onShow () {
this.getReadStatus()
this.getResponseLevel()
if (this.limit == 1) {
this.getYjRead()
// this.getInterval()

View File

@ -82,7 +82,7 @@
<uni-col :span="12">
<view class="second-row">{{tableData.rzDiff > 0 ? "+" :"" }}{{tableData.rzDiff?tableData.rzDiff.toFixed(2) : 0}}</view>
</uni-col> <uni-col :span="12">
<view class="first-row" style="border-bottom: 1px solid #dfdfdf;">本年最高水位(mm)</view>
<view class="first-row" style="border-bottom: 1px solid #dfdfdf;">本年最高水位(m)</view>
</uni-col>
<uni-col :span="12">
<view class="second-row" style="border-bottom: 1px solid #dfdfdf;">{{tableData.maxRz ? tableData.maxRz.toFixed(2) :0}}</view>

View File

@ -26,10 +26,10 @@
<td style="width: 38%; position: relative;" >
<text :class="{'active1':item.flState == 1,'active2':item.desState == 1,'active3':item.calState}" style="margin-right:20%">{{ item.rz.toFixed(2) }}</text>
<text v-if="item.state == 1"
style="position: absolute; top: 0px; right: 34%; color: #FF7D7D;font-size:18px;"></text>
style="position: absolute; top: 0px; right: 33%; color: #FF7D7D;font-size:18px;"></text>
<text v-else-if="item.state == 2" style="position: absolute;
top:0px;right: 34%; color: #32E48E; font-size: 18px;"></text>
<text style="position: absolute; top: 0px; left: 62%;">{{item.afsltdz ? item.afsltdz.toFixed(2):'-'}}</text>
top:0px;right: 33%; color: #32E48E; font-size: 18px;"></text>
<text style="position: absolute; top: 0px; left: 64%;">{{item.afsltdz ? item.afsltdz.toFixed(2):'-'}}</text>
</td>
<!-- <td style="width: 4%"></td> -->
</tr>