<template>
	<view class="pagepaddings">
		<view class="contentboxsty page_content ">
			
			<view class="content_row">
				<view class="name">设备</view>
				<view class="data">{{form.name}}</view>
			</view>
			<view class="content_row">
				<view class="name">设备名称</view>
				<view class="data">双头立锯</view>
			</view>
			<view class="content_row">
				<view class="name">设备功率</view>
				<view class="data">双头立锯</view>
			</view>
			<view class="content_row">
				<view class="name">设备IP</view>
				<view class="data">双头立锯</view>
			</view>
			<view class="content_row">
				<view class="name">端口</view>
				<view class="data">双头立锯</view>
			</view>
			<view class="content_row">
				<view class="name">状态</view>
				<view class="data">{{form.active_status==true?'启用':'禁用'}}</view>
			</view>
			<view class="textarea_row">
				<view class="name font13">设置备注</view>
				<view class="">
					{{form.remark}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				form:{}
			}
		},
		onLoad(options){
			this.getDetail(options.id);
		},
		methods: {
			getDetail(id){
				this.$api.postFuncLoading('/device.info',{id:id}).then(res=>{
					console.log(res)
					this.form = res.data
				})
			},
		}
	}
</script>

<style lang="scss">
.content_row{display: flex;height: 44px;align-items: center;
	.name{width: 30%;font-size: 13px;}
	.data{font-size: 14px;}
}
.textarea_row{
	.name{padding: 12px 0;}
	// textarea{border-radius: 4px;background: rgba(255, 255, 255, 0.50);width: 100%;}
}
</style>
