prodb_specialtylist2.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <template>
  2. <div class="prodb_specialtylist2">
  3. <head-component :headinfo=headinfo></head-component>
  4. <div class="page-content">
  5. <div class="content">
  6. <div class="result-box">
  7. <div class="two-page-result">
  8. <div v-for="(item,index) in data_rows" @click="toDetail(item)"
  9. :class="[item.selected?'item-result-box-active':'item-result-box']"
  10. >
  11. <div v-html="item.name"></div>
  12. </div>
  13. </div>
  14. </div>
  15. <!-- <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"-->
  16. <!-- v-model:limit="queryParams.pageSize" @pagination="list2"/>-->
  17. </div>
  18. </div>
  19. </div>
  20. </template>
  21. <script setup>
  22. import headComponent from '@/views/xjc-integratedmachine/components/head_component.vue'
  23. import Drag_component from "@/views/xjc-integratedmachine/components/drag_component.vue";
  24. import {specialtyList2} from '@/api/xjc-integratedmachine/environment/specialty.js'
  25. const router = useRouter()
  26. const route = useRoute()
  27. const total = ref(0)
  28. const param = route.query
  29. const data_rows = ref([])
  30. const queryParams = ref({
  31. pageNum: 1,
  32. pageSize: 10,
  33. oldid: param.oldid
  34. })
  35. const headinfo = ref({})
  36. function setHeadinfo() {
  37. headinfo.value = {
  38. title: '专业类',
  39. user: {
  40. avatar: '头像路径',
  41. nickName: '张三'
  42. },
  43. backUrl: '/xjc-integratedmachine/environment/index',
  44. homeUrl: '/xjc-integratedmachine/environment/index',
  45. contrast:true,
  46. }
  47. }
  48. onMounted(() => {
  49. setHeadinfo()
  50. })
  51. function list2() {
  52. specialtyList2(queryParams.value).then(resp => {
  53. data_rows.value = resp.data.rows
  54. total.value = resp.data.total
  55. })
  56. }
  57. function toDetail(item){
  58. router.push({
  59. path:'/xjc-integratedmachine/environment/pro_details_video',
  60. query : {
  61. id : item.id
  62. }
  63. })
  64. }
  65. list2()
  66. </script>
  67. <style scoped lang="scss">
  68. div,p{
  69. margin: 0;
  70. padding: 0;
  71. }
  72. .prodb_specialtylist2 {
  73. background: url('@/assets/images/login/login-home-background.png') no-repeat;
  74. background-size: 1920px 1080px;
  75. z-index: 10;
  76. width: 100%;
  77. height: 1080px;
  78. .page-content {
  79. width: 100%;
  80. position: absolute;
  81. top: 100px;
  82. bottom: 0;
  83. display: flex;
  84. justify-content: center;
  85. .content{
  86. width: 1832px;
  87. height: 922px;
  88. background: #FFFFFF;
  89. border-radius: 35px 35px 35px 35px;
  90. margin-top:13px;
  91. }
  92. .result-box {
  93. width: 100%;
  94. height: 750px;
  95. overflow: auto;
  96. .two-page-result {
  97. display: flex;
  98. flex-wrap: wrap;
  99. justify-content: space-between;
  100. align-items: center;
  101. .item-result-box-active {
  102. min-width: 320px;
  103. height: 92px;
  104. background: linear-gradient(180deg, #B6FFEF 0%, #C5EEFF 100%);
  105. box-shadow: inset 0px -2px 7px 0px #1E410E;
  106. border-radius: 5px 5px 5px 5px;
  107. border: 1px solid #A2F57F;
  108. font-weight: 400;
  109. font-size: 30px;
  110. color: #0DE6A1;
  111. line-height: 90px;
  112. text-align: center;
  113. margin-left: 50px;
  114. margin-right: 50px;
  115. margin-top: 32px;
  116. padding-left: 20px;
  117. padding-right: 20px;
  118. }
  119. .item-result-box {
  120. min-width: 320px;
  121. height: 92px;
  122. background: #E0EEF4;
  123. border-radius: 5px 5px 5px 5px;
  124. font-weight: 400;
  125. font-size: 30px;
  126. color: #000000;
  127. line-height: 90px;
  128. text-align: center;
  129. margin-left: 50px;
  130. margin-right: 50px;
  131. margin-top: 32px;
  132. padding-left: 20px;
  133. padding-right: 20px;
  134. }
  135. .item-result-box:hover {
  136. min-width: 320px;
  137. height: 92px;
  138. background: linear-gradient(180deg, #B6FFEF 0%, #C5EEFF 100%);
  139. box-shadow: inset 0px -2px 7px 0px #1E410E;
  140. border-radius: 5px 5px 5px 5px;
  141. border: 1px solid #A2F57F;
  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-top: 32px;
  149. padding-left: 20px;
  150. padding-right: 20px;
  151. }
  152. }
  153. }
  154. }
  155. }
  156. </style>