123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- <template>
- <div class="prodb_specialtylist2">
- <head-component :headinfo=headinfo></head-component>
- <div class="page-content">
- <div class="content">
- <div class="result-box">
- <div class="two-page-result">
- <div v-for="(item,index) in data_rows" @click="toDetail(item)"
- :class="[item.selected?'item-result-box-active':'item-result-box']"
- >
- <div v-html="item.name"></div>
- </div>
- </div>
- </div>
- <!-- <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"-->
- <!-- v-model:limit="queryParams.pageSize" @pagination="list2"/>-->
- </div>
- </div>
- </div>
- </template>
- <script setup>
- import headComponent from '@/views/xjc-integratedmachine/components/head_component.vue'
- import Drag_component from "@/views/xjc-integratedmachine/components/drag_component.vue";
- import {specialtyList2} from '@/api/xjc-integratedmachine/environment/specialty.js'
- const router = useRouter()
- const route = useRoute()
- const total = ref(0)
- const param = route.query
- const data_rows = ref([])
- const queryParams = ref({
- pageNum: 1,
- pageSize: 10,
- oldid: param.oldid
- })
- const headinfo = ref({})
- function setHeadinfo() {
- headinfo.value = {
- title: '专业类',
- user: {
- avatar: '头像路径',
- nickName: '张三'
- },
- backUrl: '/xjc-integratedmachine/environment/index',
- homeUrl: '/xjc-integratedmachine/environment/index',
- contrast:true,
- }
- }
- onMounted(() => {
- setHeadinfo()
- })
- function list2() {
- specialtyList2(queryParams.value).then(resp => {
- data_rows.value = resp.data.rows
- total.value = resp.data.total
- })
- }
- function toDetail(item){
- router.push({
- path:'/xjc-integratedmachine/environment/pro_details_video',
- query : {
- id : item.id
- }
- })
- }
- list2()
- </script>
- <style scoped lang="scss">
- div,p{
- margin: 0;
- padding: 0;
- }
- .prodb_specialtylist2 {
- background: url('@/assets/images/login/login-home-background.png') no-repeat;
- background-size: 1920px 1080px;
- z-index: 10;
- width: 100%;
- height: 1080px;
- .page-content {
- width: 100%;
- position: absolute;
- top: 100px;
- bottom: 0;
- display: flex;
- justify-content: center;
- .content{
- width: 1832px;
- height: 922px;
- background: #FFFFFF;
- border-radius: 35px 35px 35px 35px;
- margin-top:13px;
- }
- .result-box {
- width: 100%;
- height: 750px;
- overflow: auto;
- .two-page-result {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- align-items: center;
- .item-result-box-active {
- min-width: 320px;
- height: 92px;
- background: linear-gradient(180deg, #B6FFEF 0%, #C5EEFF 100%);
- box-shadow: inset 0px -2px 7px 0px #1E410E;
- border-radius: 5px 5px 5px 5px;
- border: 1px solid #A2F57F;
- font-weight: 400;
- font-size: 30px;
- color: #0DE6A1;
- line-height: 90px;
- text-align: center;
- margin-left: 50px;
- margin-right: 50px;
- margin-top: 32px;
- padding-left: 20px;
- padding-right: 20px;
- }
- .item-result-box {
- min-width: 320px;
- height: 92px;
- background: #E0EEF4;
- border-radius: 5px 5px 5px 5px;
- font-weight: 400;
- font-size: 30px;
- color: #000000;
- line-height: 90px;
- text-align: center;
- margin-left: 50px;
- margin-right: 50px;
- margin-top: 32px;
- padding-left: 20px;
- padding-right: 20px;
- }
- .item-result-box:hover {
- min-width: 320px;
- height: 92px;
- background: linear-gradient(180deg, #B6FFEF 0%, #C5EEFF 100%);
- box-shadow: inset 0px -2px 7px 0px #1E410E;
- border-radius: 5px 5px 5px 5px;
- border: 1px solid #A2F57F;
- font-weight: 400;
- font-size: 30px;
- color: #000000;
- line-height: 90px;
- text-align: center;
- margin-left: 50px;
- margin-top: 32px;
- padding-left: 20px;
- padding-right: 20px;
- }
- }
- }
- }
- }
- </style>
|