马宇豪
2025-03-07 db905ecd14f63dba9337b4f4715584ef2d7e8c7e
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<template>
  <el-dialog
    :visible.sync="dialogVisible"
    :modal-append-to-body="false"
    :close-on-click-modal="false"
    width="50%"
    :before-close="handleClose"
  >
    <el-row>
      <el-col :span="24">
        <el-form ref="dataForm" :model="dataForm"  :rules="rules" label-position="left" label-width="80px" style="padding-right: 50px" element-loading-text="保存中...">
          <el-row >
            <el-col :span="12">
              <el-form-item label="姓名:" >
                {{dataForm.idCard}}
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="身份证号:" prop="idCard" class="ml10">
                {{dataForm.idCard}}
              </el-form-item>
            </el-col>
          </el-row>
          <el-row >
            <el-col :span="12">
              <el-form-item label="性别:" prop="idCard">
                {{dataForm.idCard}}
              </el-form-item>
            </el-col>
            <el-col :span="12">
              <el-form-item label="考试科目:" prop="idCard" class="ml10">
                {{dataForm.idCard}}
              </el-form-item>
            </el-col>
          </el-row>
          <el-form-item label="人脸确定时间:" prop="iCCard" label-width="120px">
            {{dataForm.idCard}}
          </el-form-item>
        </el-form>
        <span class="title">视频抓拍:</span>
        <div class="pics">
          <div v-for="(item, index) in images" :key="index">
            <img :src="item.url" />
          </div>
        </div>
        <span class="title">异常行为分析抓拍:</span>
        <div class="pics">
          <div v-for="(item, index) in images" :key="index">
            <img :src="item.url" />
          </div>
        </div>
      </el-col>
    </el-row>
 
    <span slot="footer" class="dialog-footer">
      <el-button @click="handleClose">取 消</el-button>
      <el-button type="primary" @click="onSubmit">确 定</el-button>
    </span>
  </el-dialog>
</template>
 
<script >
export default {
  name: 'addUser',
  components: {
  },
  data() {
    return {
      dialogVisible: false,
      dialogStatus: '',
      rules: {
        name: [{ required: true, message: '身份证号', trigger: 'blur' }],
      },
      dataForm: {
      },
      images: [
      ]
    }
  },
  created() {
 
  },
  methods: {
    openDialog (type, data) {
      this.resetDataForm();
      this.dialogVisible = true;
      this.dialogStatus = type;
      this.$nextTick(() => {
        this.$refs['dataForm'].clearValidate()
      })
    },
    handleClose() {
      this.dialogVisible = false;
      this.$emit("getList");
    },
    onSubmit() {
      this.$emit("getList");
      this.dialogVisible = false;
    },
    resetDataForm() {
      this.dataForm = {
      }
    },
  }
}
 
</script>
<style scoped>
.title{
  font-size: 15px;
  font-weight: 600;
}
.pics{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 10px;
}
img{
  width: 200px;
  height: 200px;
}
</style>