|
@@ -181,7 +181,7 @@ export default {
|
|
|
defaultData.render = (h, { row, index, column }) => {
|
|
|
return (
|
|
|
<div style="padding:0 6px;cursor: pointer;">
|
|
|
- {row.imageUrl ? row.imageUrl.split(",").map(url => <img src={url} style="width:80px;height:auto;" />) : null}
|
|
|
+ {row.imageUrl ? row.imageUrl.split(",").map(url => <el-image src={url} preview-src-list={[url]} style="width:80px;height:auto;" />) : null}
|
|
|
</div>
|
|
|
)
|
|
|
}
|
|
@@ -283,7 +283,7 @@ export default {
|
|
|
...this.formData,
|
|
|
imageUrl: this.formData.imageUrl.map(item => item.url).join(","),
|
|
|
};
|
|
|
- saveMain({...pam, type:1}).then(res => {
|
|
|
+ saveMain({ ...pam, type: 1 }).then(res => {
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: this.formDialogTitles[this.formDialogType] + `成功!`,
|