questionItem.vue 986 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <view class="border border-light-opc rounded mb-2 p-2 shadow-sm">
  3. <view class="">
  4. <text class="text-primary">企业名称:</text>
  5. <text class="text-secondary">{{itemData.enterpriseName}}</text>
  6. </view>
  7. <view class="my-2">
  8. <text class="text-primary">提交时间:</text>
  9. <text class="text-secondary">{{itemData.submitTime || itemData.createTime}}</text>
  10. </view>
  11. <view class="">
  12. <text class="text-primary">提交人:</text>
  13. <text class="text-secondary">{{itemData.submitName || itemData.userName}}</text>
  14. </view>
  15. <view class="pt-2">
  16. <text class="text-primary">办结时间:</text>
  17. <text class="text-secondary">{{itemData.submitTime || itemData.finishedTime || '----'}}</text>
  18. </view>
  19. <slot></slot>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. props: {
  25. questionData: {
  26. type: Object,
  27. default: () => {}
  28. }
  29. },
  30. computed: {
  31. itemData() {
  32. return this.questionData
  33. }
  34. }
  35. }
  36. </script>
  37. <style>
  38. </style>