mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-07 11:29:58 +08:00
update 图片上传
This commit is contained in:
@@ -106,7 +106,7 @@ minio:
|
||||
|
||||
aliyunoss:
|
||||
# 地域节点
|
||||
endpoint: oss-cn-shanghai.aliyuncs.com
|
||||
endpoint: http://oss-cn-shanghai.aliyuncs.com
|
||||
# AccessKey
|
||||
accessKeyId: LTAI5tBgCN4xuxQF1HV9rf7t
|
||||
# AccessKey 秘钥
|
||||
|
||||
@@ -108,7 +108,7 @@ minio:
|
||||
|
||||
aliyunoss:
|
||||
# 地域节点
|
||||
endpoint: oss-cn-shanghai.aliyuncs.com
|
||||
endpoint: http://oss-cn-shanghai.aliyuncs.com
|
||||
# AccessKey
|
||||
accessKeyId: LTAI5tBgCN4xuxQF1HV9rf7t
|
||||
# AccessKey 秘钥
|
||||
|
||||
@@ -129,6 +129,10 @@ public class PileStationInfoServiceImpl implements IPileStationInfoService {
|
||||
// vo.setOrganizationCode(pileStationInfo.getor);
|
||||
vo.setPublicFlag(pileStationInfo.getPublicFlag());
|
||||
vo.setOpenFlag(pileStationInfo.getOpenFlag());
|
||||
if (StringUtils.isNotBlank(pileStationInfo.getPictures())) {
|
||||
vo.setPictures(pileStationInfo.getPictures());
|
||||
vo.setPictureList(Lists.newArrayList(pileStationInfo.getPictures().split(",")));
|
||||
}
|
||||
}
|
||||
return vo;
|
||||
}
|
||||
|
||||
@@ -142,6 +142,8 @@ public class PileStationVO {
|
||||
*/
|
||||
private String pictures;
|
||||
|
||||
private List<String> pictureList;
|
||||
|
||||
/**
|
||||
* 电费
|
||||
*/
|
||||
|
||||
@@ -87,6 +87,7 @@ export default {
|
||||
handleSuccess(res, file) {
|
||||
this.imageUrl = URL.createObjectURL(file.raw);
|
||||
console.log("图片上传成功 url:", this.imageUrl);
|
||||
console.log("图片上传成功 res:", res);
|
||||
},
|
||||
handleRemove(file, fileList) {
|
||||
console.log(file, fileList);
|
||||
|
||||
Reference in New Issue
Block a user