修复 模版 上传文件 类型生成
This commit is contained in:
parent
1f8699670f
commit
67ac477d24
@ -101,7 +101,26 @@
|
||||
if(@column.WhetherTable == "Y") {
|
||||
if(@column.EffectType == "Upload") {
|
||||
@:<template #row_@(@column.LowerPropertyName)="{ row }">
|
||||
@:<el-image style="width: 60px; height: 60px" :src="fetchFileUrl(row)" alt="无法预览" lazy hide-on-click-modal :preview-src-list="[fetchFileUrl(row)]" :initial-index="0" fit="scale-down" preview-teleported></el-image>
|
||||
@:<el-popover
|
||||
@:v-if="row.@column.LowerPropertyName"
|
||||
@:placement="bottom"
|
||||
@::width="60"
|
||||
@::height="60"
|
||||
@:trigger="hover">
|
||||
@:<template #reference>
|
||||
@:<el-tag>查看文件</el-tag>
|
||||
@:</template>
|
||||
@:<template #default>
|
||||
@:<el-image
|
||||
@::src="row.@column.LowerPropertyName"
|
||||
@::hide-on-click-modal="true"
|
||||
@::preview-src-list="[row.@column.LowerPropertyName]"
|
||||
@::initial-index="0"
|
||||
@:fit="scale-down"
|
||||
@:preview-teleported=""/>
|
||||
@:</template>
|
||||
@:</el-popover>
|
||||
@:<el-tag v-else type="info">暂无文件</el-tag>
|
||||
@:</template>
|
||||
} else if(@column.EffectType == "fk") {
|
||||
@:<template #row_@(@column.LowerPropertyName)="{ row }">
|
||||
@ -188,12 +207,6 @@ import { useVxeTable } from '/@@/hooks/vxeTableOptionsHook';
|
||||
@:import { formatDate } from '/@@/utils/formatTime';
|
||||
}
|
||||
|
||||
@foreach (var column in Model.TableField) {
|
||||
@if(@column.WhetherTable == "Y") {
|
||||
@:import { SysFile } from '/@@/api-services/models';
|
||||
}
|
||||
}
|
||||
|
||||
import { newValue } from '/@@/utils/desensitization';
|
||||
|
||||
@if(@Model.PrintType != "off"){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user