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.

151 lines
2.8 KiB

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="val ">host</view>
  31. </view>
  32. <view class="row">
  33. <view class="lab">创建时间</view>
  34. <view class="val ">host</view>
  35. </view>
  36. <view class="row">
  37. <view class="lab">描述</view>
  38. <view class="val ">host</view>
  39. </view>
  40. <view class="row">
  41. <view class="lab">状态</view>
  42. <view class="val">
  43. 已停止 执行中 异常 未开始 已完成
  44. </view>
  45. </view>
  46. <view class="status_row">
  47. <view class="blueTxt">日志</view>
  48. <view class="blueTxt">再次执行</view>
  49. <view class="blueTxt" style="color: #ff2222;">删除</view>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. </template>
  55. <script>
  56. export default {
  57. data() {
  58. return {
  59. tabList: [{
  60. name: '全部',
  61. id: 0
  62. }, {
  63. name: '未开始',
  64. }, {
  65. name: '执行中'
  66. },{
  67. name: '已完成'
  68. },{
  69. name: '异常'
  70. }, {
  71. name: '已停止'
  72. }, ]
  73. }
  74. },
  75. methods: {
  76. tabClick(item) {
  77. console.log('item', item);
  78. }
  79. }
  80. }
  81. </script>
  82. <style lang="scss" scoped>
  83. .searchBox {
  84. padding: 16rpx 30rpx;
  85. background-color: #fff;
  86. }
  87. .tabs {
  88. background-color: #fff;
  89. margin-top: 8rpx;
  90. padding: 16rpx 0;
  91. }
  92. .ul {
  93. width: 100%;
  94. padding: 0 30rpx 40rpx 30rpx;
  95. .total {
  96. height: 66rpx;
  97. line-height: 66rpx;
  98. font-size: 24rpx;
  99. color: #999;
  100. text-align: right;
  101. }
  102. .card {
  103. padding: 10rpx 28rpx;
  104. .row {
  105. align-items: center;
  106. display: flex;
  107. justify-content: space-between;
  108. padding: 16rpx 0;
  109. font-size: 26rpx;
  110. color: #333;
  111. .lab {
  112. }
  113. .val {
  114. &.blue {
  115. color: $themC;
  116. }
  117. &.hui {
  118. color: #999;
  119. }
  120. &.yellow {
  121. color: #fc7710;
  122. }
  123. }
  124. .flex {
  125. display: flex;
  126. justify-content: flex-end;
  127. .icon {
  128. width: 28rpx;
  129. height: 30rpx;
  130. margin-right: 20rpx;
  131. }
  132. }
  133. }
  134. .status_row {
  135. color: $themC;
  136. font-size: 28rpx;
  137. font-weight: 600;
  138. display: flex;
  139. padding: 20rpx 0;
  140. .blueTxt {
  141. flex: 1;
  142. }
  143. }
  144. }
  145. }
  146. </style>