prodb_specialtylist1.vue 4.2 KB

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