update 站点基本资料

This commit is contained in:
2023-05-10 08:40:20 +08:00
parent a045fe9315
commit e5fa93ed9f
3 changed files with 17 additions and 3 deletions

View File

@@ -292,6 +292,7 @@ export default {
],
},
fileList: [], // 用于图片回显
dialogVisible: null,
};
},
created() {
@@ -324,9 +325,11 @@ export default {
const res = await getStationInfo(this.stationId);
console.log(res);
this.station = res.data;
var pictures = res.data.pictures.split(',');
for (let i = 0; i < pictures.length; i++) {
this.fileList.push({"url": pictures[i]});
if (res.data.pictures != null) {
var pictures = res.data.pictures.split(',');
for (let i = 0; i < pictures.length; i++) {
this.fileList.push({"url": pictures[i]});
}
}
console.log("queryStationInfo表格数据", this.station);
},