提交 c2db7691 编写于 作者: JEECG低代码平台's avatar JEECG低代码平台

JeecgBoot 2.4 微服务正式版本发布,基于SpringBoot的低代码平台

上级 543a49fc
...@@ -15,10 +15,12 @@ ...@@ -15,10 +15,12 @@
@change="handleChange" @change="handleChange"
@preview="handlePreview" @preview="handlePreview"
:class="!isMultiple?'imgupload':''"> :class="!isMultiple?'imgupload':''">
<img v-if="!isMultiple && picUrl" :src="getAvatarView()" style="height:104px;max-width:300px"/> <div style="width:104px;height:104px">
<div v-else class="iconp"> <img v-if="!isMultiple && picUrl" :src="getAvatarView()" style="width:100%;height:100%"/>
<a-icon :type="uploadLoading ? 'loading' : 'plus'" /> <div v-else class="iconp">
<div class="ant-upload-text">{{ text }}</div> <a-icon :type="uploadLoading ? 'loading' : 'plus'" />
<div class="ant-upload-text">{{ text }}</div>
</div>
</div> </div>
<a-modal :visible="previewVisible" :footer="null" @cancel="handleCancel()"> <a-modal :visible="previewVisible" :footer="null" @cancel="handleCancel()">
<img alt="example" style="width: 100%" :src="previewImage"/> <img alt="example" style="width: 100%" :src="previewImage"/>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
:dataSource="dataSource" :dataSource="dataSource"
> >
<a-list-item slot="renderItem" slot-scope="item, index"> <a-list-item slot="renderItem" slot-scope="item, index">
<template v-if="item === null"> <template v-if="index === 0">
<a-button class="new-btn" type="dashed"> <a-button class="new-btn" type="dashed">
<a-icon type="plus"/> <a-icon type="plus"/>
新增产品 新增产品
...@@ -32,8 +32,7 @@ ...@@ -32,8 +32,7 @@
<script> <script>
const dataSource = [] const dataSource = []
dataSource.push(null) for (let i = 0; i < 12; i++) {
for (let i = 0; i < 11; i++) {
dataSource.push({ dataSource.push({
title: 'Alipay', title: 'Alipay',
avatar: 'https://gw.alipayobjects.com/zos/rmsportal/WdGqmHpayyMjiEhcKoVE.png', avatar: 'https://gw.alipayobjects.com/zos/rmsportal/WdGqmHpayyMjiEhcKoVE.png',
...@@ -95,7 +94,7 @@ ...@@ -95,7 +94,7 @@
background-color: #fff; background-color: #fff;
border-radius: 2px; border-radius: 2px;
width: 100%; width: 100%;
height: 188px; height: 186px;
} }
.meta-content { .meta-content {
......
...@@ -174,9 +174,6 @@ ...@@ -174,9 +174,6 @@
showInput(item, index) { showInput(item, index) {
this.inputVisible = true this.inputVisible = true
this.currentNameIndex = index this.currentNameIndex = index
this.$nextTick(function() {
this.$refs.input.focus()
})
}, },
//路由选项输入框失去焦点事件 //路由选项输入框失去焦点事件
handleInputChange(e) { handleInputChange(e) {
......
...@@ -42,6 +42,9 @@ public class SysUploadController { ...@@ -42,6 +42,9 @@ public class SysUploadController {
String orgName = file.getOriginalFilename();// 获取文件名 String orgName = file.getOriginalFilename();// 获取文件名
orgName = CommonUtils.getFileName(orgName); orgName = CommonUtils.getFileName(orgName);
String file_url = MinioUtil.upload(file,bizPath); String file_url = MinioUtil.upload(file,bizPath);
if(oConvertUtils.isEmpty(file_url)){
return Result.error("上传失败,请检查配置信息是否正确!");
}
//保存文件信息 //保存文件信息
OSSFile minioFile = new OSSFile(); OSSFile minioFile = new OSSFile();
minioFile.setFileName(orgName); minioFile.setFileName(orgName);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册