status.vue
4.67 KB
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!---活动状态--->
<template>
<div class="template-box content_div_main">
<el-form :inline="true" class="search-form" size="small">
<el-form-item label="抓拍地点:">
<el-input type="text" class="bla bra br0" v-model="address" placeholder=""></el-input>
</el-form-item>
<el-form-item label="抓拍相机:">
<el-input type="text" class="bla bra br0" v-model="camera" placeholder=""></el-input>
</el-form-item>
<el-form-item label="人口库:">
<el-select v-model="dbname" class="br0 bra bla">
<el-option value="" label="请选择库类型"></el-option>
<el-option v-for="item in crucialData" :key="item.unid" :value="item.code" :label="item.name"></el-option>
</el-select>
</el-form-item>
<el-form-item label="查询时间:">
<el-date-picker
v-model="value1"
type="datetimerange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item>
<el-button class="search-btn" @click="searchUser" icon="el-icon-search">查询</el-button>
<el-button class="search-btn ml10" @click="addGroupUser()" icon="el-icon-plus">添加</el-button>
</el-form-item>
</el-form>
<el-row class="table_m_type">
<el-table :data="tableData" style="width: 100%" height="720" >
<div slot="empty">
<div class="no-data-box">
<img src="../../assets/img/nodata.png" alt="暂无数据"/>
<div>暂无数据</div>
</div>
</div>
<el-table-column label="序号" type="index" width="120"></el-table-column>
<el-table-column label="姓名" property="name" type="name" width="180"></el-table-column>
<el-table-column label="性别" property="sex" :formatter="setSex" width="180"></el-table-column>
<el-table-column label="出生日期" property="birthday" :formatter="setBirthday"> </el-table-column>
<el-table-column label="身份证号" property="card_id"></el-table-column>
<el-table-column label="籍贯" property="provence" :formatter="setCity">
</el-table-column>
<el-table-column label="操作" width="300px" align="center">
<template slot-scope="scope">
<div class="tab-btn-box">
<span class="table-btn" size="" @click="handleSee(scope.$index, scope.row)">人员轨迹</span>
</div>
</template>
</el-table-column>
</el-table>
</el-row>
<el-row class="block mt10">
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page.sync="currentPage" background
:page-size="limit" layout="total,prev, pager, next, jumper" :total="total"></el-pagination>
</el-row>
<el-row>
<statusdetails ref="statusdetail" :faceunid="faceunid"></statusdetails>
</el-row>
</div>
</template>
<script>
import statusdetails from './statusdetail'
export default {
components:{
statusdetails
},
data() {
return {
address: "",
camera: "",
currentPage: 1,
limit: 20,
total: 0,
offset: 0,
loading: false,
provenceName: "",
cityName: "",
detaildialong: false,
curData: '',
faceunid:'',
dbname:'',
crucialData:[],
cData: '',
tableData: [],
};
},
methods: {
initDbData(){
this.axios.get(this.API.url + "/codes/custom/cates/4DD23AF66E/codes").then((response)=> {
this.crucialData = response.data.list_data;
});
},
getFace(){
var Vthis = this;
this.axios
.get(this.API.faceweb + "/faces/crucial_faces", {
params: {
offset: Vthis.offset,
limit: this.limit,
is_crucial: true,
is_active: true,
sex: Vthis.facesex,
name__like: Vthis.facename,
card_id__like: Vthis.facecardid,
crucial_type: Vthis.dbname,
resident_unids: this.communityunid,
}
}).then( (response) =>{
Vthis.tableData = response.data.list_data;
Vthis.total = response.data.total_num;
});
},
handleSee(data){
this.faceunid = data.face_unid;
this.$refs.statusdetail.init(data)
},
handleSizeChange(val) {
alert(val);
},
handleCurrentChange(val) {
this.offset = (val - 1) * this.limit;
this.getFace();
},
},
created() {
this.getFace()
}
};
</script>
<style lang="stylus" scoped>
.search-box {
color: #333;
background: #fff;
}
</style>