列表页时间字段美化
This commit is contained in:
1 parent
c1b0e9ab8b
commit
a02f01453d
1 file changed
+9
-1
@@ -101,9 +101,17 @@
|
|||||||
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if eq .DictType "" -}}
|
{{- if eq .DictType "" -}}
|
||||||
|
{{- if eq .HtmlType "datetime" -}}
|
||||||
|
<el-table-column label="{{.ColumnComment}}" align="center" prop="{{.JsonField}}"
|
||||||
|
:show-overflow-tooltip="true">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ "{{" }} parseTime(scope.row.{{.JsonField}}) {{"}}"}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
{{- else -}}
|
||||||
<el-table-column label="{{.ColumnComment}}" align="center" prop="{{.JsonField}}"
|
<el-table-column label="{{.ColumnComment}}" align="center" prop="{{.JsonField}}"
|
||||||
:show-overflow-tooltip="true"/>
|
:show-overflow-tooltip="true"/>
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
Reference in new issue
Block a user