Commit 96cb9ac2 by 叶富雄

人像模块

parent c27f1543
......@@ -14,3 +14,9 @@ export const deleteZwbzjgById = params =>
post(`${base.alyIP}/zwbzhc/deleteZwbzjgById`, params);
export const deleteRxcbrwById = params =>
post(`${base.alyIP}/Rxbzrw/deleteRxcbrwById`, params);
export const updateRxbdById = params =>
post(`${base.alyIP}/Rxbzrw/updateRxbdById`, params);
export const saveRxbzrw = params =>
postform(`${base.alyIP}/Rxbzrw/saveRxbzrw`, params);
export const selectJglist = params =>
post(`${base.alyIP}/Rxbzrw/selectJglist`, params);
......@@ -97,6 +97,14 @@ const menuLayouts = [
component: () => import("@/views/dswtzxx/bzxx/rx.vue")
},
{
path: "/bzxxAddRx",
name: "bzxxAddRx",
meta: {
title: '人像比中信息'
},
component: () => import("@/views/dswtzxx/bzxx/addRx.vue")
},
{
path: "/adddna",
name: "adddna",
meta: {
......
<template>
<div >
<form-compontent
:formField="propFormField"
:formLabelAligns="formLabelAlign"
@submit="submit"
:propTitle="title"
@removePhoto="removePhoto"
pageBs="addsqfbzl"
ref="formCompontent"
:base64Transform="true"
:fileBase64="fileBase64"
@onBase64Transform="onBase64Transform"
>
</form-compontent>
</div>
</template>
<script>
import formCompontent from "@c/form.vue";
import { updateHm,selectHmzpList} from "@/api/dswtz/hmxx.js";
import { saveRxbzrw } from "@/api/dswtz/bzxx";
export default {
name: "addryxx",
props:{
info:{}
},
components: {
formCompontent,
},
data() {
return {
loading: true,
fileBase64:{},
title: "添加人像比中",
propFormField: [
{
title: "",
id: 1,
objStr: "",
index: 0,
data: [
{
name: "人像照片:",
id: "file",
type: "photo",
value: "",
placeholder: "请输入",
col: "22",
},
],
},
],
formLabelAlign: {
file:''
},
type: "",
xxzjbh: "",
result: "",
removeFileXxzjbh: [],
};
},
methods: {
onBase64Transform(p){
this.fileBase64 = p
},
removePhoto(item) {
let loading = this.$loading({
lock: true,
text: "正在删除...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
let id= item.id
this.$set(this.formLabelAlign, id, '');
loading.close();
},
submit(params) {
let loading = this.$loading({
lock: true,
text: "正在保存...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
saveRxbzrw(params).then(res=>{
if(res.code){
loading.close()
this.$router.go(-1)
}
})
},
handleRemove(val) {
this.removeFileXxzjbh.push(val.xxzjbh);
},
getshuju() {
let loading = this.$loading({
lock: true,
text: "正在加载...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
var self = this;
let params = new FormData();
params.append("rybh", this.rybh);
selectHmzpList(params).then((res) => {
var result = res.data.rows[0];
if(res.data.rows.length){
this.$set(this.formLabelAlign, 'xm', res.data.rows[0]['xm']);
this.$set(this.formLabelAlign, 'gmsfhm', res.data.rows[0]['gmsfhm']);
for(let h of res.data.rows.values()){
let hmywdm = h.hmywdm;
let tg = "data:image/jpeg;base64,"+h.hmsj
if(hmywdm==='0'){
this.$set(this.formLabelAlign, 'hmsjLeft', tg);
}
else {
this.$set(this.formLabelAlign, 'hmsjRight', tg);
}
}
this.loading =false
}
if(res.data.rows.length){
this.result = result;
self.$set(self.formLabelAlign, "editing", true);
self.$forceUpdate();
}
setTimeout(() => {
loading.close();
}, 500);
});
},
},
created() {
if (this.$route.query.rybh) {
this.title = "添加人像比中";
this.rybh = this.$route.query.rybh;
this.getshuju();
}
},
};
</script>
<style scoped lang="scss">
</style>
......@@ -15,17 +15,41 @@
@add="add"
@toInfor="toInfor"
ref="rightContent"
:transformFormTable="transformFormTable"
>
<template #btnGroup="scope">
<el-button @click="dele(scope.scope)" type="text">删除</el-button>
<el-button @click="rxbd(scope.scope)" type="text">人像比对</el-button>
</template>
</right-content>
<el-drawer
:visible.sync="table"
direction="rtl"
size="80%">
<el-table :data="gridData">
<el-table-column property="asjxgrybh" label="人员编号" ></el-table-column>
<el-table-column property="xm" label="姓名"></el-table-column>
<el-table-column property="bmch" label="别名"></el-table-column>
<el-table-column property="cyzjCyzjmc" label="证件类型"></el-table-column>
<el-table-column property="cyzjZjhm" label="证件号码"></el-table-column>
<el-table-column property="xbdmStr" label="性别"></el-table-column>
<el-table-column property="csrq" label="出生日期"></el-table-column>
<el-table-column property="gjdmStr" label="国籍"></el-table-column>
<el-table-column property="mzdmStr" label="民族"></el-table-column>
<el-table-column property="jgdmStr" label="籍贯"></el-table-column>
<el-table-column property="zzmmdmStr" label="政治面貌"></el-table-column>
<el-table-column property="xldmStr" label="学历"></el-table-column>
</el-table>
</el-drawer>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
import { deleteRxcbrwById } from "@/api/dswtz/bzxx";
import { deleteRxcbrwById,updateRxbdById,selectJglist } from "@/api/dswtz/bzxx";
import {bdzt} from "@/assets/js/transformFormTable.js";
export default {
name: "lbxx",
components: {
......@@ -33,8 +57,11 @@
},
data() {
return {
table: false,
gridData: [],
transformFormTable: {bdzt},
tableOperation:true,
tableOperationWidth:100,
tableOperationWidth:200,
header: "人像比中信息",
pageBs: "dswtzxxlbxx",
cxFormData: {
......@@ -68,14 +95,14 @@
{label: "建立时间", prop: "zpJlsj"},
{label: "图片描述", prop: "xxlyms"},
{label: "登录姓名", prop: "xxdjryXm"},
{label: "比中状态", prop: "bdzt"},
{label: "比中状态", prop: "bdzt",toInfor:true,disabled:true},
],
// 需要转化table的显示
cxUrl: "/Rxbzrw/getRxrwList",
Menu: [
{
id: "bdmbXxzjbh",
label: "足迹比中结果",
label: "人像比中信息",
index: "wfqdzczl",
auth: "M0101",
className: "iconfont iconrizhi",
......@@ -161,7 +188,7 @@
},
add(){
this.$router.push({
path: "bzxxAddzj",
path: "bzxxAddRx",
query: { rybh: this.$route.query.rybh},
});
},
......@@ -199,13 +226,41 @@
});
},
toInfor(scope) {
this.$router.push({
path: "/queryRxxx",
query: {
rybh: scope.rybh,
type: "xdzl",
},
this.table = true
let bdzt = scope.bdzt
let xxzjbh = scope.xxzjbh
if(bdzt ==="比对结果"){
selectJglist({xxzjbh}).then(res=>{
if(res.code ===200){
this.gridData = res.data.rows
}
})
}
},
rxbd(scope){
let self = this
let xxzjbh = scope.row.xxzjbh;
let loading = this.$loading({
lock: true,
text: "正在比对...",
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
updateRxbdById({xxzjbh}).then(res=>{
if(res.code === 200){
setTimeout(function () {
self.$message.success(res.message)
loading.close()
},3e3)
}
else {
setTimeout(function () {
self.$message(res.message)
loading.close()
},3e3)
}
})
},
},
mounted() {},
......@@ -257,6 +312,7 @@
.Content .el-date-editor--daterange.el-input__inner {
width: 100% !important;
}
</style>
<style scoped lang="scss">
@import "@/assets/styles/rightContent.scss";
......
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