mes_mobile/pages/equipmentManage/deviceDetail.vue

72 lines
1.8 KiB
Vue
Raw Normal View History

2024-04-11 18:54:43 +08:00
<template>
<view class="page_padding">
2024-04-30 16:08:07 +08:00
<view class="detail_list contentboxsty page_content font13">
2024-03-13 16:07:11 +08:00
<view class="content_row">
2024-04-30 16:08:07 +08:00
<view class="name font_bold">设备</view>
<view class="text">{{form.eq_name}}</view>
2024-03-13 16:07:11 +08:00
</view>
<view class="content_row">
2024-04-30 16:08:07 +08:00
<view class="name font_bold">设备名称</view>
<view class="text">{{form.name}}</view>
2024-03-13 16:07:11 +08:00
</view>
<view class="content_row">
2024-04-30 16:08:07 +08:00
<view class="name font_bold">设备功率</view>
<view class="text">{{form.power}}</view>
2024-03-13 16:07:11 +08:00
</view>
<view class="content_row">
2024-04-30 16:08:07 +08:00
<view class="name font_bold">设备IP</view>
<view class="text">{{form.equipment_configs.length>0? form.equipment_configs[0].ip:''}}</view>
2024-03-13 16:07:11 +08:00
</view>
<view class="content_row">
2024-04-30 16:08:07 +08:00
<view class="name font_bold">端口</view>
<view class="text">{{form.equipment_configs.length>0? form.equipment_configs[0].port:''}}</view>
2024-03-13 16:07:11 +08:00
</view>
<view class="content_row">
2024-04-30 16:08:07 +08:00
<view class="name font_bold">状态</view>
<view class="text">{{form.active_status==true?'启用':'禁用'}}</view>
2024-03-13 16:07:11 +08:00
</view>
<view class="textarea_row">
2024-04-30 16:08:07 +08:00
<view class="name font_bold font13">备注</view>
<view class="text textareaText">
2024-03-13 16:07:11 +08:00
{{form.remark}}
</view>
2024-04-11 18:54:43 +08:00
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
2024-04-30 16:08:07 +08:00
form:{
equipment_configs:[
{ip:'',port:''}
]
}
2024-04-11 18:54:43 +08:00
}
2024-03-13 16:07:11 +08:00
},
onLoad(options){
this.getDetail(options.id);
2024-04-11 18:54:43 +08:00
},
methods: {
2024-03-13 16:07:11 +08:00
getDetail(id){
this.$api.postFuncLoading('/device.info',{id:id}).then(res=>{
this.form = res.data
})
2024-04-11 18:54:43 +08:00
},
}
}
</script>
2024-04-30 16:08:07 +08:00
<style scoped lang="scss">
.content_row{display: flex;align-items: center;padding-top: 17px;
.name{flex-basis: 80px;}
.text{flex: 1;}
2024-03-13 16:07:11 +08:00
}
.textarea_row{
2024-04-30 16:08:07 +08:00
.name{padding: 17px 0;}
.textareaText{min-height: 80px;}
2024-04-11 18:54:43 +08:00
}
</style>