curpicdetail.vue 1.08 KB
<template>
  <div class="cutpicbox">
    <el-dialog
  title="提示"
  :visible.sync="dialogVisible"
  width="50%"
  :before-close="handleClose">
  <div class="imgbox"> 
    <div class="imgitem" >
        <img :src="cutpicurl">
    </div>
  </div>
  <span slot="footer" class="dialog-footer">
    <el-button @click="dialogVisible = false" size="mini">取 消</el-button>
    <el-button type="primary" @click="dialogVisible = false" size="mini">确 定</el-button>
  </span>
</el-dialog>

  </div>
</template>

<script>
export default {
  data(){
    return {
      dialogVisible:false,
      cutpicurl:'',
      zonePlanUrl: window._vionConfig.imagesUrl + "/snapshot/real/",
    }
  },
  methods:{
    init(data){
      this.dialogVisible = true;
      this.cutpicurl = this.zonePlanUrl + data +'.jpg?t=' +  Date.parse(new Date()) / 1000;
    },
    handleClose(){
       this.dialogVisible = false;
    }
  }
}
</script>

<style scoped>
.imgbox{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.imgitem{
  width: 100%;
  height: 100%;
}
.imgitem img{
  height: 100%;
  width: 100%;
}
</style>