Commit 26bc20fcf04aac565abf7bd4744161465e823405

Authored by fengwotao
1 parent 9fea7b85

pref:设备命令记录,保留响应结果

... ... @@ -39,14 +39,14 @@
39 39 <u-line length="90%" margin="0 auto"></u-line>
40 40 <view class="detail-item" v-if="!commandDetail.request.oneway">
41 41 <view class="detail-label">响应结果</view>
42   - <view class="detail-value">{{ commandDetail.response.status==='SUCCESS' ? '成功' : '失败' }}</view>
  42 + <view class="detail-value">{{ commandDetail.response?JSON.stringify(commandDetail.response):'无' }}</view>
43 43 </view>
44   - <view class="detail-item" v-if="!commandDetail.request.oneway">
  44 + <!-- <view class="detail-item" v-if="!commandDetail.request.oneway">
45 45 <view class="detail-label">响应失败内容</view>
46 46 <view class="detail-value" style="width: 400rpx;" v-if="commandDetail.response.status!=='SUCCESS'">
47 47 <u--textarea placeholder="响应失败内容" v-model="failContent" />
48 48 </view>
49   - </view>
  49 + </view> -->
50 50 </view>
51 51 <view class="command">命令内容</view>
52 52 <u-textarea :value="formatValue(commandDetail.request.body)" disabled></u-textarea>
... ...
... ... @@ -14,7 +14,7 @@
14 14 <view class="item-first">
15 15 <text>{{ item.deviceName }}</text>
16 16 <view v-if="!item.request.oneway">
17   - <view class="item-right item-success" v-if="item.response.status==='SUCCESS'">响应成功</view>
  17 + <view class="item-right item-success" v-if="item.response">响应成功</view>
18 18 <view class="item-right item-fail" v-else>响应失败</view>
19 19 </view>
20 20 </view>
... ... @@ -42,7 +42,7 @@
42 42 </text>
43 43 </view>
44 44 <view class="item-first">
45   - <view v-if="item.additionalInfo.cmdType">
  45 + <view>
46 46 响应类型:
47 47 <text style="margin-left: 16rpx;">{{ !item.request.oneway?'双向':'单向' }}</text>
48 48 </view>
... ...