You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

244 lines
6.4 KiB

3 years ago
<template>
<div class="search">
3 years ago
<div class="select-bar">
<el-dropdown trigger="click" placement="bottom" @command="e => selectValue = e">
<el-button type="primary" class="dropdown-button">
<div style="display: flex;align-items: center;">
<i class="el-icon-search el-icon--left"></i><p class="dropdown-button__text">{{selectValue}}</p><i class="el-icon-arrow-down el-icon--right"></i>
</div>
</el-button>
<template #dropdown>
<el-dropdown-menu style="width: 235px;" class="main-drop">
<el-dropdown-item command="部门工作职责">
<div style="text-align: center">部门工作职责</div>
</el-dropdown-item>
<el-dropdown-item command="制度文件">
<div style="text-align: center">制度文件</div>
</el-dropdown-item>
<el-dropdown-item command="工作流程">
<div style="text-align: center">工作流程</div>
</el-dropdown-item>
<el-dropdown-item command="岗位工作及标准">
<div style="text-align: center">岗位工作及标准</div>
</el-dropdown-item>
<el-dropdown-item command="表单中心">
<div style="text-align: center">表单中心</div>
</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
<div class="select-bar__blank">
</div>
</div>
<div class="search__bottom">
<div class="top">
<div class="search__bottom--btn">
3 years ago
<el-dropdown trigger="click" placement="bottom" @command="e => selectValue = e">
3 years ago
<el-button type="primary" class="dropdown-search-button">
<span style="padding-right: 10px;">任意词</span><i class="el-icon-arrow-down el-icon--right"></i>
3 years ago
</el-button>
<template #dropdown>
3 years ago
<el-dropdown-menu class="select-drop">
3 years ago
<el-dropdown-item command="制度文件">
<div style="text-align: center">制度文件</div>
</el-dropdown-item>
<el-dropdown-item command="工作流程">
<div style="text-align: center">工作流程</div>
</el-dropdown-item>
<el-dropdown-item command="岗位工作及标准">
<div style="text-align: center">岗位工作及标准</div>
</el-dropdown-item>
<el-dropdown-item command="表单中心">
<div style="text-align: center">表单中心</div>
</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
3 years ago
</div>
3 years ago
3 years ago
<div class="search__bottom--input">
<el-input placeholder="请输入内容" size="" v-model="inputValue">
<template #append>
<el-button style="background: #247EC3;color: #fff;border: none;border-bottom-left-radius: 0;border-top-left-radius: 0;"> </el-button>
</template>
</el-input>
</div>
</div>
<div class="bottom">
<div class="history__icon">
<el-image style="width: 30px;height: 31px" fit="cover" :src="require('@/assets/reception/history-icon.png')"></el-image>
</div>
<div class="history__word">
<div class="history__word--top">常用搜索</div>
<div class="history__word--bottom">
<span style="cursor: pointer;" v-for="(i, index) in ['奖学金', '集体户口', '助学金', '党建']">{{ i }}{{ index !== 3 ? '&nbsp|&nbsp' : '' }}</span>
</div>
</div>
</div>
3 years ago
</div>
</div>
</template>
<script>
export default {
data() {
return {
selectValue: '搜索内部资料',
3 years ago
inputValue: '',
3 years ago
}
},
methods: {},
computed: {},
}
</script>
<style scoped lang="scss">
.search {
width: 100%;
padding: 33px 18.75% 38px 18.75%;
overflow: hidden;
position: relative;
&::before {
content: '';
background: #1e9fff;
filter: blur(8px);
z-index: 0;
position: absolute;
top: -10px;
right: -10px;
bottom: -10px;
left: -10px;
}
3 years ago
.select-bar {
height: 39px;
display: flex;
position: relative;
&__blank {
background: #fff;
flex: 1;
border-top-right-radius: 4px;
}
}
3 years ago
&__bottom {
width: 100%;
background-size: cover;
3 years ago
background: url("../../assets/reception/search-bottom-bkg.png") no-repeat center;
border-radius: 0 0 4px 4px;
3 years ago
3 years ago
padding-bottom: 43px;
3 years ago
position: relative;
3 years ago
& .top {
display: flex;
justify-content: center;
align-items: center;
padding: 24px 190px 0 190px;
.search__bottom--btn {
& .dropdown-search-button {
width: 103px;
height: 35px;
font-size: 13px;
color: #000;
background: #fff;
border-radius: 6px;
border: none;
margin-right: 13px;
}
}
.search__bottom--input {
flex: 1;
height: 35px;
& ::v-deep .el-input__inner {
height: 35px !important;
}
& ::v-deep .el-input-group__append {
border: none;
}
}
}
& .bottom {
display: flex;
align-items: center;
padding: 43px 31.58% 0 31.58%;
& .history__word {
font-size: 13px;
color: #fff;
padding-left: 13px;
}
}
3 years ago
}
}
.dropdown-button {
width: 235px;
background: #376BA3!important;
color: #fff!important;
border: none!important;
3 years ago
border-radius: 4px 0 0 0;
3 years ago
padding-left: 29px !important;
padding-right: 18px !important;
&__text {
flex: 1;
font-size: 16px;
}
}
::v-deep div[x-arrow] {
display: none;
}
::v-deep .el-input__inner {
border: none;
}
</style>
3 years ago
<style lang="scss">
.main-drop[x-placement^=bottom] {
3 years ago
padding: 0!important;
border: none;
3 years ago
border-radius: 0 0 4px 4px;
margin-top: 0 !important;
& > li {
height: 39px;
}
3 years ago
}
.el-dropdown-menu__item:not(.is-disabled):hover, .el-dropdown-menu__item:focus {
background: #247EC3!important;
color: #fff!important;
}
3 years ago
.main-drop > li:nth-child(5) {
border-radius: 0 0 4px 4px;
}
.select-drop[x-placement^=bottom] {
padding: 0!important;
border: none;
border-radius: 6px;
margin-top: 10px !important;
}
.select-drop > li:nth-child(1) {
border-radius: 6px 6px 0 0;
3 years ago
}
3 years ago
.select-drop > li:nth-child(4) {
border-radius: 0 0 6px 6px;
3 years ago
}
</style>