prodb_specialtylist1.vue 5.0 KB

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