Commit 6049f4c0 by 叶富雄

调整生物特征比中模块

parent 43e8ffc9
......@@ -38,3 +38,9 @@ export const updateZwbdById = params =>
post(`${base.alyIP}/Zwbzrw/updateZwbdById`, params);
export const selectRyJglist = params =>
post(`${base.alyIP}/Zwbzrw/selectRyJglist`, params);
export const ZjccbzrwSaveRxbzrw = params =>
postform(`${base.alyIP}/Zjccbzrw/saveRxbzrw`, params);
export const ZjccbzrwDeleteZjcbrwById = params =>
post(`${base.alyIP}/Zjccbzrw/deleteZjcbrwById`, params);
export const ZjccbzrwUpdateZjbdById = params =>
post(`${base.alyIP}/Zjccbzrw/updateZjbdById`, params);
......@@ -136,6 +136,38 @@ const menuLayouts = [
},
component: () => import("@/views/dswtzxx/bdjg/addZw.vue")
},
{
path: "/bdjgAddZw",
name: "bdjgAddZw",
meta: {
title: '指纹比中信息'
},
component: () => import("@/views/dswtzxx/bdjg/zwAdd.vue")
},
{
path: "/bdjgZj",
name: "bdjgZj",
meta: {
title: '足迹比中信息'
},
component: () => import("@/views/dswtzxx/bdjg/zj.vue")
},
{
path: "/bdjgZjAdd",
name: "bdjgZjAdd",
meta: {
title: '足迹比中信息'
},
component: () => import("@/views/dswtzxx/bdjg/addZj.vue")
},
{
path: "/bdjgAddZj",
name: "bdjgAddZj",
meta: {
title: '足迹比中信息'
},
component: () => import("@/views/dswtzxx/bdjg/zjAdd.vue")
},
];
export default {
......
<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 { selectHmzpList} from "@/api/dswtz/hmxx.js";
import { ZjccbzrwSaveRxbzrw } 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)",
});
ZjccbzrwSaveRxbzrw(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>
<template>
<div class="Content">
<right-content
:tableOperation="tableOperation"
:tableColumnDefinition="tableColumnDefinition"
:tableOperationWidth="tableOperationWidth"
:pageBs="pageBs"
pageASs="bzxxRx"
:header="header"
:cxFormData="cxFormData"
:cxQueryField="cxQueryField"
:cxDefaultFormThead="cxDefaultFormThead"
:cxUrl="cxUrl"
@add="add"
ref="rightContent"
:transformFormTable="transformFormTable"
>
<template #btnGroup="scope">
<el-button @click="dele(scope.scope)" type="text">删除</el-button>
<el-button @click="zwbd(scope.scope)" type="text">指纹比对</el-button>
<el-button v-if="scope.scope.row.bdzt=='比对结果'" @click="bjjg(scope.scope)" type="text">比对结果</el-button>
</template>
</right-content>
<el-drawer
:with-header="false"
:visible.sync="table"
direction="rtl"
size="90%">
<right-content
:tableOperation="tableOperation"
:tableOperationWidth="tableOperationWidth"
:pageBs="pageBs"
:header="header"
:cxFormData="cxFormData1"
:cxDefaultFormThead="cxDefaultFormThead1"
cxUrl="/Zjccbzrw/selectRyJglist"
@add="add1"
ref="rightContent1"
>
<template #btnGroup="scope">
<el-button @click="dele1(scope.scope)" type="text">删除</el-button>
<el-button @click="edit1(scope.scope)" type="text">修改</el-button>
</template>
</right-content>
</el-drawer>
</div>
</template>
<script>
import rightContent from "@c/ptCxForm_components.vue";
import {leftMenus} from "@p/dswtzxx/index.js";
import { ZjccbzrwUpdateZjbdById,deleteZwbzjgById,ZjccbzrwDeleteZjcbrwById } from "@/api/dswtz/bzxx";
import {bdzt} from "@/assets/js/transformFormTable.js";
export default {
name: "lbxx",
components: {
rightContent,
},
data() {
return {
tableColumnDefinition:[
{label:'足迹图片', prop:'zpDzwjnr'}
],
transformFormTable: {bdzt},
table: false,
gridData: [],
tableOperation:true,
tableOperationWidth:200,
header: "指纹比中信息",
pageBs: "dswtzxxlbxx",
cxFormData: {
page:'1',
limit:'10'
},
cxFormData1: {
xxzjbh:'',
page:'1',
limit:'10'
},
cxQueryField: [
{
name: "文件名称",
id: "wjmc",
type: "text",
props: "checkEmpty",
value: "",
placeholder: "请输入",
col: "3",
},
],
cxDefaultFormThead: [
{label: "图片名称", prop: "zpDzwjbt"},
{label: "建立时间", prop: "zpJlsj"},
{label: "比中状态", prop: "bdzt"},
{label: "登录姓名", prop: "xxdjryXm"},
],
cxDefaultFormThead1: [
{label: "人员编号", prop: "asjxgrybh"},
{label: "姓名", prop: "xm"},
{label: "别名", prop: "bmch"},
{label: "证件类型", prop: "cyzjCyzjmc"},
{label: "证件号码", prop: "cyzjZjhm"},
{label: "性别", prop: "xbdmStr"},
{label: "出生日期", prop: "csrq"},
{label: "国籍", prop: "gjdmStr"},
{label: "民族", prop: "mzdmStr"},
{label: "籍贯", prop: "jgdmStr"},
{label: "政治面貌", prop: "zzmmdmStr"},
{label: "学历", prop: "xldmStr"},
{label: "相识度", prop: "similarity"},
],
// 需要转化table的显示
cxUrl: "/Zjccbzrw/getRxrwList",
Menu: [
{
id: "bdmbXxzjbh",
label: "足迹比中信息",
index: "wfqdzczl",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
},
],
leftMenus: leftMenus,
xxzjbh:''
};
},
created() {
this.$store.commit("user/SET_Menu", this.Menu);
this.$store.commit("user/SET_Header", this.header);
this.$store.commit("user/SET_LeftMenu", this.leftMenus);
},
methods: {
RouteName(scope,m){
this.$router.push({
path: m,
query: { rybh: scope.row.rybh },
});
},
add(){
this.$router.push({
path: "bdjgZjAdd",
query: { rybh: this.$route.query.rybh},
});
},
add1(){
this.$router.push({
path: "bdjgAddZj",
query: { glxxzjbh: this.xxzjbh},
});
},
edit(scope) {
this.$router.push({
path: "bdjgAddZj",
query: { xxzjbh: scope.row.xxzjbh },
});
},
edit1(scope) {
this.$router.push({
path: "bdjgAddRx",
query: { xxzjbh: scope.row.xxzjbh },
});
},
dele(scope) {
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
ZjccbzrwDeleteZjcbrwById({
xxzjbh: scope.row.xxzjbh,
}).then((res) => {
if (res.success && res.code == 200) {
this.$message({
type: "success",
message: "删除成功",
});
this.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
dele1(scope) {
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteZwbzjgById({
xxzjbh: scope.row.xxzjbh,
}).then((res) => {
if (res.success && res.code == 200) {
this.$message({
type: "success",
message: "删除成功",
});
this.$refs.rightContent1.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
bjjg(scope){
let row = scope.row
this.table = true
let xxzjbh = row.xxzjbh
this.cxFormData1.xxzjbh = xxzjbh
this.xxzjbh = xxzjbh
},
toSwtzxxgl(i){
this.$router.push({
path:'/swtzxxgl',
query:{rybh:i}
})
},
zwbd(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)",
});
ZjccbzrwUpdateZjbdById({xxzjbh}).then(res=>{
if(res.code === 200){
setTimeout(function () {
self.$message.success(res.message)
loading.close()
self.$refs.rightContent.doQuery("yes");
},3e3)
}
else {
setTimeout(function () {
self.$message(res.message)
loading.close()
},3e3)
}
})
},
toRyxxrxbj(row){
this.$router.push({
path:'/ryxxrxbj',
query:{rybh:row.asjxgrybh}
})
},
},
mounted() {},
};
</script>
<style>
.el-dialog__body {
padding: 10px 15px !important;
}
.rightContent .el-input__inner,
#formCommonPage .el-input__inner {
height: 32px;
line-height: 32px;
font-family: inherit;
}
.el-table__header-wrapper th,
.el-table__header-wrapper tr {
background: #f4f6f7;
}
.rightContent .el-input__icon,
#formCommonPage .el-input__icon,
.el-input__suffix-inner {
line-height: 36px;
}
.rightContent .el-range-separator {
position: relative;
top: -4px;
}
.rightContent .el-textarea__inner,
#formCommonPage .el-textarea__inner {
width: 100%;
font-family: inherit;
}
.rightContent .el-range-input,
#formCommonPage .el-range-input {
vertical-align: top;
}
.rightContent .el-date-editor .el-range__close-icon {
margin-top: -4px;
}
.rightContent .el-form-item__error {
left: calc(66% - 27px);
top: 12px;
}
.success-row {
background-color: #fbf9f4 !important;
}
.Content .el-input,
.Content .el-date-editor--daterange.el-input__inner {
width: 100% !important;
}
</style>
<style scoped lang="scss">
@import "@/assets/styles/rightContent.scss";
</style>
<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 { queryByXxzjbh,insertRxbz,updateRxbz } 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: "bzrXm",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "比中人员证件号码:",
id: "bzrGmsfhm",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "与源图片的相似度:",
id: "similarity",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "案事件编号:",
id: "asjbh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "嫌疑人姓名:",
id: "xyrXm",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "嫌疑人证件号码:",
id: "xyrZjhm",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "人员编号:",
id: "rybh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "比中时间:",
id: "bzsjStr",
type: "DateVal",
value: "",
placeholder: "请输入",
col: "2",
},
],
},
],
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)",
});
if(this.$route.query.glxxzjbh){
params.append('glxxzjbh',this.$route.query.glxxzjbh)
insertRxbz(params).then(res=>{
if(res.code){
loading.close()
this.$router.push({
path:'/bzxxRx'
})
}
})
}
else {
params.append('xxzjbh',this.$route.query.xxzjbh)
updateRxbz(params).then(res=>{
if(res.code){
loading.close()
this.$router.push({
path:'/bzxxRx'
})
}
})
}
},
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("xxzjbh", this.xxzjbh);
queryByXxzjbh(params).then((res) => {
var result = res.data.rxbz;
this.result = result;
self.propFormField.forEach((fieldItem) => {
if (fieldItem.data && fieldItem.data.length > 0) {
fieldItem.data.forEach((i) => {
this.$set(this.formLabelAlign, i.id, result[i.id]);
});
}
this.$forceUpdate();
});
loading.close();
});
},
},
created() {
if (this.$route.query.xxzjbh) {
this.title = "修改足迹比中信息";
this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju();
}
},
};
</script>
<style scoped lang="scss">
</style>
......@@ -56,7 +56,6 @@
import rightContent from "@c/ptCxForm_components.vue";
import {leftMenus} from "@p/dswtzxx/index.js";
import { updateZwbdById,deleteZwbzjgById,deleteZjcbrwById } from "@/api/dswtz/bzxx";
import { deleteRyzpById } from "@/api/dswtz/rxxx.js";
import {bdzt} from "@/assets/js/transformFormTable.js";
export default {
name: "lbxx",
......@@ -152,7 +151,7 @@
},
add1(){
this.$router.push({
path: "bdjgZwAdd",
path: "bdjgAddZw",
query: { glxxzjbh: this.xxzjbh},
});
},
......@@ -164,7 +163,7 @@
},
edit1(scope) {
this.$router.push({
path: "bdjgAddRx",
path: "bdjgAddZw",
query: { xxzjbh: scope.row.xxzjbh },
});
},
......@@ -259,33 +258,6 @@
}
})
},
deleChildren(row){
console.log(row);
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
deleteRyzpById({
xxzjbh: row.xxzjbh,
}).then((res) => {
if (res.success && res.code == 200) {
this.$message({
type: "success",
message: "删除成功",
});
this.$refs.rightContent.doQuery("yes");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消删除",
});
});
},
toRyxxrxbj(row){
this.$router.push({
path:'/ryxxrxbj',
......
<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 { queryByXxzjbh,insertRxbz,updateRxbz } 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: "bzrXm",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "比中人员证件号码:",
id: "bzrGmsfhm",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "与源图片的相似度:",
id: "similarity",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "案事件编号:",
id: "asjbh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "嫌疑人姓名:",
id: "xyrXm",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "嫌疑人证件号码:",
id: "xyrZjhm",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "人员编号:",
id: "rybh",
type: "text",
value: "",
placeholder: "请输入",
col: "2",
},
{
name: "比中时间:",
id: "bzsjStr",
type: "DateVal",
value: "",
placeholder: "请输入",
col: "2",
},
],
},
],
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)",
});
if(this.$route.query.glxxzjbh){
params.append('glxxzjbh',this.$route.query.glxxzjbh)
insertRxbz(params).then(res=>{
if(res.code){
loading.close()
this.$router.push({
path:'/bzxxRx'
})
}
})
}
else {
params.append('xxzjbh',this.$route.query.xxzjbh)
updateRxbz(params).then(res=>{
if(res.code){
loading.close()
this.$router.push({
path:'/bzxxRx'
})
}
})
}
},
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("xxzjbh", this.xxzjbh);
queryByXxzjbh(params).then((res) => {
var result = res.data.rxbz;
this.result = result;
self.propFormField.forEach((fieldItem) => {
if (fieldItem.data && fieldItem.data.length > 0) {
fieldItem.data.forEach((i) => {
this.$set(this.formLabelAlign, i.id, result[i.id]);
});
}
this.$forceUpdate();
});
loading.close();
});
},
},
created() {
if (this.$route.query.xxzjbh) {
this.title = "修改指纹比中信息";
this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju();
}
},
};
</script>
<style scoped lang="scss">
</style>
......@@ -51,9 +51,9 @@ const leftMenus = [
disabled: false,
},
{
id: "bzxxZj",
id: "bdjgZj",
label: "足迹比中结果",
index: "bzxxZj",
index: "bdjgZj",
auth: "M0101",
className: "iconfont iconrizhi",
disabled: false,
......
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