Commit 4d48e371 by zhangzhijie

海南标注-人像查询与人像信息分为两个接口返回数据

parent f5f08f57
...@@ -2,7 +2,8 @@ import { ...@@ -2,7 +2,8 @@ import {
get, get,
post, post,
postform, postform,
postJson postJson,
axios
} from "@/utils/http.js"; } from "@/utils/http.js";
const getAsjxxDetail = params => const getAsjxxDetail = params =>
...@@ -46,6 +47,8 @@ const deleteBsh = params => ...@@ -46,6 +47,8 @@ const deleteBsh = params =>
const updateBzStatus = params => const updateBzStatus = params =>
post(`/api/newAsjbz/CheckBackQuery`, params); post(`/api/newAsjbz/CheckBackQuery`, params);
const getPeopleFaceImgByUserIdCard = params =>
post(`/api/newAsjbz/getPeopleFaceImgByUserIdCard`, params);
export { export {
getAsjxxDetail, getAsjxxDetail,
...@@ -61,5 +64,6 @@ export { ...@@ -61,5 +64,6 @@ export {
getRybhList, getRybhList,
getBarxxList, getBarxxList,
deleteBsh, deleteBsh,
updateBzStatus updateBzStatus,
getPeopleFaceImgByUserIdCard
} }
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
<td width="80">勘验人:</td> <td width="80">勘验人:</td>
<td width="300">{{ kyjcry }}</td> <td width="300">{{ kyjcry }}</td>
<td width="80">经纬度:</td> <td width="80">经纬度:</td>
<td width="300">{{ jd }}{{ wd }}</td> <td width="300" v-if="jd != null || wd != null">{{ jd }},{{ wd }}</td>
</tr> </tr>
<tr> <tr>
<td valign="top" width="80">勘验情况:</td> <td valign="top" width="80">勘验情况:</td>
...@@ -166,7 +166,8 @@ ...@@ -166,7 +166,8 @@
</div> </div>
<div class="conTitleRight" @click="topAmplifier"></div> <div class="conTitleRight" @click="topAmplifier"></div>
</div> </div>
<div class="conContioner" :class="topSamllCard" v-show="ryqh"> <div class="conContioner" :class="topSamllCard" v-show="ryqh" v-loading="ryLoading"
element-loading-text="加载中">
<table v-for="(data, index) in xyrList1" :key="index"> <table v-for="(data, index) in xyrList1" :key="index">
<tr> <tr>
<td <td
...@@ -182,6 +183,7 @@ ...@@ -182,6 +183,7 @@
:size="100" :size="100"
fit="fill" fit="fill"
:src="'data:image/png;base64,' + data.zp" :src="'data:image/png;base64,' + data.zp"
:key="data.zp"
></el-avatar> ></el-avatar>
</div> </div>
</div> </div>
...@@ -226,6 +228,7 @@ ...@@ -226,6 +228,7 @@
:size="100" :size="100"
fit="fill" fit="fill"
:src="'data:image/png;base64,' + data.zp" :src="'data:image/png;base64,' + data.zp"
:key="data.zp"
></el-avatar> ></el-avatar>
</div> </div>
</div> </div>
...@@ -275,6 +278,7 @@ ...@@ -275,6 +278,7 @@
:size="100" :size="100"
fit="fill" fit="fill"
:src="'data:image/png;base64,' + data.zp" :src="'data:image/png;base64,' + data.zp"
:key="data.zp"
></el-avatar> ></el-avatar>
</div> </div>
</div> </div>
...@@ -715,6 +719,7 @@ import { ...@@ -715,6 +719,7 @@ import {
getBarxxList, getBarxxList,
deleteBsh, deleteBsh,
updateBzStatus, updateBzStatus,
getPeopleFaceImgByUserIdCard
} from "@/api/ajbzDetail.js"; } from "@/api/ajbzDetail.js";
import axios from "@/utils/http.js"; import axios from "@/utils/http.js";
import wbz from "@/assets/img/wbz.png"; import wbz from "@/assets/img/wbz.png";
...@@ -738,6 +743,7 @@ export default { ...@@ -738,6 +743,7 @@ export default {
return { return {
ybz: ybz, ybz: ybz,
wbz: wbz, wbz: wbz,
ryLoading: false,
ajbzHtParam: { ajbzHtParam: {
asjbh: "", asjbh: "",
htms: "", htms: "",
...@@ -1657,16 +1663,17 @@ export default { ...@@ -1657,16 +1663,17 @@ export default {
this.ajxx = false; this.ajxx = false;
this.xcxx = false; this.xcxx = false;
this.ry = true; this.ry = true;
getZbfzxyrxxList({ getZbfzxyrxxList({
asjbh: this.asjbh, asjbh: this.asjbh,
}).then((res) => { }).then((res) => {
this.xyrList1 = res.data.rows; this.xyrList1 = res.data.rows;
this.getPeopleFaceImg(this.xyrList1);
}); });
} }
}, },
hanldRytab(val) { hanldRytab(val) {
this.selectIndex2 = val; this.selectIndex2 = val;
this.ryLoading = true;
if (val == 1) { if (val == 1) {
this.ryqh = true; this.ryqh = true;
this.shrqh = false; this.shrqh = false;
...@@ -1675,6 +1682,8 @@ export default { ...@@ -1675,6 +1682,8 @@ export default {
asjbh: this.asjbh, asjbh: this.asjbh,
}).then((res) => { }).then((res) => {
this.xyrList = res.data.rows; this.xyrList = res.data.rows;
this.ryLoading = false;
this.getPeopleFaceImg(this.xyrList);
}); });
} else if (val == 2) { } else if (val == 2) {
this.ryqh = false; this.ryqh = false;
...@@ -1684,6 +1693,8 @@ export default { ...@@ -1684,6 +1693,8 @@ export default {
asjbh: this.asjbh, asjbh: this.asjbh,
}).then((res) => { }).then((res) => {
this.shrListqh = res.data.rows; this.shrListqh = res.data.rows;
this.ryLoading = false;
this.getPeopleFaceImg(this.shrListqh);
}); });
} else if (val == 3) { } else if (val == 3) {
this.ryqh = false; this.ryqh = false;
...@@ -1693,9 +1704,40 @@ export default { ...@@ -1693,9 +1704,40 @@ export default {
asjbh: this.asjbh, asjbh: this.asjbh,
}).then((res) => { }).then((res) => {
this.barList = res.data.rows; this.barList = res.data.rows;
this.ryLoading = false;
this.getPeopleFaceImg(this.barList);
}); });
} }
}, },
//获取人脸照片
getPeopleFaceImg(userList) {
if (userList != null && userList.length > 0) {
let userInfoList = '';
for (let i = 0; i < userList.length; i++) {
if (userList[i].cyzjZjhm != null && userList[i].cyzjZjhm != '') {
userInfoList += userList[i].cyzjZjhm;
userInfoList += ',';
}
}
if (userInfoList.length > 0) {
userInfoList = userInfoList.substring(0, userInfoList.length - 1);
getPeopleFaceImgByUserIdCard({userInfoList: userInfoList}).then(res => {
if (res.code == 200) {
let userFaceImg = res.data.rows;
for (let j = 0; j < userFaceImg.length; j++) {
let userFaceInfo = userFaceImg[j];
for (let i = 0; i < userList.length; i++) {
let userInfo = userList[i];
if(userFaceInfo.sfzh == userInfo.cyzjZjhm){
userInfo.zp = userFaceInfo.peoplePhoto;
}
}
}
}
})
}
}
},
hanldTableBar() { hanldTableBar() {
//this.zaData = []; //this.zaData = [];
this.laData = []; this.laData = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment