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
5c5e6e93
Commit
5c5e6e93
authored
Nov 16, 2021
by
liyuhang19990520
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_zwpt' of
http://47.92.108.28/changchao/founder_vue
into dev_zwpt
parents
222985a6
278dffb3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
391 additions
and
86 deletions
+391
-86
src/App.vue
+3
-3
src/components/ImageEd.scss
+4
-0
src/components/ImageEd.vue
+5
-5
src/main.js
+1
-1
src/plugins/axios.js
+8
-5
src/router/index.js
+3
-1
src/views/AllPersonnelBase/AllPersonnelBase.vue
+4
-1
src/views/Editor/modules/ajzwbjLeft.vue
+17
-2
src/views/Editor/modules/imageEd.scss
+33
-0
src/views/Editor/modules/imageEd.vue
+0
-0
src/views/Editor/modules/imageEdAJ.scss
+22
-8
src/views/Editor/modules/imageEdAJ.vue
+52
-26
src/views/Editor/modules/ryzwbjLeft.scss
+4
-0
src/views/Editor/modules/ryzwbjLeft.vue
+45
-13
src/views/Home.vue
+0
-0
src/views/cxyrd/modules/LTCandidate.vue
+21
-3
src/views/cxyrd/modules/LTSrc.vue
+25
-1
src/views/cxyrd/modules/TLCandidate.vue
+26
-6
src/views/cxyrd/modules/TLSrc.vue
+115
-9
vue.config.js
+3
-2
No files found.
src/App.vue
View file @
5c5e6e93
<!--
* @Author: your name
* @Date: 2021-09-07 09:58:13
* @LastEditTime: 2021-11-15
13:19:50
* @LastEditTime: 2021-11-15
21:12:58
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\App.vue
-->
<
template
>
<div
id=
"app"
>
<div
class=
"boxShadow"
></div>
<router-view
v-wechat-title=
"$route.meta.title"
></router-view>
</div>
</
template
>
...
...
@@ -18,10 +17,11 @@ import zoom from "./utils/autosize";
export
default
{};
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
>
/*每个页面公共css */
@import
"assets/styles/main.scss"
;
#app
{
//
height
:
800px
;
margin
:
0
;
padding
:
0
;
box-sizing
:
border-box
;
...
...
src/components/ImageEd.scss
View file @
5c5e6e93
...
...
@@ -1121,6 +1121,9 @@ div {
&
:last-child
{
margin-right
:
0
;
}
&
:nth-child
(
7
)
{
margin-right
:
0
;
}
&
:active
{
background
:
#055fe7
;
box-shadow
:
4px
4px
4px
0px
rgba
(
193
,
216
,
251
,
0
.8
)
,
...
...
@@ -1131,6 +1134,7 @@ div {
.light_dbd
{
width
:
128px
;
height
:
40px
;
margin-right
:
0
;
}
.line
{
width
:
1px
;
...
...
src/components/ImageEd.vue
View file @
5c5e6e93
<!--
* @Author: your name
* @Date: 2021-09-09 09:28:46
* @LastEditTime: 2021-11-15 1
0:07:43
* @LastEditTime: 2021-11-15 1
5:07:25
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\cxyrd\LTz.vue
...
...
@@ -408,7 +408,7 @@
<div
class=
"content"
>
<el-slider
class=
"range-narrow"
id=
"input-range-remove-white-distance"
v-model=
"inputRemoveWhiteRange"
:min=
"0"
:max=
"255"
></el-slider>
<!--
<input
class=
"range-narrow"
id=
"input-range-remove-white-distance"
type=
"range"
min=
"0"
:value=
"inputRemoveWhiteRange"
max=
"255"
/>
-->
<input
class=
"qb_v"
type=
"text"
v-model=
"inputRemoveWhiteRange"
>
<input
class=
"qb_v"
type=
"text"
v-model
.
number
=
"inputRemoveWhiteRange"
>
</div>
</div>
<!-- 滤色器弹框 -->
...
...
@@ -417,7 +417,7 @@
<div
class=
"content"
>
<el-slider
class=
"range-narrow"
id=
"input-range-color-filter-value"
v-model=
"inputColorFilterRange"
:min=
"0"
:max=
"255"
></el-slider>
<!--
<input
class=
"range-narrow"
id=
"input-range-color-filter-value"
type=
"range"
min=
"0"
:value=
"inputColorFilterRange"
max=
"255"
/>
-->
<input
class=
"qb_v"
type=
"text"
v-model=
"inputColorFilterRange"
>
<input
class=
"qb_v"
type=
"text"
v-model
.
number
=
"inputColorFilterRange"
>
</div>
</div>
<!-- 正片叠底弹框 -->
...
...
@@ -438,13 +438,13 @@
<div
class=
"content"
>
<el-slider
class=
"range-narrow"
id=
"input-range-brightness-value"
v-model=
"inputBrightnessRange"
:min=
"-255"
:max=
"255"
></el-slider>
<!--
<input
class=
"range-narrow"
id=
"input-range-brightness-value"
type=
"range"
min=
"-255"
:value=
"inputBrightnessRange"
max=
"255"
/>
-->
<input
class=
"qb_v"
type=
"text"
v-model=
"inputBrightnessRange"
>
<input
class=
"qb_v"
type=
"text"
v-model
.
number
=
"inputBrightnessRange"
>
</div>
<div
class=
"title"
>
对比度
</div>
<div
class=
"content"
>
<el-slider
class=
"range-narrow"
id=
"input-range-contrast-value"
v-model=
"inputContrastRange"
:min=
"0"
:max=
"255"
></el-slider>
<!--
<input
class=
"range-narrow"
id=
"input-range-contrast-value"
type=
"range"
min=
"0"
:value=
"inputContrastRange"
max=
"255"
/>
-->
<input
class=
"qb_v"
type=
"text"
v-model=
"inputContrastRange"
>
<input
class=
"qb_v"
type=
"text"
v-model
.
number
=
"inputContrastRange"
>
</div>
</div>
</div>
...
...
src/main.js
View file @
5c5e6e93
/*
* @Author: your name
* @Date: 2021-09-07 14:39:52
* @LastEditTime: 2021-1
0-29 09:16:5
6
* @LastEditTime: 2021-1
1-15 11:13:3
6
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\main.js
...
...
src/plugins/axios.js
View file @
5c5e6e93
/*
* @Author: your name
* @Date: 2021-09-07 09:57:48
* @LastEditTime: 2021-11-15
19:29:50
* @LastEditTime: 2021-11-15
21:11:46
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\plugins\axios.js
...
...
@@ -16,6 +16,7 @@ import store from "../store";
import
{
Loading
}
from
'element-ui'
;
var
loadingIndex
=
0
;
var
loadingBoo
;
var
timer
;
// Full config: https://github.com/axios/axios#request-config
// axios.defaults.baseURL = process.env.baseURL || process.env.apiUrl || '';
...
...
@@ -64,10 +65,11 @@ _axios.interceptors.response.use(
NProgress
.
done
();
if
(
loadingBoo
)
loadingIndex
--
;
if
(
loadingIndex
==
0
)
{
setTimeout
(()
=>
{
clearTimeout
(
timer
)
timer
=
setTimeout
(()
=>
{
loading
&&
loading
.
close
();
loading
=
null
},
1
0
00
);
},
1
2
00
);
}
if
(
response
.
data
.
code
===
401
)
{
localStorage
.
removeItem
(
"token"
);
//删除名称为“token”的信息。
...
...
@@ -81,10 +83,11 @@ _axios.interceptors.response.use(
NProgress
.
done
();
if
(
loadingBoo
)
loadingIndex
--
;
if
(
loadingIndex
==
0
)
{
clearTimeout
(
timer
)
setTimeout
(()
=>
{
loading
&&
loading
.
close
();
loading
=
null
},
5
00
);
loading
=
null
;
},
12
00
);
}
// Do something with response error
return
Promise
.
reject
(
error
);
...
...
src/router/index.js
View file @
5c5e6e93
/*
* @Author: your name
* @Date: 2021-09-07 09:57:48
* @LastEditTime: 2021-11-1
1 16:58:0
7
* @LastEditTime: 2021-11-1
5 20:07:1
7
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\router\index.js
...
...
@@ -68,8 +68,10 @@ const router = new VueRouter({
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
console
.
log
(
from
);
if
(
from
.
name
===
'ryzwbj'
||
from
.
name
===
'ajzwbj'
)
{
setTimeout
(()
=>
{
// 清空session
sessionStorage
.
clear
()
},
1000
);
}
next
()
})
...
...
src/views/AllPersonnelBase/AllPersonnelBase.vue
View file @
5c5e6e93
...
...
@@ -559,8 +559,10 @@ export default {
},
closeXzry
(
val
)
{
console
.
log
(
"新增人员关闭"
,
val
);
// 增加毛玻璃
this
.
$bus
.
emit
(
'isBlur'
,
val
)
this
.
isShowXzry
=
val
;
this
.
search
();
//
this.search();
},
// 时间格式化
dateTimeFormat
(
row
,
colnum
)
{
...
...
@@ -725,6 +727,7 @@ export default {
this
.
isShowGz
=
true
;
},
closeGz
(
val
)
{
this
.
$bus
.
emit
(
'isBlur'
,
val
)
console
.
log
(
"关注关闭"
,
val
);
this
.
isShowGz
=
val
;
this
.
search
();
...
...
src/views/Editor/modules/ajzwbjLeft.vue
View file @
5c5e6e93
<!--
* @Author: your name
* @Date: 2021-10-22 09:42:07
* @LastEditTime: 2021-11-1
3 11:21:59
* @LastEditTime: 2021-11-1
5 16:11:50
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\ryzwbjLeft.vue
...
...
@@ -71,7 +71,12 @@
</
template
>
<
script
>
import
axios
from
'axios'
;
import
{
Loading
}
from
'element-ui'
;
import
{
mapState
}
from
'vuex'
;
// 取消上一次请求
const
CancelToken
=
axios
.
CancelToken
;
const
source
=
CancelToken
.
source
();
export
default
{
data
()
{
return
{
...
...
@@ -134,6 +139,9 @@ export default {
image
:
null
}
],
// 加载动画
loading
:
null
,
timer
:
null
,
}
},
computed
:
{
...
...
@@ -162,6 +170,7 @@ export default {
* 获取案件指纹原图
*/
getCaseOrigin
(
seq
)
{
this
.
loading
=
Loading
.
service
({
fullscreen
:
true
,
text
:
'正在加载...'
});
this
.
$store
.
commit
(
'zwbj/setSeq'
,
seq
)
let
self
=
this
this
.
$axios
({
...
...
@@ -172,7 +181,8 @@ export default {
barcode
:
self
.
barcode
,
seqno
:
self
.
seq
},
loading
:
false
loading
:
false
,
cancelToken
:
source
.
token
}).
then
(
res
=>
{
console
.
log
(
res
);
if
(
res
.
data
.
code
===
0
)
{
...
...
@@ -183,6 +193,11 @@ export default {
}
}
})
clearTimeout
(
self
.
timer
)
self
.
timer
=
setTimeout
(()
=>
{
self
.
loading
&&
self
.
loading
.
close
();
self
.
loading
=
null
},
1200
);
},
/**
* 获取案件指纹
...
...
src/views/Editor/modules/imageEd.scss
View file @
5c5e6e93
...
...
@@ -1454,6 +1454,7 @@ $transOrigin: var(--transOrigin, 0px, 0px);
.content {
display: flex;
align-items: center;
margin-left: 10px;
}
.title {
font-size: 14px;
...
...
@@ -1469,6 +1470,22 @@ $transOrigin: var(--transOrigin, 0px, 0px);
height: 20px;
}
}
/deep/ .el-slider__runway {
width: 190px;
height: 3px;
margin: 0;
background-color: #eeeeee;
}
/deep/ .el-slider__bar {
height: 3px;
background-color: #055fe7;
}
/deep/ .el-slider__button {
width: 10px;
height: 10px;
background: #ffffff;
border: 2px solid #055fe7;
}
}
.options-line {
width: 304px;
...
...
@@ -1507,6 +1524,22 @@ $transOrigin: var(--transOrigin, 0px, 0px);
}
}
}
/deep/ .el-slider__runway {
width: 200px;
height: 3px;
margin: 0;
background-color: #eeeeee;
}
/deep/ .el-slider__bar {
height: 3px;
background-color: #055fe7;
}
/deep/ .el-slider__button {
width: 10px;
height: 10px;
background: #ffffff;
border: 2px solid #055fe7;
}
.brightness {
margin-top: 10px;
margin-left: 32px;
...
...
src/views/Editor/modules/imageEd.vue
View file @
5c5e6e93
This diff is collapsed.
Click to expand it.
src/views/Editor/modules/imageEdAJ.scss
View file @
5c5e6e93
...
...
@@ -798,8 +798,9 @@ $directionRotate: var(--directionRotate, 0deg);
height: 640px;
background: #ffffff;
display: flex;
justify-content: center;
align-items: center;
filter: "
FlipV
";
// justify-content: center;
// align-items: center;
.tui-image-editor {
width: 640px !important;
height: 640px !important;
...
...
@@ -811,9 +812,9 @@ $directionRotate: var(--directionRotate, 0deg);
max-width: 640px !important;
height: 100%;
width: auto !important;
display: flex !important;
justify-content: center !important;
align-items: center !important;
//
display: flex !important;
//
justify-content: center !important;
//
align-items: center !important;
}
.blc {
position: absolute;
...
...
@@ -2131,6 +2132,21 @@ $directionRotate: var(--directionRotate, 0deg);
top: 128px;
right: 47px;
}
/deep/ .el-slider__runway {
width: 142px;
height: 3px;
margin: 0;
}
/deep/ .el-slider__bar {
height: 3px;
background-color: #055fe7;
}
/deep/ .el-slider__button {
width: 10px;
height: 10px;
background: #ffffff;
border: 2px solid #055fe7;
}
.remove-white {
position: absolute;
top: 150px;
...
...
@@ -2245,6 +2261,3 @@ $directionRotate: var(--directionRotate, 0deg);
transform: scale(1.6);
}
}
\ No newline at end of file
// /deep/.el-select-dropdown__item {
// padding-left: 20px !important;
// }
src/views/Editor/modules/imageEdAJ.vue
View file @
5c5e6e93
<!--
* @Author: your name
* @Date: 2021-10-22 11:36:10
* @LastEditTime: 2021-11-1
3 14:49:54
* @LastEditTime: 2021-11-1
5 19:17:49
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\imageEd.vue
...
...
@@ -1093,9 +1093,9 @@ export default {
console
.
log
(
"flipY: "
,
status
.
flipY
);
console
.
log
(
"angle: "
,
status
.
angle
);
if
(
status
.
flipX
)
{
$
(
".tzdDrawing"
).
css
(
"transform"
,
"rotateY(180deg)"
);
$
(
".tzdDrawing"
).
css
(
"transform"
,
`rotateY(
${
-
status
.
angle
+
180
}
deg) rotateX(
${
-
status
.
angle
}
deg)`
);
}
else
{
$
(
".tzdDrawing"
).
css
(
"transform"
,
"rotateY(0deg)"
);
$
(
".tzdDrawing"
).
css
(
"transform"
,
`rotate(
${
-
status
.
angle
}
deg)`
);
}
});
});
...
...
@@ -1110,15 +1110,17 @@ export default {
console
.
log
(
"flipY: "
,
status
.
flipY
);
console
.
log
(
"angle: "
,
status
.
angle
);
if
(
status
.
flipY
)
{
$
(
".tzdDrawing"
).
css
(
"transform"
,
"rotateX(180deg)"
);
$
(
".tzdDrawing"
).
css
(
"transform"
,
`rotateX(
${
-
status
.
angle
+
180
}
deg) rotateY(
${
-
status
.
angle
}
deg)`
);
}
else
{
$
(
".tzdDrawing"
).
css
(
"transform"
,
"rotateX(0deg)"
);
$
(
".tzdDrawing"
).
css
(
"transform"
,
`rotate(
${
-
status
.
angle
}
deg)`
);
}
});
});
// 重置
$btnResetFlip
.
on
(
"click"
,
function
()
{
self
.
move_left
=
0
self
.
move_TOP
=
0
self
.
isX
=
false
;
self
.
isY
=
false
;
self
.
isReset
=
true
;
...
...
@@ -1162,10 +1164,10 @@ export default {
// 向左旋转30°
$btnRotateClockwise
.
on
(
"click"
,
function
()
{
self
.
isHandTZD
=
false
self
.
startPlace
+
=
30
;
self
.
startPlace
-
=
30
;
self
.
isLeftRotate
=
true
;
self
.
isRightRotate
=
false
;
imageEditor
.
rotate
(
30
);
imageEditor
.
rotate
(
-
30
);
self
.
historys
.
push
(
"旋转"
);
let
canvasImage
=
imageEditor
.
_graphics
.
getCanvasImage
();
console
.
log
(
canvasImage
);
...
...
@@ -1195,10 +1197,10 @@ export default {
// 向右旋转30°
$btnRotateCounterClockWise
.
on
(
"click"
,
function
()
{
self
.
isHandTZD
=
false
self
.
startPlace
-
=
30
;
self
.
startPlace
+
=
30
;
self
.
isLeftRotate
=
false
;
self
.
isRightRotate
=
true
;
imageEditor
.
rotate
(
-
30
).
then
((
res
)
=>
{
imageEditor
.
rotate
(
+
30
).
then
((
res
)
=>
{
console
.
log
(
res
);
});
self
.
historys
.
push
(
"旋转"
);
...
...
@@ -1407,7 +1409,7 @@ export default {
contrast
:
this
.
value
/
255
,
});
})
/*
this.$bus.on('ajzwbjImage', (sourceImage) => {
// 缩放为1
self.zoomLevel = 1
...
...
@@ -1458,32 +1460,40 @@ export default {
}
})
})
*/
this
.
$bus
.
on
(
"ajzwbjImage"
,
(
sourceImage
)
=>
{
self
.
sourceImage
=
sourceImage
;
// 缩放为1
self
.
zoomLevel
=
1
imageEditor
.
resetZoom
()
self
.
sourceImage
=
sourceImage
imageEditor
.
loadImageFromURL
(
"data:image/jpeg;base64,"
+
sourceImage
,
"SampleImage"
)
.
then
(
function
(
sizeValue
)
{
// 更新newHeight和newWidth
self
.
newHeight
=
sizeValue
.
newHeight
self
.
newWidth
=
sizeValue
.
newWidth
// 清除自由绘制和圆形绘制
$
(
".td_circle"
).
remove
();
self
.
circleArr_hand
=
[];
Fcanvas
.
clear
();
self
.
Fcanvas
=
[];
$
(
'.td_circle'
).
remove
()
$
(
'.auto_td_circle'
).
remove
()
self
.
circleArr_hand
=
[]
self
.
autoCircleArr_hand
=
[]
Fcanvas
.
clear
()
self
.
Fcanvas
=
[]
self
.
autoFcanvas
=
[]
// console.log(sizeValue);
// 切换指纹图片时,清空特征点数组
self
.
tzdnumber
=
0
;
self
.
tzdArr
=
[]
;
self
.
autoTzdArr
=
[]
;
self
.
tzdnumber
=
0
self
.
tzdArr
=
[]
self
.
autoTzdArr
=
[]
// 移除图片上的点
$
(
".tzdDom"
).
remove
();
$
(
".auto_tzdDom"
).
remove
();
$
(
'.tzdDom'
).
remove
()
$
(
'.auto_tzdDom'
).
remove
()
imageEditor
.
clearUndoStack
();
// 缩放为1
self
.
zoomLevel
=
1
;
// 获取自动提取特征
self
.
getAutoTzd
(
false
);
...
...
@@ -2093,7 +2103,8 @@ export default {
// Fcanvas.setHeight(self.newHeight*Fcanvas.getZoom())
// document.querySelector('.tzdDrawing').style.transformOrigin = `${originPointer.x}px ${originPointer.y}px`;
$
(
".tzdDrawing"
).
css
(
"transform"
,
`scale(
${
self
.
zoomLevel
}
)`
);
let
canvasImage
=
imageEditor
.
_graphics
.
getCanvasImage
();
$
(
".tzdDrawing"
).
css
(
"transform"
,
`rotate(
${
canvasImage
.
angle
}
deg) scale(
${
self
.
zoomLevel
}
)`
);
$
(
".tzdDrawing_2"
).
css
(
"transform"
,
`scale(
${
self
.
zoomLevel
}
)`
);
// document.querySelector('.tzdDrawing').style.transformOrigin = "260px 260px";
// console.log(`${originPointer.y}px,${originPointer.x}px`);
...
...
@@ -2129,7 +2140,8 @@ export default {
// $('.tzdDom').css('z-index', `9999`)
// $('.tzdDrawing').css('transform-origin', `${originPointer.y}px,${originPointer.x}px`)
// document.querySelector('.tzdDrawing').style.transformOrigin = `${originPointer.x}px ${originPointer.y}px`;
$
(
".tzdDrawing"
).
css
(
"transform"
,
`scale(
${
self
.
zoomLevel
}
)`
);
let
canvasImage
=
imageEditor
.
_graphics
.
getCanvasImage
();
$
(
".tzdDrawing"
).
css
(
"transform"
,
`rotate(
${
canvasImage
.
angle
}
deg) scale(
${
self
.
zoomLevel
}
)`
);
$
(
".tzdDrawing_2"
).
css
(
"transform"
,
`scale(
${
self
.
zoomLevel
}
)`
);
// document.querySelector('.tzdDrawing').style.transformOrigin = "260px 260px";
...
...
@@ -2184,7 +2196,7 @@ export default {
deg
=
0
}
console
.
log
(
self
.
startPlace
,
'原点 '
);
console
.
log
(
self
.
startPlace
,
'原点 '
);
if
(
deg
)
{
$
(
"#tzd"
+
self
.
tzdId
).
css
(
"transform"
,
`rotate(
${
deg
-
self
.
startPlace
}
deg)`
);
}
else
{
...
...
@@ -3157,6 +3169,13 @@ export default {
let
self
=
this
;
console
.
log
(
this
.
rule_num
);
console
.
log
(
this
.
line_distance
);
if
(
this
.
kdvalue
==
'毫米/mm'
)
{
this
.
rule_num
=
this
.
rule_num
}
else
if
(
this
.
kdvalue
==
'厘米/cm'
)
{
this
.
rule_num
=
Number
(
this
.
rule_num
)
*
10
}
else
if
(
this
.
kdvalue
==
'英寸/in'
)
{
this
.
rule_num
=
Number
(
this
.
rule_num
)
*
25.4
}
let
frame
=
(
this
.
line_distance
/
this
.
rule_num
)
*
26
;
this
.
bb
=
((
3
/
5
)
*
this
.
canvasHeight
)
/
frame
;
// let bb = 3/4*Math.pow(self.canvasHeight, 2)/frame
...
...
@@ -5367,3 +5386,10 @@ export default {
<
style
lang=
"scss"
scoped
>
@import
"./imageEdAJ.scss"
;
</
style
>
<
style
lang=
"scss"
>
//
修改下拉框样式
.el-select-dropdown__item
{
padding-left
:
20px
;
}
</
style
>
src/views/Editor/modules/ryzwbjLeft.scss
View file @
5c5e6e93
...
...
@@ -156,6 +156,10 @@
}
}
}
.isHasData
{
background
:
#ECEDF1
;
color
:
#AEAFB4
;
}
}
}
}
src/views/Editor/modules/ryzwbjLeft.vue
View file @
5c5e6e93
<!--
* @Author: your name
* @Date: 2021-10-22 09:42:07
* @LastEditTime: 2021-11-15 1
0:37:25
* @LastEditTime: 2021-11-15 1
4:41:58
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\ryzwbjLeft.vue
...
...
@@ -14,7 +14,7 @@
<div
class=
"zzw-select"
@
click=
"zzwChange($event)"
>
<div
class=
"select-item"
:class=
"
{active: zwSelect==='滚动指纹'}">滚动指纹
</div>
<div
class=
"select-line"
></div>
<div
class=
"select-item"
:class=
"
{active: zwSelect==='平面指纹'}">平面指纹
</div>
<div
class=
"select-item"
:class=
"
{active: zwSelect==='平面指纹'
, isHasData: !PainFingerFlag
}">平面指纹
</div>
<div
class=
"select-line"
></div>
<div
class=
"select-item"
:class=
"
{active: zwSelect==='掌纹'}">掌纹
</div>
</div>
...
...
@@ -88,7 +88,12 @@
</
template
>
<
script
>
import
axios
from
'axios'
;
import
{
Loading
}
from
'element-ui'
;
import
{
mapState
}
from
'vuex'
;
// 取消上一次请求
const
CancelToken
=
axios
.
CancelToken
;
const
source
=
CancelToken
.
source
();
export
default
{
data
()
{
return
{
...
...
@@ -212,7 +217,10 @@ export default {
name
:
'小'
,
image
:
null
}
]
],
// 加载动画
loading
:
null
,
timer
:
null
,
}
},
computed
:
{
...
...
@@ -228,8 +236,8 @@ export default {
// console.log(this.$route);
this
.
id
=
this
.
$route
.
params
.
id
await
this
.
getPainFingers
()
await
this
.
getRollFingers
()
await
this
.
getPainFingers
()
await
this
.
findFinger
()
if
(
self
.
finger
&&
self
.
finger
.
code
)
{
this
.
activerollFinger
=
self
.
finger
.
code
...
...
@@ -255,6 +263,7 @@ export default {
* @return {*}
*/
getRollFingerOrigin
(
seq
)
{
this
.
loading
=
Loading
.
service
({
fullscreen
:
true
,
text
:
'正在加载...'
});
this
.
$store
.
commit
(
'zwbj/setSeq'
,
seq
)
// ip:port/api/org/roll/{id}/{seq}
let
self
=
this
...
...
@@ -266,7 +275,8 @@ export default {
barcode
:
self
.
barcode
,
seqno
:
self
.
seq
},
loading
:
false
loading
:
false
,
cancelToken
:
source
.
token
,
// url: `/api/org/roll/${1}/${seq}?mnt=1`
}).
then
(
res
=>
{
console
.
log
(
res
);
...
...
@@ -278,6 +288,11 @@ export default {
}
}
})
clearTimeout
(
self
.
timer
)
self
.
timer
=
setTimeout
(()
=>
{
self
.
loading
&&
self
.
loading
.
close
();
self
.
loading
=
null
},
1200
);
},
/**
* @description: 获取平面指纹原图
...
...
@@ -285,6 +300,7 @@ export default {
* @return {*}
*/
getPainFingerOrigin
(
seq
)
{
this
.
loading
=
Loading
.
service
({
fullscreen
:
true
,
text
:
'正在加载...'
});
this
.
$store
.
commit
(
'zwbj/setSeq'
,
seq
)
// ip:port/api/org/plain/{id}/{seq}
let
self
=
this
...
...
@@ -296,7 +312,8 @@ export default {
barcode
:
self
.
barcode
,
seqno
:
self
.
seq
},
loading
:
false
loading
:
false
,
cancelToken
:
source
.
token
,
// url: `/api/org/plain/${1}/${seq}?mnt=1`
}).
then
(
res
=>
{
// console.log(res);
...
...
@@ -308,6 +325,11 @@ export default {
}
}
})
clearTimeout
(
self
.
timer
)
self
.
timer
=
setTimeout
(()
=>
{
self
.
loading
&&
self
.
loading
.
close
();
self
.
loading
=
null
},
1200
);
},
/**
* @description: 获取滚动指纹
...
...
@@ -315,6 +337,7 @@ export default {
* @return {*}
*/
async
getRollFingers
()
{
this
.
loading
=
Loading
.
service
({
fullscreen
:
true
,
text
:
'正在加载...'
});
let
self
=
this
// 请求之前先清空图片数据
self
.
rollFingersLeft
.
forEach
((
item
)
=>
{
...
...
@@ -388,9 +411,7 @@ export default {
// 左手
if
(
element
.
seq
>
15
)
{
self
.
painFingersLeft
.
forEach
((
item
)
=>
{
if
(
item
.
code
==
element
.
seq
)
{
item
.
image
=
element
.
image
}
})
...
...
@@ -405,11 +426,20 @@ export default {
}
self
.
PainFingerFlag
=
true
}
else
{
debugger
// 没有平面指纹,不能切换tabl栏
self
.
PainFingerFlag
=
false
}
}
else
{
// 没有数据
this
.
$message
.
error
(
'未查找到相关记录'
)
// 没有平面指纹,不能切换tabl栏
self
.
PainFingerFlag
=
false
}
clearTimeout
(
self
.
timer
)
self
.
timer
=
setTimeout
(()
=>
{
self
.
loading
&&
self
.
loading
.
close
();
self
.
loading
=
null
},
1200
);
},
/**
* @description: 切换单个指纹
...
...
@@ -448,34 +478,36 @@ export default {
async
findFinger
()
{
let
self
=
this
self
.
finger
=
null
self
.
rollFingersLeft
.
some
((
item
,
index
)
=>
{
self
.
rollFingersRight
.
some
((
item
,
index
)
=>
{
if
(
item
.
image
!==
null
)
{
self
.
finger
=
item
return
true
}
})
if
(
self
.
finger
)
return
self
.
finger
self
.
rollFingers
Righ
t
.
some
((
item
,
index
)
=>
{
self
.
rollFingers
Lef
t
.
some
((
item
,
index
)
=>
{
if
(
item
.
image
!==
null
)
{
self
.
finger
=
item
return
true
}
})
if
(
self
.
finger
)
return
self
.
finger
self
.
painFingers
Lef
t
.
some
((
item
,
index
)
=>
{
self
.
painFingers
Righ
t
.
some
((
item
,
index
)
=>
{
if
(
item
.
image
!==
null
)
{
self
.
finger
=
item
return
true
}
})
if
(
self
.
finger
)
return
self
.
finger
self
.
painFingers
Righ
t
.
some
((
item
,
index
)
=>
{
self
.
painFingers
Lef
t
.
some
((
item
,
index
)
=>
{
if
(
item
.
image
!==
null
)
{
self
.
finger
=
item
return
true
}
})
if
(
self
.
finger
)
return
self
.
finger
return
self
.
finger
},
/**
...
...
src/views/Home.vue
View file @
5c5e6e93
This diff is collapsed.
Click to expand it.
src/views/cxyrd/modules/LTCandidate.vue
View file @
5c5e6e93
...
...
@@ -199,6 +199,8 @@
</template>
<
script
>
import
axios
from
'axios'
;
import
{
Loading
}
from
'element-ui'
;
export
default
{
name
:
"LTCandidate"
,
data
()
{
...
...
@@ -246,7 +248,10 @@ export default {
// 是否展示指纹下拉框
isFingerDropdown
:
false
,
// 选择的指纹类型
fingershowType
:
''
fingershowType
:
''
,
// 加载动画
loading
:
null
,
timer
:
null
,
};
},
created
()
{
...
...
@@ -1097,11 +1102,18 @@ export default {
// }
let
zcseq
=
sessionStorage
.
getItem
(
'zcseq'
)
let
qqid
=
sessionStorage
.
getItem
(
'qqid'
)
this
.
loading
=
Loading
.
service
({
fullscreen
:
true
,
text
:
'正在加载...'
});
this
.
$axios
.
post
(
`/api/query/matchcand/dest/
${
qqid
}
/
${
zcseq
}
`
,
{
srcbarcode
:
sessionStorage
.
getItem
(
'srcbarcode'
),
destbarcode
:
self
.
input3
.
trim
()
})
.
then
(
response
=>
{
console
.
log
(
response
);
self
.
tableData
=
response
.
data
.
ret
self
.
total
=
self
.
tableData
.
length
clearTimeout
(
self
.
timer
)
self
.
timer
=
setTimeout
(()
=>
{
self
.
loading
&&
self
.
loading
.
close
();
self
.
loading
=
null
},
1200
);
})
},
/**
...
...
@@ -1121,6 +1133,7 @@ export default {
// 存储目的数据序号
sessionStorage
.
setItem
(
"destseqno"
,
val
.
destseqno
);
this
.
loading
=
Loading
.
service
({
fullscreen
:
true
,
text
:
'正在加载...'
});
// 平面
if
(
val
.
destseqno
>
10
)
{
this
.
$axios
...
...
@@ -1142,6 +1155,11 @@ export default {
self
.
$bus
.
emit
(
"changImageEditTarget"
,
response
.
data
.
ret
.
image
);
})
}
clearTimeout
(
self
.
timer
)
self
.
timer
=
setTimeout
(()
=>
{
self
.
loading
&&
self
.
loading
.
close
();
self
.
loading
=
null
},
1200
);
// this.$axios.get(`/api/api/org/plainByBarcode/R1100002487002018050034/1/`)
// this.$axios
...
...
@@ -1231,7 +1249,7 @@ const candidates = [
}
}
.input
{
width
:
27
2
px
;
width
:
27
0
px
;
height
:
32px
;
background
:
#ffffff
;
border-top-left-radius
:
4px
;
...
...
@@ -1414,7 +1432,7 @@ const candidates = [
}
.lt_candidate
.lt_cnadidate_search
.input
{
box-sizing
:
border-box
;
width
:
2
90
px
;
width
:
2
86
px
;
}
/
deep
/
.el-input
{
box-sizing
:
border-box
!important
;
...
...
src/views/cxyrd/modules/LTSrc.vue
View file @
5c5e6e93
...
...
@@ -76,6 +76,8 @@
</
template
>
<
script
>
import
axios
from
'axios'
;
import
{
Loading
}
from
'element-ui'
;
export
default
{
name
:
"LTSrc"
,
props
:
[
"srcData"
],
...
...
@@ -113,7 +115,10 @@ export default {
fingerTotal
:
0
,
currentRow
:
null
,
options
:
'展开'
,
qqid
:
null
qqid
:
null
,
// 加载动画
loading
:
null
,
timer
:
null
,
};
},
methods
:
{
...
...
@@ -147,6 +152,8 @@ export default {
* @return {*}
*/
handleCurrentChange
(
val
,
old
)
{
// 发送请求
this
.
loading
=
Loading
.
service
({
fullscreen
:
true
,
text
:
'正在加载...'
});
let
self
=
this
if
(
val
==
null
)
return
;
// 改变数据为点击状态
...
...
@@ -174,6 +181,11 @@ export default {
self
.
changeStyle
(
0
,
self
.
enumerate
[
0
])
})
this
.
isActive
=
""
;
clearTimeout
(
self
.
timer
)
self
.
timer
=
setTimeout
(()
=>
{
self
.
loading
&&
self
.
loading
.
close
();
self
.
loading
=
null
},
1200
);
},
/**
* @description: 获取列表数据
...
...
@@ -181,6 +193,8 @@ export default {
* @return {*}
*/
getDetailData
()
{
// 发送请求
this
.
loading
=
Loading
.
service
({
fullscreen
:
true
,
text
:
'正在加载...'
});
let
self
=
this
if
(
this
.
type
==
'father'
)
{
this
.
$axios
...
...
@@ -211,6 +225,10 @@ export default {
})
});
}
self
.
timer
=
setTimeout
(()
=>
{
self
.
loading
&&
self
.
loading
.
close
();
self
.
loading
=
null
},
1200
);
},
// 获取选择的任务详情
getFirgerPrintDetail
(
row
)
{
...
...
@@ -241,11 +259,17 @@ export default {
sessionStorage
.
setItem
(
'srcseqno'
,
imageInfo
.
seq
)
sessionStorage
.
setItem
(
'zcseq'
,
imageInfo
.
seq
)
this
.
$bus
.
emit
(
'changImageEdit'
,
imageInfo
.
image
)
// 发送请求
this
.
loading
=
Loading
.
service
({
fullscreen
:
true
,
text
:
'正在加载...'
});
this
.
$axios
.
post
(
`/api/query/matchcand/dest/
${
self
.
qqid
}
/
${
imageInfo
.
seq
}
`
,
{
srcbarcode
:
sessionStorage
.
getItem
(
'srcbarcode'
)
})
.
then
(
response
=>
{
console
.
log
(
response
);
self
.
$bus
.
emit
(
'initCandidate'
,
response
.
data
.
ret
)
})
self
.
timer
=
setTimeout
(()
=>
{
self
.
loading
&&
self
.
loading
.
close
();
self
.
loading
=
null
},
1200
);
}
},
/**
...
...
src/views/cxyrd/modules/TLCandidate.vue
View file @
5c5e6e93
...
...
@@ -19,6 +19,8 @@
</
template
>
<
script
>
import
axios
from
'axios'
;
import
{
Loading
}
from
'element-ui'
;
export
default
{
name
:
"TLCandidate"
,
data
()
{
...
...
@@ -28,7 +30,10 @@ export default {
tableData
:
[],
sourceTableData
:
[],
checked
:
true
,
total
:
0
total
:
0
,
// 加载动画
loading
:
null
,
timer
:
null
,
};
},
created
()
{
...
...
@@ -64,18 +69,27 @@ export default {
* @param {*}
* @return {*}
*/
search
()
{
search
()
{
let
self
=
this
let
dcseq
=
sessionStorage
.
getItem
(
'dcseq'
)
let
qqid
=
sessionStorage
.
getItem
(
'qqid'
)
this
.
$axios
.
post
(
`/api/query/matchcand/dest/
${
qqid
}
/
${
dcseq
}
`
,
{
srcbarcode
:
sessionStorage
.
getItem
(
'srcbarcode'
),
destbarcode
:
self
.
input3
.
trim
()
})
this
.
loading
=
Loading
.
service
({
fullscreen
:
true
,
text
:
'正在加载...'
});
this
.
$axios
.
post
(
`/api/query/matchcand/dest/
${
qqid
}
/
${
dcseq
}
`
,
{
srcbarcode
:
sessionStorage
.
getItem
(
'srcbarcode'
),
destbarcode
:
self
.
input3
.
trim
()
},
{
loading
:
false
})
.
then
(
response
=>
{
console
.
log
(
response
);
self
.
tableData
=
response
.
data
.
ret
self
.
total
=
self
.
tableData
.
total
clearTimeout
(
self
.
timer
)
self
.
timer
=
setTimeout
(()
=>
{
self
.
loading
&&
self
.
loading
.
close
();
self
.
loading
=
null
},
1200
);
})
},
handleCurrentChange
(
val
,
old
)
{
const
CancelToken
=
axios
.
CancelToken
;
const
source
=
CancelToken
.
source
();
let
self
=
this
console
.
info
(
val
,
old
);
if
(
val
!=
null
)
{
...
...
@@ -88,14 +102,20 @@ export default {
// 存储倒查序号
sessionStorage
.
setItem
(
"backcheckXh"
,
val
.
destseqno
)
// this.$axios.get(`/api/api/org/plainByBarcode/R1100002487002018050034/1/`)
this
.
loading
=
Loading
.
service
({
fullscreen
:
true
,
text
:
'正在加载...'
});
this
.
$axios
.
post
(
'/api/org/caseBybarcode/barcode/seq'
,
{
barcode
:
val
.
destbarcode
,
seqno
:
val
.
destseqno
,
barcode
:
val
.
destbarcode
,
seqno
:
val
.
destseqno
,
qqid
:
val
.
qqid
}).
then
(
response
=>
{
}
,
{
loading
:
false
,
cancelToken
:
source
.
token
}
).
then
(
response
=>
{
console
.
log
(
response
);
self
.
$bus
.
emit
(
"changImageEditTarget"
,
response
.
data
.
ret
.
image
);
clearTimeout
(
self
.
timer
)
self
.
timer
=
setTimeout
(()
=>
{
self
.
loading
&&
self
.
loading
.
close
();
self
.
loading
=
null
},
1200
);
});
// this.$axios
// .get(`/api/org/plainByBarcode/${val.destbarcode}/${val.destid}`)
...
...
src/views/cxyrd/modules/TLSrc.vue
View file @
5c5e6e93
...
...
@@ -254,6 +254,8 @@
</
template
>
<
script
>
import
axios
from
'axios'
;
import
{
Loading
}
from
'element-ui'
;
import
'nprogress/nprogress.css'
import
NProgress
from
'nprogress'
;
import
"@/icons/loading.svg"
;
...
...
@@ -327,7 +329,10 @@ export default {
// 指纹图片加载
fingerLoading
:
true
,
// 平面的tab栏是否可以点击
painFlag
:
true
painFlag
:
true
,
// 加载动画
loading
:
null
,
timer
:
null
,
};
},
mounted
()
{
...
...
@@ -376,7 +381,7 @@ export default {
* @return {*}
*/
switchPain
()
{
if
(
!
this
.
painFlag
)
return
;
if
(
!
this
.
painFlag
)
return
;
this
.
fingerShowType
=
'pain'
},
/**
...
...
@@ -434,6 +439,8 @@ export default {
barcode
:
barcode
,
qqid
:
self
.
qqid
,
querytype
:
'1'
},
{
loading
:
false
})
console
.
log
(
fingerPain
);
if
(
fingerPain
.
data
.
ret
&&
fingerPain
.
data
.
ret
.
length
>
0
)
{
...
...
@@ -492,6 +499,8 @@ export default {
barcode
:
barcode
,
qqid
:
self
.
qqid
,
querytype
:
'1'
},
{
loading
:
false
})
console
.
log
(
fingerRoll
);
if
(
fingerRoll
.
data
.
ret
&&
fingerRoll
.
data
.
ret
.
length
>
0
)
{
...
...
@@ -572,12 +581,15 @@ export default {
// 获取列表数据
async
getDetailData
()
{
// 发送请求
this
.
loading
=
Loading
.
service
({
fullscreen
:
true
,
text
:
'正在加载...'
});
NProgress
.
start
();
console
.
info
(
this
.
dataList
);
let
self
=
this
if
(
self
.
type
==
'father'
)
{
await
this
.
$axios
.
post
(
"/api/queryque/standardAll"
,
{
contrastCustomSearchReq
:
{
qid
:
Number
(
self
.
qid
)
}
})
.
post
(
"/api/queryque/standardAll"
,
{
contrastCustomSearchReq
:
{
qid
:
Number
(
self
.
qid
)
}
},
{
loading
:
false
})
.
then
(
response
=>
{
console
.
log
(
response
);
self
.
sourceDataList
=
response
.
data
.
ret
...
...
@@ -591,7 +603,9 @@ export default {
});
}
else
{
await
this
.
$axios
.
post
(
"/api/queryque/standardAll"
,
{
contrastCustomSearchReq
:
{
qqid
:
Number
(
self
.
qqid
)
}
})
.
post
(
"/api/queryque/standardAll"
,
{
contrastCustomSearchReq
:
{
qqid
:
Number
(
self
.
qqid
)
}
},
{
loading
:
false
})
.
then
(
response
=>
{
console
.
log
(
response
);
self
.
sourceDataList
=
response
.
data
.
ret
...
...
@@ -604,7 +618,6 @@ export default {
})
});
}
NProgress
.
done
();
},
/**
...
...
@@ -681,6 +694,9 @@ export default {
* @return {*}
*/
changeStyleLeftR
(
index
,
imageInfo
)
{
const
CancelToken
=
axios
.
CancelToken
;
const
source
=
CancelToken
.
source
();
console
.
log
(
imageInfo
);
let
self
=
this
// 如果图片存在
...
...
@@ -697,12 +713,40 @@ export default {
this
.
$bus
.
emit
(
'changImageEdit'
,
imageInfo
.
image
)
}
NProgress
.
start
();
this
.
$axios
.
post
(
`/api/query/matchcand/dest/
${
self
.
qqid
}
/
${
imageInfo
.
code
}
`
,
{
srcbarcode
:
sessionStorage
.
getItem
(
'srcbarcode'
)
})
this
.
loading
=
Loading
.
service
({
fullscreen
:
true
,
text
:
'正在加载...'
});
this
.
$axios
({
method
:
'post'
,
url
:
`/api/query/matchcand/dest/
${
self
.
qqid
}
/
${
imageInfo
.
code
}
`
,
data
:
{
srcbarcode
:
sessionStorage
.
getItem
(
'srcbarcode'
)
},
cancelToken
:
source
.
token
,
loading
:
false
,
})
// this.$axios.post(`/api/query/matchcand/dest/${self.qqid}/${imageInfo.code}`, { srcbarcode: sessionStorage.getItem('srcbarcode') }, {
// loading: false,
// cancelToken: new this.$axios.CancelToken(function executor (c) {
// self.source = c;
// })
// })
.
then
(
response
=>
{
console
.
log
(
response
);
self
.
$bus
.
emit
(
'initTLCandidate'
,
response
.
data
.
ret
)
}).
catch
(
error
=>
{
if
(
this
.
$axios
.
isCancel
(
err
))
{
console
.
log
(
'Rquest canceled'
,
err
.
message
);
//请求如果被取消,这里是返回取消的message
}
else
{
//handle error
console
.
log
(
err
);
}
})
NProgress
.
done
();
clearTimeout
(
self
.
timer
)
self
.
timer
=
setTimeout
(()
=>
{
self
.
loading
&&
self
.
loading
.
close
();
self
.
loading
=
null
},
1200
);
}
},
/**
...
...
@@ -712,6 +756,8 @@ export default {
* @return {*}
*/
changeStyleRightR
(
index
,
imageInfo
)
{
const
CancelToken
=
axios
.
CancelToken
;
const
source
=
CancelToken
.
source
();
console
.
log
(
imageInfo
);
let
self
=
this
if
(
imageInfo
.
image
)
{
...
...
@@ -726,12 +772,28 @@ export default {
this
.
$bus
.
emit
(
'changImageEdit'
,
imageInfo
.
image
)
}
NProgress
.
start
();
this
.
$axios
.
post
(
`/api/query/matchcand/dest/
${
self
.
qqid
}
/
${
imageInfo
.
code
}
`
,
{
srcbarcode
:
sessionStorage
.
getItem
(
'srcbarcode'
)
})
this
.
loading
=
Loading
.
service
({
fullscreen
:
true
,
text
:
'正在加载...'
});
this
.
$axios
.
post
(
`/api/query/matchcand/dest/
${
self
.
qqid
}
/
${
imageInfo
.
code
}
`
,
{
srcbarcode
:
sessionStorage
.
getItem
(
'srcbarcode'
)
},
{
loading
:
false
,
cancelToken
:
source
.
token
,
})
.
then
(
response
=>
{
console
.
log
(
response
);
self
.
$bus
.
emit
(
'initTLCandidate'
,
response
.
data
.
ret
)
}).
catch
(
err
=>
{
if
(
this
.
$axios
.
isCancel
(
err
))
{
console
.
log
(
'Rquest canceled'
,
err
.
message
);
//请求如果被取消,这里是返回取消的message
}
else
{
//handle error
console
.
log
(
err
);
}
})
NProgress
.
done
();
clearTimeout
(
self
.
timer
)
self
.
timer
=
setTimeout
(()
=>
{
self
.
loading
&&
self
.
loading
.
close
();
self
.
loading
=
null
},
1200
);
}
},
/**
...
...
@@ -741,6 +803,8 @@ export default {
* @return {*}
*/
changeStyleLeftL
(
index
,
imageInfo
)
{
const
CancelToken
=
axios
.
CancelToken
;
const
source
=
CancelToken
.
source
();
console
.
log
(
imageInfo
);
let
self
=
this
if
(
imageInfo
.
image
)
{
...
...
@@ -755,12 +819,28 @@ export default {
this
.
$bus
.
emit
(
'changImageEdit'
,
imageInfo
.
image
)
}
NProgress
.
start
();
this
.
$axios
.
post
(
`/api/query/matchcand/dest/
${
self
.
qqid
}
/
${
imageInfo
.
code
}
`
,
{
srcbarcode
:
sessionStorage
.
getItem
(
'srcbarcode'
)
})
this
.
loading
=
Loading
.
service
({
fullscreen
:
true
,
text
:
'正在加载...'
});
this
.
$axios
.
post
(
`/api/query/matchcand/dest/
${
self
.
qqid
}
/
${
imageInfo
.
code
}
`
,
{
srcbarcode
:
sessionStorage
.
getItem
(
'srcbarcode'
)
},
{
loading
:
false
,
cancelToken
:
source
.
token
,
})
.
then
(
response
=>
{
console
.
log
(
response
);
self
.
$bus
.
emit
(
'initTLCandidate'
,
response
.
data
.
ret
)
}).
catch
(
err
=>
{
if
(
this
.
$axios
.
isCancel
(
err
))
{
console
.
log
(
'Rquest canceled'
,
err
.
message
);
//请求如果被取消,这里是返回取消的message
}
else
{
//handle error
console
.
log
(
err
);
}
})
NProgress
.
done
();
clearTimeout
(
self
.
timer
)
self
.
timer
=
setTimeout
(()
=>
{
self
.
loading
&&
self
.
loading
.
close
();
self
.
loading
=
null
},
1200
);
}
},
/**
...
...
@@ -770,6 +850,8 @@ export default {
* @return {*}
*/
changeStyleRightL
(
index
,
imageInfo
)
{
const
CancelToken
=
axios
.
CancelToken
;
const
source
=
CancelToken
.
source
();
console
.
log
(
imageInfo
);
let
self
=
this
if
(
imageInfo
.
image
)
{
...
...
@@ -784,15 +866,39 @@ export default {
this
.
$bus
.
emit
(
'changImageEdit'
,
imageInfo
.
image
)
}
NProgress
.
start
();
this
.
$axios
.
post
(
`/api/query/matchcand/dest/
${
self
.
qqid
}
/
${
imageInfo
.
code
}
`
,
{
"srcbarcode"
:
sessionStorage
.
getItem
(
'srcbarcode'
)
})
this
.
loading
=
Loading
.
service
({
fullscreen
:
true
,
text
:
'正在加载...'
});
this
.
$axios
.
post
(
`/api/query/matchcand/dest/
${
self
.
qqid
}
/
${
imageInfo
.
code
}
`
,
{
"srcbarcode"
:
sessionStorage
.
getItem
(
'srcbarcode'
)
},
{
loading
:
false
,
cancelToken
:
source
.
token
,
})
.
then
(
response
=>
{
console
.
log
(
response
);
self
.
$bus
.
emit
(
'initTLCandidate'
,
response
.
data
.
ret
)
}).
catch
(
err
=>
{
if
(
this
.
$axios
.
isCancel
(
err
))
{
console
.
log
(
'Rquest canceled'
,
err
.
message
);
//请求如果被取消,这里是返回取消的message
}
else
{
//handle error
console
.
log
(
err
);
}
})
NProgress
.
done
();
clearTimeout
(
self
.
timer
)
self
.
timer
=
setTimeout
(()
=>
{
self
.
loading
&&
self
.
loading
.
close
();
self
.
loading
=
null
},
1200
);
}
},
/**
* 取消删一次请求
*/
cancelQuest
()
{
if
(
typeof
this
.
source
===
'function'
)
{
this
.
source
(
'终止请求'
);
//取消请求
}
},
},
watch
:
{
/**
* @description: 过滤显示已认定完成查询ID
...
...
vue.config.js
View file @
5c5e6e93
/*
* @Author: your name
* @Date: 2021-09-07 09:57:48
* @LastEditTime: 2021-11-15
13:38:00
* @LastEditTime: 2021-11-15
21:11:13
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\vue.config.js
...
...
@@ -92,12 +92,13 @@ module.exports = {
// target: "http://192.168.0.137:8080/", //统一的请求头部每次修改都要重启才会生效 http://39.99.224.27:8006/
// target: "http://172.18.108.2:8099/", // 张 认定
// target: "http://192.168.128.110:8099", // 湖南-张
target
:
"http://192.168.128.114:8099"
,
// 湖南-马
//
target: "http://192.168.128.114:8099", // 湖南-马
// target: "http://192.168.128.116:8099", // 湖南-王
// 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/"
,
// 湖南-线上
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