From 2412e7151f0e39e31ea18f8ca3e4a94177adf93e Mon Sep 17 00:00:00 2001 From: pixelmaxQM Date: Sun, 15 Dec 2024 13:31:33 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E4=BF=AE=E5=A4=8D=E5=AF=8C=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E7=BB=84=E4=BB=B6=20=E6=9F=A5=E7=9C=8B=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E6=B2=A1=E6=9C=89=E6=AD=A3=E7=A1=AE=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/resource/package/web/view/table.vue.tpl | 11 +++++++---- server/resource/plugin/web/view/view.vue.template | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) 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 }}