Commit d094ebfa by 前端

Merge branch 'SAAS+V5.7.1' into 'master'

上线合并

See merge request !3
2 parents 48913cde d13b10f0
...@@ -54,10 +54,22 @@ export default { ...@@ -54,10 +54,22 @@ export default {
// getDemandStoreListAPI(data) { // getDemandStoreListAPI(data) {
// return post('dj.api.staff.h5.recruitment.demand.store.list', data, djStaffUrl) // return post('dj.api.staff.h5.recruitment.demand.store.list', data, djStaffUrl)
// }, // },
// // 招聘管理字典查询 // 招聘管理字典查询
// getStaffDictListAPI(data) { getStaffDictListAPI(data) {
// return post('dj.api.staff.h5.dict.list', data, djStaffUrl) return post('dj.api.staff.miniprogram.dict.list', data, djStaffUrl)
// }, },
// 试岗相关API
addTrialPlanAPI(data) {
return post('dj.api.staff.h5.recruitment.trial.onboarding.technicalSupervisor.add', data, djStaffUrl)
},
deleteTrialPlanAPI(data) {
return post('dj.api.staff.h5.recruitment.trial.onboarding.technicalSupervisor.delete', data, djStaffUrl)
},
updateTrialPlanAPI(data) {
return post('dj.api.staff.h5.recruitment.trial.onboarding.technicalSupervisor.edit', data, djStaffUrl)
},
// /** 待处理招聘统计 */ // /** 待处理招聘统计 */
// waitstaffstateAPI(data) { // waitstaffstateAPI(data) {
// return post('dj.api.staff.h5.recruitment.demand.stat', data, djStaffUrl) // return post('dj.api.staff.h5.recruitment.demand.stat', data, djStaffUrl)
......
...@@ -155,7 +155,7 @@ page { ...@@ -155,7 +155,7 @@ page {
background: #52c41a1a; background: #52c41a1a;
} }
// 人员不符合状态 // 人员不匹配状态
&.tag-mismatch { &.tag-mismatch {
color: #ff4d4f; color: #ff4d4f;
background: #ff4d4f1a; background: #ff4d4f1a;
...@@ -258,6 +258,43 @@ page { ...@@ -258,6 +258,43 @@ page {
// 入职计划模块 // 入职计划模块
.entry_plan { .entry_plan {
.btn_add_trial {
color: #347bff;
font-size: 26rpx;
padding: 8rpx 12rpx;
border-radius: 4rpx;
opacity: 1;
border: 2rpx solid #ccdbff;
background: #e6edff;
}
.card_actions {
display: flex;
justify-content: space-between;
gap: 16rpx;
margin-top: 20rpx;
.btn {
flex: 1;
border-radius: 532rpx;
padding: 12rpx 0;
font-size: 26rpx;
line-height: 36rpx;
text-align: center;
}
.btn_edit {
color: #ffffff;
background: #347bff;
}
.btn_delete {
color: #347bff;
background: #347bff1a;
}
}
.card_content { .card_content {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
...@@ -360,7 +397,9 @@ page { ...@@ -360,7 +397,9 @@ page {
display: inline-block; display: inline-block;
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
margin-right: 10rpx; // margin-right: 10rpx;
margin-top: 5rpx;
margin-left: 10rpx;
} }
.phone_icon { .phone_icon {
...@@ -390,6 +429,7 @@ page { ...@@ -390,6 +429,7 @@ page {
.form { .form {
padding: var(--fontSize20); padding: var(--fontSize20);
box-sizing: border-box;
.form_item { .form_item {
display: flex; display: flex;
...@@ -585,3 +625,115 @@ page { ...@@ -585,3 +625,115 @@ page {
} }
} }
} }
/* popup样式 */
.popup-content {
height: 100%;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
}
/* 设置popup顶部圆角 */
.van-popup--bottom {
border-radius: var(--fontSize20) var(--fontSize20) 0 0 !important;
overflow: hidden;
}
.popup-fixed-top {
flex: 0 0 auto;
}
.popup-fixed-bottom {
flex: 0 0 auto;
padding: 0 var(--fontSize40);
background: #fff;
padding-top: var(--fontSize20);
}
.popup-scroll-area {
flex: 1;
overflow-y: auto;
padding: 0 var(--fontSize40);
}
.popup-title {
height: var(--fontSize110);
line-height: var(--fontSize110);
font-size: var(--fontSize32);
font-weight: bold;
text-align: center;
border-bottom: var(--fontSize2) solid #E8E8EA;
}
.popup-options {
padding: var(--fontSize10) 0;
}
.option-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--fontSize24);
border-bottom: var(--fontSize2) solid #eee;
font-size: var(--fontSize28);
}
.option-item:active {
background-color: #f2f3f5;
}
.option-name {
flex: 1;
}
.option-item.checked .option-name {
color: #1989fa;
}
.option-check {
width: var(--fontSize40);
height: var(--fontSize40);
display: flex;
align-items: center;
justify-content: center;
}
.option-check.checked {
color: #1989fa;
}
.check-icon {
font-size: var(--fontSize32);
}
.popup-buttons {
display: flex;
justify-content: space-between;
padding-top: var(--fontSize20);
}
.cancel-btn,
.confirm-btn {
width: var(--fontSize331);
height: var(--fontSize80);
border-radius: var(--fontSize12);
font-size: var(--fontSize28);
line-height: var(--fontSize80);
display: flex;
align-items: center;
justify-content: center;
}
.cancel-btn {
background-color: #f7f8fa;
color: #323233;
margin-right: var(--fontSize24);
}
.confirm-btn {
background-color: #1989fa;
color: #fff;
}
...@@ -9,13 +9,15 @@ ...@@ -9,13 +9,15 @@
</van-tabs> </van-tabs>
</div> </div>
</div> </div>
<!-- 列表模块 --> <!-- 列表模块 -->
<div class="content"> <div class="content">
<van-pull-refresh v-model="triggered" @refresh="search" style="min-height: 100%; padding-top: 12px; box-sizing: border-box"> <van-pull-refresh v-model="triggered" @refresh="search"
<van-list class="list" v-model="loading" :finished="nothing" finished-text="没有更多了" @load="onBottomRefresh" :offset="100"> style="min-height: 100%; padding-top: 12px; box-sizing: border-box">
<van-list class="list" v-model="loading" :finished="nothing" finished-text="没有更多了" @load="onBottomRefresh"
:offset="100">
<template v-if="list.length"> <template v-if="list.length">
<div v-for="(item, index) in list" :key="index" class="item" :class="{ super_item: userInfo.isSuper }" @click="handleDetail(item)"> <div v-for="(item, index) in list" :key="index" class="item" :class="{ super_item: userInfo.isSuper }"
@click="handleDetail(item)">
<div class="item_header"> <div class="item_header">
<!-- <van-tag v-if="item.urgent == 1" type="danger" style="margin-right: 5px">急</van-tag> --> <!-- <van-tag v-if="item.urgent == 1" type="danger" style="margin-right: 5px">急</van-tag> -->
<img v-if="item.urgent == 1" class="ji" :src="`${IMG_URL}miniProgram/ji.png`" /> <img v-if="item.urgent == 1" class="ji" :src="`${IMG_URL}miniProgram/ji.png`" />
...@@ -31,7 +33,8 @@ ...@@ -31,7 +33,8 @@
</div> </div>
</div> </div>
<!-- 提示消息 --> <!-- 提示消息 -->
<div class="item_footer" v-if="tabIndex == 0 && item.showTip && item.confirmFlag == 'N' && item.status !== 0"> <div class="item_footer"
v-if="tabIndex == 0 && item.showTip && item.confirmFlag == 'N' && item.status !== 0">
<div class="msg_tips"> <div class="msg_tips">
<span>{{ item.tipText }}</span> <span>{{ item.tipText }}</span>
<van-icon name="arrow" color="#999" size="12" /> <van-icon name="arrow" color="#999" size="12" />
...@@ -46,7 +49,6 @@ ...@@ -46,7 +49,6 @@
</van-list> </van-list>
</van-pull-refresh> </van-pull-refresh>
</div> </div>
<!-- 添加招聘按钮 --> <!-- 添加招聘按钮 -->
<!-- <div class="insert_btn" :class="btnVisible ? 'btn-visible' : 'btn-hidden'" @click="handleInsertRecruit"> <!-- <div class="insert_btn" :class="btnVisible ? 'btn-visible' : 'btn-hidden'" @click="handleInsertRecruit">
<van-icon name="add-o" class="insert_icon" size="27" color="#347bff" /> <van-icon name="add-o" class="insert_icon" size="27" color="#347bff" />
...@@ -55,21 +57,17 @@ ...@@ -55,21 +57,17 @@
<div>需求</div> <div>需求</div>
</div> </div>
</div> --> </div> -->
<!-- 箭头图标 - 与按钮互斥显示 --> <!-- 箭头图标 - 与按钮互斥显示 -->
<div class="arrowIcon" :class="btnVisible ? 'arrow-hidden' : 'arrow-visible'"> <div class="arrowIcon" :class="btnVisible ? 'arrow-hidden' : 'arrow-visible'">
<van-icon name="arrow-left" class="image" size="16" color="#999" /> <van-icon name="arrow-left" class="image" size="16" color="#999" />
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { mentorshipFormData, getStatusName, getStatusTipText } from './constantData' import { mentorshipFormData, getStatusName, getStatusTipText } from './constantData'
import api from '../api' import api from '../api'
// Use a placeholder for IMG_URL if not defined globally // Use a placeholder for IMG_URL if not defined globally
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/' const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
export default { export default {
name: 'RecruitManage', name: 'RecruitManage',
data() { data() {
...@@ -124,7 +122,6 @@ export default { ...@@ -124,7 +122,6 @@ export default {
console.error(error) console.error(error)
}) })
}, },
// 标签切换 // 标签切换
tabClick(name, title) { tabClick(name, title) {
this.tabIndex = name this.tabIndex = name
...@@ -135,7 +132,6 @@ export default { ...@@ -135,7 +132,6 @@ export default {
this.getList() // Load new list this.getList() // Load new list
this.getWaitstaffstate() this.getWaitstaffstate()
}, },
// 搜索 // 搜索
search() { search() {
this.nothing = false this.nothing = false
...@@ -145,7 +141,6 @@ export default { ...@@ -145,7 +141,6 @@ export default {
this.getList() this.getList()
this.getWaitstaffstate() this.getWaitstaffstate()
}, },
// 获取列表数据 // 获取列表数据
getList() { getList() {
let { tabIndex, pageSize, currentPage, nothing } = this let { tabIndex, pageSize, currentPage, nothing } = this
...@@ -154,10 +149,8 @@ export default { ...@@ -154,10 +149,8 @@ export default {
this.triggered = false this.triggered = false
return return
} }
// 重置错误状态 // 重置错误状态
this.error = false this.error = false
// 映射 tabIndex 到 dataType // 映射 tabIndex 到 dataType
// tabIndex: 0->待审核, 1->待处理, 2->全部 // tabIndex: 0->待审核, 1->待处理, 2->全部
// dataType: 1->待审核, 2->待处理, 0->全部 // dataType: 1->待审核, 2->待处理, 0->全部
...@@ -165,7 +158,6 @@ export default { ...@@ -165,7 +158,6 @@ export default {
if (tabIndex === 0) dataType = 1 if (tabIndex === 0) dataType = 1
else if (tabIndex === 1) dataType = 2 else if (tabIndex === 1) dataType = 2
else dataType = 0 else dataType = 0
api api
.getRecruitList({ .getRecruitList({
pageSize, pageSize,
...@@ -189,13 +181,11 @@ export default { ...@@ -189,13 +181,11 @@ export default {
tipText: tipText || '' // 提示文本 tipText: tipText || '' // 提示文本
} }
}) })
if (currentPage === 1) { if (currentPage === 1) {
this.list = list this.list = list
} else { } else {
this.list = [...this.list, ...list] this.list = [...this.list, ...list]
} }
this.currentPage = currentPage + 1 this.currentPage = currentPage + 1
this.nothing = currentPage > pages || list.length < pageSize this.nothing = currentPage > pages || list.length < pageSize
// } else { // } else {
...@@ -214,14 +204,12 @@ export default { ...@@ -214,14 +204,12 @@ export default {
if (currentPage === 1) this.list = [] if (currentPage === 1) this.list = []
}) })
}, },
// 跳转详情 // 跳转详情
handleDetail(item) { handleDetail(item) {
console.log(item, 'item') console.log(item, 'item')
// 节流控制:2秒内只能触发一次 // 节流控制:2秒内只能触发一次
const now = Date.now() const now = Date.now()
const throttleTime = 2000 // 节流时间:2秒 const throttleTime = 2000 // 节流时间:2秒
if (this.lastDetailTime && now - this.lastDetailTime < throttleTime) { if (this.lastDetailTime && now - this.lastDetailTime < throttleTime) {
return return
} }
...@@ -229,7 +217,6 @@ export default { ...@@ -229,7 +217,6 @@ export default {
// return // return
// 0-待审核 跳转审核页,其他跳转详情页 // 0-待审核 跳转审核页,其他跳转详情页
const routeName = item.status === 4 ? 'recruitmentReview/recruitmentReview' : 'recruitDetail/recruitDetail' const routeName = item.status === 4 ? 'recruitmentReview/recruitmentReview' : 'recruitDetail/recruitDetail'
this.$router.push({ this.$router.push({
name: routeName, name: routeName,
query: { query: {
...@@ -237,21 +224,18 @@ export default { ...@@ -237,21 +224,18 @@ export default {
} }
}) })
}, },
// 跳转添加招聘页面 // 跳转添加招聘页面
handleInsertRecruit() { handleInsertRecruit() {
this.$router.push({ this.$router.push({
name: 'recruitInsert/recruitInsert' name: 'recruitInsert/recruitInsert'
}) })
}, },
handleScroll(e) { handleScroll(e) {
// Implement if needed using window scroll event or getting scroll element // Implement if needed using window scroll event or getting scroll element
} }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.recruit-manage { .recruit-manage {
background: #f7f8fa; background: #f7f8fa;
...@@ -280,6 +264,7 @@ export default { ...@@ -280,6 +264,7 @@ export default {
// padding-top: 12px; // padding-top: 12px;
// height: 200px; // height: 200px;
overflow: scroll; overflow: scroll;
.list { .list {
height: 100%; height: 100%;
overflow: scroll; overflow: scroll;
...@@ -482,5 +467,4 @@ export default { ...@@ -482,5 +467,4 @@ export default {
width: 16px; width: 16px;
height: 16px; height: 16px;
} }
} }</style>
</style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!