|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="query_universitydb_conditions">
|
|
|
- <head-component :headinfo=headinfo></head-component>
|
|
|
- <div class="page-content">
|
|
|
+ <head-component :headinfo=headinfo ref="headinfoRef"></head-component>
|
|
|
+ <div class="page-content">
|
|
|
<div class="content-left">
|
|
|
<div class="tab-box">
|
|
|
<div :class="[onePage?'item-box-active':'item-box']" @click="showPage(1)">
|
|
@@ -84,13 +84,12 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<drag_component></drag_component>
|
|
|
-
|
|
|
</div>
|
|
|
<div>
|
|
|
<!--院校属地-->
|
|
|
- <el-dialog v-model="showAreaChoose" width="1000px" append-to-body>
|
|
|
+ <el-dialog v-model="showAreaChoose" append-to-body width="1500">
|
|
|
<div class="dialog-box">
|
|
|
- <div v-for="dict in gk_province" :key="dict.value" @click="chooseArea(dict)">
|
|
|
+ <div v-for="(dict,index) in gk_province" :class="[dict.selected?'item-result-box-active':'item-result-box']" :key="dict.value" @click="chooseArea(dict,index)">
|
|
|
<p>
|
|
|
{{ dict.label }}
|
|
|
</p>
|
|
@@ -101,9 +100,10 @@
|
|
|
</div>
|
|
|
<div>
|
|
|
<!--学历层次-->
|
|
|
- <el-dialog v-model="showEducationlevel" width="1000px" append-to-body>
|
|
|
+ <el-dialog v-model="showEducationlevel" width="1500" append-to-body>
|
|
|
<div class="dialog-box dialog-box2">
|
|
|
- <div v-for="dict in educationlevel" :key="dict.value" @click="chooseEducationlevel(dict)">
|
|
|
+ <div v-for="(dict,index) in educationlevel" :key="dict.value" @click="chooseEducationlevel(dict,index)"
|
|
|
+ :class="[dict.selected?'item-result-box-active':'item-result-box']" >
|
|
|
<p>
|
|
|
{{ dict.label }}
|
|
|
</p>
|
|
@@ -114,8 +114,9 @@
|
|
|
<div>
|
|
|
<!--特色-->
|
|
|
<el-dialog v-model="showCharacteristic" width="1000px" append-to-body>
|
|
|
- <div class="dialog-box">
|
|
|
- <div v-for="dict in characteristic" :key="dict.value" @click="chooseCharacteristic(dict)">
|
|
|
+ <div class="dialog-box dialog-box2">
|
|
|
+ <div v-for="(dict,index) in characteristic" :key="dict.value" @click="chooseCharacteristic(dict,index)"
|
|
|
+ :class="[dict.selected?'item-result-box-active':'item-result-box']">
|
|
|
<p>
|
|
|
{{ dict.label }}
|
|
|
</p>
|
|
@@ -151,6 +152,7 @@ const form = ref({
|
|
|
})
|
|
|
const keyInput = ref(false);
|
|
|
const headinfo = ref({})
|
|
|
+const headinfoRef = ref(null);
|
|
|
|
|
|
function setHeadinfo() {
|
|
|
headinfo.value = {
|
|
@@ -160,7 +162,9 @@ function setHeadinfo() {
|
|
|
nickName: '张三'
|
|
|
},
|
|
|
backUrl: '/xjc-integratedmachine/environment/index',
|
|
|
- homeUrl: '/xjc-integratedmachine/environment/index'
|
|
|
+ homeUrl: '/xjc-integratedmachine/environment/index',
|
|
|
+ contrast:true,
|
|
|
+ contrastType:1
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -190,6 +194,11 @@ function jumpTo(path) {
|
|
|
|
|
|
onMounted(() => {
|
|
|
setHeadinfo()
|
|
|
+ setTimeout(() => {
|
|
|
+ if (headinfoRef.value) {
|
|
|
+ headinfoRef.value.getCompareSizeData(3); // 调用子组件的 sayHello 函数
|
|
|
+ }
|
|
|
+ }, 500)
|
|
|
})
|
|
|
const universityList = ref([])
|
|
|
|
|
@@ -252,9 +261,13 @@ function showAreaChooseHandler() {
|
|
|
showAreaChoose.value = true
|
|
|
}
|
|
|
|
|
|
-function chooseArea(item) {
|
|
|
+function chooseArea(item,index) {
|
|
|
form.value.areaid = item.value
|
|
|
form.value.areaname = item.label
|
|
|
+ gk_province.value.map(ite =>{
|
|
|
+ ite.selected = false;
|
|
|
+ })
|
|
|
+ gk_province.value[index].selected = true;
|
|
|
showAreaChoose.value = false
|
|
|
}
|
|
|
|
|
@@ -262,9 +275,13 @@ function showEducationlevelHandler() {
|
|
|
showEducationlevel.value = true
|
|
|
}
|
|
|
|
|
|
-function chooseEducationlevel(item) {
|
|
|
+function chooseEducationlevel(item,index) {
|
|
|
form.value.educationlevel = item.value
|
|
|
form.value.educationlevelName = item.label
|
|
|
+ educationlevel.value.map(ite =>{
|
|
|
+ ite.selected = false;
|
|
|
+ })
|
|
|
+ educationlevel.value[index].selected = true;
|
|
|
showEducationlevel.value = false
|
|
|
}
|
|
|
|
|
@@ -272,10 +289,14 @@ function showCharacteristicHandler() {
|
|
|
showCharacteristic.value = true
|
|
|
}
|
|
|
|
|
|
-function chooseCharacteristic(item) {
|
|
|
+function chooseCharacteristic(item,index) {
|
|
|
form.value.characteristic = item.value
|
|
|
form.value.characteristicName = item.label
|
|
|
showCharacteristic.value = false
|
|
|
+ characteristic.value.map(ite =>{
|
|
|
+ ite.selected = false;
|
|
|
+ })
|
|
|
+ characteristic.value[index].selected = true;
|
|
|
}
|
|
|
|
|
|
function search() {
|
|
@@ -293,6 +314,10 @@ function clearResult(item) {
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
+p , div{
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+}
|
|
|
.query_universitydb_conditions {
|
|
|
background: url('@/assets/images/login/login-home-background.png') no-repeat;
|
|
|
background-size: 1920px 1080px;
|
|
@@ -435,59 +460,6 @@ function clearResult(item) {
|
|
|
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;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
.input-component {
|
|
@@ -546,35 +518,80 @@ function clearResult(item) {
|
|
|
flex-wrap: wrap;
|
|
|
justify-content: space-between;
|
|
|
|
|
|
- div {
|
|
|
- //border: 1px solid;
|
|
|
- //width: 244px;
|
|
|
- //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;
|
|
|
+
|
|
|
+ .item-result-box-active {
|
|
|
+ min-width: 220px;
|
|
|
+ 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: 220px;
|
|
|
+ height: 92px;
|
|
|
+ background: #E0EEF4;
|
|
|
+ border-radius: 5px 5px 5px 5px;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 30px;
|
|
|
+ color: #000000;
|
|
|
+ line-height: 92px;
|
|
|
+ text-align: center;
|
|
|
+ margin-left: 50px;
|
|
|
+ margin-right: 50px;
|
|
|
+ margin-top: 32px;
|
|
|
+ padding-left: 20px;
|
|
|
+ padding-right: 20px;
|
|
|
}
|
|
|
|
|
|
- p {
|
|
|
- min-width: 120px;
|
|
|
- padding-left: 10px;
|
|
|
- padding-right:10px;
|
|
|
- height: 60px;
|
|
|
- margin-left: 10px;
|
|
|
- margin-right: 10px;
|
|
|
- border: 1px solid;
|
|
|
+ .item-result-box:hover {
|
|
|
+ min-width: 220px;
|
|
|
+ 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: #333333;
|
|
|
+ color: #000000;
|
|
|
+ //line-height: 90px;
|
|
|
text-align: center;
|
|
|
- line-height: 60px;
|
|
|
- //border-radius: 10px;
|
|
|
+ margin-left: 50px;
|
|
|
+ margin-top: 32px;
|
|
|
+ padding-left: 20px;
|
|
|
+ padding-right: 20px;
|
|
|
}
|
|
|
+ //p {
|
|
|
+ // min-width: 120px;
|
|
|
+ // padding-left: 10px;
|
|
|
+ // padding-right:10px;
|
|
|
+ // height: 60px;
|
|
|
+ // margin-left: 10px;
|
|
|
+ // margin-right: 10px;
|
|
|
+ // border: 1px solid;
|
|
|
+ // font-weight: 400;
|
|
|
+ // font-size: 30px;
|
|
|
+ // color: #333333;
|
|
|
+ // text-align: center;
|
|
|
+ // line-height: 60px;
|
|
|
+ // //border-radius: 10px;
|
|
|
+ //}
|
|
|
}
|
|
|
.dialog-box2{
|
|
|
display: flex;
|
|
|
justify-content: space-around;
|
|
|
+ padding-bottom: 20px;
|
|
|
}
|
|
|
.el-dialog{
|
|
|
border-radius: 35px 35px 35px 35px !important;
|