功能调试
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<uni-card
|
||||
:title="device.equipmentName"
|
||||
:sub-title="device.mac"
|
||||
:extra="device.isPrimaryUser?'主用户':'子用户'"
|
||||
:extra="device.isPrimaryUser ? '主用户' : '子用户'"
|
||||
padding="0"
|
||||
@click="jump(device)"
|
||||
:thumbnail="deviceIcon(device.runStatus)"
|
||||
@@ -19,6 +19,10 @@
|
||||
<text>项目名称</text>
|
||||
<text>{{ device.projectName }}</text>
|
||||
</view>
|
||||
<view class="device-body-item mt6" v-if="device.process == 2 || device.process == 3">
|
||||
<text>设备状态</text>
|
||||
<text>{{ device.process == 2 ? '功能调试' : '出厂调试' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</uni-card>
|
||||
</template>
|
||||
@@ -30,9 +34,8 @@ export default {
|
||||
props: {
|
||||
device: {
|
||||
type: Object,
|
||||
default: () => {
|
||||
}
|
||||
}
|
||||
default: () => {},
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
deviceIcon(e) {
|
||||
@@ -52,13 +55,19 @@ export default {
|
||||
},
|
||||
jump() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/device/APF/detail?id=' + this.device.equipmentId + '&isPrimaryUser=' + this.device.isPrimaryUser,
|
||||
url:
|
||||
'/pages/device/APF/detail?id=' +
|
||||
this.device.equipmentId +
|
||||
'&isPrimaryUser=' +
|
||||
this.device.isPrimaryUser +
|
||||
'&process=' +
|
||||
this.device.process,
|
||||
})
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang='scss'>
|
||||
<style lang="scss">
|
||||
.device-body {
|
||||
padding: 20rpx;
|
||||
|
||||
@@ -67,4 +76,4 @@ export default {
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user