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.

132 lines
2.7 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. <template>
  2. <view class="main">
  3. <view class="pad">
  4. <view class="h2">机器管理</view>
  5. <view class="ul">
  6. <view class="li" v-for="(item,index) in list1" :key="index" @click="$goPage(item.url)">
  7. <view class="icon">
  8. <image :src="item.icon" mode=""></image>
  9. </view>
  10. <view class="text">{{item.text}}</view>
  11. </view>
  12. </view>
  13. <view class="h2">执行管理</view>
  14. <view class="ul">
  15. <view class="li" v-for="(item,index) in list2" :key="index" @click="$goPage(item.url)">
  16. <view class="icon2">
  17. <image :src="item.icon" mode=""></image>
  18. </view>
  19. <view class="text">{{item.text}}</view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. data() {
  28. return {
  29. list1: [
  30. {
  31. text: '机器列表',
  32. icon: require('../../static/images/icon (10).png'),
  33. url: '/pages/sub/machineList/machineList'
  34. },
  35. {
  36. text: '机器监控',
  37. icon: require('../../static/images/icon (7).png'),
  38. url: '/pages/sub/mechanicalMonitor/mechanicalMonitor'
  39. },
  40. {
  41. text: '终端日志',
  42. icon: require('../../static/images/icon (1).png'),
  43. url: '/pages/'
  44. },
  45. {
  46. text: '终端会话',
  47. icon: require('../../static/images/icon (25).png'),
  48. url: '/pages/'
  49. },
  50. {
  51. text: '机器日志',
  52. icon: require('../../static/images/icon (13).png'),
  53. url: '/pages/sub/mechanicalLog/mechanicalLog'
  54. },
  55. ],
  56. list2: [
  57. {
  58. text: '批量执行',
  59. icon: require('../../static/images/icon (15).png'),
  60. url: '/pages/sub/batchExecution/batchExecution'
  61. },
  62. {
  63. text: '执行记录',
  64. icon: require('../../static/images/icon (24).png'),
  65. url: '/pages/sub/executionRecord/executionRecord'
  66. },
  67. {
  68. text: '日志面板',
  69. icon: require('../../static/images/icon (16).png'),
  70. url: '/pages/sub/logPanel/logPanel'
  71. },
  72. ]
  73. }
  74. },
  75. onLoad() {
  76. },
  77. methods: {
  78. }
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. .main {
  83. width: 100%;
  84. min-height: 100vh;
  85. background: #f5f5f5;
  86. .pad {
  87. background: #fff;
  88. padding: 0 0 20rpx 0;
  89. }
  90. .h2 {
  91. font-size: 30rpx;
  92. border-bottom: 1rpx solid #F5F5F5 ;
  93. height: 112rpx;
  94. line-height: 150rpx;
  95. font-weight: 600;
  96. padding: 0 24rpx;
  97. }
  98. .ul {
  99. width: 100%;
  100. display: flex;
  101. flex-wrap: wrap;
  102. padding: 0 24rpx;
  103. .li {
  104. width: 33%;
  105. display: flex;
  106. flex-direction: column;
  107. align-items: center;
  108. justify-content: center;
  109. margin: 32rpx 0 12rpx 0;
  110. .icon {
  111. width: 72rpx;
  112. height: 72rpx;
  113. }
  114. .icon2 {
  115. width: 56rpx;
  116. height: 56rpx;
  117. }
  118. .text {
  119. font-size: 24rpx;
  120. margin-top: 14rpx;
  121. }
  122. }
  123. }
  124. }
  125. </style>