Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
founder_vue
Commits
3b764dd4
Commit
3b764dd4
authored
Dec 11, 2021
by
张超军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
案件指纹编辑掌纹图像保存
parent
9d6f4dab
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
78 additions
and
54 deletions
+78
-54
src/views/Editor/modules/ajzwbjLeft.scss
+2
-1
src/views/Editor/modules/ajzwbjLeft.vue
+1
-3
src/views/Editor/modules/imageEd.vue
+21
-17
src/views/Editor/modules/imageEdAJ.vue
+39
-18
vue.config.js
+15
-15
No files found.
src/views/Editor/modules/ajzwbjLeft.scss
View file @
3b764dd4
...
...
@@ -156,7 +156,8 @@
display
:
flex
;
justify-content
:
center
;
img
{
object-fit
:
contain
;
// object-fit: contain;
height
:
100%
;
}
margin-left
:
0
;
}
...
...
src/views/Editor/modules/ajzwbjLeft.vue
View file @
3b764dd4
<!--
* @Author: your name
* @Date: 2021-10-22 09:42:07
* @LastEditTime: 2021-12-11 1
1:40:07
* @LastEditTime: 2021-12-11 1
4: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
...
...
src/views/Editor/modules/imageEd.vue
View file @
3b764dd4
<!--
* @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
();
}
});
}
}
},
/**
...
...
src/views/Editor/modules/imageEdAJ.vue
View file @
3b764dd4
<!--
* @Author: your name
* @Date: 2021-10-22 11:36:10
* @LastEditTime: 2021-12-11 1
1:04:26
* @LastEditTime: 2021-12-11 1
4: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
),
...
...
vue.config.js
View file @
3b764dd4
/*
* @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
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment