Info.vue 953 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <view class="info-container">
  3. <view class="col" v-if="planType == '3'">
  4. <text class="label">报修记录编码</text>
  5. <text class="desc">{{item.repairsCode}}</text>
  6. </view>
  7. <view class="col">
  8. <text class="label">设备型号</text>
  9. <text class="desc">{{item.equiModel}}</text>
  10. </view>
  11. <view class="col">
  12. <text class="label">设备位置</text>
  13. <text class="desc">{{item.equiLocation}}</text>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. props:{
  20. item:{
  21. type: Object,
  22. default:() => ({})
  23. },
  24. planType: String
  25. },
  26. data() {
  27. return {
  28. }
  29. },
  30. methods: {
  31. }
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .info-container{
  36. padding: 0 20rpx;
  37. .col{
  38. border-bottom: 1rpx dashed #7d7d7d;
  39. padding: 10rpx 0;
  40. display: flex;
  41. .label{
  42. width: 160rpx;
  43. text-align: right;
  44. margin-right: 28rpx;
  45. color:#333;
  46. font-weight: bold;
  47. }
  48. .desc{
  49. flex:1
  50. }
  51. }
  52. }
  53. </style>