fix:文件上传优化
This commit is contained in:
@@ -48,9 +48,9 @@
|
||||
<template v-if="column.dataIndex === 'code'">
|
||||
<span>{{ record.code }}</span>
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'icon'">
|
||||
<a-image v-if="record.icon && getImageUrl(record.icon)" :width="50" :src="getImageUrl(record.icon)" />
|
||||
<a-spin v-else-if="record.icon" size="small" />
|
||||
<template v-if="column.dataIndex === 'fileId'">
|
||||
<a-image v-if="record.fileId && getImageUrl(record.fileId)" :width="50" :src="getImageUrl(record.fileId)" />
|
||||
<a-spin v-else-if="record.fileId" size="small" />
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'action'">
|
||||
@@ -104,8 +104,8 @@
|
||||
dataIndex: 'editParam'
|
||||
},
|
||||
{
|
||||
title: '图片路径',
|
||||
dataIndex: 'path'
|
||||
title: '图片文件ID',
|
||||
dataIndex: 'fileId'
|
||||
},
|
||||
{
|
||||
title: '所属区域',
|
||||
@@ -191,8 +191,8 @@
|
||||
// 加载所有图片
|
||||
if (res.records && res.records.length > 0) {
|
||||
res.records.forEach((item) => {
|
||||
if (item.icon) {
|
||||
loadImageById(item.icon)
|
||||
if (item.fileId) {
|
||||
loadImageById(item.fileId)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user