odc.xiaohui
2023-03-30 ad37a12a5d995369ee0568525160f5b9e624b7c0
修改报警图片地址
1个文件已修改
21 ■■■■■ 已修改文件
src/views/intelligentPatrol/studyJudge/index.vue 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/intelligentPatrol/studyJudge/index.vue
@@ -48,7 +48,7 @@
                        :key="item.id"
                    >
                        <span>报警图片</span>
                        <img :src="item" />
            <img :src="ill" />
                        <span v-if="index === 0"
                            >报警时间:{{ currentEvent.alarmTime }}</span
                        >
@@ -58,7 +58,7 @@
                        v-for="item in imageList"
                        :key="item.id"
                    >
                        <img :src="item" />
            <img :src="ill" />
                    </div>
                    <el-form
                        ref="currentEvent"
@@ -361,6 +361,7 @@
            }
        };
        return {
      ill:'',
            isShowTable: false,
            timer: null,
            countData: {
@@ -511,6 +512,22 @@
                                .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