maintenanceRecord.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <view>
  3. <view class="alarm" v-for="item in deviceAlarmRepairRecords" :key="item.code">
  4. <text class="title">{{item.repairName}}</text>
  5. <view class="content">
  6. <text>变 量&nbsp;&nbsp;ID:{{item.variableId}}</text>
  7. <text>提醒周期:{{item.promptInterval}}</text>
  8. <text>上次提醒:</text>
  9. <text>操&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;作:</text>
  10. </view>
  11. </view>
  12. <view class="anniu">
  13. <image class="anniu" src="../../static/设备菜单/前往列表@2x.png"></image>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. deviceAlarmRepairRecords: [],
  22. }
  23. },
  24. onLoad() {
  25. uni.request({
  26. url: 'http://127.0.0.1:9999/deviceAlarmRepairRecord/list',
  27. method: 'GET',
  28. data: {},
  29. success: res => {
  30. this.deviceAlarmRepairRecords = res.data.data.deviceAlarmRepairRecords;
  31. console.log(res.data.data.deviceAlarmRepairRecords);
  32. },
  33. })
  34. },
  35. methods: {
  36. }
  37. }
  38. </script>
  39. <style>
  40. .anniu {
  41. width: 116rpx;
  42. height: 116rpx;
  43. float: right;
  44. margin-top: 10rpx;
  45. margin-right: 4rpx;
  46. }
  47. .alarm {
  48. width: 702rpx;
  49. height: 329rpx;
  50. background-color: white;
  51. margin-top: 30rpx;
  52. margin-left: 24rpx;
  53. border-radius: 10rpx;
  54. padding-top: 30rpx;
  55. }
  56. .content {
  57. display: flex;
  58. flex-direction: column;
  59. margin-top: 30rpx;
  60. margin-left: 30rpx;
  61. line-height: 55rpx;
  62. font-size: 28rpx;
  63. color: #444546;
  64. }
  65. .title {
  66. font-size: 36rpx;
  67. margin-left: 30rpx;
  68. color: #282828;
  69. font-weight: 600;
  70. }
  71. </style>