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