grop path2
This commit is contained in:
parent
27dc38094c
commit
331aaf4e59
|
@ -66,15 +66,15 @@ func (s *StaffSalary) Agent(month string, ctx *gin.Context) {
|
||||||
} else {
|
} else {
|
||||||
links := make([]map[string]string, 0)
|
links := make([]map[string]string, 0)
|
||||||
links = append(links, map[string]string{
|
links = append(links, map[string]string{
|
||||||
"url": "/api/staff/salary?type=agent&xls=1",
|
"url": "/staff/salary?type=agent&xls=1",
|
||||||
"name": "下载",
|
"name": "下载",
|
||||||
})
|
})
|
||||||
links = append(links, map[string]string{
|
links = append(links, map[string]string{
|
||||||
"url": "/api/staff/salary?type=bank",
|
"url": "/staff/salary?type=bank",
|
||||||
"name": "银行",
|
"name": "银行",
|
||||||
})
|
})
|
||||||
links = append(links, map[string]string{
|
links = append(links, map[string]string{
|
||||||
"url": "/api/staff/salary?type=summary",
|
"url": "/staff/salary?type=summary",
|
||||||
"name": "汇总",
|
"name": "汇总",
|
||||||
})
|
})
|
||||||
ctx.HTML(http.StatusOK, "salary.html", gin.H{
|
ctx.HTML(http.StatusOK, "salary.html", gin.H{
|
||||||
|
@ -124,15 +124,15 @@ func (s *StaffSalary) Bank(month string, ctx *gin.Context) {
|
||||||
} else {
|
} else {
|
||||||
links := make([]map[string]string, 0)
|
links := make([]map[string]string, 0)
|
||||||
links = append(links, map[string]string{
|
links = append(links, map[string]string{
|
||||||
"url": "/api/staff/salary?type=bank&xls=1",
|
"url": "/staff/salary?type=bank&xls=1",
|
||||||
"name": "下载",
|
"name": "下载",
|
||||||
})
|
})
|
||||||
links = append(links, map[string]string{
|
links = append(links, map[string]string{
|
||||||
"url": "/api/staff/salary?type=summary",
|
"url": "/staff/salary?type=summary",
|
||||||
"name": "汇总",
|
"name": "汇总",
|
||||||
})
|
})
|
||||||
links = append(links, map[string]string{
|
links = append(links, map[string]string{
|
||||||
"url": "/api/staff/salary?type=agent",
|
"url": "/staff/salary?type=agent",
|
||||||
"name": "代理",
|
"name": "代理",
|
||||||
})
|
})
|
||||||
ctx.HTML(http.StatusOK, "salary.html", gin.H{
|
ctx.HTML(http.StatusOK, "salary.html", gin.H{
|
||||||
|
@ -200,11 +200,11 @@ func (s *StaffSalary) Summary(month string, ctx *gin.Context) {
|
||||||
} else {
|
} else {
|
||||||
links := make([]map[string]string, 0)
|
links := make([]map[string]string, 0)
|
||||||
links = append(links, map[string]string{
|
links = append(links, map[string]string{
|
||||||
"url": "/api/staff/salary?type=bank",
|
"url": "/staff/salary?type=bank",
|
||||||
"name": "银行",
|
"name": "银行",
|
||||||
})
|
})
|
||||||
links = append(links, map[string]string{
|
links = append(links, map[string]string{
|
||||||
"url": "/api/staff/salary?type=agent",
|
"url": "/staff/salary?type=agent",
|
||||||
"name": "代理",
|
"name": "代理",
|
||||||
})
|
})
|
||||||
ctx.HTML(http.StatusOK, "salary.html", gin.H{
|
ctx.HTML(http.StatusOK, "salary.html", gin.H{
|
||||||
|
|
Loading…
Reference in New Issue