yangyin
2023-12-25 2e1188f89490a037fd744be45bf002dad737b5c0
fix: 修改值为null时的为空
已修改4个文件
11 ■■■■ 文件已修改
monitor/meter/index.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
monitor/meter/index.wxml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
monitor/station/index.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
monitor/station/index.wxml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
monitor/meter/index.js
@@ -298,11 +298,10 @@
      loadingInfo: "刷新中,请稍等..."
    });
     Request({
      url: Constant.BASE_SERVER_URL + "Run/MonitorRecord/Mobile/GetLastRecordByMonitorPointIds@V1.0",
      url: Constant.BASE_SERVER_URL + "Monitor/Record/Std/GetLastRecordList@V2.0",
      method: 'GET',
      data: {
        CorpID: userInfo.CorpID,
        MonitorPointIds : allPointId
        SignalIds  : allPointId
      },
      header: {
        'content-type': 'application/json'
monitor/meter/index.wxml
@@ -52,7 +52,7 @@
                        <view class="pointRightBlock pointCellUnit" style="height:100rpx">
                            {{point.UnitName== null?'':point.UnitName}}
                        </view>
                        <view class="pointRightBlock pointCellRecord">{{point.DataValue}}</view>
                        <view class="pointRightBlock pointCellRecord">{{point.DataValue== null?'':point.DataValue}}</view>
                    </view>
                </view>
            </view>
monitor/station/index.js
@@ -593,7 +593,7 @@
    // console.log(allPointId.join(','))
    Request({
      url: Constant.BASE_SERVER_URL + "Monitor/Record/Std/GetLastRecordList@V1.0",
      url: Constant.BASE_SERVER_URL + "Monitor/Record/Std/GetLastRecordList@V2.0",
      method: 'GET',
      data: {
        SignalIds : allPointId.join(',')
monitor/station/index.wxml
@@ -63,7 +63,7 @@
                        <view class="pointRightBlock pointCellUnit" style="height:100rpx">
                            {{point.UnitName == null?'':point.UnitName}}
                        </view>
                        <view class="pointRightBlock pointCellRecord">{{point.DataValue}}</view>
                        <view class="pointRightBlock pointCellRecord">{{point.DataValue== null?'':point.DataValue}}</view>
                    </view>
                </view>
            </view>