Commit c9be9ff6 by Lin

feat:招聘管理模块优化

1 parent 3dbd35d2
......@@ -399,6 +399,15 @@ module.exports = {
data
)
},
/** 待处理招聘统计 */
waitstaffstateAPI(data) {
return api.post(
'dj.api.staff.miniprogram.recruitment.demand.stat',
data,
[],
'/rop-dj-staff-miniprogram/router'
)
},
/** 获取园区店配置技师数据 */
getQYTechnicianList(data) {
return api.post('dj.api.smartcarlife.roleTechnician.list', data)
......
......@@ -593,7 +593,7 @@ Component({
index > -1 && menuList.splice(index, 1);
}
// 区域运营 - feature:招聘管理
if (userInfo?.loginRole == 3 && menuList.every((item) => item.name != '招聘管理')) {
if (userInfo?.loginRole == 3 && menuList.every((item) => item.menuText != '招聘管理')) {
menuList.push({
menuText: "招聘管理",
path: "packageEquity.recruitManage",
......
......@@ -15,6 +15,7 @@ Page({
triggered: false,
nothing: false,
userInfo: {},
tabIndex:0,
btnVisible: true, // 按钮是否显示
lastScrollTop: 0, // 上次滚动位置
scrollThreshold: 50 // 滚动阈值(px)
......@@ -49,8 +50,8 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow() {
// this.getWaitstaffstate()
// this.search()
this.getWaitstaffstate()
this.search()
},
onBottomRefresh() {
this.getList()
......
......@@ -73,7 +73,15 @@ module.exports = {
updateOrderRemark(data) {
return api.post('dj.api.smartcarlife.order.updateRemark', data)
},
/** 待处理招聘统计 */
waitstaffstateAPI(data) {
return api.post(
'dj.api.staff.miniprogram.recruitment.demand.stat',
data,
[],
'/rop-dj-staff-miniprogram/router'
)
},
/** 获取首页统计数据 */
getHomeStaticData(data) {
return api.post('dj.api.smartcarlife.expanded.gold.getMerchantCrowdfundingStatistics', data)
......
......@@ -751,6 +751,7 @@ Page({
},
// 招聘管理首页需求分析
getWaitStaff(userInfo, index) {
console.log("调统计招聘");
waitstaffstateAPI()
.then(result => {
let {
......@@ -758,6 +759,7 @@ Page({
data
} = result
if (code == 0) {
console.log("调统计招聘",data);
this.setData({
[`menu[${index}].tipsNum`]: data.waitProcessCount
})
......@@ -1628,7 +1630,7 @@ Page({
// 获取待审批数量
this.getAwaitAuditCount(userInfo, index)
}
if (index > -1) {
if (staffIindex > -1) {
// 获取待审批数量
this.getWaitStaff(userInfo, staffIindex)
}
......
......@@ -221,23 +221,16 @@ page ::-webkit-scrollbar {
.menu .item .hot_icon {
position: absolute;
right: 0;
right: var(--fontSize12);
top: 0;
width: var(--fontSize38);
height: var(--fontSize32);
min-width: var(--fontSize24);
height: var(--fontSize24);
background: #F24724;
border-radius: var(--fontSize16);
border-radius: 50%;
color: #FFFFFF;
font-size: var(--fontSize22);
font-size: var(--fontSize20);
display: flex;
justify-content: center;
align-items: center;
padding:var(--fontSize2);
border:var(--fontSize2) solid #ffffff;
}
.menu .item .bubble_icon {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!