ContentProjectTimeline.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <ContentModuleCard title="招标/采购进度" class="content-project-timeline">
  3. <div class="action-right-container" slot="header-actions">
  4. <span class="action-item clickable download-project-doc">
  5. <AppIcon name="xiazaixiangmubaogao"></AppIcon>
  6. <span class="action-text">下载项目报告</span>
  7. </span>
  8. <span class="action-item clickable follow-project">
  9. <AppIcon name="jiankong" v-if="true" color="#9b9ca3"></AppIcon>
  10. <AppIcon name="yijiankong" v-else color="#9b9ca3"></AppIcon>
  11. <span class="action-text">监控</span>
  12. </span>
  13. </div>
  14. <div class="bg-white">
  15. <TimeLine
  16. :markedSameId="articleId"
  17. :stepList="stepList"
  18. @itemClick="itemClick"
  19. ></TimeLine>
  20. </div>
  21. </ContentModuleCard>
  22. </template>
  23. <script>
  24. import ContentModuleCard from '@/views/article/ui/ContentModuleCard.vue'
  25. import { AppIcon, TimeLine } from '@/ui'
  26. export default {
  27. name: 'ContentProjectTimeline',
  28. components: {
  29. AppIcon,
  30. TimeLine,
  31. ContentModuleCard
  32. },
  33. props: {
  34. articleId: {
  35. type: String,
  36. default: '226'
  37. }
  38. },
  39. data() {
  40. return {
  41. stepList: [
  42. {
  43. id: '226',
  44. step_time: '2024-02-26',
  45. // step_bidamount: 'moneyUnit(111)',
  46. tags: [111],
  47. content: '226-内容内容内容内容内容内容'
  48. },
  49. {
  50. id: '225',
  51. step_time: '2024-02-25',
  52. tags: [111, 222, 333],
  53. content: '225-内容内容内容内容内容内容'
  54. },
  55. {
  56. id: '224',
  57. step_time: '2024-02-24',
  58. tags: [111, 222, 333],
  59. content: '224-内容内容内容内容内容内容'
  60. }
  61. ]
  62. }
  63. },
  64. created() {},
  65. methods: {
  66. itemClick(item) {
  67. console.log(item)
  68. }
  69. }
  70. }
  71. </script>
  72. <style lang="scss" scoped>
  73. .action-item {
  74. color: $main;
  75. font-size: 14px;
  76. line-height: 20px;
  77. &:not(:last-of-type) {
  78. margin-right: 16px;
  79. }
  80. .action-text {
  81. margin-left: 4px;
  82. }
  83. }
  84. </style>