subject_evaluation_report1.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <template>
  2. <div class="development_stage">
  3. <head-component :headinfo=headinfo></head-component>
  4. <div class="page-content">
  5. <div class="page-box">
  6. <p class="title">学科门类</p>
  7. <div class="two-page-result">
  8. <div v-for="(item,index) in data_list" @click="detail(item.sepeialitt)"
  9. :class="[item.selected?'item-result-box-active':'item-result-box']"
  10. >
  11. <div v-html="item.sepeialitt"></div>
  12. </div>
  13. </div>
  14. <p class="title">专业</p>
  15. <div class="two-page-result">
  16. <div v-for="(item,index) in subjectreportdetail_list" @click="jumpToReport2(item)"
  17. :class="[item.selected?'item-result-box-active':'item-result-box']"
  18. >
  19. <div v-html="item.subjectname"></div>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. <!-- <drag_component></drag_component>-->
  25. </div>
  26. </template>
  27. <script setup>
  28. import {onMounted} from "vue";
  29. import {subjectreportlist,subjectreportdetail} from '@/api/xjc-integratedmachine/environment/tscareer.js'
  30. import headComponent from '@/views/xjc-integratedmachine/components/head_component.vue'
  31. import Drag_component from "@/views/xjc-integratedmachine/components/drag_component.vue";
  32. const headinfo = ref({})
  33. function setHeadinfo(){
  34. headinfo.value = {
  35. title: '学科评估报告',
  36. user: {
  37. avatar: '头像路径',
  38. nickName: '张三'
  39. },
  40. backUrl : '/xjc-integratedmachine/wakeup/career_recognize/index'
  41. }
  42. }
  43. import {subjectspecialdetail} from '@/api/xjc-integratedmachine/environment/tscareer.js'
  44. const router = useRouter()
  45. const {proxy} = getCurrentInstance()
  46. const {subject} = proxy.useDict('subject')
  47. const data_list = ref([])
  48. function list() {
  49. subjectreportlist().then(resp =>{
  50. console.log(resp)
  51. data_list.value = resp.getsepeiality
  52. })
  53. }
  54. const subjectreportdetail_list = ref([])
  55. function detail(data){
  56. subjectreportdetail({
  57. id : data
  58. }).then(resp =>{
  59. subjectreportdetail_list.value = resp.subjectreportdetail
  60. })
  61. }
  62. function jumpToReport2(item){
  63. router.push({
  64. path : '/xjc-integratedmachine/environment/subject_evaluation_report2',
  65. query :{
  66. id : item.subjectcode
  67. }
  68. })
  69. }
  70. list()
  71. </script>
  72. <style scoped lang="scss">
  73. p{
  74. margin: 0;
  75. padding: 0;
  76. }
  77. .development_stage{
  78. background: url('@/assets/images/login/login-home-background.png') no-repeat;
  79. background-size: 1920px 1080px;
  80. z-index:10;
  81. width: 100%;
  82. height: 1080px;
  83. .page-content {
  84. width: 100%;
  85. height: 980px;
  86. position: absolute;
  87. top: 100px;
  88. bottom: 0;
  89. }
  90. .page-box{
  91. width: 1832px;
  92. height: 910px;
  93. background: #FFFFFF;
  94. border-radius: 35px 35px 35px 35px;
  95. margin: 13px auto 0;
  96. padding-top: 25px;
  97. position: relative;
  98. overflow: auto;
  99. padding-bottom: 30px;
  100. .title {
  101. height: 40px;
  102. border-left: 8px #8CE349 solid;
  103. margin-top: 33px;
  104. margin-left: 33px;
  105. font-weight: 400;
  106. font-size: 28px;
  107. color: #333333;
  108. line-height: 40px;
  109. padding-left: 11px;
  110. }
  111. }
  112. .two-page-result {
  113. //width: 1276px;
  114. //height: 337px;
  115. margin: 0 auto;
  116. display: flex;
  117. flex-wrap: wrap;
  118. align-items: center;
  119. .item-result-box-active {
  120. min-width: 244px;
  121. height: 92px;
  122. background: linear-gradient(180deg, #B6FFEF 0%, #C5EEFF 100%);
  123. box-shadow: inset 0px -2px 7px 0px #1E410E;
  124. border-radius: 5px 5px 5px 5px;
  125. border: 1px solid #A2F57F;
  126. font-weight: 400;
  127. font-size: 30px;
  128. color: #0DE6A1;
  129. line-height: 90px;
  130. text-align: center;
  131. margin-left: 50px;
  132. margin-right: 50px;
  133. margin-top: 32px;
  134. padding-left: 20px;
  135. padding-right: 20px;
  136. }
  137. .item-result-box {
  138. min-width: 244px;
  139. height: 92px;
  140. background: #E0EEF4;
  141. border-radius: 5px 5px 5px 5px;
  142. font-weight: 400;
  143. font-size: 30px;
  144. color: #000000;
  145. line-height: 90px;
  146. text-align: center;
  147. margin-left: 50px;
  148. margin-right: 50px;
  149. margin-top: 32px;
  150. padding-left: 20px;
  151. padding-right: 20px;
  152. }
  153. .item-result-box:hover {
  154. min-width: 244px;
  155. height: 92px;
  156. background: linear-gradient(180deg, #B6FFEF 0%, #C5EEFF 100%);
  157. box-shadow: inset 0px -2px 7px 0px #1E410E;
  158. border-radius: 5px 5px 5px 5px;
  159. border: 1px solid #A2F57F;
  160. font-weight: 400;
  161. font-size: 30px;
  162. color: #000000;
  163. line-height: 90px;
  164. text-align: center;
  165. margin-left: 50px;
  166. margin-top: 32px;
  167. padding-left: 20px;
  168. padding-right: 20px;
  169. }
  170. }
  171. }
  172. </style>