info.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <template>
  2. <div class="content">
  3. <div class="container">
  4. <div class="item">升级包 ID:{{ detail.id }}</div>
  5. <div class="item">升级包名称:{{ detail.name }}</div>
  6. <div class="item">所属产品:{{ detail.productName }}</div>
  7. </div>
  8. <div class="container">
  9. <div class="item">升级包签名:d52b637c5eaf2bc9c24008bc4b723600</div>
  10. <div class="item">升级包版本号:{{ detail.version }}</div>
  11. <div class="item">创建时间:{{ detail.createdAt }}</div>
  12. </div>
  13. <div class="container">
  14. <div class="item">签名算法:{{ detail.are }}</div>
  15. <div class="item">升级包状态:未验证</div>
  16. <div class="item">验证进度:0%</div>
  17. </div>
  18. <div class="container">
  19. <div class="item">升级包描述:{{ detail.describe }}</div>
  20. <div class="item">推送给设备的自定义信息:{{ detail.info }}</div>
  21. <div class="item"></div>
  22. </div>
  23. </div>
  24. </template>
  25. <script lang="ts" setup>
  26. const props = defineProps({
  27. detail: {
  28. type: Object,
  29. default: () => { }
  30. },
  31. })
  32. </script>
  33. <style scoped lang="scss">
  34. .status_list {
  35. width: 100%;
  36. display: flex;
  37. justify-content: space-between;
  38. align-items: center;
  39. padding: 10px;
  40. .otaflex {
  41. font-size: 14px;
  42. display: flex;
  43. align-items: center;
  44. margin-left: -6px;
  45. .otaflex_div1 {
  46. padding: 0 24px;
  47. min-width: 200px;
  48. width: fit-content;
  49. .otaflex_div2 {
  50. align-items: center;
  51. .title {
  52. color: #666;
  53. font-size: 14px;
  54. }
  55. span {
  56. display: block;
  57. border-radius: 50%;
  58. .on {
  59. background: #52c41a;
  60. }
  61. .off {
  62. background: #c41a1a;
  63. }
  64. .ofn {
  65. background: rgb(255, 138, 0);
  66. }
  67. span {
  68. position: relative;
  69. top: -1px;
  70. display: inline-block;
  71. width: 10px;
  72. height: 10px;
  73. vertical-align: middle;
  74. border-radius: 50%;
  75. margin-right: 5px;
  76. }
  77. }
  78. .otaflex_div3 {
  79. font-size: 24px;
  80. margin-top: 10px;
  81. color: #373d41;
  82. }
  83. }
  84. }
  85. }
  86. }
  87. .container {
  88. display: flex;
  89. padding: 10px;
  90. }
  91. .item {
  92. flex: 1;
  93. }
  94. .desc {
  95. margin-top: 15px;
  96. }
  97. .edit {
  98. line-height: 40px;
  99. margin-top: 15px;
  100. margin-left: 30px;
  101. }
  102. .cont_box .pro-status {
  103. line-height: 40px;
  104. margin-left: 30px;
  105. margin-top: 5px;
  106. .on {
  107. background: #52c41a;
  108. }
  109. .off {
  110. background: #c41a1a;
  111. }
  112. span {
  113. position: relative;
  114. top: -1px;
  115. display: inline-block;
  116. width: 6px;
  117. height: 6px;
  118. vertical-align: middle;
  119. border-radius: 50%;
  120. margin-right: 5px;
  121. }
  122. }
  123. </style>