|
|
@@ -6,8 +6,29 @@
|
|
|
class="condizione flex align-center justify-center">
|
|
|
<div class="condizione-box flex align-center justify-center">
|
|
|
<div class="condizione-box-c">
|
|
|
+
|
|
|
<!-- 搜索框 -->
|
|
|
<div class="condizione-box-c-searchc flex align-center justify-between">
|
|
|
+ <!-- 切换类型 -->
|
|
|
+ <div class="tabs flex align-center">
|
|
|
+ <!-- 可横向滚动区域 -->
|
|
|
+ <div class="tabs-box">
|
|
|
+ <div class="tabs-box-inner">
|
|
|
+ <div v-for="(item, index) in tabs" :key="index" class="tabs-box-item"
|
|
|
+ :class="tabsCurr === index ? 'tabs-box-item-active' : ''"
|
|
|
+ @click="selectTabs(index)">
|
|
|
+ {{ item.ruleClassifyName }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 固定右侧按钮 -->
|
|
|
+ <div @click="goToPage" class="add flex align-center">
|
|
|
+ <el-icon><circle-plus /></el-icon>
|
|
|
+ <div>添加求职期望</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div class="condizione-box-c-search flex justify-between">
|
|
|
<div class="condizione-box-c-search-in flex align-center justify-center">
|
|
|
<div class="condizione-box-c-search-ins flex align-center justify-center">
|
|
|
@@ -300,6 +321,8 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ tabs: [],
|
|
|
+ tabsCurr:null,
|
|
|
size: 160, //二维码大小
|
|
|
qrColor: {
|
|
|
'background': '#ffffff'
|
|
|
@@ -395,17 +418,45 @@ export default {
|
|
|
this.getschoolList()
|
|
|
//公司规模
|
|
|
this.getscompList()
|
|
|
- //获取职位列表
|
|
|
- this.getUserList()
|
|
|
if (localStorage.getItem('token')) {
|
|
|
//简历详情
|
|
|
this.getJlInfo();
|
|
|
}
|
|
|
this.getRmCityList();
|
|
|
this.getCitysList();
|
|
|
+ // 获取求职期望
|
|
|
+ this.getJobType();
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ goToPage() {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/addResume',
|
|
|
+ query: {
|
|
|
+ isExpand: 1
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ selectTabs(index) {
|
|
|
+ this.tabsCurr = index;
|
|
|
+ //重新获取岗位
|
|
|
+ this.page = 1
|
|
|
+ this.getUserList()
|
|
|
+ },
|
|
|
+ // 获取求职期望
|
|
|
+ getJobType() {
|
|
|
+ this.$Request.get('/app/intention/getIntentionList').then(res => {
|
|
|
+ console.log(res)
|
|
|
+ if (res.code == 0 && res.data.length > 0) {
|
|
|
+ this.tabs = res.data;
|
|
|
+ //获取岗位列表
|
|
|
+ this.getUserList()
|
|
|
+ }else{
|
|
|
+ //获取岗位列表
|
|
|
+ this.getUserList()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
selectCity(item) {
|
|
|
console.log(item)
|
|
|
// 判断是选择城市还是区域
|
|
|
@@ -597,6 +648,7 @@ export default {
|
|
|
},
|
|
|
//开始搜索
|
|
|
startSearch() {
|
|
|
+ this.tabsCurr = null
|
|
|
this.page = 1
|
|
|
this.getUserList()
|
|
|
},
|
|
|
@@ -666,7 +718,7 @@ export default {
|
|
|
page: this.page,
|
|
|
limit: this.limit,
|
|
|
postType: '', //求职类型
|
|
|
- ruleClassifyName: this.keyWord, //岗位名称
|
|
|
+ ruleClassifyName: this.keyWord?this.keyWord: this.tabs[this.tabsCurr]?.ruleClassifyName || '',//岗位名称, //岗位名称
|
|
|
screen: this.postType == '综合排序' ? 1 : 2, //1推荐 2最新
|
|
|
county: this.county == '全部' ? '' : this.county || '', //区
|
|
|
city: this.originalCityList[this.cityIndex]?.city || '', //城市
|
|
|
@@ -1135,7 +1187,7 @@ $marginTop-60: 120px;
|
|
|
}
|
|
|
|
|
|
.condizione-box-c-search {
|
|
|
- width: 80%;
|
|
|
+ width: 50%;
|
|
|
height: 100%;
|
|
|
background-color: #00DD9A;
|
|
|
border-radius: 13px;
|
|
|
@@ -1377,4 +1429,66 @@ $marginTop-60: 120px;
|
|
|
color: #FFFFFF;
|
|
|
}
|
|
|
}
|
|
|
+.tabs {
|
|
|
+ //width: 100%;
|
|
|
+ max-width: 30%;
|
|
|
+ height: 40px;
|
|
|
+
|
|
|
+ .tabs-box {
|
|
|
+ overflow: auto;
|
|
|
+ display: flex;
|
|
|
+ height: 100%;
|
|
|
+ // overflow-x: auto;
|
|
|
+ white-space: nowrap;
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .tabs-box::-webkit-scrollbar {
|
|
|
+ /* Chrome, Safari, Opera */
|
|
|
+ height: 0px !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .tabs-box::-webkit-scrollbar-thumb {
|
|
|
+ background-color: #cccccc;
|
|
|
+ /* 滚动条颜色 */
|
|
|
+ }
|
|
|
+
|
|
|
+ .tabs-box::-webkit-scrollbar-track {
|
|
|
+ background-color: #ffffff;
|
|
|
+ /* 轨道颜色 */
|
|
|
+ }
|
|
|
+
|
|
|
+ .tabs-box-item {
|
|
|
+ display: inline-block;
|
|
|
+ min-width: 80px;
|
|
|
+ padding: 0 5px;
|
|
|
+ height: 100%;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 40px;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #333333;
|
|
|
+ font-weight: 400;
|
|
|
+ margin-right: 10px;
|
|
|
+ border-radius: 6px;
|
|
|
+ cursor: pointer;
|
|
|
+ position: relative;
|
|
|
+ z-index: 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ .tabs-box-item:hover {
|
|
|
+ color: #06E1AB;
|
|
|
+ }
|
|
|
+
|
|
|
+ .tabs-box-item-active {
|
|
|
+ color: #FFFFFF !important;
|
|
|
+ background-color: #06E1AB !important;
|
|
|
+ transition: background-color color 0.5s; // 添加过渡效果
|
|
|
+ }
|
|
|
+}
|
|
|
+.add{
|
|
|
+ flex-shrink: 0;
|
|
|
+ margin-left: 10px;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
</style>
|