Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 66f44f24
authored
Jan 23, 2026
by
Lin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 添加入口开放配置接口
1 parent
822785d7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
23 deletions
api/api.js
packageEquity/pages/index/index.js
tabIndex/pages/index/index.js
api/api.js
View file @
66f44f2
...
@@ -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
)
}
}
}
}
packageEquity/pages/index/index.js
View file @
66f44f2
...
@@ -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,11 +741,15 @@ Component({
...
@@ -741,11 +741,15 @@ Component({
userInfo
.
loginRole
==
5
)
&&
userInfo
.
loginRole
==
5
)
&&
menuList
.
every
(
item
=>
item
.
menuText
!=
'工资申诉'
)
menuList
.
every
(
item
=>
item
.
menuText
!=
'工资申诉'
)
)
{
)
{
menuList
.
push
({
// commonApi.hasPerformanceConfig({}).then(res => {
menuText
:
'工资申诉'
,
if
(
res
.
data
)
{
path
:
'packageEquity.salaryAppeal'
,
menuList
.
push
({
icon
:
'salary_appeal_icon'
menuText
:
'工资申诉'
,
})
path
:
'packageEquity.salaryAppeal'
,
icon
:
'salary_appeal_icon'
})
}
// })
}
}
// 飞行督导展示带教管理入口(超管/飞行督导)
// 飞行督导展示带教管理入口(超管/飞行督导)
if
(
if
(
...
...
tabIndex/pages/index/index.js
View file @
66f44f2
...
@@ -1738,23 +1738,25 @@ Page({
...
@@ -1738,23 +1738,25 @@ Page({
}
}
})
})
// V5.6.1新增工资申诉模块
// V5.6.1新增工资申诉模块
// api.extractCheck({}).then(res => {
// api.hasPerformanceConfig({}).then(res => {
if
(
// if(res.data) {
(
userInfo
?.
isSuper
||
if
(
userInfo
?.
loginRole
==
3
||
(
userInfo
?.
isSuper
||
userInfo
.
loginRole
==
5
)
&&
userInfo
?.
loginRole
==
3
||
menu
.
every
(
item
=>
item
.
name
!=
'工资申诉'
)
userInfo
.
loginRole
==
5
)
&&
)
{
menu
.
every
(
item
=>
item
.
name
!=
'工资申诉'
)
menu
.
push
({
)
{
name
:
'工资申诉'
,
menu
.
push
({
icon
:
'salary_appeal_icon'
,
name
:
'工资申诉'
,
path
:
'packageEquity.salaryAppeal'
,
icon
:
'salary_appeal_icon'
,
noCheckdailyReport
:
true
,
path
:
'packageEquity.salaryAppeal'
,
params
:
{
noCheckdailyReport
:
true
,
type
:
2
params
:
{
}
type
:
2
})
}
}
})
}
// }
// })
// })
// 区域运营角色审批退款申请入口
// 区域运营角色审批退款申请入口
if
(
userInfo
?.
loginRole
==
3
&&
menu
.
every
(
item
=>
item
.
name
!=
'待审批'
))
{
if
(
userInfo
?.
loginRole
==
3
&&
menu
.
every
(
item
=>
item
.
name
!=
'待审批'
))
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment