ProjectManagementMain.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <div id="ProjectManagementMain">
  3. <div class="vfpHeader">
  4. <div class="titleOne">项目管理</div>
  5. <div class="smallTitle" style="left: 100px;">项目详情</div>
  6. <el-button type="primary" @click="$router.push('/ProjectManagement')">返回</el-button>
  7. </div>
  8. <hr>
  9. <!-- 跳转导航开始 -->
  10. <div class="AppBar">
  11. <div v-for="(item,index) in items" :key="index" @click="goto(index)" class="AppBarActive">
  12. {{ item.tit }}
  13. <div :class="index==show?item.cl:''"></div>
  14. </div>
  15. </div>
  16. <!-- 创客项目 -->
  17. <studentProjectWordShow ref="student" v-if="show==0 && $route.query['Id']=='5e21b204-c206-11ed-a4cd-509a4c5b67cf'"/>
  18. <!-- 特色创客空间建设 -->
  19. <MakerSpaceWordShow ref='maker' v-if="show==0 && $route.query['Id']=='5f7a66d5-c206-11ed-a4cd-509a4c5b67cf'"/>
  20. <!-- 下载表单 -->
  21. <div class="downBtn">
  22. <el-button v-if="show==0" type="primary" @click="getWord">下载表格</el-button>
  23. </div>
  24. <!-- 活动开展 -->
  25. <ProjectManagementActivity :changeShow="goto" v-if="show==1"/>
  26. <!-- 活动开展详细 -->
  27. <ProjectManagementActivityDetail :AidShow="AidShow" v-if="show==5 && $route.query['pid']"/>
  28. <!-- 项目结题文件 -->
  29. <ProjectManagementEndProjectFile v-if="show==2"/>
  30. <!-- 上传附件 -->
  31. <ProjectManagementProjectFile v-if="show==3"/>
  32. </div>
  33. </template>
  34. <script>
  35. import ProjectManagementActivity from './components/ProjectManagementActivity.vue'
  36. import ProjectManagementActivityDetail from './components/ProjectManagementActivityDetail.vue'
  37. import ProjectManagementEndProjectFile from './components/ProjectManagementEndProjectFile.vue'
  38. import ProjectManagementProjectFile from './components/ProjectManagementProjectFile.vue'
  39. // //特色创客空间建设
  40. import MakerSpaceWordShow from './components/MakerSpaceWordShow.vue'
  41. //创客空间
  42. import studentProjectWordShow from './components/studentProjectWordShow.vue'
  43. //下载pdf
  44. import {downloadPDF} from '@/components/tool/pdf'
  45. export default {
  46. components:{
  47. MakerSpaceWordShow,
  48. ProjectManagementActivity,
  49. ProjectManagementActivityDetail,
  50. ProjectManagementEndProjectFile,
  51. ProjectManagementProjectFile,
  52. studentProjectWordShow,
  53. },
  54. data() {
  55. return {
  56. show:0,
  57. AidShow:"",
  58. items:[
  59. {tit:'项目详细',cl:'pr1TitBass'},
  60. {tit:'活动开展',cl:'pr1TitBass'},
  61. {tit:'项目结题附件',cl:'pr1TitBass'},
  62. {tit:'上传附件',cl:'pr1TitBass'},
  63. ]
  64. }
  65. },
  66. methods:{
  67. goto(val,aid=''){
  68. this.show = val
  69. this.AidShow = aid;
  70. },
  71. getWord(){
  72. if(this.$route.query['Id']=='5e21b204-c206-11ed-a4cd-509a4c5b67cf')downloadPDF(this.$refs.student.$refs.downPDF,'附件2:2023年学生创客项目申报书模板');
  73. if(this.$route.query['Id']=='5f7a66d5-c206-11ed-a4cd-509a4c5b67cf')downloadPDF(this.$refs.maker.$refs.downPDF,'附件3:2023年二级学院特色创客空间建设项目申报书模板');
  74. }
  75. },
  76. mounted(){
  77. console.log(this.$route.query['Id']);
  78. }
  79. }
  80. </script>
  81. <style lang="less" scoped>
  82. #ProjectManagementMain{
  83. display: flex;
  84. flex-direction: column;
  85. .downBtn{
  86. width: 100%;
  87. display: flex;
  88. justify-content: center;
  89. }
  90. }
  91. </style>