occdb_list.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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_list.rows"
  9. :class="[item.selected?'item-result-box-active':'item-result-box']"
  10. @click="toDetail(item)">
  11. <div>{{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 {occupationList} from '@/api/xjc-integratedmachine/environment/occupation.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. industryparent : param.industryparent
  51. })
  52. const data_list = ref({})
  53. function list() {
  54. occupationList(queryParams.value).then(resp =>{
  55. data_list.value = resp.data_list
  56. total.value = resp.data_list.total
  57. })
  58. }
  59. function toDetail(item){
  60. router.push({
  61. path : '/xjc-integratedmachine/environment/occ_details_video',
  62. query :{
  63. id : item.id
  64. }
  65. })
  66. }
  67. list()
  68. list()
  69. </script>
  70. <style scoped lang="scss">
  71. div,p{
  72. margin: 0;
  73. padding: 0;
  74. }
  75. .prodb_specialtylist1 {
  76. background: url('@/assets/images/login/login-home-background.png') no-repeat;
  77. background-size: 1920px 1080px;
  78. z-index: 10;
  79. width: 100%;
  80. height: 1080px;
  81. .page-content {
  82. width: 100%;
  83. position: absolute;
  84. top: 100px;
  85. bottom: 0;
  86. display: flex;
  87. justify-content: center;
  88. .content{
  89. width: 1832px;
  90. height: 922px;
  91. background: #FFFFFF;
  92. border-radius: 35px 35px 35px 35px;
  93. margin-top:13px;
  94. }
  95. .result-box {
  96. width: 100%;
  97. height: 750px;
  98. overflow: auto;
  99. .two-page-result {
  100. display: flex;
  101. flex-wrap: wrap;
  102. //justify-content: space-between;
  103. align-items: center;
  104. .item-result-box-active {
  105. min-width: 320px;
  106. height: 92px;
  107. background: linear-gradient(180deg, #B6FFEF 0%, #C5EEFF 100%);
  108. box-shadow: inset 0px -2px 7px 0px #1E410E;
  109. border-radius: 5px 5px 5px 5px;
  110. border: 1px solid #A2F57F;
  111. font-weight: 400;
  112. font-size: 30px;
  113. color: #0DE6A1;
  114. line-height: 90px;
  115. text-align: center;
  116. margin-left: 50px;
  117. margin-right: 50px;
  118. margin-top: 32px;
  119. padding-left: 20px;
  120. padding-right: 20px;
  121. }
  122. .item-result-box {
  123. min-width: 320px;
  124. height: 92px;
  125. background: #E0EEF4;
  126. border-radius: 5px 5px 5px 5px;
  127. font-weight: 400;
  128. font-size: 30px;
  129. color: #000000;
  130. line-height: 90px;
  131. text-align: center;
  132. margin-left: 50px;
  133. margin-right: 50px;
  134. margin-top: 32px;
  135. padding-left: 20px;
  136. padding-right: 20px;
  137. }
  138. .item-result-box:hover {
  139. min-width: 320px;
  140. height: 92px;
  141. background: linear-gradient(180deg, #B6FFEF 0%, #C5EEFF 100%);
  142. box-shadow: inset 0px -2px 7px 0px #1E410E;
  143. border-radius: 5px 5px 5px 5px;
  144. border: 1px solid #A2F57F;
  145. font-weight: 400;
  146. font-size: 30px;
  147. color: #000000;
  148. line-height: 90px;
  149. text-align: center;
  150. margin-left: 50px;
  151. margin-top: 32px;
  152. padding-left: 20px;
  153. padding-right: 20px;
  154. }
  155. }
  156. }
  157. }
  158. }
  159. </style>