Commit 3b764dd4 by 张超军

案件指纹编辑掌纹图像保存

parent 9d6f4dab
......@@ -156,7 +156,8 @@
display: flex;
justify-content: center;
img {
object-fit: contain;
// object-fit: contain;
height: 100%;
}
margin-left: 0;
}
......
<!--
* @Author: your name
* @Date: 2021-10-22 09:42:07
* @LastEditTime: 2021-12-11 11:40:07
* @LastEditTime: 2021-12-11 14:39:23
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\ryzwbjLeft.vue
......@@ -183,7 +183,6 @@ export default {
self.hands = []
// 赋值
if (res.data.code === 0) {
debugger
self.hands = res.data.ret
this.activeHand = this.hands[0].seq
this.HandChange(this.hands[0])
......@@ -191,7 +190,6 @@ export default {
self.$bus.emit('ryzwbjImage', 'xxx')
}
} else {
debugger
self.$bus.emit('ryzwbjImage', 'xxx')
}
self.isHandRequest = true
......
<!--
* @Author: your name
* @Date: 2021-10-22 11:36:10
* @LastEditTime: 2021-12-11 14:17:27
* @LastEditTime: 2021-12-11 14:57:52
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\imageEd.vue
......@@ -884,6 +884,7 @@ export default {
if (!$(this).hasClass("disabled")) {
imageEditor.discardSelection();
imageEditor.undo();
self.resetTzdDrawing()
}
});
......@@ -894,6 +895,7 @@ export default {
if (!$(this).hasClass("disabled")) {
imageEditor.discardSelection();
imageEditor.redo();
self.resetTzdDrawing()
}
});
......@@ -3107,7 +3109,7 @@ export default {
});
}
});
console.log(allTZDataHand);
console.log(allTZData);
......@@ -3135,21 +3137,23 @@ export default {
}
});
this.$axios({
method: "post",
url: "/api/upload/trait/allperson/palm?barcode=" + self.barcode,
headers: {
"Content-Type": "application/json;charset=UTF-8",
},
data: JSON.stringify(allTZDataHand),
}).then((res) => {
if (res.data.code === 0) {
self.$message.success("保存成功!");
// 计算session的个数
self.sessionCount = self.sessionCount + Number(sessionArr.length);
self.judgeJumpRoute();
}
});
if(allTZDataHand.length > 0) {
this.$axios({
method: "post",
url: "/api/upload/trait/allperson/palm?barcode=" + self.barcode,
headers: {
"Content-Type": "application/json;charset=UTF-8",
},
data: JSON.stringify(allTZDataHand),
}).then((res) => {
if (res.data.code === 0) {
self.$message.success("保存成功!");
// 计算session的个数
self.sessionCount = self.sessionCount + Number(sessionArr.length);
self.judgeJumpRoute();
}
});
}
}
},
/**
......
<!--
* @Author: your name
* @Date: 2021-10-22 11:36:10
* @LastEditTime: 2021-12-11 11:04:26
* @LastEditTime: 2021-12-11 14:46:20
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\imageEd.vue
......@@ -6357,21 +6357,23 @@ export default {
});
// 掌纹特征点数据保存
this.$axios({
method: 'post',
headers: {
"Content-Type": "application/json;charset=UTF-8"
},
url: '/api/upload/trait/allcase/palm?barcode=' + self.barcode,
data: JSON.stringify(hand_tjsj)
}).then(res => {
if (res.data.code === 0) {
self.$message.success('保存成功!')
// 计算session的个数
self.sessionCount = self.sessionCount + Number(sessionArr.length);
self.judgeJumpRoute()
}
})
if (hand_tjsj.length > 0) {
this.$axios({
method: 'post',
headers: {
"Content-Type": "application/json;charset=UTF-8"
},
url: '/api/upload/trait/allcase/palm?barcode=' + self.barcode,
data: JSON.stringify(hand_tjsj)
}).then(res => {
if (res.data.code === 0) {
self.$message.success('保存成功!')
// 计算session的个数
self.sessionCount = self.sessionCount + Number(sessionArr.length);
self.judgeJumpRoute()
}
})
}
}
else if (this.saveType === "当前特征和图片") {
// 处理特征点---保存前需要处理数据
......@@ -6619,6 +6621,9 @@ export default {
});
tj_lr_finger = lr_finger.join(",");
console.log(tj_lr_finger);
if (tj_lr_finger != '') {
tj_lr_finger = JSON.parse(tj_lr_finger)
}
this.$axios({
method: 'post',
headers: {
......@@ -6627,7 +6632,7 @@ export default {
url:
"/api/upload/trait/case?barcode=" +
self.barcode +
"&fingerPosition=" + JSON.parse(tj_lr_finger) +
"&fingerPosition=" + tj_lr_finger +
"&seq=" +
self.seq,
data: JSON.stringify(handFpt5)
......@@ -6639,6 +6644,19 @@ export default {
self.judgeJumpRoute()
}
})
let angle = self.imageEditor._graphics.getCanvasImage().angle
// 保存掌纹图片
this.$axios({
method: 'post',
url: `/api/upload/trait/case/palm/image?angle=${angle}&barcode=${self.barcode}&hpseqno=${self.seq}&bmpHeight=${self.newHeight}&bmpWidth=${self.newWidth}`
}).then(res => {
if (res.data.code === 0) {
self.$message.success("图片保存成功!");
} else {
self.$message.error("图片保存失败!");
}
})
} else {
// 指纹
// 处理指位信息
......@@ -6656,6 +6674,9 @@ export default {
});
tj_lr_finger = lr_finger.join(",");
console.log(tj_lr_finger);
if (tj_lr_finger != '') {
tj_lr_finger = JSON.parse(tj_lr_finger)
}
this.$axios({
method: "post",
headers: {
......@@ -6664,7 +6685,7 @@ export default {
url:
"/api/upload/trait/case?barcode=" +
self.barcode +
"&fingerPosition=" + JSON.parse(tj_lr_finger) +
"&fingerPosition=" + tj_lr_finger +
"&seq=" +
self.seq,
data: JSON.stringify(fpt5TraitMinutiaList),
......
/*
* @Author: your name
* @Date: 2021-09-07 09:57:48
* @LastEditTime: 2021-12-11 14:19:43
* @LastEditTime: 2021-12-11 14:33:04
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\vue.config.js
......@@ -107,18 +107,18 @@ module.exports = {
"^/api": "/api"
}
},
"/login": {
// target: "http://www.meetfood.cn:2390/", // 登录
target: "http://zwpt.xzclub.top:9333",
// target: "http://192.168.128.124:8764/", // 登录
// target: "http://192.168.128.114:8099", // 登录-马
ws: true,
changeOrigin: true,
pathRewrite: {
// "^/login": "" //本地
"^/login": "/login" //线上
}
},
// "/login": {
// // target: "http://www.meetfood.cn:2390/", // 登录
// target: "http://zwpt.xzclub.top:9333",
// // target: "http://192.168.128.124:8764/", // 登录
// // target: "http://192.168.128.114:8099", // 登录-马
// ws: true,
// changeOrigin: true,
// pathRewrite: {
// // "^/login": "" //本地
// "^/login": "/login" //线上
// }
// },
// "/system": {
// target: "http://192.168.128.106:8765/security", // 湖南-王
// // target: "http://www.meetfood.cn:2390/system", // 湖南-王
......@@ -131,9 +131,9 @@ module.exports = {
"/security": {
//target: "http://192.168.128.106:8765", // 湖南-王
// target: "http://192.168.128.124:8764", // 湖南-张
target: "http://192.168.128.124:8764", // 湖南-张
// target: "http://www.meetfood.cn:2390", // 湖南-王
target: "http://zwpt.xzclub.top:9333",
// target: "http://zwpt.xzclub.top:9333",
ws: true,
changeOrigin: true,
pathRewrite: {
......
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