You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

120 lines
2.1 KiB

<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 blue">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="flex">
<view class="icon">
<image src="../../../static/images/icon (12).png" mode=""></image>
</view>
<view class="val hui">host</view>
</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>