...
|
...
|
@@ -77,6 +77,7 @@ func (c *AuditController) AuditListBefore() { |
|
|
auditPermission serverbac.OptionOpportunity
|
|
|
)
|
|
|
auditPermission = serveaudit.GetPermissionInAuditPage(uid, companyId)
|
|
|
reserveType := serveaudit.GetChanceReserveTypeAll(companyId)
|
|
|
data := map[string]interface{}{
|
|
|
"template": templatelist,
|
|
|
"chance_type": chanceTypeList,
|
...
|
...
|
@@ -85,6 +86,12 @@ func (c *AuditController) AuditListBefore() { |
|
|
"review_status": reviewStatus,
|
|
|
"department": departmentList,
|
|
|
"permission": auditPermission,
|
|
|
"store_type": map[string]string{
|
|
|
"-1": "全部",
|
|
|
"0": "机会池",
|
|
|
"1": "储备池",
|
|
|
},
|
|
|
"reserve_type": reserveType,
|
|
|
}
|
|
|
msg = protocol.NewReturnResponse(data, nil)
|
|
|
return
|
...
|
...
|
@@ -243,7 +250,7 @@ func (c *AuditController) ChanceCheckResultPassOrNo() { |
|
|
return
|
|
|
}
|
|
|
|
|
|
//GetChanceReserveTypeList 获取机会储备池分类类型
|
|
|
//ChanceReserveTypeList 获取机会储备池分类类型
|
|
|
//@router /v1/chance/reserve_type/list
|
|
|
func (c *AuditController) ChanceReserveTypeList() {
|
|
|
var msg *protocol.ResponseMessage
|
...
|
...
|
@@ -282,6 +289,15 @@ func (c *AuditController) EditReserveType() { |
|
|
msg = protocol.BadRequestParam("1")
|
|
|
return
|
|
|
}
|
|
|
nameRune := []rune(param.Name)
|
|
|
if len(nameRune) == 0 {
|
|
|
msg = protocol.BadRequestParam("10133")
|
|
|
return
|
|
|
}
|
|
|
if len(nameRune) > 20 {
|
|
|
msg = protocol.BadRequestParam("10134")
|
|
|
return
|
|
|
}
|
|
|
companyId := c.GetCompanyId()
|
|
|
var err error
|
|
|
if param.Id == 0 {
|
...
|
...
|
@@ -293,7 +309,7 @@ func (c *AuditController) EditReserveType() { |
|
|
return
|
|
|
}
|
|
|
|
|
|
//EditReserveType 编辑机会储备池分类类型
|
|
|
//DeleteReserveType 删除机会储备池分类类型
|
|
|
//@router /v1/chance/reserve_type/delete
|
|
|
func (c *AuditController) DeleteReserveType() {
|
|
|
var msg *protocol.ResponseMessage
|
...
|
...
|
|