Merge remote-tracking branch 'origin/master'

This commit is contained in:
yxh 2023-08-11 18:01:03 +08:00
commit 74ccac1d02
4 changed files with 38 additions and 16 deletions

View File

@ -31,6 +31,8 @@ type SysJobInfoRes struct {
Remark string `orm:"remark" json:"remark"` // 备注信息
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
CreatedUser *LinkUserRes `orm:"with:id=created_by" json:"createdUser"`
UpdatedUser *LinkUserRes `orm:"with:id=updated_by" json:"updatedUser"`
}
type SysJobListRes struct {

View File

@ -8,5 +8,5 @@
package consts
const (
Version = "3.2.3"
Version = "3.2.4"
)

View File

@ -39,7 +39,7 @@ import (
{{if $hasArr}}
"github.com/gogf/gf/v2/container/garray"
{{end}}
{{if and .table.HasTimeColumn $hasGtime}}
{{if or .table.HasTimeColumn $hasGtime}}
"github.com/gogf/gf/v2/os/gtime"
{{end}}
"github.com/gogf/gf/v2/util/gmeta"

View File

@ -385,6 +385,26 @@ export default defineComponent({
{{end}}
{{else if and (eq $column.HtmlType "radio" "select") (ne $column.DictType "")}}
data.{{$column.HtmlField}} = ''+data.{{$column.HtmlField}}
{{else if eq $column.HtmlType "radio" "select" }}
{{if eq $column.TsType "number"}}
data.{{$column.HtmlField}} = parseInt(data.{{$column.HtmlField}})
{{else if eq $column.TsType "string"}}
data.{{$column.HtmlField}} = ''+data.{{$column.HtmlField}}
{{else}}
data.{{$column.HtmlField}} = data.{{$column.HtmlField}}
{{end}}
{{else if eq $column.HtmlType "treeSelect"}}
{{$isNumber := false}}
{{range $li,$lc := $.table.LinkedTables}}
{{if and (eq $lc.TableName $column.LinkTableName) (ne $lc.OptionsStruct.ColumnAttr.GoType "string")}}
{{$isNumber = true}}
{{end}}
{{end}}
{{if $isNumber}}
data.{{$column.HtmlField}} = parseInt(data.{{$column.HtmlField}})
{{else}}
data.{{$column.HtmlField}} = ''+data.{{$column.HtmlField}}
{{end}}
{{else if eq $column.HtmlType "imagefile"}}
//单图地址赋值
imageUrl{{$column.GoField}}.value = data.{{$column.HtmlField}} ? proxy.getUpFileUrl(data.{{$column.HtmlField}}) : ''