grop path2

This commit is contained in:
jiangyong27 2023-09-05 20:39:09 +08:00
parent 27dc38094c
commit 331aaf4e59
1 changed files with 8 additions and 8 deletions

View File

@ -66,15 +66,15 @@ func (s *StaffSalary) Agent(month string, ctx *gin.Context) {
} else {
links := make([]map[string]string, 0)
links = append(links, map[string]string{
"url": "/api/staff/salary?type=agent&xls=1",
"url": "/staff/salary?type=agent&xls=1",
"name": "下载",
})
links = append(links, map[string]string{
"url": "/api/staff/salary?type=bank",
"url": "/staff/salary?type=bank",
"name": "银行",
})
links = append(links, map[string]string{
"url": "/api/staff/salary?type=summary",
"url": "/staff/salary?type=summary",
"name": "汇总",
})
ctx.HTML(http.StatusOK, "salary.html", gin.H{
@ -124,15 +124,15 @@ func (s *StaffSalary) Bank(month string, ctx *gin.Context) {
} else {
links := make([]map[string]string, 0)
links = append(links, map[string]string{
"url": "/api/staff/salary?type=bank&xls=1",
"url": "/staff/salary?type=bank&xls=1",
"name": "下载",
})
links = append(links, map[string]string{
"url": "/api/staff/salary?type=summary",
"url": "/staff/salary?type=summary",
"name": "汇总",
})
links = append(links, map[string]string{
"url": "/api/staff/salary?type=agent",
"url": "/staff/salary?type=agent",
"name": "代理",
})
ctx.HTML(http.StatusOK, "salary.html", gin.H{
@ -200,11 +200,11 @@ func (s *StaffSalary) Summary(month string, ctx *gin.Context) {
} else {
links := make([]map[string]string, 0)
links = append(links, map[string]string{
"url": "/api/staff/salary?type=bank",
"url": "/staff/salary?type=bank",
"name": "银行",
})
links = append(links, map[string]string{
"url": "/api/staff/salary?type=agent",
"url": "/staff/salary?type=agent",
"name": "代理",
})
ctx.HTML(http.StatusOK, "salary.html", gin.H{