detail.vue 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <view class="content">
  3. <view class="title"> 项目详情 </view>
  4. <view class="list">
  5. <view class="detail">
  6. <span class="subTitle">项目名称:</span>
  7. <span class="detailContent">{{ currentProject.project_name }}</span>
  8. </view>
  9. <view class="detail">
  10. <span class="subTitle">项目类别:</span>
  11. <span class="detailContent">{{ currentProject.TypeInfo.name }}</span>
  12. </view>
  13. <view class="detail" v-if="currentProject.IndustryInfo">
  14. <span class="subTitle">行业名称:</span>
  15. <span class="detailContent">
  16. {{ currentProject.IndustryInfo.name }}
  17. </span>
  18. </view>
  19. <view class="detail">
  20. <span class="subTitle">流程:</span>
  21. <span class="detailContent">{{ currentProject.FlowInfo.name }}</span>
  22. </view>
  23. <view class="detail" v-if="currentProject.location">
  24. <span class="subTitle">项目地区:</span>
  25. <span class="detailContent">
  26. {{ `${currentProject.location}(${currentProject.location_code})` }}
  27. </span>
  28. </view>
  29. <view class="detail" v-if="currentProject.name">
  30. <span class="subTitle">项目简称:</span>
  31. <span class="detailContent">{{ currentProject.name }}</span>
  32. </view>
  33. <view class="detail" v-if="currentProject.version">
  34. <span class="subTitle">项目批次:</span>
  35. <span class="detailContent">{{ currentProject.version }}期</span>
  36. </view>
  37. <view class="detail" v-if="currentProject.AuthorUser">
  38. <span class="subTitle">创建人:</span>
  39. <span class="detailContent">{{ currentProject.AuthorUser.CName }}</span>
  40. </view>
  41. <view class="detail" v-if="currentProject.AuthorDepInfo">
  42. <span class="subTitle">所属部门:</span>
  43. <span class="detailContent">
  44. {{ currentProject.AuthorDepInfo.Name }}
  45. </span>
  46. </view>
  47. <view class="detail">
  48. <span class="subTitle">项目编号:</span>
  49. <span class="detailContent">
  50. {{ currentProject.project_full_code }}
  51. </span>
  52. </view>
  53. </view>
  54. </view>
  55. </template>
  56. <script>
  57. import { mapState } from "vuex";
  58. export default {
  59. computed: {
  60. ...mapState(["currentProject"]),
  61. },
  62. onLoad(options) {
  63. options.auth;
  64. },
  65. };
  66. </script>
  67. <style lang="less" scoped>
  68. .content {
  69. display: flex;
  70. flex-wrap: wrap;
  71. }
  72. .title {
  73. width: 100%;
  74. padding: 0 20px 20px 20px;
  75. background: #f8f8f8;
  76. font: 24px bold;
  77. }
  78. .list {
  79. margin-left: 10%;
  80. width: 100%;
  81. }
  82. .detail {
  83. width: 100%;
  84. padding: 15px 0;
  85. font-size: 18px;
  86. display: flex;
  87. justify-items: space-between;
  88. .subTitle {
  89. width: 30%;
  90. }
  91. .detailContent {
  92. width: 70%;
  93. }
  94. }
  95. </style>