123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- <template>
- <div class="university_details_video">
- <head-component :headinfo=headinfo></head-component>
- <div class="page-content">
- <div class="page-img-box">
- <div class="box-content">
- <div class="school-box" v-for="(item,index) in tableData" :key="index">
- <img src="@/assets/images/environment/contrast.png"/>
- <div class="right-box">
- <div class="right-top">
- <div class="right-top-title">{{ item.name }}</div>
- <div class="right-top-details" @click="handleDetail(item)">详情 ></div>
- </div>
- <p class="info"><span>创建时间:</span><span>{{
- item.ctime
- }}</span><span style="margin-left: 46px">所在地区:</span><span>{{ item.areaname }}</span></p>
- <p class="info"><span>院校隶属:</span><span>{{ item.subjection }}</span>
- <span style="margin-left: 46px">院校类型:</span><span>
- <dict-tag :options="school_category"
- :value="item.categoryid"/></span>
- </p>
- </div>
- </div>
- </div>
- </div>
- <drag_component></drag_component>
- </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 {universityList} from '@/api/xjc-integratedmachine/environment/university.js'
- import {ref} from "vue";
- const router = useRouter()
- const route = useRoute()
- const headinfo = ref({})
- const params = route.query
- const total = ref(0)
- const tableData = ref(null)
- const {proxy} = getCurrentInstance()
- const {
- school_category
- } = proxy.useDict('school_category')
- const data = reactive({
- queryParams: {
- pageNum: 1,
- pageSize: 10,
- areaid: params.areaid,
- educationlevel: params.educationlevel,
- characteristic: params.characteristic,
- },
- })
- const {queryParams} = toRefs(data)
- function getList() {
- universityList(proxy.addDateRange(queryParams.value)).then(resp => {
- tableData.value = resp.data.rows
- total.value = resp.data.total
- })
- }
- function handleDetail(row) {
- router.push({
- path: '/xjc-integratedmachine/environment/university_details_video',
- query: {
- id: row.id,
- name: row.name,
- oldid: row.oldid,
- }
- })
- }
- onMounted(() => {
- setHeadinfo()
- })
- getList()
- function setHeadinfo() {
- headinfo.value = {
- title: '高校列表',
- user: {
- avatar: '头像路径',
- nickName: '张三'
- },
- backUrl: '/xjc-integratedmachine/environment/query_universitydb_conditions',
- homeUrl: '/xjc-integratedmachine/environment/index',
- contrast:true,
- }
- }
- </script>
- <style scoped lang="scss">
- p, div {
- margin: 0;
- padding: 0;
- }
- .university_details_video {
- background: url('@/assets/images/environment/university-detail.png') no-repeat;
- background-size: 1920px 1080px;
- z-index: 10;
- width: 100%;
- height: 1080px;
- .page-content {
- width: 100%;
- height: 922px;
- position: absolute;
- top: 100px;
- bottom: 0;
- display: flex;
- justify-content: center;
- .page-img-box {
- width: 1832px;
- height: 922px;
- margin-top: 13px;
- background: rgba(255, 255, 255, 0.4);
- border-radius: 35px 35px 35px 35px;
- display: flex;
- flex-direction: column;
- .box-content{
- width: 1832px;
- height: 922px;
- display: flex;
- padding-left: 20px;
- padding-top: 55px;
- padding-bottom: 55px;
- //justify-content: space-between;
- //margin-left: 41px;
- //margin-right: 41px;
- align-items: center;
- flex-wrap: wrap;
- overflow: auto;
- //border: 1px solid red;
- .school-box {
- width: 570px;
- height: 204px;
- background: #FFFFFF;
- margin-left: 20px;
- box-shadow: 0px 2px 4px 2px rgba(0, 0, 0, 0.09);
- border-radius: 5px 5px 5px 5px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 45px;
- img {
- width: 154px;
- height: 154px;
- //border: 1px solid;
- }
- .right-box {
- width: 400px;
- height: 204px;
- //border: 1px solid;
- .right-top {
- height: 90px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- border-bottom: 1px solid #E6E6E6;
- .right-top-title {
- font-weight: bold;
- font-size: 32px;
- color: #1E410E;
- line-height: 24px;
- }
- .right-top-details {
- font-weight: 400;
- font-size: 20px;
- color: #515F6A;
- }
- }
- .info {
- margin-top: 14px;
- font-weight: 400;
- font-size: 20px;
- color: #333333;
- line-height: 25px;
- display: flex;
- span {
- margin-left: 4px;
- }
- }
- }
- }
- }
- }
- }
- }
- </style>
|