diff --git a/jsowell-ui/src/views/pile/station/components/SiteInfo.vue b/jsowell-ui/src/views/pile/station/components/SiteInfo.vue index 0f075a289..532e162a4 100644 --- a/jsowell-ui/src/views/pile/station/components/SiteInfo.vue +++ b/jsowell-ui/src/views/pile/station/components/SiteInfo.vue @@ -450,6 +450,7 @@ export default { }, // 渲染表格数据 async queryStationInfo() { + this.fileList=[]; const res = await getStationInfo(this.stationId); console.log(res); this.station = res.data; @@ -498,8 +499,10 @@ export default { this.station.stationLng = String(data.pos[0]); this.station.stationLat = String(data.pos[1]); // console.log("修改后this.station", this.station); - console.log(data.address,'data.address') - this.station.address = data.address.includes('区') ? data.address.replace(/区/, ' ').split(' ')[1] : data.address + console.log(data.address, "data.address"); + this.station.address = data.address.includes("区") + ? data.address.replace(/区/, " ").split(" ")[1] + : data.address; // 优化之后 // let newAddress2 = this.detailedAddress // .replace(/(?<=[省市区])/g, "$&,")