作者 yangfu

模板列表修改

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