centerInfo.vue 1007 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <div class="center-info-page">
  3. <h3>{{ t('project.management.detail.menu.centerInfo') }}</h3>
  4. <el-divider />
  5. <div class="info-section">
  6. <p><strong>{{ t('project.management.detail.content.projectId') }}:</strong> {{ projectId }}</p>
  7. <p class="info-tip">{{ t('project.management.detail.content.centerInfoTip') }}</p>
  8. </div>
  9. </div>
  10. </template>
  11. <script setup lang="ts">
  12. import { inject } from 'vue';
  13. import { useI18n } from 'vue-i18n';
  14. const { t } = useI18n();
  15. // 接收从父组件传递的项目ID
  16. const projectId = inject<any>('projectId');
  17. </script>
  18. <style scoped>
  19. .center-info-page {
  20. height: 100%;
  21. }
  22. .info-section {
  23. padding: 16px 0;
  24. }
  25. .info-section p {
  26. line-height: 2;
  27. font-size: 14px;
  28. color: #606266;
  29. margin: 8px 0;
  30. }
  31. .info-section strong {
  32. color: #303133;
  33. margin-right: 8px;
  34. }
  35. h3 {
  36. font-size: 18px;
  37. font-weight: 600;
  38. color: #303133;
  39. margin: 0;
  40. }
  41. .info-tip {
  42. color: #909399;
  43. font-style: italic;
  44. margin-top: 16px;
  45. }
  46. </style>