info-table.vue 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <hc-info-table>
  3. <tr>
  4. <hc-info-table-td center is-title width="120px">工程名称:</hc-info-table-td>
  5. <hc-info-table-td width="auto">{{ infoData?.nodeName }}</hc-info-table-td>
  6. <hc-info-table-td center is-title width="120px">工程编号:</hc-info-table-td>
  7. <hc-info-table-td width="auto">{{ infoData?.nodeCode }}</hc-info-table-td>
  8. <hc-info-table-td center is-title width="120px">节点类型:</hc-info-table-td>
  9. <hc-info-table-td width="auto">{{ infoData?.nodeType }}</hc-info-table-td>
  10. </tr>
  11. <tr>
  12. <hc-info-table-td center is-title width="120px">工程类型:</hc-info-table-td>
  13. <hc-info-table-td width="auto">{{ infoData?.engineeringType }}</hc-info-table-td>
  14. <hc-info-table-td center is-title width="120px">显示类型:</hc-info-table-td>
  15. <hc-info-table-td width="auto">{{ infoData?.showType }}</hc-info-table-td>
  16. <hc-info-table-td center is-title width="120px">起始桩号:</hc-info-table-td>
  17. <hc-info-table-td width="auto">{{ infoData?.startStake }}</hc-info-table-td>
  18. </tr>
  19. <tr>
  20. <hc-info-table-td center is-title width="120px">结束桩号:</hc-info-table-td>
  21. <hc-info-table-td width="auto">{{ infoData?.endStake }}</hc-info-table-td>
  22. <hc-info-table-td center is-title width="120px">施工图金额:</hc-info-table-td>
  23. <hc-info-table-td width="auto">{{ infoData?.buildPictureMoney }}</hc-info-table-td>
  24. <hc-info-table-td center is-title width="120px">合同图号:</hc-info-table-td>
  25. <hc-info-table-td width="auto">{{ infoData?.contractPicture }}</hc-info-table-td>
  26. </tr>
  27. <tr>
  28. <hc-info-table-td center is-title width="120px">变更合同图号:</hc-info-table-td>
  29. <hc-info-table-td width="auto">{{ infoData?.changePicture }}</hc-info-table-td>
  30. <hc-info-table-td center is-title width="120px">变更后金额:</hc-info-table-td>
  31. <hc-info-table-td width="auto">{{ infoData?.changeMoney }}</hc-info-table-td>
  32. <hc-info-table-td center is-title width="120px">是否增补:</hc-info-table-td>
  33. <hc-info-table-td width="auto">{{ infoData?.isSupplement === 1 ? '是' : '否' }}</hc-info-table-td>
  34. </tr>
  35. <tr>
  36. <hc-info-table-td center is-title width="120px">备注:</hc-info-table-td>
  37. <hc-info-table-td width="auto" colspan="5">{{ infoData?.remarks }}</hc-info-table-td>
  38. </tr>
  39. </hc-info-table>
  40. </template>
  41. <script setup>
  42. import { ref, watch } from 'vue'
  43. //参数
  44. const props = defineProps({
  45. infoData: {
  46. type: Object,
  47. default: () => ({}),
  48. },
  49. })
  50. const infoData = ref(props.infoData)
  51. //监听
  52. watch(() => [
  53. props.infoData,
  54. ], ([InfoData]) => {
  55. console.log(InfoData, 'InfoData')
  56. infoData.value = InfoData
  57. })
  58. </script>