| | |
| | | </template> |
| | | <script> |
| | | import { parseTime, FILE_ORIGINAL_URL } from "@/utils/index"; |
| | | import { replace } from "core-js/fn/symbol"; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | urls.forEach((o) => { |
| | | o = o.replace("[", "").replace("]", ""); |
| | | if (o !== '') { |
| | | o = o.replace("http://111.1.140.92:28081/sccg/API/img?fileUrl=","") |
| | | item.url.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${o}`); |
| | | } |
| | | }); |
| | |
| | | const { info } = this; |
| | | this.baseCase = info.baseCase; |
| | | |
| | | this.baseCase.illegalBuilding.positive = this.baseCase.illegalBuilding.positive.replace("http://111.1.140.92:28081/sccg/API/img?fileUrl=","") |
| | | this.baseCase.illegalBuilding.negative = this.baseCase.illegalBuilding.negative.replace("http://111.1.140.92:28081/sccg/API/img?fileUrl=","") |
| | | |
| | | this.baseCase.illegalBuilding.positive = `${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${this.baseCase.illegalBuilding.positive}` |
| | | this.baseCase.illegalBuilding.negative = `${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${this.baseCase.illegalBuilding.negative}` |
| | | |
| | |
| | | if (invesList.pic) { |
| | | invesList.pic.forEach((o) => { |
| | | o = o.replace("[", "").replace("]", ""); |
| | | o = o.replace("http://111.1.140.92:28081/sccg/API/img?fileUrl=","") |
| | | |
| | | this.investigation.pic.push( |
| | | `${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${o}` |
| | | ); |
| | |
| | | this.zoom = 18; |
| | | this.mark = { title: this.currentEvent.address }; |
| | | if (this.currentEvent?.picData) { |
| | | |
| | | item = item.replace("http://111.1.140.92:28081/sccg/API/img?fileUrl=","") |
| | | this.imageList = this.currentEvent.picData |
| | | .split(",") |
| | | .map((item) => `${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${item}`); |
| | |
| | | setPicUrl({ url }) { |
| | | const baseUrl = ''; |
| | | if (this.arrive.situationPic.length < 4) { |
| | | |
| | | url = url.replace("http://111.1.140.92:28081/sccg/API/img?fileUrl=","") |
| | | this.arrive.situationPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`) |
| | | } |
| | | }, |
| | |
| | | writPic({ url }) { |
| | | const baseUrl = ''; |
| | | if (this.book.originalPic.length < 4) { |
| | | |
| | | url = url.replace("http://111.1.140.92:28081/sccg/API/img?fileUrl=","") |
| | | this.book.writPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`) |
| | | } |
| | | }, |
| | |
| | | otherPic({ url }) { |
| | | const baseUrl = ''; |
| | | if (this.book.otherPic.length < 4) { |
| | | |
| | | url = url.replace("http://111.1.140.92:28081/sccg/API/img?fileUrl=","") |
| | | this.book.otherPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`) |
| | | } |
| | | }, |
| | |
| | | rectifiedPic({ url }) { |
| | | const baseUrl = ''; |
| | | if (this.book.otherPic.length < 4) { |
| | | |
| | | url = url.replace("http://111.1.140.92:28081/sccg/API/img?fileUrl=","") |
| | | this.book.rectifiedPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`) |
| | | } |
| | | }, |
| | |
| | | originalPic({ url }) { |
| | | const baseUrl = ''; |
| | | if (this.book.otherPic.length < 4) { |
| | | |
| | | url = url.replace("http://111.1.140.92:28081/sccg/API/img?fileUrl=","") |
| | | this.book.originalPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`) |
| | | } |
| | | }, |
| | |
| | | setPicUrl({ url }) { |
| | | const baseUrl = ''; |
| | | if (this.evidence.pic.length < 4) { |
| | | |
| | | url = url.replace("http://111.1.140.92:28081/sccg/API/img?fileUrl=","") |
| | | this.evidence.pic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`) |
| | | } |
| | | }, |
| | |
| | | const baseUrl = ''; |
| | | |
| | | if (this.arrive.situationPic.length < 4) { |
| | | |
| | | res.data.url1 = res.data.url1.replace("http://111.1.140.92:28081/sccg/API/img?fileUrl=","") |
| | | this.arrive.situationPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${ res.data.url1}`) |
| | | } |
| | | }, |
| | |
| | | } |
| | | }, |
| | | setPictureUrl({ url }) { |
| | | |
| | | url = url.replace("http://111.1.140.92:28081/sccg/API/img?fileUrl=","") |
| | | this.imageList.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`); |
| | | // this.imagedata.url = this.imageList.join(","); |
| | | }, |
| | |
| | | }, |
| | | |
| | | setMediaUrl({ url }) { |
| | | |
| | | url = url.replace("http://111.1.140.92:28081/sccg/API/img?fileUrl=","") |
| | | this.mediaList.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`); |
| | | this.mediaList.url = this.mediaList.join(","); |
| | | }, |
| | |
| | | let _imageList = []; |
| | | let imageData = this.imagedata.url.split(","); |
| | | imageData.forEach((url) => { |
| | | |
| | | url = url.replace("http://111.1.140.92:28081/sccg/API/img?fileUrl=","") |
| | | console.log( |
| | | "图片:" + `${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}` |
| | | ); |
| | |
| | | }); |
| | | }, |
| | | setPictureUrl({ url }) { |
| | | |
| | | url = url.replace("http://111.1.140.92:28081/sccg/API/img?fileUrl=","") |
| | | this.imageList.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`); |
| | | this.imagedata.url = this.imageList.join(","); |
| | | }, |