|
|
@@ -198,7 +198,7 @@ |
|
|
|
#if($column.htmlType == "imageUpload") |
|
|
|
<div v-if="!!form.${field}"> |
|
|
|
<el-tooltip effect="light" :content="item" placement="bottom" v-for="(item, index) in form.${field}.split(',')" :key="index"> |
|
|
|
<el-image style="height: 64px; width: 64px; margin: 2px; display: inline-block;" fit="scale-down" :src="this.baseRoutingUrll + item" :preview-src-list="form.${field}.split(',').map((x) => this.baseRoutingUrll + x)"/> |
|
|
|
<el-image style="height: 64px; width: 64px; margin: 2px; display: inline-block;" fit="scale-down" :src="baseRoutingUrll + item" :preview-src-list="form.${field}.split(',').map((x) => baseRoutingUrll + x)"/> |
|
|
|
</el-tooltip> |
|
|
|
</div> |
|
|
|
#elseif($column.htmlType == "editor") |
|
|
@@ -206,7 +206,7 @@ |
|
|
|
#elseif($column.htmlType == "fileUpload") |
|
|
|
<div v-if="!!form.${field}"> |
|
|
|
<el-tooltip effect="light" :content="item.substr(item.lastIndexOf('/') + 1)" placement="bottom" v-for="(item, index) in form.${field}.split(',')" :key="index"> |
|
|
|
<a :href="this.baseRoutingUrll + item" target="_blank" style="height: 48px; width: 48px; margin: 2px; display: inline-block; text-align: center;"><img :src="getFileIcon(item)" style="height: 100%;"/></a> |
|
|
|
<a :href="baseRoutingUrll + item" target="_blank" style="height: 48px; width: 48px; margin: 2px; display: inline-block; text-align: center;"><img :src="getFileIcon(item)" style="height: 100%;"/></a> |
|
|
|
</el-tooltip> |
|
|
|
</div> |
|
|
|
#else |
|
|
@@ -226,7 +226,7 @@ |
|
|
|
|
|
|
|
<!-- 添加或修改${functionName}对话框 --> |
|
|
|
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body> |
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> |
|
|
|
<el-form ref="form" :model="form" :rules="rules" :inline="true" label-width="100px"> |
|
|
|
#foreach($column in $columns) |
|
|
|
#set($field=$column.javaField) |
|
|
|
#if($column.insert && !$column.pk) |
|
|
|