Commit cea35057 by 张超军

保存图片时保存分数

parent 935a4325
/*
* @Author: your name
* @Date: 2021-12-24 17:21:54
* @LastEditTime: 2022-01-18 20:30:08
* @LastEditTime: 2022-02-07 16:18:26
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \指纹系统\founder_vue\src\netmgr\NetUtil.js
......@@ -12,6 +12,7 @@ import ajxxk from '../netmgr/xxk/ajxxk'
import xtfkgl from '../netmgr/xtfkgl/xtfkgl'
import cxyrd from '../netmgr/cxyrd/cxyrd'
import workstream from '../netmgr/workstream/workstream'
import fingerprint from '../netmgr/fingerprint/fingerprint'
export default {
bzxxsh,
......@@ -19,5 +20,6 @@ export default {
ajxxk,
xtfkgl,
cxyrd,
workstream
workstream,
fingerprint
}
/*
* @Author: your name
* @Date: 2022-02-07 16:05:52
* @LastEditTime: 2022-02-07 16:17:12
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \指纹系统\founder_vue\src\netmgr\fingerprint\fingerprint.js
*/
import addrType from '../../netmgr/NetAddressType'
const _path = {
saveScoreUrl: addrType.api + '/api/',
}
export default {
saveScore(_parameter) {
return fHttp.postJson(_path.saveScoreUrl + 'score/save', _parameter)
},
}
......@@ -35,7 +35,6 @@ let config = {
};
const _axios = axios.create(config);
_axios.interceptors.request.use(
function (config) {
//判断是否登录
......@@ -63,6 +62,7 @@ _axios.interceptors.request.use(
}
);
// Add a response interceptor
_axios.interceptors.response.use(
function (response) {
......
......@@ -129,7 +129,7 @@
</el-aside>
</transition>
<el-container class="container-dom">
<el-header class="header">
<el-header class="header" height="4rem">
<div
class="collapse"
@click="switchCollapse"
......
......@@ -819,6 +819,9 @@ export default {
getQueryType (data, type) {
let { name, value } = data;
let list = this.reqParam.contrastCustomSearchReq[type];
console.log(name);
console.log(value);
console.log(list);
if (list.includes(value)) {
list = list.filter((item) => item !== value);
this.dynamicTags = this.dynamicTags.filter(
......
......@@ -1789,10 +1789,10 @@ label {
// background: #fff;
.btns {
padding-top: 10px;
width: 100%;
height: 32px;
padding: 12px 40px;
background-color: #FFFFFF;
background-color: #f6f8fa;
display: flex;
align-items: center;
justify-content: space-around;
......@@ -1837,7 +1837,7 @@ label {
margin-top: 0px;
overflow-y: auto;
width: 100%;
height: 500px;
height: 495px;
padding-left: 18px;
.outside {
......@@ -2302,7 +2302,7 @@ label {
font-size: 12px;
font-family: HarmonyOS_Sans_SC;
color: #999999;
margin-top: 18px;
margin-top: 0px;
height: 40px;
display: flex;
justify-content: center;
......
......@@ -2272,7 +2272,18 @@ export default {
self.clickTimes = 0; // 单击清零
// 触发单击事件...
// alert(1)
self.lookFinger(finger, index, type)
// 滚动
if(type == 'r') {
if(finger.imgSrcR){
self.lookFinger(finger, index, type)
}
} else {
// 平面
if(finger.imgSrcL){
self.lookFinger(finger, index, type)
}
}
// self.lookFinger(finger, index, type)
}
}, 300)
if (self.clickTimes === 2) { //当点击次数为2
......@@ -2290,9 +2301,23 @@ export default {
self.clickTimes = 0; // 单击清零
// 触发单击事件...
// alert(1)
if(finger.imgSrcR && finger.imgSrcL) {
self.lookFinger(finger, index, type)
console.log(finger);
console.log(index);
console.log(type);
// 滚动
if(type == 'r') {
if(finger.imgSrcR){
self.lookFinger(finger, index, type)
}
} else {
// 平面
if(finger.imgSrcL){
self.lookFinger(finger, index, type)
}
}
// if(finger.imgSrcR && finger.imgSrcL) {
// self.lookFinger(finger, index, type)
// }
}
}, 300)
if (self.clickTimes === 2) { //当点击次数为2
......@@ -4754,6 +4779,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: Number(rightList[index].code) + 10, zw_txsj: res.data, zw_txzl: rightList[index].scoreL })
}
self.saveScore(self.rybh, rightList[index].scoreL, Number(rightList[index].code) + 10)
})
setTimeout(() => {
......@@ -4928,6 +4954,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: Number(leftList[index - 5].code) + 10, zw_txsj: res.data, zw_txzl: leftList[index - 5].scoreL })
}
self.saveScore(self.rybh, leftList[index - 5].scoreL, Number(leftList[index - 5].code) + 10)
})
setTimeout(() => {
......@@ -5239,6 +5266,14 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: Number(rightList[index].code) + 10, zw_txsj: res.data, zw_txzl: rightList[index].scoreL })
}
// NetUtil.fingerprint.fingerprint({
// barcode: self.barcode,
// score: rightList[index].scoreL,
// seq: Number(rightList[index].code) + 10
// }).then(res => {
// console.log(res);
// })
self.saveScore(self.rybh, rightList[index].scoreL, Number(rightList[index].code) + 10)
})
setTimeout(() => {
......@@ -5336,6 +5371,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: Number(rightList[index].code) + 10, zw_txsj: res.data, zw_txzl: rightList[index].scoreL })
}
self.saveScore(self.rybh, rightList[index].scoreL, Number(rightList[index].code) + 10)
})
setTimeout(() => {
......@@ -5539,6 +5575,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: Number(leftList[index - 5].code) + 10, zw_txsj: res.data, zw_txzl: leftList[index - 5].scoreL })
}
self.saveScore(self.rybh, leftList[index - 5].scoreL, Number(leftList[index - 5].code) + 10)
})
setTimeout(() => {
......@@ -5623,6 +5660,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: Number(leftList[index - 5].code) + 10, zw_txsj: res.data, zw_txzl: leftList[index - 5].scoreL })
}
self.saveScore(self.rybh, leftList[index - 5].scoreL, Number(leftList[index - 5].code) + 10)
})
setTimeout(() => {
......@@ -5720,6 +5758,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: Number(leftList[index - 5].code) + 10, zw_txsj: res.data, zw_txzl: leftList[index - 5].scoreL })
}
self.saveScore(self.rybh, leftList[index - 5].scoreL, Number(leftList[index - 5].code) + 10)
})
......@@ -5929,6 +5968,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: Number(rightList[index].code) + 10, zw_txsj: res.data, zw_txzl: rightList[index].scoreL })
}
self.saveScore(self.rybh, rightList[index].scoreL, Number(rightList[index].code) + 10)
})
setTimeout(() => {
......@@ -6013,6 +6053,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: Number(rightList[index].code) + 10, zw_txsj: res.data, zw_txzl: rightList[index].scoreL })
}
self.saveScore(self.rybh, rightList[index].scoreL, Number(rightList[index].code) + 10)
})
setTimeout(() => {
......@@ -6110,6 +6151,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: Number(rightList[index].code) + 10, zw_txsj: res.data, zw_txzl: rightList[index].scoreL })
}
self.saveScore(self.rybh, rightList[index].scoreL, Number(rightList[index].code) + 10)
})
setTimeout(() => {
......@@ -6314,6 +6356,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: Number(leftList[index - 5].code) + 10, zw_txsj: res.data, zw_txzl: leftList[index - 5].scoreL })
}
self.saveScore(self.rybh, leftList[index - 5].scoreL, Number(leftList[index - 5].code) + 10)
})
setTimeout(() => {
......@@ -6398,6 +6441,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: Number(leftList[index - 5].code) + 10, zw_txsj: res.data, zw_txzl: leftList[index - 5].scoreL })
}
self.saveScore(self.rybh, leftList[index - 5].scoreL, Number(leftList[index - 5].code) + 10)
})
setTimeout(() => {
......@@ -6495,6 +6539,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: Number(leftList[index - 5].code) + 10, zw_txsj: res.data, zw_txzl: leftList[index - 5].scoreL })
}
self.saveScore(self.rybh, leftList[index - 5].scoreL, Number(leftList[index - 5].code) + 10)
})
......@@ -6723,6 +6768,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: (Number(rightList[index].code) > 9) ? Number(rightList[index].code) : ('0' + Number(rightList[index].code)), zw_txsj: res.data, zw_txzl: rightList[index].scoreR })
}
self.saveScore(self.rybh, rightList[index].scoreR, (Number(rightList[index].code) > 9) ? Number(rightList[index].code) : ('0' + Number(rightList[index].code)))
})
setTimeout(() => {
......@@ -6733,9 +6779,6 @@ export default {
} else {
//console.log(data.singleRolledFinger);
self.$set(rightList[index], 'scoreR', data.singleRolledFinger.nfiq2Score[0])
console.log('====================================');
console.log(self.themeType);
console.log('====================================');
// 大于及格分
if (rightList[index].scoreR > self.defaultScore) {
if (self.themeType == "深色" || self.themeType == "浅色") {
......@@ -6808,6 +6851,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: (Number(rightList[index].code) > 9) ? Number(rightList[index].code) : ('0' + Number(rightList[index].code)), zw_txsj: res.data, zw_txzl: rightList[index].scoreR })
}
self.saveScore(self.rybh, rightList[index].scoreR, (Number(rightList[index].code) > 9) ? Number(rightList[index].code) : ('0' + Number(rightList[index].code)))
})
......@@ -7009,6 +7053,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: (Number(leftList[index - 5].code) > 9) ? Number(leftList[index - 5].code) : ('0' + Number(leftList[index - 5].code)), zw_txsj: res.data, zw_txzl: leftList[index - 5].scoreR })
}
self.saveScore(self.rybh, leftList[index - 5].scoreR, (Number(leftList[index - 5].code) > 9) ? Number(leftList[index - 5].code) : ('0' + Number(leftList[index - 5].code)))
})
setTimeout(() => {
......@@ -7090,6 +7135,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: (Number(leftList[index - 5].code) > 9) ? Number(leftList[index - 5].code) : ('0' + Number(leftList[index - 5].code)), zw_txsj: res.data, zw_txzl: leftList[index - 5].scoreR })
}
self.saveScore(self.rybh, leftList[index - 5].scoreR, (Number(leftList[index - 5].code) > 9) ? Number(leftList[index - 5].code) : ('0' + Number(leftList[index - 5].code)))
})
setTimeout(() => {
......@@ -7296,6 +7342,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: (Number(rightList[index].code) > 9) ? Number(rightList[index].code) : ('0' + Number(rightList[index].code)), zw_txsj: res.data, zw_txzl: rightList[index].scoreR })
}
self.saveScore(self.rybh, rightList[index].scoreR, (Number(rightList[index].code) > 9) ? Number(rightList[index].code) : ('0' + Number(rightList[index].code)))
})
setTimeout(() => {
......@@ -7313,9 +7360,6 @@ export default {
} else {
self.$refs.rightFinger.children[index].setAttribute('src', self.whiteArr[index])
}
console.log('====================================');
console.log(self.whiteArr[index]);
console.log('====================================');
self.$set(rightList[index], 'statusR', 3)
document.getElementsByTagName('body')[0].style.setProperty('--finger', '#17D010');
......@@ -7381,6 +7425,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: (Number(rightList[index].code) > 9) ? Number(rightList[index].code) : ('0' + Number(rightList[index].code)), zw_txsj: res.data, zw_txzl: rightList[index].scoreR })
}
self.saveScore(self.rybh, rightList[index].scoreR, (Number(rightList[index].code) > 9) ? Number(rightList[index].code) : ('0' + Number(rightList[index].code)))
})
......@@ -7582,6 +7627,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: (Number(leftList[index - 5].code) > 9) ? Number(leftList[index - 5].code) : ('0' + Number(leftList[index - 5].code)), zw_txsj: res.data, zw_txzl: leftList[index - 5].scoreR })
}
self.saveScore(self.rybh, leftList[index - 5].scoreR, (Number(leftList[index - 5].code) > 9) ? Number(leftList[index - 5].code) : ('0' + Number(leftList[index - 5].code)))
})
setTimeout(() => {
......@@ -7663,6 +7709,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: (Number(leftList[index - 5].code) > 9) ? Number(leftList[index - 5].code) : ('0' + Number(leftList[index - 5].code)), zw_txsj: res.data, zw_txzl: leftList[index - 5].scoreR })
}
self.saveScore(self.rybh, leftList[index - 5].scoreR, (Number(leftList[index - 5].code) > 9) ? Number(leftList[index - 5].code) : ('0' + Number(leftList[index - 5].code)))
})
setTimeout(() => {
......@@ -7861,6 +7908,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: (Number(rightList[index].code) > 9) ? Number(rightList[index].code) : ('0' + Number(rightList[index].code)), zw_txsj: res.data, zw_txzl: rightList[index].scoreR })
}
self.saveScore(self.rybh, rightList[index].scoreR, (Number(rightList[index].code) > 9) ? Number(rightList[index].code) : ('0' + Number(rightList[index].code)))
//console.log(self.fingerPic)
})
......@@ -8034,6 +8082,7 @@ export default {
} else {
self.fingerPic.push({ zwzwdm: (Number(leftList[index - 5].code) > 9) ? Number(leftList[index - 5].code) : ('0' + Number(leftList[index - 5].code)), zw_txsj: res.data, zw_txzl: leftList[index - 5].scoreR })
}
self.saveScore(self.rybh, leftList[index - 5].scoreR, (Number(leftList[index - 5].code) > 9) ? Number(leftList[index - 5].code) : ('0' + Number(leftList[index - 5].code)))
})
setTimeout(() => {
......@@ -9413,6 +9462,35 @@ export default {
this.finishVisible = true
},
/**
* @description: 保存分数
* @param {*} barcode
* @param {*} score
* @param {*} seq
* @return {*}
*/
saveScore(barcode, score, seq) {
axios({
method: 'post',
url: '/api/score/save',
data: {
barcode: barcode,
score: score,
seq: seq+''
}
}).then(res => {
console.log(res);
}).catch(err => {
console.log(err);
})
// NetUtil.fingerprint.fingerprint({
// barcode: barcode,
// score: score,
// seq: seq
// }).then(res => {
// console.log(res);
// })
},
/**
* @name: base64格式转为bmp格式
* @param {String} dataurl
* @param {String} filename
......
/*
* @Author: your name
* @Date: 2021-09-07 09:57:48
* @LastEditTime: 2022-01-20 10:28:50
* @LastEditTime: 2022-02-07 10:40:32
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\vue.config.js
......@@ -110,7 +110,7 @@ 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.103:8099/", // 张 认定
// target: "http://192.168.128.108:8099", // 湖南-马
// target: "http://192.168.128.116:8099", // 湖南-王
// target: "http://192.168.128.122:8099", // 湖南-张呈光
......@@ -119,7 +119,7 @@ module.exports = {
// target: "http://47.92.225.109:5602",
// target: "http://www.meetfood.cn:2390", // 湖南-线上
// target: "http://zwpt.xzclub.top:9333/",
target: "http://192.168.128.106:8099", // 江
target: "http://192.168.128.101:8099", // 江
ws: true,
changeOrigin: true,
pathRewrite: {
......
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