Commit ae783d7c by maxiaohan

查重

parent 31619df9
...@@ -17,18 +17,19 @@ ...@@ -17,18 +17,19 @@
<img <img
src="../../assets/img/TT/ttcount.png" src="../../assets/img/TT/ttcount.png"
style="width: 14px;height: 14px;margin:0 5px 3px 0" style="width: 14px;height: 14px;margin:0 5px 3px 0"
/>已认定:{{ qid }} />已认定:13条
<!-- />已认定:{{ qid }}条-->
</div> </div>
</div> </div>
<div class="source-bottom"> <div class="source-bottom">
<div class="source-count">34/100</div> <div class="source-count">34/100</div>
<div class="source"> <div class="source">
<div class="label">查询ID:</div> <div class="label">查询ID:</div>
<div class="value">123456</div> <div class="value">{{ currentQqid }}</div>
</div> </div>
<div class="source"> <div class="source">
<div class="label">源条码号:</div> <div class="label">源条码号:</div>
<div class="value">A2323232323232323232</div> <div class="value">{{ sourcebarcode }}</div>
</div> </div>
<div class="more"> <div class="more">
...@@ -355,7 +356,7 @@ export default { ...@@ -355,7 +356,7 @@ export default {
textarea: "", textarea: "",
dsetbarcode: "", dsetbarcode: "",
activeIndex: "1", activeIndex: "1",
sourcedatas: [],
sourceFingersLeftR: [ sourceFingersLeftR: [
{ name: "拇", code: 6, img: null }, { name: "拇", code: 6, img: null },
{ name: "食", code: 7, img: null }, { name: "食", code: 7, img: null },
...@@ -420,6 +421,7 @@ export default { ...@@ -420,6 +421,7 @@ export default {
this.sourcebarcode = this.$route.query.barcode; this.sourcebarcode = this.$route.query.barcode;
console.log("源qqid====>", this.currentQqid); console.log("源qqid====>", this.currentQqid);
console.log("源barcode====>", this.sourcebarcode); console.log("源barcode====>", this.sourcebarcode);
this.activeIndex = 1;
// this.search(); // this.search();
}, },
methods: { methods: {
...@@ -434,10 +436,23 @@ export default { ...@@ -434,10 +436,23 @@ export default {
console.info("平面指纹"); console.info("平面指纹");
} }
}, },
// 获取源数据
getSourceList() {
this.$axios
.get("/api/query/matchcand/src/" + this.currentQqid)
.then(res => {
if (res.data.code === 0) {
this.sourcedatas = res.data.ret;
}
console.info("源数据", this.sourcedatas);
});
},
// 获取候选列表 // 获取候选列表
getMatchcandList(qqid) { getMatchcandList(qqid) {
if (qqid !== null) { if (qqid !== null) {
this.$axios.get("/api/query/matchcand/" + qqid).then(res => { this.$axios
.get("/api/query/matchcand/" + this.currentQqid)
.then(res => {
if (res.data.code === 0) { if (res.data.code === 0) {
this.tableData = res.data.ret; this.tableData = res.data.ret;
} }
...@@ -445,6 +460,120 @@ export default { ...@@ -445,6 +460,120 @@ export default {
}); });
} }
}, },
// 获取源指纹图
getSourceFingerPrintDetail() {
let self = this;
// 滚动 源数据
this.$axios
.post("/api/org/rollByBarcode/barcode", { barcode: this.sourcebarcode })
.then(function(response) {
if (response.data.code === 0) {
console.info("roll", response.data.code);
response.data.ret.forEach((element, index) => {
// 源 左手 滚动
self.sourceFingersLeftR.forEach(item => {
if (item.code === element.seq) {
item.img = element.image;
}
});
// 源 右手 滚动
self.sourceFingersRightR.forEach(item => {
if (item.code === element.seq) {
item.img = element.image;
}
});
});
}
console.log(response);
})
.catch(function(error) {
console.log(error);
});
// 平面
this.$axios
.post("/api/org/plainByBarcode/barcode", {
barcode: this.sourcebarcode
})
.then(function(response) {
console.info("平面", response);
if (response.data.code === 0) {
console.info("plan", response.data.code);
response.data.ret.forEach((element, index) => {
// 源 左手 平面
self.sourceFingersLeftL.forEach(item => {
if (item.code === element.seq + 10) {
item.img = element.image;
}
});
// 源 右手 平面
self.sourceFingersRightL.forEach(item => {
if (item.code === element.seq + 10) {
item.img = element.image;
}
});
});
}
})
.catch(function(error) {
console.log(error);
});
},
// 获取目标指纹图
getDestFingerPrintDetail(barcode) {
let self = this;
// 滚动 目标数据
this.$axios
.post("/api/org/rollByBarcode/barcode", { barcode: this.sourcebarcode })
.then(function(response) {
if (response.data.code === 0) {
response.data.ret.forEach((element, index) => {
// 目标 左手 滚动
self.destFingersLeftR.forEach(item => {
if (item.code === element.seq) {
item.img = element.image;
}
});
// 目标 右手 滚动
self.destFingersRightR.forEach(item => {
if (item.code === element.seq) {
item.img = element.image;
}
});
});
}
console.log(response);
})
.catch(function(error) {
console.log(error);
});
// 平面 目标
this.$axios
.post("/api/org/plainByBarcode/barcode", {
barcode: this.sourcebarcode
})
.then(function(response) {
console.info("平面", response);
if (response.data.code === 0) {
response.data.ret.forEach((element, index) => {
// 目标 左手 平面
self.destFingersLeftL.forEach(item => {
if (item.code === element.seq + 10) {
item.img = element.image;
}
});
// 目标 右手 平面
self.destFingersRightL.forEach(item => {
if (item.code === element.seq + 10) {
item.img = element.image;
}
});
});
}
})
.catch(function(error) {
console.log(error);
});
},
handleCurrentChange(val) { handleCurrentChange(val) {
this.destbarcode = val.destbarcode; this.destbarcode = val.destbarcode;
console.info(this.destbarcode); console.info(this.destbarcode);
...@@ -497,8 +626,14 @@ export default { ...@@ -497,8 +626,14 @@ export default {
} }
}, },
mounted() { mounted() {
this.getSourceList();
this.getSourceFingerPrintDetail();
this.getMatchcandList(this.currentQqid); this.getMatchcandList(this.currentQqid);
this.finger(); this.finger();
this.$bus.on("ccbarcode", code => {
console.log(code);
this.getDestFingerPrintDetail(code);
});
} }
}; };
</script> </script>
...@@ -592,7 +727,7 @@ div { ...@@ -592,7 +727,7 @@ div {
line-height: 22px; line-height: 22px;
} }
.count { .count {
width: 106px; width: 116px;
height: 22px; height: 22px;
font-size: 14px; font-size: 14px;
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
......
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