Commit c9be9ff6 by Lin

feat:招聘管理模块优化

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