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.

119 lines
2.1 KiB

12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
  1. <template>
  2. <view class="main">
  3. <view class="searchBox">
  4. <searchRow placeholder="请输入名称/标识/主机/描述" />
  5. </view>
  6. <view class="tabs">
  7. <myTab :tabList="tabList" @tabClick="tabClick"></myTab>
  8. </view>
  9. <view class="ul">
  10. <view class="total">共3条</view>
  11. <view class="card">
  12. <view class="row">
  13. <view class="lab">名称</view>
  14. <view class="val">192.68.1.44主机</view>
  15. </view>
  16. <view class="row">
  17. <view class="lab">标识</view>
  18. <view class="val">host</view>
  19. </view>
  20. <view class="row">
  21. <view class="lab">机器主机</view>
  22. <view class="val blue">host</view>
  23. </view>
  24. <view class="row">
  25. <view class="lab">描述</view>
  26. <view class="val">host</view>
  27. </view>
  28. <view class="row">
  29. <view class="lab">状态</view>
  30. <view class="flex">
  31. <view class="icon">
  32. <image src="../../../static/images/icon (12).png" mode=""></image>
  33. </view>
  34. <view class="val hui">host</view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. data() {
  44. return {
  45. tabList: [{
  46. name: '全部',
  47. id: 0
  48. }, {
  49. name: '启用',
  50. }, {
  51. name: '停用'
  52. }, ]
  53. }
  54. },
  55. methods: {
  56. tabClick(item) {
  57. console.log('item', item);
  58. }
  59. }
  60. }
  61. </script>
  62. <style lang="scss" scoped>
  63. .searchBox {
  64. padding: 16rpx 30rpx;
  65. background-color: #fff;
  66. }
  67. .tabs {
  68. background-color: #fff;
  69. margin-top: 8rpx;
  70. padding: 16rpx 0;
  71. }
  72. .ul {
  73. width: 100%;
  74. padding: 0 30rpx 40rpx 30rpx;
  75. .total {
  76. height: 66rpx;
  77. line-height: 66rpx;
  78. font-size: 24rpx;
  79. color: #999;
  80. text-align: right;
  81. }
  82. .card {
  83. padding: 10rpx 28rpx;
  84. .row {
  85. align-items: center;
  86. display: flex;
  87. justify-content: space-between;
  88. padding: 16rpx 0;
  89. font-size: 26rpx;
  90. color: #333;
  91. .lab {
  92. }
  93. .val {
  94. &.blue {
  95. color: $themC;
  96. }
  97. &.hui {
  98. color: #999;
  99. }
  100. }
  101. .flex {
  102. display: flex;
  103. justify-content: flex-end;
  104. .icon {
  105. width: 28rpx;
  106. height: 30rpx;
  107. margin-right: 20rpx;
  108. }
  109. }
  110. }
  111. }
  112. }
  113. </style>