liuxiaolong
2019-05-06 770c069996e1d2979c1170c1639c18b02d07e72f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<template>
  <b-modal ref="checkImageModalRef" centered hide-footer @hide="hiddenFn" title="抓拍图片" size="md">
    <!-- <h5 class="font-weight-bolder pb-2">抓拍图片</h5> -->
    <div class="row">
      <div class="col-4 border-right flex-center">
        <div class="text-center">
          <httpImg :src="modalData.photo" height="100px" alt="底库图片"/>
          <h5 class="text-primary pt-3">{{modalData.pname?modalData.pname:''}}</h5>
          <p>{{modalData.onlinetime}}</p>
          <p>{{modalData.indevicename}}</p>
        </div>
      </div>
      <!-- 统计数据 -->
      <div class="col-8">
        <div class="text-center">
          <httpImgCopy :src="modalData.Snapshotpath" width="100%" size="332px" alt="抓拍图片"/>
        </div>
      </div>
    </div>
    <!-- <div class="pt-4 text-center">
      <b-btn class="pr30 pl30" variant="secondary" @click="hideModal">关闭</b-btn>
    </div>-->
  </b-modal>
</template>
 
<script>
import httpImgCopy from '@/components/common/httpImgCopy'
export default {
  name: 'CheckImageModal',
  components: {
    httpImgCopy
  },
  // props: {
  //   modalData: {
  //     default: null,
  //     type: Object
  //   }
  // },
  data() {
    return {
      modalData: {},
      yearValue: this.$moment().format('YYYY-MM'),
      calendarValue: this.$moment().format('DD'),
 
      dataLsit: [],
      recordInfoModal: false,
      tableList: [],
      repairModal: false,
      repairForm: {
        inTime: '',
        inDeviceName: '',
        outTime: '',
        outDeviceName: ''
      },
      rules: {
        inTime: [
          { required: true, message: '请选择末次时间', trigger: 'blur' }
        ],
        inDeviceName: [
          { required: true, message: '请选择首次位置', trigger: 'blur' }
        ],
        outTime: [
          { required: true, message: '请选择末次时间', trigger: 'blur' }
        ],
        outDeviceName: [
          { required: true, message: '请选择末次位置', trigger: 'blur' }
        ]
      }
    }
  },
  computed: {},
  methods: {
    showModal(data) {
      this.modalData = data
      console.log(data, '打开弹窗--data')
      this.$refs.checkImageModalRef.show()
    },
    hideModal() {
      this.$refs.checkImageModalRef.hide()
    },
    hiddenFn() {
      console.log('关闭主要弹窗')
    }
  }
}
</script>
<style>
@media (min-width: 992px) {
  .modal-lg {
    max-width: 100rem;
  }
}
.attendance-count-num {
  border-radius: 5px;
  margin-top: 10px;
  font-size: 30px;
  line-height: 50px;
  height: 60px;
}
.border-radius-25 {
  border-radius: 25px;
}
</style>