| | |
| | | :key="item.id" |
| | | > |
| | | <span>报警图片</span> |
| | | <img :src="item" /> |
| | | <img :src="ill" /> |
| | | <span v-if="index === 0" |
| | | >报警时间:{{ currentEvent.alarmTime }}</span |
| | | > |
| | |
| | | v-for="item in imageList" |
| | | :key="item.id" |
| | | > |
| | | <img :src="item" /> |
| | | <img :src="ill" /> |
| | | </div> |
| | | <el-form |
| | | ref="currentEvent" |
| | |
| | | } |
| | | }; |
| | | return { |
| | | ill:'', |
| | | isShowTable: false, |
| | | timer: null, |
| | | countData: { |
| | |
| | | .split(",") |
| | | .map((item) => `${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${item}`); |
| | | } |
| | | if (this.currentEvent.picData){ |
| | | this.$axios({ |
| | | url:'sccg/API/img?fileUrl='+this.currentEvent.picData, |
| | | method:"get", |
| | | responseType: 'blob' |
| | | }).then(res=>{ |
| | | |
| | | const blob = new Blob([res]) |
| | | var reader = new window.FileReader(); |
| | | reader.readAsDataURL(blob); |
| | | reader.onloadend = function () { |
| | | this.ill= reader.result |
| | | } |
| | | |
| | | }) |
| | | } |
| | | if ( |
| | | this.currentEvent?.alarmTime || |
| | | this.currentEvent?.currentAlarmTime |