大空间消毒机
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.

170 lines
14 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div class="audit_container">
  3. <div class="header_wrap">
  4. <p>操作人</p>
  5. <p>操作内容</p>
  6. <p>操作时间</p>
  7. </div>
  8. <div
  9. :class="
  10. auditStore.auditInfoList?.length == 0
  11. ? 'content_wrap layout'
  12. : 'content_wrap'
  13. "
  14. >
  15. <div
  16. class="line"
  17. v-for="item in auditStore.auditInfoList"
  18. :key="item?.id"
  19. >
  20. <div class="username">{{ item?.uid }}</div>
  21. <div class="oper">{{ `${item?.behaviorZH}${item?.behaviorinfo}` }}</div>
  22. <div class="time">
  23. {{ item?.date }}
  24. </div>
  25. </div>
  26. <svg
  27. v-if="auditStore.auditInfoList?.length == 0"
  28. xmlns="http://www.w3.org/2000/svg"
  29. xmlns:xlink="http://www.w3.org/1999/xlink"
  30. fill="none"
  31. version="1.1"
  32. width="129"
  33. height="148.6171875"
  34. viewBox="0 0 129 148.6171875"
  35. >
  36. <g>
  37. <g>
  38. <path
  39. d="M77.56318437499999,42.283203125L77.56318437499999,47.883203125C77.56318437499999,49.516503125,78.93818437499999,50.683203125,80.771484375,50.683203125L87.41728437500001,50.683203125L87.41728437500001,64.91650312499999C87.41728437500001,66.549903125,86.04228437500001,67.716503125,84.208984375,67.716503125L67.708984375,67.716503125C65.87568437499999,67.716503125,64.50068437499999,66.316503125,64.50068437499999,64.91650312499999L64.50068437499999,44.849903125C64.50068437499999,43.216503125,65.87568437499999,42.049903125,67.708984375,42.049903125L77.56318437499999,42.049903125L77.56318437499999,42.283203125ZM42.500651375,52.083203125C45.021484375,54.883203125,50.063154374999996,56.983203125,59.000684375,56.983203125L60.604784375,56.983203125L60.604784375,66.783203125L59.000684375,66.783203125C48.000654374999996,66.783203125,41.583984784782,63.516503125,41.583984784782,59.783203125L41.583984784782,54.183203125C41.583984784782,53.483203125,41.813151375,52.783203125,42.500651375,52.083203125ZM78.25068437499999,63.283203125L69.083984375,63.283203125L69.083984375,65.61650312500001L78.25068437499999,65.61650312500001L78.25068437499999,63.283203125ZM82.833984375,58.616503125L69.083984375,58.616503125L69.083984375,60.949903125L82.833984375,60.949903125L82.833984375,58.616503125ZM82.833984375,53.949903125L69.083984375,53.949903125L69.083984375,56.283203125L82.833984375,56.283203125L82.833984375,53.949903125ZM42.500651375,38.316503125C45.021484375,41.116503125,50.063154374999996,43.216503125,59.000684375,43.216503125L60.604784375,43.216503125L60.604784375,53.016503125L59.000684375,53.016503125C48.000654374999996,53.016503125,41.583984784782,49.749903125,41.583984784782,46.016503125L41.583984784782,40.416503125C41.583984784782,39.716503125,41.813151375,39.016503125,42.500651375,38.316503125ZM80.54228437500001,42.283203125L87.41728437500001,49.283203125L81.91728437500001,49.283203125C81.22978437500001,49.283203125,80.54228437500001,48.583203125,80.54228437500001,47.883203125L80.54228437500001,42.283203125ZM59.000684375,21.283203125C70.00068437499999,21.283203125,77.56318437499999,24.316533125,77.56318437499999,28.283203125L77.56318437499999,32.483203125C77.56318437499999,36.449903125,70.00068437499999,39.483203125,59.000684375,39.483203125C48.000654374999996,39.483203125,41.583984375,36.449903125,41.583984375,32.483203125L41.583984375,28.283203125C41.583984375,24.316533125,48.000654374999996,21.283202707767,59.000684375,21.283203125Z"
  40. fill="#999999"
  41. fill-opacity="1"
  42. />
  43. </g>
  44. <g>
  45. <path
  46. d="M63.989446875,0C39.391046875,0,19.373046875,20.2104,19.373046875,45.0454C19.373046875,69.8804,39.391046875,90.0908,63.989446875,90.0908C88.587846875,90.0908,108.605846875,69.8804,108.605846875,45.0454C108.605846875,20.2104,88.598046875,0,63.989446875,0ZM63.989446875,83.7231C42.864446875,83.7231,25.680076875,66.3735,25.680076875,45.0454C25.680076875,36.145,28.686326875,27.9419,33.703546875,21.3999L89.999646875,73.3975C83.17464687500001,79.7959,74.033946875,83.7231,63.989446875,83.7231ZM94.275346875,68.6909L37.969146875,16.6934C44.804246875000004,10.2949,53.955046875,6.36768,63.989446875,6.36768C85.114446875,6.36768,102.298846875,23.7173,102.298846875,45.0454C102.298846875,53.9458,99.302746875,62.1489,94.275346875,68.6909Z"
  47. fill="#999999"
  48. fill-opacity="1"
  49. />
  50. </g>
  51. <g>
  52. <path
  53. d="M16.89,116.8571875L16.89,121.2971875C16.89,123.7571875,16.68,126.9971875,14.73,129.3971875C15.33,129.6671875,16.44,130.4171875,16.89,130.8371875C18.45,128.9171875,19.08,126.2471875,19.32,123.8171875L22.71,123.8171875L22.71,130.6871875L25.32,130.6871875L25.32,123.8171875L28.62,123.8171875L28.62,121.5371875L19.41,121.5371875L19.41,121.3571875L19.41,118.7771875C22.41,118.5371875,25.62,118.0571875,27.96,117.3671875L26.58,115.2296875C24.21,116.0134875,20.25,116.5866875,16.89,116.8571875ZM7.77,137.4671875L22.23,137.4671875L22.23,139.53718750000002L7.77,139.53718750000002L7.77,137.4671875ZM7.77,135.5171875L7.77,133.4771875L22.23,133.4771875L22.23,135.5171875L7.77,135.5171875ZM5.07,131.3171875L5.07,142.72468750000002L7.77,142.72468750000002L7.77,141.7271875L22.23,141.7271875L22.23,142.6941875L25.05,142.6941875L25.05,131.3171875L5.07,131.3171875ZM1.56,126.6971875L1.77,129.03718750000002L8.55,128.3171875L8.55,130.6871875L11.16,130.6871875L11.16,128.0471875L15.39,127.5671875L15.36,125.5271875L11.16,125.8871875L11.16,124.0271875L15.66,124.0271875L15.66,121.8071875L11.16,121.8071875L11.16,119.9471875L8.55,119.9471875L8.55,121.8071875L5.16,121.8071875C5.91,120.9371875,6.69,119.9771875,7.44,118.9271875L15.57,118.9271875L15.57,116.7671875L8.88,116.7671875L9.6,115.5615675L6.75,114.8378175C6.48,115.4710975,6.15,116.1343875,5.82,116.7671875L1.53,116.7671875L1.53,118.9271875L4.53,118.9271875C3.99,119.7371875,3.54,120.3671875,3.3,120.6671875C2.7,121.3571875,2.22,121.8371875,1.71,121.9571875C2.01,122.6471875,2.43,123.9371875,2.58,124.4771875C2.85,124.2071875,3.87,124.0271875,5.1,124.0271875L8.55,124.0271875L8.55,126.1271875L1.56,126.6971875ZM36.33,116.82718750000001L36.33,119.6171875L46.02,119.6171875C45.96,121.5671875,45.87,123.57718750000001,45.6,125.5571875L34.47,125.5571875L34.47,128.3471875L45.06,128.3471875C43.83,133.2671875,40.95,137.7671875,34.05,140.3471875C34.77,140.94718749999998,35.58,141.9671875,35.97,142.7232875C43.68,139.5971875,46.71,134.1671875,48,128.3471875L48.24,128.3471875L48.24,137.94718749999998C48.24,141.0671875,49.14,141.9971875,52.56,141.9971875C53.25,141.9971875,56.94,141.9971875,57.66,141.9971875C60.72,141.9971875,61.59,140.7071875,61.92,135.7571875C61.11,135.5471875,59.82,135.0671875,59.19,134.5571875C59.04,138.5471875,58.83,139.2071875,57.45,139.2071875C56.61,139.2071875,53.55,139.2071875,52.89,139.2071875C51.45,139.2071875,51.21,139.0271875,51.21,137.9171875L51.21,128.3471875L61.65,128.3471875L61.65,125.5571875L48.48,125.5571875C48.75,123.57718750000001,48.84,121.5671875,48.93,119.6171875L59.97,119.6171875L59.97,116.82718750000001L36.33,116.82718750000001ZM79.05,115.3459375C78.54,116.4887875,77.61,118.2024875,76.89,119.2848875L78.72,120.1266875C79.53,119.1648875,80.49,117.6915875,81.42,116.3382875L79.05,115.3459375ZM68.37,116.3382875C69.15,117.5710875,69.9,119.2248875,70.14,120.2771875L72.3,119.3152875C72.03,118.2624875,71.22,116.66918749999999,70.41,115.4964075L68.37,116.3382875ZM77.82,132.69718749999998C77.19,134.0190875,76.35,135.1909875,75.36,136.1818875C74.37,135.6713875,73.35,135.1909875,72.36,134.7399875L73.5,132.69718749999998L77.82,132.69718749999998ZM68.91,135.6713875C70.32,136.2423875,71.91,136.9932875,73.38,137.77418749999998C71.55,139.0060875,69.39,139.87698749999998,67.05,140.3879875C67.53,140.92848750000002,68.07,141.91988750000002,68.34,142.5507875C71.07,141.7998875,73.59,140.6879875,75.69,139.0360875C76.65,139.6065875,77.49,140.1474875,78.15,140.6579875L79.86,138.7955875C79.2,138.3451875,78.39,137.8641875,77.52,137.3537875C79.08,135.6113875,80.28,133.4785875,81.03,130.8371875L79.5,130.2671875L79.05,130.3571875L74.64,130.3571875L75.21,128.9771875L72.72,128.4971875C72.48,129.0971875,72.24,129.7271875,71.94,130.3571875L67.98,130.3571875L67.98,132.69718749999998L70.74,132.69718749999998C70.14,133.8090875,69.48,134.8304875,68.91,135.6713875ZM73.38,114.8349975L73.38,120.3371875L67.41,120.3371875L67.41,122.6171875L72.51,122.6171875C71.04,124.3571875,68.91,125.9771875,66.96,126.7871875C67.5,127.32718750000001,68.13,128.28718750000002,68.46,128.9171875C70.14,127.9871875,71.94,126.547187
  54. fill="#9E9E9E"
  55. fill-opacity="1"
  56. />
  57. </g>
  58. </g>
  59. </svg>
  60. </div>
  61. <div class="page_wrap">
  62. <el-pagination
  63. background
  64. layout="prev, pager, next"
  65. :total="auditStore.total"
  66. :page-size="6"
  67. :current-page="auditStore.page"
  68. @current-change="handleCurrentPageChange"
  69. />
  70. </div>
  71. </div>
  72. </template>
  73. <script setup>
  74. import { ref, onMounted } from 'vue'
  75. import { useWebSocketStore, useAuditStore } from '@/store'
  76. import { getUserBehaviorRecordDescJSON } from '@/mock/command'
  77. import moment from 'moment'
  78. const webSocketStore = useWebSocketStore()
  79. const auditStore = useAuditStore()
  80. onMounted(() => {
  81. // 读取全部审计记录 需要分页
  82. webSocketStore.sendCommandMsg(getUserBehaviorRecordDescJSON(0, 6))
  83. })
  84. const handleCurrentPageChange = page => {
  85. auditStore.updatePage(page - 1)
  86. webSocketStore.sendCommandMsg(getUserBehaviorRecordDescJSON(page - 1, 6))
  87. }
  88. </script>
  89. <style lang="scss" scoped>
  90. .audit_container {
  91. margin-bottom: 19px;
  92. overflow: hidden;
  93. height: 580px;
  94. box-sizing: border-box;
  95. background: #ffffff;
  96. border-radius: 16px;
  97. .header_wrap {
  98. display: flex;
  99. align-items: center;
  100. justify-content: space-between;
  101. height: 80.29px;
  102. background: #f6f6f6;
  103. border-radius: 16px 16px 0px 0px;
  104. padding: 0 89.43px;
  105. box-sizing: border-box;
  106. font-family: Source Han Sans CN;
  107. font-size: 18px;
  108. font-weight: normal;
  109. line-height: normal;
  110. letter-spacing: 0.07em;
  111. color: #999999;
  112. }
  113. .content_wrap {
  114. height: 430.71px;
  115. overflow: scroll;
  116. .line {
  117. padding: 23px;
  118. padding-left: 40px;
  119. font-family: Source Han Sans CN;
  120. font-size: 18px;
  121. font-weight: normal;
  122. line-height: normal;
  123. letter-spacing: 0.07em;
  124. color: #191919;
  125. display: flex;
  126. align-items: center;
  127. justify-content: space-between;
  128. border-bottom: 1px solid #f6f6f6;
  129. .username {
  130. width: 160px;
  131. overflow: hidden;
  132. white-space: nowrap;
  133. text-overflow: ellipsis;
  134. text-align: center;
  135. }
  136. .oper {
  137. width: 600px;
  138. overflow: hidden;
  139. white-space: nowrap;
  140. text-overflow: ellipsis;
  141. text-align: center;
  142. }
  143. .time {
  144. width: 230px;
  145. overflow: hidden;
  146. text-align: center;
  147. white-space: nowrap;
  148. text-overflow: ellipsis;
  149. }
  150. }
  151. }
  152. .layout {
  153. display: flex;
  154. align-items: center;
  155. justify-content: center;
  156. }
  157. .page_wrap {
  158. height: 66px;
  159. padding-right: 32px;
  160. display: flex;
  161. align-items: center;
  162. justify-content: flex-end;
  163. }
  164. }
  165. </style>