|
|
@@ -1,18 +1,20 @@
|
|
|
<template>
|
|
|
<div class="tab4-5">
|
|
|
- <div class="search" @keyup.enter="mySearch">
|
|
|
+ <div class="search" @keyup.enter="mySearch" v-show="!details">
|
|
|
<el-input
|
|
|
placeholder="姓名/学籍号"
|
|
|
suffix-icon="el-icon-search"
|
|
|
v-model="formData.searchKey"
|
|
|
>
|
|
|
</el-input>
|
|
|
+ <span class="btn" @click="mySearch"></span>
|
|
|
</div>
|
|
|
<!-- 内容 -->
|
|
|
- <div class="conten conNull" v-if="baseTxt && myArr.length === 0">
|
|
|
- 没有此学员!请确认后重新输入!
|
|
|
+ <div class="conten conNull" v-if="myArr.length === 0">
|
|
|
+ <img src="@/assets/img/nullData.png" alt="">
|
|
|
+ <p>暂无查询数据</p>
|
|
|
</div>
|
|
|
- <div class="conten" v-else>
|
|
|
+ <div class="conten" v-else v-show="!details">
|
|
|
<div
|
|
|
class="row"
|
|
|
v-for="item in myArr"
|
|
|
@@ -27,7 +29,7 @@
|
|
|
<!-- 点击领导详情 -->
|
|
|
<div class="details" v-show="details">
|
|
|
<div class="left">
|
|
|
- <div class="el-icon-arrow-left" @click="details = false"></div>
|
|
|
+ <div class="el-icon-arrow-left" @click="details = false">返 回</div>
|
|
|
<img :src="baseURL + txtObj.thumb" alt="" v-if="txtObj.thumb" />
|
|
|
<p>{{ txtObj.name }}</p>
|
|
|
</div>
|
|
|
@@ -120,18 +122,26 @@ export default {
|
|
|
</script>
|
|
|
<style lang='less' scoped>
|
|
|
/deep/::-webkit-scrollbar-thumb {
|
|
|
- background-color: #b9412e !important;
|
|
|
- outline: 1px solid #b9412e !important;
|
|
|
+ background-color: #D8B581 !important;
|
|
|
+ outline: 1px solid #D8B581 !important;
|
|
|
outline-offset: 0;
|
|
|
}
|
|
|
|
|
|
.conNull {
|
|
|
- padding-bottom: 200px;
|
|
|
- display: flex;
|
|
|
- font-size: 30px;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- color: #b9412e !important;
|
|
|
+ width: 100%;
|
|
|
+ display: block !important;
|
|
|
+ height: 500px !important;
|
|
|
+ &>img{
|
|
|
+ margin: 100px auto 30px;
|
|
|
+ display: block;
|
|
|
+ width: 150px;
|
|
|
+ height: 150px;
|
|
|
+ }
|
|
|
+ &>p{
|
|
|
+ text-align: center;
|
|
|
+ font-size: 18px;
|
|
|
+ color: #AC1D29;
|
|
|
+ }
|
|
|
}
|
|
|
.tab4-5 {
|
|
|
position: relative;
|
|
|
@@ -208,37 +218,52 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
.conten {
|
|
|
- margin-top: 50px;
|
|
|
+ padding-right: 80px;
|
|
|
+ padding-bottom: 30px;
|
|
|
+ margin-top: 30px;
|
|
|
height: 550px;
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
- justify-content: center;
|
|
|
overflow-y: auto;
|
|
|
.row {
|
|
|
+ box-shadow: 1px 1px 2px 2px #ccc;
|
|
|
+ background-color: #fff;
|
|
|
cursor: pointer;
|
|
|
- margin: 20px 64px 10px 0;
|
|
|
- width: 260px;
|
|
|
- height: 316px;
|
|
|
+ margin: 20px 55px 10px 0;
|
|
|
+ width: 190px;
|
|
|
+ height: 270px;
|
|
|
|
|
|
& > img {
|
|
|
object-fit: cover;
|
|
|
- border: 2px solid #b9412e;
|
|
|
- width: 260px;
|
|
|
- height: 280px;
|
|
|
+ width: 190px;
|
|
|
+ height: 233px;
|
|
|
}
|
|
|
& > p {
|
|
|
+ padding: 0 5px;
|
|
|
+ height: 37px;
|
|
|
+ line-height: 37px;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
white-space: nowrap;
|
|
|
font-size: 18px;
|
|
|
color: #b9412e;
|
|
|
- margin-top: 12px;
|
|
|
text-align: center;
|
|
|
}
|
|
|
+ &:hover{
|
|
|
+ background-color: #be1220;
|
|
|
+ border: 2px solid #be1220;
|
|
|
+ & > img{
|
|
|
+ width: 186px;
|
|
|
+ height: 229px;
|
|
|
+ }
|
|
|
+ & > p{
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .row:nth-of-type(6n) {
|
|
|
+ margin-right: 0;
|
|
|
}
|
|
|
- // .row:nth-of-type(5n) {
|
|
|
- // margin-right: 0;
|
|
|
- // }
|
|
|
}
|
|
|
.paging {
|
|
|
position: absolute;
|
|
|
@@ -247,41 +272,43 @@ export default {
|
|
|
transform: translateX(-50%);
|
|
|
}
|
|
|
.details {
|
|
|
- background-color: #fff;
|
|
|
z-index: 9999;
|
|
|
position: absolute;
|
|
|
- right: 0;
|
|
|
+ left: 0;
|
|
|
top: 0;
|
|
|
display: flex;
|
|
|
// width: calc(100% - 160px);
|
|
|
width: 100%;
|
|
|
- height: 100%;
|
|
|
- padding: 0px 0 0 80px;
|
|
|
+ height: 620px;
|
|
|
+ padding: 30px 200px 0 200px;
|
|
|
color: #707070;
|
|
|
.left {
|
|
|
margin-right: 100px;
|
|
|
- padding-top: 50px;
|
|
|
+ padding-top: 20px;
|
|
|
width: 200px;
|
|
|
height: auto;
|
|
|
& > div {
|
|
|
- margin-left: -12px;
|
|
|
cursor: pointer;
|
|
|
- font-size: 50px;
|
|
|
+ font-size: 20px;
|
|
|
margin-bottom: 30px;
|
|
|
+ color: #BE1220;
|
|
|
}
|
|
|
& > img {
|
|
|
- width: 200px;
|
|
|
- height: 230px;
|
|
|
+ width: 210px;
|
|
|
+ height: 300px;
|
|
|
object-fit: cover;
|
|
|
}
|
|
|
& > P {
|
|
|
+ font-weight: 700;
|
|
|
+ font-size: 20px;
|
|
|
margin-top: 8px;
|
|
|
text-align: center;
|
|
|
+ color: #333333;
|
|
|
}
|
|
|
}
|
|
|
.right {
|
|
|
flex: 1;
|
|
|
- padding-top: 100px;
|
|
|
+ overflow-y: auto;
|
|
|
& > div {
|
|
|
margin-top: 30px;
|
|
|
width: 1000px;
|
|
|
@@ -304,8 +331,6 @@ export default {
|
|
|
.intro {
|
|
|
padding-top: 15px;
|
|
|
margin-top: 0px;
|
|
|
- height: 450px;
|
|
|
- overflow-y: auto;
|
|
|
border-bottom: none;
|
|
|
font-size: 16px;
|
|
|
/deep/p {
|