fix(): 修复bug
parent
15aff6f8e4
commit
61387d7a12
|
|
@ -82,7 +82,7 @@
|
||||||
<uni-col :span="12">
|
<uni-col :span="12">
|
||||||
<view class="second-row">{{tableData.rzDiff > 0 ? "+" :"" }}{{tableData.rzDiff?tableData.rzDiff.toFixed(2) : 0}}</view>
|
<view class="second-row">{{tableData.rzDiff > 0 ? "+" :"" }}{{tableData.rzDiff?tableData.rzDiff.toFixed(2) : 0}}</view>
|
||||||
</uni-col> <uni-col :span="12">
|
</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>
|
||||||
<uni-col :span="12">
|
<uni-col :span="12">
|
||||||
<view class="second-row" style="border-bottom: 1px solid #dfdfdf;">{{tableData.maxRz ? tableData.maxRz.toFixed(2) :0}}</view>
|
<view class="second-row" style="border-bottom: 1px solid #dfdfdf;">{{tableData.maxRz ? tableData.maxRz.toFixed(2) :0}}</view>
|
||||||
|
|
|
||||||
|
|
@ -833,7 +833,7 @@ export default {
|
||||||
if (data.code == 200) {
|
if (data.code == 200) {
|
||||||
if (data.data.records.length > 0) {
|
if (data.data.records.length > 0) {
|
||||||
console.log('1111111data', data)
|
console.log('1111111data', data)
|
||||||
this.level = level(data.data.records[0].status)
|
this.level = level(data.data.records[0].level)
|
||||||
} else {
|
} else {
|
||||||
this.level = '无'
|
this.level = '无'
|
||||||
}
|
}
|
||||||
|
|
@ -858,6 +858,7 @@ export default {
|
||||||
|
|
||||||
onShow () {
|
onShow () {
|
||||||
this.getReadStatus()
|
this.getReadStatus()
|
||||||
|
this.getResponseLevel()
|
||||||
if (this.limit == 1) {
|
if (this.limit == 1) {
|
||||||
this.getYjRead()
|
this.getYjRead()
|
||||||
// this.getInterval()
|
// this.getInterval()
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@
|
||||||
<uni-col :span="12">
|
<uni-col :span="12">
|
||||||
<view class="second-row">{{tableData.rzDiff > 0 ? "+" :"" }}{{tableData.rzDiff?tableData.rzDiff.toFixed(2) : 0}}</view>
|
<view class="second-row">{{tableData.rzDiff > 0 ? "+" :"" }}{{tableData.rzDiff?tableData.rzDiff.toFixed(2) : 0}}</view>
|
||||||
</uni-col> <uni-col :span="12">
|
</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>
|
||||||
<uni-col :span="12">
|
<uni-col :span="12">
|
||||||
<view class="second-row" style="border-bottom: 1px solid #dfdfdf;">{{tableData.maxRz ? tableData.maxRz.toFixed(2) :0}}</view>
|
<view class="second-row" style="border-bottom: 1px solid #dfdfdf;">{{tableData.maxRz ? tableData.maxRz.toFixed(2) :0}}</view>
|
||||||
|
|
|
||||||
|
|
@ -26,10 +26,10 @@
|
||||||
<td style="width: 38%; position: relative;" >
|
<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 :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"
|
<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;
|
<text v-else-if="item.state == 2" style="position: absolute;
|
||||||
top:0px;right: 34%; color: #32E48E; font-size: 18px;">↓</text>
|
top:0px;right: 33%; color: #32E48E; font-size: 18px;">↓</text>
|
||||||
<text style="position: absolute; top: 0px; left: 62%;">({{item.afsltdz ? item.afsltdz.toFixed(2):'-'}})</text>
|
<text style="position: absolute; top: 0px; left: 64%;">({{item.afsltdz ? item.afsltdz.toFixed(2):'-'}})</text>
|
||||||
</td>
|
</td>
|
||||||
<!-- <td style="width: 4%"></td> -->
|
<!-- <td style="width: 4%"></td> -->
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue