Commit 66f44f24 by Lin

feat: 添加入口开放配置接口

1 parent 822785d7
...@@ -462,5 +462,9 @@ module.exports = { ...@@ -462,5 +462,9 @@ module.exports = {
// 获取员工日报/周报/月报模版 // 获取员工日报/周报/月报模版
getStaffTemplate(data) { getStaffTemplate(data) {
return api.post('dj.api.carboutique.find.staff.good.news.template', data) return api.post('dj.api.carboutique.find.staff.good.news.template', data)
},
// 工资申述入口判断
hasPerformanceConfig(data) {
return api.post('dj.staff.api.has.performance.config.formerchant', data)
} }
} }
...@@ -10,7 +10,7 @@ import { ...@@ -10,7 +10,7 @@ import {
import aiApi from '../../aiApi' import aiApi from '../../aiApi'
import { getWaitAuditCountAPI, waitstaffstateAPI, getStaffTemplate } from '~/api/api' import { getWaitAuditCountAPI, waitstaffstateAPI, getStaffTemplate } from '~/api/api'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import commonApi from '~/api/api'
let lastPath = null // 用于存储上一次的路径 let lastPath = null // 用于存储上一次的路径
function throttle(func, delay) { function throttle(func, delay) {
let timeoutId let timeoutId
...@@ -741,12 +741,16 @@ Component({ ...@@ -741,12 +741,16 @@ Component({
userInfo.loginRole == 5) && userInfo.loginRole == 5) &&
menuList.every(item => item.menuText != '工资申诉') menuList.every(item => item.menuText != '工资申诉')
) { ) {
// commonApi.hasPerformanceConfig({}).then(res => {
if(res.data) {
menuList.push({ menuList.push({
menuText: '工资申诉', menuText: '工资申诉',
path: 'packageEquity.salaryAppeal', path: 'packageEquity.salaryAppeal',
icon: 'salary_appeal_icon' icon: 'salary_appeal_icon'
}) })
} }
// })
}
// 飞行督导展示带教管理入口(超管/飞行督导) // 飞行督导展示带教管理入口(超管/飞行督导)
if ( if (
(userInfo?.isSuper || userInfo?.loginRole == 6) && (userInfo?.isSuper || userInfo?.loginRole == 6) &&
......
...@@ -1738,7 +1738,8 @@ Page({ ...@@ -1738,7 +1738,8 @@ Page({
} }
}) })
// V5.6.1新增工资申诉模块 // V5.6.1新增工资申诉模块
// api.extractCheck({}).then(res => { // api.hasPerformanceConfig({}).then(res => {
// if(res.data) {
if ( if (
(userInfo?.isSuper || (userInfo?.isSuper ||
userInfo?.loginRole == 3 || userInfo?.loginRole == 3 ||
...@@ -1755,6 +1756,7 @@ Page({ ...@@ -1755,6 +1756,7 @@ Page({
} }
}) })
} }
// }
// }) // })
// 区域运营角色审批退款申请入口 // 区域运营角色审批退款申请入口
if (userInfo?.loginRole == 3 && menu.every(item => item.name != '待审批')) { if (userInfo?.loginRole == 3 && menu.every(item => item.name != '待审批')) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!