left_bar.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <div>
  3. <div class="top">
  4. <div class="flex flex-col padding mt-20 ml-10">
  5. <main-button :width="200" type="0" @click="proInfo"/>
  6. <el-divider></el-divider>
  7. </div>
  8. </div>
  9. <div class='middle ' style="margin-left: 20px;text-align: left;">
  10. <span class="title">项目阶段-文件管理</span>
  11. <el-empty v-if="stage && stage.length === 0 "/>
  12. <basic-step class='mt-5' :active="active" :steps='stage'/>
  13. </div>
  14. <div class="down">
  15. <div class="padding flex flex-col flex-center">
  16. <el-divider></el-divider>
  17. <div class="flex flex-col flex-center tip">
  18. <span class="font-16 bold mt-5" style="color:#787C90;">项目总投资额</span>
  19. <span class="mt-5 font-16 bold main-color">{{
  20. data.totalAmount ? data.totalAmount.toLocaleString() : '-'
  21. }}万元</span>
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26. </template>
  27. <script>
  28. import mainButton from '../../../components/main-button.vue'
  29. import basicStep from '@/components/basic-step/index.vue'
  30. export default {
  31. name: 'left_bar',
  32. components: { mainButton, basicStep },
  33. props: {
  34. data: Object,
  35. stage: Array,
  36. active: {
  37. type: Number,
  38. default: -1
  39. }
  40. },
  41. watch: {
  42. active: {
  43. handler (val) {
  44. // this.change(0)
  45. },
  46. immediate: true
  47. }
  48. },
  49. data () {
  50. return {}
  51. },
  52. methods: {
  53. proInfo () {
  54. this.$emit('typeChange')
  55. }
  56. }
  57. }
  58. </script>
  59. <style lang="scss" scoped>
  60. .top {
  61. width: 300px;
  62. position: fixed;
  63. bottom: 160px;
  64. top: 60px;
  65. background-color: #FAF9FA
  66. }
  67. .down {
  68. width: 300px;
  69. position: fixed;
  70. bottom: 0;
  71. padding-bottom: 20px;
  72. background-color: #FAF9FA
  73. }
  74. .tip {
  75. border-radius: 10px;
  76. background-color: #F4F4F1;
  77. height: 75px;
  78. width: 240px
  79. }
  80. .middle{
  81. width: 270px;
  82. position: fixed;
  83. bottom: 175px;
  84. top: 160px;
  85. }
  86. .title {
  87. color: #ECAB56;
  88. font-size: 16px;
  89. font-weight: 500;
  90. }
  91. </style>