diff --git a/server/resource/package/web/view/table.vue.tpl b/server/resource/package/web/view/table.vue.tpl index 2ad31d83eb..acf94b9c20 100644 --- a/server/resource/package/web/view/table.vue.tpl +++ b/server/resource/package/web/view/table.vue.tpl @@ -258,6 +258,9 @@ {{- if eq .FieldType "pictures" }} {{- end }} + {{- if eq .FieldType "richtext" }} + + {{- end }} {{- if eq .FieldType "file" }}
@@ -774,7 +777,6 @@ getDataSourceFunc() {{- if .Desc }} {{- if .CheckDataSource }} - {{- else if .DictType}} - {{- else if and (ne .FieldType "picture" ) (ne .FieldType "pictures" ) (ne .FieldType "file" ) (ne .FieldType "array" ) }} {{"{{"}} detailFrom.{{.FieldJson}} {{"}}"}} {{- else }} @@ -803,6 +802,9 @@ getDataSourceFunc() {{- if eq .FieldType "pictures" }} {{- end }} + {{- if eq .FieldType "richtext" }} + + {{- end }} {{- if eq .FieldType "file" }}
@@ -845,6 +847,7 @@ import SelectImage from '@/components/selectImage/selectImage.vue' {{- if .HasRichText }} // 富文本组件 import RichEdit from '@/components/richtext/rich-edit.vue' +import RichView from '@/components/richtext/rich-view.vue' {{- end }} {{- if .HasFile }} diff --git a/server/resource/plugin/web/view/view.vue.template b/server/resource/plugin/web/view/view.vue.template index f4e437ef30..f45fb8e505 100644 --- a/server/resource/plugin/web/view/view.vue.template +++ b/server/resource/plugin/web/view/view.vue.template @@ -258,6 +258,9 @@ {{- if eq .FieldType "pictures" }} {{- end }} + {{- if eq .FieldType "richtext" }} + + {{- end }} {{- if eq .FieldType "file" }}
@@ -774,7 +777,6 @@ getDataSourceFunc() {{- if .Desc }} {{- if .CheckDataSource }} - {{- else if .DictType}} - {{- else if and (ne .FieldType "picture" ) (ne .FieldType "pictures" ) (ne .FieldType "file" ) (ne .FieldType "array" ) }} {{"{{"}} detailFrom.{{.FieldJson}} {{"}}"}} {{- else }} @@ -800,6 +799,9 @@ getDataSourceFunc() {{- if eq .FieldType "array" }} {{- end }} + {{- if eq .FieldType "richtext" }} + + {{- end }} {{- if eq .FieldType "pictures" }} {{- end }} @@ -845,6 +847,7 @@ import SelectImage from '@/components/selectImage/selectImage.vue' {{- if .HasRichText }} // 富文本组件 import RichEdit from '@/components/richtext/rich-edit.vue' +import RichView from '@/components/richtext/rich-view.vue' {{- end }} {{- if .HasFile }}