作者 yangfu

模板列表修改

... ... @@ -22,6 +22,7 @@ type AuditTemplate struct {
VisibleObject string `orm:"column(visible_object);size(1000);null" description:"可见的对象 部门 指定人 json"`
EnableStatus int8 `orm:"column(enable_status)" description:"是否有效 1:有效 0:无效"`
Example string `orm:"column(example);null" description:"示例"`
Videos string `orm:"column(videos);null" description:"视频"`
CreateAt time.Time `orm:"column(create_at);type(timestamp)" description:"创建时间"`
UpdateAt time.Time `orm:"column(update_at);type(timestamp)" description:"更新时间"`
}
... ...
... ... @@ -232,7 +232,7 @@ func Templates(header *protocol.RequestHeader, request *protocol.TemplatesReques
Doc: item.Doc,
FormList: make([]*protocol.Form, len(forms)),
}
if len(item.Example) > 0 {
if len(item.Example) > 0 || len(item.Videos) > 2 {
template.Link = fmt.Sprintf("%v/#/ability/opportunity?id=%v", beego.AppConfig.String("h5_host"), item.Id)
}
for j := range forms {
... ...