Commit cf016cd93ae1175d5fbc90435557072cc04995b2

Authored by xp.Huang
2 parents 73e27b29 2a15e509

Merge branch 'ft_local_dev' into 'main'

fix:修改设备基础信息 命令下发内容

See merge request huang/thingskit-app!89
@@ -29,7 +29,7 @@ @@ -29,7 +29,7 @@
29 <u-line length="90%" margin="0 auto" v-if="commandDetail.additionalInfo.cmdType"></u-line> 29 <u-line length="90%" margin="0 auto" v-if="commandDetail.additionalInfo.cmdType"></u-line>
30 <view class="detail-item"> 30 <view class="detail-item">
31 <view class="detail-label">响应类型</view> 31 <view class="detail-label">响应类型</view>
32 - <view class="detail-value">{{ commandDetail.request.oneway ? 'oneway' : 'towway' }}</view> 32 + <view class="detail-value">{{ commandDetail.request.oneway ? '单向' : '双向' }}</view>
33 </view> 33 </view>
34 <u-line length="90%" margin="0 auto"></u-line> 34 <u-line length="90%" margin="0 auto"></u-line>
35 <view class="detail-item"> 35 <view class="detail-item">
@@ -62,7 +62,7 @@ @@ -62,7 +62,7 @@
62 <u-radio activeColor="#3388FF" label="双向" name="TwoWay"></u-radio> 62 <u-radio activeColor="#3388FF" label="双向" name="TwoWay"></u-radio>
63 </u-radio-group> 63 </u-radio-group>
64 </view> 64 </view>
65 - <view style="margin-top: 28rpx;width: 100%;"><u--textarea placeholder="请输入命令内容" v-model="commandValue" /></view> 65 + <view style="margin-top: 28rpx;width: 100%;"><u--textarea placeholder="请输入下发内容" v-model="commandValue" /></view>
66 66
67 <view class="button-group"> 67 <view class="button-group">
68 <view><u-button :customStyle="{ color: '#333' }" color="#e3e3e5" shape="circle" text="取消" @click="cancelCommand"></u-button></view> 68 <view><u-button :customStyle="{ color: '#333' }" color="#e3e3e5" shape="circle" text="取消" @click="cancelCommand"></u-button></view>
@@ -90,8 +90,8 @@ export default { @@ -90,8 +90,8 @@ export default {
90 commandValue: JSON.stringify({ 90 commandValue: JSON.stringify({
91 method: 'methodThingskit', 91 method: 'methodThingskit',
92 params: { 92 params: {
93 - pin: 7,  
94 - value: 1 93 + method: 'methodThingskit',
  94 + params: { pin: 7, value: 1 }
95 } 95 }
96 }) 96 })
97 }; 97 };