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
0d7c8bc6
Commit
0d7c8bc6
authored
Dec 20, 2021
by
张超军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
特征点将-4存储回显时出现误差,所有将-4剔除,在回显时自己手动加(目的是将圆球的中心和鼠标点击的位置相同)
parent
aba23224
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
153 additions
and
83 deletions
+153
-83
src/views/Editor/modules/ajzwbjLeft.scss
+4
-0
src/views/Editor/modules/ajzwbjLeft.vue
+5
-3
src/views/Editor/modules/imageEd.vue
+102
-48
src/views/Editor/modules/imageEdAJ.vue
+33
-27
src/views/Editor/modules/ryzwbjLeft.scss
+4
-0
src/views/Editor/modules/ryzwbjLeft.vue
+2
-2
vue.config.js
+3
-3
No files found.
src/views/Editor/modules/ajzwbjLeft.scss
View file @
0d7c8bc6
...
...
@@ -18,6 +18,10 @@
align-items
:
center
;
span
{
margin-right
:
10px
;
width
:
200px
;
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
}
img
{
cursor
:
pointer
;
...
...
src/views/Editor/modules/ajzwbjLeft.vue
View file @
0d7c8bc6
<!--
* @Author: your name
* @Date: 2021-10-22 09:42:07
* @LastEditTime: 2021-12-
16 11:20:20
* @LastEditTime: 2021-12-
20 10:54:43
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\ryzwbjLeft.vue
...
...
@@ -10,7 +10,7 @@
<div
class=
"ryzwbjLeft"
>
<div
class=
"title"
>
案事件编号:
</div>
<div
class=
"asjbh"
>
<span>
{{
barcode
}}
</span>
<span
:title=
"barcode"
>
{{
barcode
}}
</span>
<img
src=
"@/assets/img/message.png"
alt=
""
@
click=
"daxxChange"
>
<div
class=
"desc"
@
click=
"daxxChange"
>
档案信息
</div>
</div>
...
...
@@ -138,6 +138,7 @@ export default {
// 更新图片列表
self
.
$bus
.
on
(
'updateList'
,
()
=>
{
// self.$store.commit('loading/setLoadingSd', true)
debugger
self
.
getCaseFinger
()
// setTimeout(() => {
// self.$store.commit('loading/setLoadingSd', false)
...
...
@@ -186,7 +187,7 @@ export default {
barcode
:
self
.
barcode
,
dealFlag
:
1
,
fingerPosition
:
1
}
}
,
})
console
.
log
(
res
);
// 初始化图片
...
...
@@ -278,6 +279,7 @@ export default {
dealFlag
:
1
,
fingerPosition
:
1
},
loading
:
true
}).
then
(
res
=>
{
console
.
log
(
res
);
if
(
res
.
data
.
code
===
0
)
{
...
...
src/views/Editor/modules/imageEd.vue
View file @
0d7c8bc6
<!--
* @Author: your name
* @Date: 2021-10-22 11:36:10
* @LastEditTime: 2021-12-20
00:55:48
* @LastEditTime: 2021-12-20
13:41:32
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\imageEd.vue
...
...
@@ -963,26 +963,66 @@ export default {
// 下载
$btnDownload
.
on
(
"click"
,
function
(
e
)
{
e
.
stopPropagation
();
var
imageName
=
"源数据指纹"
;
var
dataURL
=
$
(
"#sourceImage"
).
attr
(
"src"
);
//console.log(dataURL);
var
blob
,
type
,
w
;
if
(
supportingFileAPI
)
{
blob
=
base64ToBlob
(
dataURL
);
type
=
blob
.
type
.
split
(
"/"
)[
1
];
if
(
imageName
.
split
(
"."
).
pop
()
!==
type
)
{
// imageName += '.' + type;
imageName
+=
".bmp"
;
}
// Library: FileSaver - saveAs
saveAs
(
blob
,
imageName
);
// eslint-disable-line
let
type
=
0
if
(
self
.
seq
>=
1
&&
self
.
seq
<=
10
)
{
type
=
0
}
else
if
(
self
.
seq
>=
11
&&
self
.
seq
<=
20
)
{
type
=
1
}
else
{
alert
(
"This browser needs a file-server"
);
w
=
window
.
open
();
w
.
document
.
body
.
innerHTML
=
'<img src="'
+
dataURL
+
'">'
;
type
=
2
}
self
.
$axios
({
method
:
'post'
,
url
:
'/api/export/trait/person/roll/image/download'
,
params
:
{
barcode
:
self
.
barcode
,
seq
:
self
.
seq
,
type
:
type
}
}).
then
(
res
=>
{
// console.log(res);
if
(
res
.
data
.
code
===
0
)
{
let
bstr
=
atob
(
res
.
data
.
ret
),
//解析 base-64 编码的字符串
n
=
bstr
.
length
,
u8arr
=
new
Uint8Array
(
n
);
//创建初始化为0的,包含length个元素的无符号整型数组
while
(
n
--
)
{
u8arr
[
n
]
=
bstr
.
charCodeAt
(
n
);
//返回字符串第一个字符的 Unicode 编码
}
let
blob
=
new
Blob
([
u8arr
]);
//转化成blob
let
url
=
URL
.
createObjectURL
(
blob
);
//这个新的URL 对象表示指定的 File 对象或 Blob 对象
let
a
=
document
.
createElement
(
'a'
)
//创建一个a标签
a
.
href
=
url
;
if
(
type
===
2
)
{
a
.
download
=
'掌纹图片.bmp'
}
else
{
a
.
download
=
'指纹图片.bmp'
;
}
a
.
click
();
URL
.
revokeObjectURL
(
a
.
href
);
//释放之前创建的url对象
}
else
{
self
.
$message
.
error
(
'下载图片失败!'
)
}
})
// e.stopPropagation();
// var imageName = "源数据指纹";
// var dataURL = $("#sourceImage").attr("src");
// //console.log(dataURL);
// var blob, type, w;
// if (supportingFileAPI) {
// blob = base64ToBlob(dataURL);
// type = blob.type.split("/")[1];
// if (imageName.split(".").pop() !== type) {
// // imageName += '.' + type;
// imageName += ".bmp";
// }
// // Library: FileSaver - saveAs
// saveAs(blob, imageName); // eslint-disable-line
// } else {
// alert("This browser needs a file-server");
// w = window.open();
// w.document.body.innerHTML = '
<
img
src
=
"' + dataURL + '"
>
';
// }
});
// 沿X轴翻转
$btnFlipX.on("click", function (e) {
...
...
@@ -1454,8 +1494,8 @@ export default {
$(`#tzd${self.tzdId}`).css("top", (y - 4) + "px");
self.tzdArr.forEach(item => {
if (item.id == self.tzdId) {
item
.
x
=
self
.
canvasBox_width
-
(
x
+
4
)
item
.
y
=
y
-
4
item.x = self.canvasBox_width - (x)
item.y = y
}
})
} else if (self.imageEditor._graphics.getCanvasImage().flipY && !self.imageEditor._graphics.getCanvasImage().flipX) {
...
...
@@ -1463,8 +1503,8 @@ export default {
$(`#tzd${self.tzdId}`).css("top", self.canvasBox_height - (y + 4) + "px");
self.tzdArr.forEach(item => {
if (item.id == self.tzdId) {
item
.
x
=
x
-
4
item
.
y
=
self
.
canvasBox_height
-
(
y
+
4
)
item.x = x
item.y = self.canvasBox_height - (y)
}
})
} else if (self.imageEditor._graphics.getCanvasImage().flipY && self.imageEditor._graphics.getCanvasImage().flipX) {
...
...
@@ -1472,8 +1512,8 @@ export default {
$(`#tzd${self.tzdId}`).css("top", self.canvasBox_height - (y + 4) + "px");
self.tzdArr.forEach(item => {
if (item.id == self.tzdId) {
item
.
x
=
self
.
canvasBox_width
-
(
x
+
4
)
item
.
y
=
self
.
canvasBox_height
-
(
y
+
4
)
item.x = self.canvasBox_width - (x)
item.y = self.canvasBox_height - (y)
}
})
} else {
...
...
@@ -1481,14 +1521,11 @@ export default {
$(`#tzd${self.tzdId}`).css("top", y - 4 + "px");
self.tzdArr.forEach(item => {
if (item.id == self.tzdId) {
item
.
x
=
x
-
4
item
.
y
=
y
-
4
item.x = x
item.y = y
}
})
}
// console.log(self.imageEditor._graphics.getCanvasImage());
$(`#tzd${self.tzdId}`).css("box-sizing", "border-box");
}
}
...
...
@@ -1695,7 +1732,7 @@ export default {
//cos
let cos = heng / distance;
//角度
self
.
deg
=
(
Math
.
acos
(
cos
)
*
180
)
/
Math
.
PI
;
self.deg =
parseInt((Math.acos(cos) * 180) / Math.PI)
;
// 根据象限判断
if (e.clientX >= this.originX && e.clientY <= this.originY) {
// console.log(self.deg);
...
...
@@ -2049,7 +2086,16 @@ export default {
// 自动提取特征数组
if (res.data.code === 0) {
self
.
autoTzdArr
=
res
.
data
.
ret
.
fpt5TraitMinutiaSet
.
minutia
||
[];
// self.autoTzdArr = res.data.ret.fpt5TraitMinutiaSet.minutia || [];
if (res.data.ret.fpt5TraitMinutiaSet.minutia && res.data.ret.fpt5TraitMinutiaSet.minutia.length > 0) {
res.data.ret.fpt5TraitMinutiaSet.minutia.forEach(item => {
self.autoTzdArr.push({
zwtzd_tzxzb: item.zwtzd_tzxzb * self.width_ratio,
zwtzd_tzyzb: item.zwtzd_tzyzb * self.height_ratio,
zwtzd_tzfx: item.zwtzd_tzfx
})
})
}
console.log(self.autoTzdArr);
self.autoTzdArr.forEach((item, index) => {
self.$set(
...
...
@@ -2075,11 +2121,11 @@ export default {
$(".auto_tzdDom .direction").css("background-color", "#FFFD0F");
$(`#auto_tzdDom${self.tzdId}`).css(
"left",
(
item
.
zwtzd_tzxzb
*
self
.
width_ratio
)
/
self
.
zoomLevel
+
"px"
(item.zwtzd_tzxzb
- 4
) / self.zoomLevel + "px"
);
$(`#auto_tzdDom${self.tzdId}`).css(
"top",
(
item
.
zwtzd_tzyzb
*
self
.
height_ratio
)
/
self
.
zoomLevel
+
"px"
(item.zwtzd_tzyzb
- 4
) / self.zoomLevel + "px"
);
$(`#auto_tzdDom${self.tzdId}`).css("box-sizing", "border-box");
$("#auto_tzdDom" + self.tzdId).css(
...
...
@@ -2091,6 +2137,7 @@ export default {
self.tzdnumber++;
});
self.$store.commit("zwbj/setAutoTzdall", self.autoTzdArr);
debugger
// 将自动提取的特征点存入session中
sessionStorage.setItem(
`auto${self.seq}`,
...
...
@@ -2101,7 +2148,8 @@ export default {
// self.greenDeg = res.data.zwfxTzfx
// sessionStorage.setItem('
greenDeg_
' + self.seq, self.greenDeg)
// document.getElementsByTagName("body")[0].style.setProperty("--directionRotate", self.greenDeg + "deg");
}
else
if
(
res
.
data
.
code
==
4
)
{
} else {
debugger
self.$store.commit("zwbj/setAutoTzdall", []);
// 将自动提取的特征点存入session中
sessionStorage.setItem(`auto${self.seq}`, JSON.stringify([]));
...
...
@@ -2119,12 +2167,11 @@ export default {
console.log(handres);
// 自动提取特征数组
if (handres.data.code === 0) {
self
.
autoTzdArrHand
=
handres
.
data
.
ret
.
fpt5PalmFeatureMinutiaSet
.
minutia
||
[];
self.autoTzdArrHand = handres.data.ret.fpt5PalmFeatureMinutiaSet.minutia || [];
self.autoTzdArrHand.forEach((item) => {
self.autoTzdArr.push({
zwtzd_tzxzb
:
item
.
zhwtzd_tzxzb
,
zwtzd_tzyzb
:
item
.
zhwtzd_tzyzb
,
zwtzd_tzxzb: item.zhwtzd_tzxzb
* self.width_ratio
,
zwtzd_tzyzb: item.zhwtzd_tzyzb
* self.height_ratio
,
zwtzd_tzfx: item.zhwtzd_tzfx,
});
});
...
...
@@ -2150,11 +2197,11 @@ export default {
$(`#auto_tzdDom${self.tzdId}`).css(
"left",
(
item
.
zwtzd_tzxzb
*
self
.
width_ratio
)
/
self
.
zoomLevel
+
"px"
(item.zwtzd_tzxzb
- 4
) / self.zoomLevel + "px"
);
$(`#auto_tzdDom${self.tzdId}`).css(
"top",
(
item
.
zwtzd_tzyzb
*
self
.
height_ratio
)
/
self
.
zoomLevel
+
"px"
(item.zwtzd_tzyzb
- 4
) / self.zoomLevel + "px"
);
$(`#auto_tzdDom${self.tzdId}`).css("box-sizing", "border-box");
$("#auto_tzdDom" + self.tzdId).css(
...
...
@@ -2176,7 +2223,7 @@ export default {
// self.greenDeg = res.data.zwfxTzfx
// sessionStorage.setItem('
greenDeg_
' + self.seq, self.greenDeg)
// document.getElementsByTagName("body")[0].style.setProperty("--directionRotate", self.greenDeg + "deg");
}
else
if
(
handres
.
data
.
code
==
4
)
{
} else {
self.$store.commit("zwbj/setAutoTzdall", []);
// 将自动提取的特征点存入session中
sessionStorage.setItem(`auto${self.seq}`, JSON.stringify([]));
...
...
@@ -2210,11 +2257,11 @@ export default {
$(`#auto_tzdDom${self.tzdId}`).css(
"left",
(
item
.
zwtzd_tzxzb
*
self
.
width_ratio
)
/
self
.
zoomLevel
+
"px"
(item.zwtzd_tzxzb
-4
) / self.zoomLevel + "px"
);
$(`#auto_tzdDom${self.tzdId}`).css(
"top",
(
item
.
zwtzd_tzyzb
*
self
.
height_ratio
)
/
self
.
zoomLevel
+
"px"
(item.zwtzd_tzyzb
-4
) / self.zoomLevel + "px"
);
$(`#auto_tzdDom${self.tzdId}`).css("box-sizing", "border-box");
$("#auto_tzdDom" + self.tzdId).css(
...
...
@@ -3100,8 +3147,8 @@ export default {
self.autoTzdArr.forEach((item) => {
self.tzdall.push({
zwtzd_tzfx: item.zwtzd_tzfx,
zwtzd_tzxzb
:
item
.
zwtzd_tzxzb
,
zwtzd_tzyzb
:
item
.
zwtzd_tzyzb
,
zwtzd_tzxzb: item.zwtzd_tzxzb
/ self.width_ratio
,
zwtzd_tzyzb: item.zwtzd_tzyzb
/ self.height_ratio
,
});
});
// if (self.autoTzdArr.length > 0) {
...
...
@@ -3223,15 +3270,22 @@ export default {
item.zwtzd_tzyzb = item.zwtzd_tzyzb / self.height_ratio
})
}
let autoTzdArr = JSON.parse(sessionStorage.getItem(sessionKeys[i]))
if (autoTzdArr != null) {
autoTzdArr.forEach(item => {
item.zwtzd_tzxzb = item.zwtzd_tzxzb / self.width_ratio
item.zwtzd_tzyzb = item.zwtzd_tzyzb / self.height_ratio
})
}
let arr;
if (JSON.parse(sessionStorage.getItem(sessionKeys[i])) == null && handTzdArr != null) {
arr = handTzdArr;
} else if (JSON.parse(sessionStorage.getItem(sessionKeys[i])) != null && handTzdArr == null) {
arr
=
JSON
.
parse
(
sessionStorage
.
getItem
(
sessionKeys
[
i
]))
;
arr =
autoTzdArr
;
} else {
// console.log(sessionStorage.getItem(sessionKeys[i]));
// console.log(sessionStorage.getItem(sessionKeys[j]));
arr
=
handTzdArr
.
concat
(
JSON
.
parse
(
sessionStorage
.
getItem
(
sessionKeys
[
i
]))
);
arr = handTzdArr.concat(
autoTzdArr
);
}
allTZData.push({
fpt5TraitMinutiaSet: {
...
...
src/views/Editor/modules/imageEdAJ.vue
View file @
0d7c8bc6
<!--
* @Author: your name
* @Date: 2021-10-22 11:36:10
* @LastEditTime: 2021-12-20
00:42:28
* @LastEditTime: 2021-12-20
13:42:29
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\imageEd.vue
...
...
@@ -290,7 +290,7 @@
<el-radio-group
v-model=
"rtxys"
>
<el-radio
label=
"1"
>
白色
</el-radio>
<el-radio
label=
"2"
>
黑色
</el-radio>
<el-radio
label=
"
3
"
>
其他
</el-radio>
<el-radio
label=
"
9
"
>
其他
</el-radio>
</el-radio-group>
</div>
<div
class=
"line4"
></div>
...
...
@@ -2431,8 +2431,8 @@ export default {
$
(
`#tzd
${
self
.
tzdId
}
`
).
css
(
"top"
,
(
y
-
4
)
+
"px"
);
self
.
tzdArr
.
forEach
(
item
=>
{
if
(
item
.
id
==
self
.
tzdId
)
{
item
.
x
=
self
.
canvasBox_width
-
(
x
+
4
)
item
.
y
=
y
-
4
item
.
x
=
self
.
canvasBox_width
-
(
x
)
item
.
y
=
y
}
})
}
else
if
(
self
.
imageEditor
.
_graphics
.
getCanvasImage
().
flipY
&&
!
self
.
imageEditor
.
_graphics
.
getCanvasImage
().
flipX
)
{
...
...
@@ -2440,8 +2440,8 @@ export default {
$
(
`#tzd
${
self
.
tzdId
}
`
).
css
(
"top"
,
self
.
canvasBox_height
-
(
y
+
4
)
+
"px"
);
self
.
tzdArr
.
forEach
(
item
=>
{
if
(
item
.
id
==
self
.
tzdId
)
{
item
.
x
=
x
-
4
item
.
y
=
self
.
canvasBox_height
-
(
y
+
4
)
item
.
x
=
x
item
.
y
=
self
.
canvasBox_height
-
(
y
)
}
})
}
else
if
(
self
.
imageEditor
.
_graphics
.
getCanvasImage
().
flipY
&&
self
.
imageEditor
.
_graphics
.
getCanvasImage
().
flipX
)
{
...
...
@@ -2449,8 +2449,8 @@ export default {
$
(
`#tzd
${
self
.
tzdId
}
`
).
css
(
"top"
,
self
.
canvasBox_height
-
(
y
+
4
)
+
"px"
);
self
.
tzdArr
.
forEach
(
item
=>
{
if
(
item
.
id
==
self
.
tzdId
)
{
item
.
x
=
self
.
canvasBox_width
-
(
x
+
4
)
item
.
y
=
self
.
canvasBox_height
-
(
y
+
4
)
item
.
x
=
self
.
canvasBox_width
-
(
x
)
item
.
y
=
self
.
canvasBox_height
-
(
y
)
}
})
}
else
{
...
...
@@ -2458,8 +2458,8 @@ export default {
$
(
`#tzd
${
self
.
tzdId
}
`
).
css
(
"top"
,
y
-
4
+
"px"
);
self
.
tzdArr
.
forEach
(
item
=>
{
if
(
item
.
id
==
self
.
tzdId
)
{
item
.
x
=
x
-
4
item
.
y
=
y
-
4
item
.
x
=
x
item
.
y
=
y
}
})
}
...
...
@@ -2921,7 +2921,7 @@ export default {
//cos
let
cos
=
heng
/
distance
;
//角度
self
.
deg
=
(
Math
.
acos
(
cos
)
*
180
)
/
Math
.
PI
;
self
.
deg
=
parseInt
((
Math
.
acos
(
cos
)
*
180
)
/
Math
.
PI
)
;
//根据象限判断
if
(
e
.
clientX
>=
this
.
originX
&&
e
.
clientY
<=
this
.
originY
)
{
...
...
@@ -3682,8 +3682,8 @@ export default {
// console.log(item.xczw_zwtzd_tzxzb);
// console.log(item.xczw_zwtzd_tzyzb);
// console.log(item.xczw_zwtzd_tzfx);
$
(
`#auto_tzdDom
${
self
.
tzdId
}
`
).
css
(
"left"
,
(
item
.
xczw_zwtzd_tzxzb
)
/
self
.
zoomLevel
+
"px"
);
$
(
`#auto_tzdDom
${
self
.
tzdId
}
`
).
css
(
"top"
,
(
item
.
xczw_zwtzd_tzyzb
)
/
self
.
zoomLevel
+
"px"
);
$
(
`#auto_tzdDom
${
self
.
tzdId
}
`
).
css
(
"left"
,
(
item
.
xczw_zwtzd_tzxzb
-
4
)
/
self
.
zoomLevel
+
"px"
);
$
(
`#auto_tzdDom
${
self
.
tzdId
}
`
).
css
(
"top"
,
(
item
.
xczw_zwtzd_tzyzb
-
4
)
/
self
.
zoomLevel
+
"px"
);
$
(
`#auto_tzdDom
${
self
.
tzdId
}
`
).
css
(
"box-sizing"
,
"border-box"
);
$
(
`#auto_tzdDom
${
self
.
tzdId
}
`
).
css
(
"transform"
,
`rotate(
${
-
item
.
xczw_zwtzd_tzfx
}
deg)`
);
self
.
tzdId
++
;
...
...
@@ -3818,8 +3818,8 @@ export default {
if
(
res
.
data
.
ret
.
minutiaSet
&&
res
.
data
.
ret
.
minutiaSet
.
minutia
&&
res
.
data
.
ret
.
minutiaSet
.
minutia
.
length
>
0
)
{
res
.
data
.
ret
.
minutiaSet
.
minutia
.
forEach
(
item
=>
{
self
.
autoTzdArr
.
push
({
xczw_zwtzd_tzxzb
:
item
.
xczw_zwtzd_tzxzb
*
self
.
width_ratio
,
xczw_zwtzd_tzyzb
:
item
.
xczw_zwtzd_tzyzb
*
self
.
height_ratio
,
xczw_zwtzd_tzxzb
:
(
item
.
xczw_zwtzd_tzxzb
)
*
self
.
width_ratio
,
xczw_zwtzd_tzyzb
:
(
item
.
xczw_zwtzd_tzyzb
)
*
self
.
height_ratio
,
xczw_zwtzd_tzfx
:
item
.
xczw_zwtzd_tzfx
})
})
...
...
@@ -3844,8 +3844,8 @@ export default {
$
(
".auto_tzdDom .direction"
).
css
(
"height"
,
"2px"
);
$
(
".auto_tzdDom .direction"
).
css
(
"background-color"
,
"#FFFD0F"
);
$
(
`#auto_tzdDom
${
self
.
tzdId
}
`
).
css
(
"left"
,
(
item
.
xczw_zwtzd_tzxzb
)
/
self
.
zoomLevel
+
"px"
);
$
(
`#auto_tzdDom
${
self
.
tzdId
}
`
).
css
(
"top"
,
(
item
.
xczw_zwtzd_tzyzb
)
/
self
.
zoomLevel
+
"px"
);
$
(
`#auto_tzdDom
${
self
.
tzdId
}
`
).
css
(
"left"
,
(
item
.
xczw_zwtzd_tzxzb
-
4
)
/
self
.
zoomLevel
+
"px"
);
$
(
`#auto_tzdDom
${
self
.
tzdId
}
`
).
css
(
"top"
,
(
item
.
xczw_zwtzd_tzyzb
-
4
)
/
self
.
zoomLevel
+
"px"
);
$
(
`#auto_tzdDom
${
self
.
tzdId
}
`
).
css
(
"box-sizing"
,
"border-box"
);
$
(
`#auto_tzdDom
${
self
.
tzdId
}
`
).
css
(
"transform"
,
`rotate(
${
-
item
.
xczw_zwtzd_tzfx
}
deg)`
);
self
.
tzdId
++
;
...
...
@@ -3988,11 +3988,11 @@ export default {
$
(
`#auto_tzdDom
${
self
.
tzdId
}
`
).
css
(
"left"
,
(
item
.
xczw_zwtzd_tzxzb
)
/
self
.
zoomLevel
+
"px"
(
item
.
xczw_zwtzd_tzxzb
-
4
)
/
self
.
zoomLevel
+
"px"
);
$
(
`#auto_tzdDom
${
self
.
tzdId
}
`
).
css
(
"top"
,
(
item
.
xczw_zwtzd_tzyzb
)
/
self
.
zoomLevel
+
"px"
(
item
.
xczw_zwtzd_tzyzb
-
4
)
/
self
.
zoomLevel
+
"px"
);
$
(
`#auto_tzdDom
${
self
.
tzdId
}
`
).
css
(
"box-sizing"
,
"border-box"
);
$
(
`#auto_tzdDom
${
self
.
tzdId
}
`
).
css
(
...
...
@@ -6665,7 +6665,7 @@ export default {
let
deg
=
Number
(
item
.
xczw_zwtzd_tzfx
)
-
tzdDrawing_angle
+
180
if
(
deg
>
360
)
{
deg
=
deg
-
360
}
else
if
(
deg
<
0
)
{
}
else
if
(
deg
<
0
)
{
deg
=
deg
+
360
}
self
.
tzdall2
.
push
({
...
...
@@ -6919,7 +6919,8 @@ export default {
"&fingerPosition="
+
tj_lr_finger
+
"&seq="
+
self
.
seq
,
data
:
JSON
.
stringify
(
handFpt5
)
data
:
JSON
.
stringify
(
handFpt5
),
loading
:
true
}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
0
)
{
self
.
$message
.
success
(
"保存成功!"
);
...
...
@@ -6935,14 +6936,17 @@ export default {
this
.
$axios
({
method
:
'post'
,
// /api/upload/trait/case/image?angle=0&barcode=A4301125000002021090002&hpseqno=1&turnX=1&turnY=1
url
:
`/api/upload/trait/case/palm/image?angle=
${
angle
}
&barcode=
${
self
.
barcode
}
&hpseqno=
${
self
.
seq
}
&turnX=
${
flipX
}
&turnY=
${
flipY
}
&bmpHeight=
${
self
.
newHeight
}
&bmpWidth=
${
self
.
newWidth
}
`
url
:
`/api/upload/trait/case/palm/image?angle=
${
angle
}
&barcode=
${
self
.
barcode
}
&hpseqno=
${
self
.
seq
}
&turnX=
${
flipX
}
&turnY=
${
flipY
}
&bmpHeight=
${
self
.
newHeight
}
&bmpWidth=
${
self
.
newWidth
}
`
,
// url: `/api/upload/trait/case/palm/image?angle=${angle}&barcode=${self.barcode}&hpseqno=${self.seq}&bmpHeight=${self.newHeight}&bmpWidth=${self.newWidth}`
loading
:
true
}).
then
(
res
=>
{
if
(
res
.
data
.
code
===
0
)
{
self
.
$message
.
success
(
"图片保存成功!"
);
}
else
{
self
.
$message
.
error
(
"图片保存失败!"
);
}
sessionStorage
.
clear
()
self
.
$bus
.
emit
(
'updateList_hand'
)
}).
catch
(
err
=>
{
})
}
else
{
// 指纹
...
...
@@ -6996,7 +7000,7 @@ export default {
method
:
"post"
,
// url: `/api/upload/trait/case/image?angle=${canvasImage_angle}&barcode=${self.barcode}&hpseqno=${self.seq}`,
url
:
`/api/upload/trait/case/image?angle=
${
canvasImage_angle
}
&barcode=
${
self
.
barcode
}
&hpseqno=
${
self
.
seq
}
&turnX=
${
flipX
}
&turnY=
${
flipY
}
&bmpHeight=
${
512
}
&bmpWidth=
${
512
}
`
,
loading
:
fals
e
loading
:
tru
e
}).
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
data
.
code
===
0
)
{
...
...
@@ -7004,12 +7008,12 @@ export default {
}
else
{
self
.
$message
.
error
(
"图片保存失败!"
);
}
self
.
$store
.
commit
(
'loading/setLoadingSd'
,
false
)
// self.$store.commit('loading/setLoadingSd', false)
// 更新列表
sessionStorage
.
clear
()
self
.
$bus
.
emit
(
'updateList'
)
}).
catch
(
err
=>
{
});
}
// ================================================
// canvas图片自处理 --- 后端压缩需要将透明的补成白色背景
/*let canvas_imgSave = document.querySelector('.tui-image-editor-canvas-container .lower-canvas');
...
...
@@ -8226,6 +8230,8 @@ export default {
this
.
$bus
.
off
(
'ajzwbjType'
);
this
.
$bus
.
off
(
'changImageEdit'
);
this
.
$bus
.
off
(
'zwType'
);
// this.$bus.off('updateList_hand')
// this.$bus.off('updateList')
// let sessionArr = [];
// var sessionKeys = Object.keys(sessionStorage);
...
...
src/views/Editor/modules/ryzwbjLeft.scss
View file @
0d7c8bc6
...
...
@@ -18,6 +18,10 @@
align-items
:
center
;
span
{
margin-right
:
10px
;
width
:
200px
;
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
}
img
{
cursor
:
pointer
;
...
...
src/views/Editor/modules/ryzwbjLeft.vue
View file @
0d7c8bc6
<!--
* @Author: your name
* @Date: 2021-10-22 09:42:07
* @LastEditTime: 2021-12-
17 17:12:54
* @LastEditTime: 2021-12-
20 10:54:17
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\ryzwbjLeft.vue
...
...
@@ -10,7 +10,7 @@
<div
class=
"ryzwbjLeft"
>
<div
class=
"title"
>
人员编号:
</div>
<div
class=
"rybh"
>
<span>
{{
barcode
}}
</span>
<span
:title=
"barcode"
>
{{
barcode
}}
</span>
<img
src=
"@/assets/img/message.png"
alt=
""
@
click=
"daxxChange"
>
<div
class=
"desc"
@
click=
"daxxChange"
>
档案信息
</div>
</div>
...
...
vue.config.js
View file @
0d7c8bc6
/*
* @Author: your name
* @Date: 2021-09-07 09:57:48
* @LastEditTime: 2021-12-
19 20:21:04
* @LastEditTime: 2021-12-
20 10:44:08
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\vue.config.js
...
...
@@ -91,14 +91,14 @@ module.exports = {
"/api"
:
{
// target: "http://192.168.0.137:8080/", //统一的请求头部每次修改都要重启才会生效 http://39.99.224.27:8006/
// target: "http://192.168.128.166:8099/", // 张 认定
//
target: "http://192.168.128.114:8099", // 湖南-马
target
:
"http://192.168.128.114:8099"
,
// 湖南-马
// target: "http://192.168.128.116:8099", // 湖南-王
// target: "http://192.168.128.118:8764", // 湖南-张呈光
// target: "http://172.18.116.73:8099/", //统一的请求头部每次修改都要重启才会生效 http://39.99.224.27:8006/ ma
// target: "http://127.0.0.1:8099",
// target: "http://47.92.225.109:5602",
// target: "http://www.meetfood.cn:2390", // 湖南-线上
target
:
"http://zwpt.xzclub.top:9333/"
,
//
target:"http://zwpt.xzclub.top:9333/",
// target: "http://192.168.128.115:8099", // 江
ws
:
true
,
changeOrigin
:
true
,
...
...
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