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:
@@ -71,6 +71,8 @@ public class PileStationInfoServiceImpl implements IPileStationInfoService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private RedisCache redisCache;
|
private RedisCache redisCache;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询充电站信息
|
* 查询充电站信息
|
||||||
*
|
*
|
||||||
@@ -134,6 +136,7 @@ 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());
|
||||||
|
vo.setDeptId(pileStationInfo.getDeptId());
|
||||||
if (StringUtils.isNotBlank(pileStationInfo.getPictures())) {
|
if (StringUtils.isNotBlank(pileStationInfo.getPictures())) {
|
||||||
vo.setPictures(pileStationInfo.getPictures());
|
vo.setPictures(pileStationInfo.getPictures());
|
||||||
vo.setPictureList(Lists.newArrayList(pileStationInfo.getPictures().split(",")));
|
vo.setPictureList(Lists.newArrayList(pileStationInfo.getPictures().split(",")));
|
||||||
@@ -255,6 +258,9 @@ public class PileStationInfoServiceImpl implements IPileStationInfoService {
|
|||||||
redisCache.deleteObject(redisKey);
|
redisCache.deleteObject(redisKey);
|
||||||
pileStationInfo.setUpdateBy(SecurityUtils.getUsername());
|
pileStationInfo.setUpdateBy(SecurityUtils.getUsername());
|
||||||
pileStationInfo.setUpdateTime(DateUtils.getNowDate());
|
pileStationInfo.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
// 同步组织中的名称,联系人,电话
|
||||||
|
// sysDeptService.updateDept()
|
||||||
|
|
||||||
return pileStationInfoMapper.updatePileStationInfo(pileStationInfo);
|
return pileStationInfoMapper.updatePileStationInfo(pileStationInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,11 @@ public class PileStationVO {
|
|||||||
*/
|
*/
|
||||||
private String stationName;
|
private String stationName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 组织id
|
||||||
|
*/
|
||||||
|
private String deptId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 省市辖区编码
|
* 省市辖区编码
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -292,6 +292,7 @@ export default {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
fileList: [], // 用于图片回显
|
fileList: [], // 用于图片回显
|
||||||
|
dialogVisible: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -324,9 +325,11 @@ export default {
|
|||||||
const res = await getStationInfo(this.stationId);
|
const res = await getStationInfo(this.stationId);
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.station = res.data;
|
this.station = res.data;
|
||||||
var pictures = res.data.pictures.split(',');
|
if (res.data.pictures != null) {
|
||||||
for (let i = 0; i < pictures.length; i++) {
|
var pictures = res.data.pictures.split(',');
|
||||||
this.fileList.push({"url": pictures[i]});
|
for (let i = 0; i < pictures.length; i++) {
|
||||||
|
this.fileList.push({"url": pictures[i]});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
console.log("queryStationInfo表格数据", this.station);
|
console.log("queryStationInfo表格数据", this.station);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user