Commit 62346da5 by 张超军

全部人员库修改接口请求信息卡,取消上一次请求

parent 68c1f125
...@@ -15,6 +15,7 @@ import workstream from '../netmgr/workstream/workstream' ...@@ -15,6 +15,7 @@ import workstream from '../netmgr/workstream/workstream'
import fingerprint from '../netmgr/fingerprint/fingerprint' import fingerprint from '../netmgr/fingerprint/fingerprint'
import cxyrdUser from './cxyrdUser/cxyrdUser' import cxyrdUser from './cxyrdUser/cxyrdUser'
import imageEd from './imageEd/imageEd' import imageEd from './imageEd/imageEd'
import ryxxk from './ryxxk/ryxxk'
export default { export default {
bzxxsh, bzxxsh,
...@@ -25,5 +26,6 @@ export default { ...@@ -25,5 +26,6 @@ export default {
workstream, workstream,
fingerprint, fingerprint,
cxyrdUser, cxyrdUser,
imageEd imageEd,
ryxxk
} }
/*
* @Author: zhangchaojun
* @Date: 2022-01-21 14:10:13
* @LastEditTime: 2022-04-04 20:55:21
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \指纹系统\founder_vue\src\netmgr\xxk\ryxxk.js
*/
import addrType from '../NetAddressType'
import HttpConfigUtil from '../../request/HttpConfigUtil.js'
const _path = {
// 人员平面压缩图
getPlainByBarcode: addrType.api + '/png/plain/barcode',
// 人员滚动压缩图
getRollByBarcode: addrType.api + '/png/roll/barcode',
// 获取人像
getFaceByBarcode: addrType.api + '/org/face/barcode',
// 获取掌纹
getPalmByBarcode: addrType.api + '/png/palm/barcode',
}
export default {
getPlainByBarcode(_parameter) {
return fHttp.postJson(
_path.getPlainByBarcode,
_parameter,
HttpConfigUtil.closeLoadAndTip()
)
},
getRollByBarcode(_parameter) {
return fHttp.postJson(
_path.getRollByBarcode,
_parameter,
HttpConfigUtil.closeLoadAndTip()
)
},
getFaceByBarcode(_parameter) {
return fHttp.postJson(
_path.getFaceByBarcode,
_parameter,
HttpConfigUtil.closeLoadAndTip()
)
},
getPalmByBarcode(_parameter) {
return fHttp.postJson(
_path.getPalmByBarcode,
_parameter,
HttpConfigUtil.closeLoadAndTip()
)
}
}
...@@ -503,18 +503,13 @@ export default { ...@@ -503,18 +503,13 @@ export default {
}, },
}, },
methods: { methods: {
getFaceByBarcode () {
// 获取人像 // 获取人像
getFaceByBarcode () {
let self = this; let self = this;
if (self.FaceCount > 0) return; if (self.FaceCount > 0) return;
self.FaceCount++ self.FaceCount++
this.FaceImgNum = 0; this.FaceImgNum = 0;
this.$axios NetUtil.ryxxk.getFaceByBarcode({ barcode: this.ysryjbxx.ysxtAsjxgrybh })
.post(
"/api/org/face/barcode",
{ barcode: this.ysryjbxx.ysxtAsjxgrybh },
{ loading: false }
)
.then((response) => { .then((response) => {
console.log(response.data); console.log(response.data);
if (response.data.code == 0) { if (response.data.code == 0) {
...@@ -537,18 +532,13 @@ export default { ...@@ -537,18 +532,13 @@ export default {
//console.log(error); //console.log(error);
}); });
}, },
getPalmByBarcode () {
// 获取掌纹 // 获取掌纹
getPalmByBarcode () {
let self = this; let self = this;
if (self.PalmCount > 0) return; if (self.PalmCount > 0) return;
self.PalmCount++ self.PalmCount++
this.PalmImgNum = 0; this.PalmImgNum = 0;
this.$axios NetUtil.ryxxk.getPalmByBarcode({ barcode: this.ysryjbxx.ysxtAsjxgrybh })
.post(
"/api/png/palm/barcode",
{ barcode: this.ysryjbxx.ysxtAsjxgrybh },
{ loading: false }
)
.then((response) => { .then((response) => {
console.log(response.data); console.log(response.data);
if (response.data.code == 0) { if (response.data.code == 0) {
...@@ -571,15 +561,10 @@ export default { ...@@ -571,15 +561,10 @@ export default {
//console.log(error); //console.log(error);
}); });
}, },
getPlainByBarcode () {
// 人员平面压缩图 // 人员平面压缩图
getPlainByBarcode () {
let self = this; let self = this;
this.$axios NetUtil.ryxxk.getPlainByBarcode({ barcode: this.ysryjbxx.ysxtAsjxgrybh })
.post(
"/api/png/plain/barcode",
{ barcode: this.ysryjbxx.ysxtAsjxgrybh },
{ loading: false }
)
.then((response) => { .then((response) => {
// console.log(response.data); // console.log(response.data);
if (response.data.code == 0) { if (response.data.code == 0) {
...@@ -603,15 +588,10 @@ export default { ...@@ -603,15 +588,10 @@ export default {
//console.log(error); //console.log(error);
}); });
}, },
getRollByBarcode () {
// 人员滚动压缩图 // 人员滚动压缩图
getRollByBarcode () {
// let self = this; // let self = this;
this.$axios NetUtil.ryxxk.getRollByBarcode({ barcode: this.ysryjbxx.ysxtAsjxgrybh })
.post(
"/api/png/roll/barcode",
{ barcode: this.ysryjbxx.ysxtAsjxgrybh },
{ loading: false }
)
.then((response) => { .then((response) => {
console.log(response.data); console.log(response.data);
if (response.data.code == 0) { if (response.data.code == 0) {
...@@ -716,6 +696,7 @@ export default { ...@@ -716,6 +696,7 @@ export default {
{ name: "右侧像", code: 4, img: null }, { name: "右侧像", code: 4, img: null },
{ name: "身份证", code: 11, img: null }, { name: "身份证", code: 11, img: null },
]; ];
fHttp.cancel()
}, },
closeDrawer () { closeDrawer () {
this.FaceImgNum = 0; this.FaceImgNum = 0;
...@@ -771,6 +752,7 @@ export default { ...@@ -771,6 +752,7 @@ export default {
{ name: "右侧像", code: 4, img: null }, { name: "右侧像", code: 4, img: null },
{ name: "身份证", code: 11, img: null }, { name: "身份证", code: 11, img: null },
]; ];
fHttp.cancel()
}, },
}, },
filters: { filters: {
......
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