index.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <style>
  2. @import 'Syllabus.css';
  3. @import 'KnowPoint.css';
  4. @import '../../../assets/CSS/syllabus/common.css';
  5. </style>
  6. <template>
  7. <div class="index">
  8. <div class="sak-header">
  9. <Headers :parentToChild="syllabusTitle" :identityselect="identitydata"></Headers>
  10. </div>
  11. <div class="sak-main center">
  12. <div class="sak-left">
  13. <Syllabus></Syllabus>
  14. </div>
  15. <div class="sak-right">
  16. <KnowPoint></KnowPoint>
  17. </div>
  18. </div>
  19. </div>
  20. </template>
  21. <script>
  22. import Headers from '@/common/headers.vue'
  23. import Syllabus from './Syllabus.vue'
  24. import KnowPoint from './KnowPoint.vue'
  25. export default {
  26. name: "app",
  27. components: {
  28. Headers: Headers,
  29. Syllabus: Syllabus,
  30. KnowPoint: KnowPoint
  31. },
  32. data() {
  33. return {
  34. syllabusTitle:"课纲管理/知识点管理",
  35. schoolName: "",
  36. username: "",
  37. activeIndex: sessionStorage.getItem('kIndex') || 0,
  38. identitydata: [
  39. { "id": 1, "name": '成都紫藤小学', "rolename": '管理员', status: '1' },
  40. { "id": 2, "name": '成都七中小学', "rolename": '班主任', status: '2' }
  41. ],
  42. }
  43. },
  44. created() {
  45. },
  46. methods: {
  47. },
  48. mounted() {
  49. }
  50. }
  51. </script>
  52. <style scoped>
  53. .index {
  54. position: relative;
  55. width: 100%;
  56. height:100%;
  57. overflow-y:hidden;
  58. min-width: 1366px;
  59. background: #fff;
  60. -moz-user-select: none; /*火狐 firefox*/
  61. -webkit-user-select: none; /*webkit浏览器*/
  62. -ms-user-select: none; /*IE10+*/
  63. user-select: none;
  64. display: flex;
  65. flex-direction: column;
  66. align-items: center;
  67. }
  68. .sak-header{
  69. width:100%;
  70. height:60px;
  71. }
  72. .sak-main {
  73. width: 100%;
  74. height: 100%;
  75. }
  76. .sak-left {
  77. width: 60%;
  78. height: 100%;
  79. }
  80. .sak-right {
  81. width: 40%;
  82. height: 100%;
  83. }
  84. .center {
  85. display: flex;
  86. flex-direction: row;
  87. justify-content: center;
  88. align-items: center;
  89. }
  90. .centerCol {
  91. display: flex;
  92. flex-direction: column;
  93. justify-content: center;
  94. align-items: center;
  95. }
  96. </style>