<template>
	<view class="main">
		<view class="searchBox">
			<searchRow placeholder="搜索机器名称/用户名" />
		</view>
		<view class="tabs">
			<myTab :tabList="tabList" @tabClick="tabClick"></myTab>
		</view>
		<view class="ul">
			<view class="total">共3条</view>
			<view class="card">
				<view class="row">
					<view class="lab">机器名称</view>
					<view class="val">192.68.1.44主机</view>
				</view>
				<view class="row">
					<view class="lab">用户名称</view>
					<view class="val">host</view>
				</view>
				<view class="row">
					<view class="lab">用户昵称</view>
					<view class="val">host</view>
				</view>
				<view class="row">
					<view class="lab">操作类型</view>
					<view class="val">host</view>
				</view>
				<view class="row">
					<view class="lab">操作详情</view>
					<view class="val">host</view>
				</view>
				<view class="row">
					<view class="lab">操作ip</view>
					<view class="val">host</view>
				</view>
				<view class="row">
					<view class="lab">创建时间</view>
					<view class="val">host</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tabList: [{
					name: '全部',
					id: 0
				}, {
					name: '启用',
				}, {
					name: '停用'
				}, ]
			}
		},
		methods: {
			tabClick(item) {
				console.log('item', item);
			}
		}
	}
</script>

<style lang="scss" scoped>
	.searchBox {
		padding: 16rpx 30rpx;
		background-color: #fff;
	}

	.tabs {
		background-color: #fff;
		margin-top: 8rpx;
		padding: 16rpx 0;
	}
	
	.ul {
		width: 100%;
		padding: 0 30rpx 40rpx 30rpx;
	  .total {
		height: 66rpx;
		line-height: 66rpx;
		font-size: 24rpx;
		color: #999;
		text-align: right;
	  }
	
	  .card {
		  padding: 10rpx 28rpx;
	    .row {
			align-items: center;
			display: flex;
			justify-content: space-between;
			padding: 16rpx 0;
			font-size: 26rpx;
			color: #333;
	      .lab {
	      }
	
	      .val {
			  &.blue {
				  color: $themC;
			  }
			  &.hui {
				  color: #999;
			  }
			  
	      }
		  .flex {
			  display: flex;
			  justify-content: flex-end;
			  .icon {
				  width: 28rpx;
				  height: 30rpx;
				  margin-right: 20rpx;
			  }
		  }
	    }
	  }
	}
</style>