Commit 62346da5 by 张超军

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

parent 68c1f125
......@@ -15,6 +15,7 @@ import workstream from '../netmgr/workstream/workstream'
import fingerprint from '../netmgr/fingerprint/fingerprint'
import cxyrdUser from './cxyrdUser/cxyrdUser'
import imageEd from './imageEd/imageEd'
import ryxxk from './ryxxk/ryxxk'
export default {
bzxxsh,
......@@ -25,5 +26,6 @@ export default {
workstream,
fingerprint,
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 {
},
},
methods: {
// 获取人像
getFaceByBarcode () {
// 获取人像
let self = this;
if (self.FaceCount > 0) return;
self.FaceCount++
this.FaceImgNum = 0;
this.$axios
.post(
"/api/org/face/barcode",
{ barcode: this.ysryjbxx.ysxtAsjxgrybh },
{ loading: false }
)
NetUtil.ryxxk.getFaceByBarcode({ barcode: this.ysryjbxx.ysxtAsjxgrybh })
.then((response) => {
console.log(response.data);
if (response.data.code == 0) {
......@@ -537,18 +532,13 @@ export default {
//console.log(error);
});
},
// 获取掌纹
getPalmByBarcode () {
// 获取掌纹
let self = this;
if (self.PalmCount > 0) return;
self.PalmCount++
this.PalmImgNum = 0;
this.$axios
.post(
"/api/png/palm/barcode",
{ barcode: this.ysryjbxx.ysxtAsjxgrybh },
{ loading: false }
)
NetUtil.ryxxk.getPalmByBarcode({ barcode: this.ysryjbxx.ysxtAsjxgrybh })
.then((response) => {
console.log(response.data);
if (response.data.code == 0) {
......@@ -571,15 +561,10 @@ export default {
//console.log(error);
});
},
// 人员平面压缩图
getPlainByBarcode () {
// 人员平面压缩图
let self = this;
this.$axios
.post(
"/api/png/plain/barcode",
{ barcode: this.ysryjbxx.ysxtAsjxgrybh },
{ loading: false }
)
NetUtil.ryxxk.getPlainByBarcode({ barcode: this.ysryjbxx.ysxtAsjxgrybh })
.then((response) => {
// console.log(response.data);
if (response.data.code == 0) {
......@@ -603,15 +588,10 @@ export default {
//console.log(error);
});
},
// 人员滚动压缩图
getRollByBarcode () {
// 人员滚动压缩图
// let self = this;
this.$axios
.post(
"/api/png/roll/barcode",
{ barcode: this.ysryjbxx.ysxtAsjxgrybh },
{ loading: false }
)
NetUtil.ryxxk.getRollByBarcode({ barcode: this.ysryjbxx.ysxtAsjxgrybh })
.then((response) => {
console.log(response.data);
if (response.data.code == 0) {
......@@ -716,6 +696,7 @@ export default {
{ name: "右侧像", code: 4, img: null },
{ name: "身份证", code: 11, img: null },
];
fHttp.cancel()
},
closeDrawer () {
this.FaceImgNum = 0;
......@@ -771,6 +752,7 @@ export default {
{ name: "右侧像", code: 4, img: null },
{ name: "身份证", code: 11, img: null },
];
fHttp.cancel()
},
},
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