Commit 2579caa8 by maxiaohan

查重比中候选列表展示;

查重比中源指纹图展示;
查重比中目标指纹图展示;
parent 9053f905
......@@ -16,7 +16,13 @@
</div>
<div class="tt_main_top_table">
<span>源条码号:{{ barcode }}</span>
<el-table :data="tableData" class="lt_candidate_table" height="150">
<el-table
highlight-current-row
:data="tableData"
class="lt_candidate_table"
height="150"
@current-change="handleCurrentChange"
>
<el-table-column
label="排名"
type="index"
......@@ -146,7 +152,7 @@ export default {
data() {
return {
qid: null,
qqid: null,
currentQqid: null,
tableData: [],
isFinger: true,
isPlam: false,
......@@ -156,29 +162,33 @@ export default {
isShowbzDialogBg: false,
phone: null,
radio: 6,
textarea: ""
textarea: "",
dsetbarcode: ""
};
},
created() {
this.qid = this.$route.query.qid;
this.qqid = this.$route.query.qqid;
this.currentQqid = parseInt(this.$route.query.qqid);
this.barcode = this.$route.query.barcode;
console.log("源qid====>", this.qid);
console.log("源qqid====>", this.currentQqid);
console.log("源barcode====>", this.barcode);
// this.search();
},
methods: {
// 加载候选人
search() {
this.$axios
.get("/api/query/matchcand/src", {
params: {
qqid: this.qqid
// 获取候选列表
getMatchcandList(qqid) {
if (qqid !== null) {
this.$axios.get("/api/query/matchcand/" + qqid).then(res => {
if (res.data.code === 0) {
this.tableData = res.data.ret;
}
})
.then(res => {
console.info(res);
console.info(" 候选列表", res);
});
}
},
handleCurrentChange(val) {
console.info(val);
this.destbarcode = val.destbarcode;
},
//比中
Bz() {
......@@ -223,6 +233,9 @@ export default {
let self = this;
console.log("比中");
}
},
mounted() {
this.getMatchcandList(this.currentQqid);
}
};
</script>
......
......@@ -168,6 +168,14 @@
<script>
export default {
name: "TTFingerPrint",
props: ["destBarcodeData"],
watch: {
destBarcodeData(val) {
if (val) {
this.destbarcode = val;
}
}
},
data() {
return {
activeIndex: "1",
......@@ -228,16 +236,17 @@ export default {
{ name: "小", code: 15, img: null }
],
qid: null,
qqid: null,
barcode: null
currentQqid: null,
sourcebarcode: null,
destbarcode: null
};
},
created() {
this.qid = this.$route.query.qid;
this.qqid = this.$route.query.qqid;
this.barcode = this.$route.query.barcode;
console.log("源qid====>", this.qid);
console.log("源barcode====>", this.barcode);
this.currentQqid = parseInt(this.$route.query.qqid);
this.sourcebarcode = this.$route.query.barcode;
console.log("源qqid====>", this.currentQqid);
console.log("源barcode====>", this.sourcebarcode);
// this.search();
},
methods: {
......@@ -253,42 +262,117 @@ export default {
}
},
// 获取源指纹图
getFingerPrintDetail() {
// {
// params: {
// barcode: this.barcode
// }
// 滚动
getSourceFingerPrintDetail() {
let self = this;
// 滚动 源数据
this.$axios
.get("/api/org/rollByBarcode/" + this.barcode)
.get("/api/org/rollByBarcode/" + this.sourcebarcode)
.then(function(response) {
if (response.data.code === 0) {
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
.get("/api/org/plainByBarcode/" + this.barcode)
.get("/api/org/plainByBarcode/" + this.sourcebarcode)
.then(function(response) {
console.info("平面", response);
if (response.data.code === 0) {
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() {
let self = this;
// 滚动 目标数据
this.$axios
.get("/api/org/rollByBarcode/" + this.destbarcode)
.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
// .get("api/org/plainByBarcode/", this.barcode)
// .then(res => {
// console.info(res);
// })
// .catch(error => {
// console.log(error);
// });
// 平面 目标
this.$axios
.get("/api/org/plainByBarcode/" + this.destbarcode)
.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);
});
}
},
mounted() {
this.getFingerPrintDetail();
this.getSourceFingerPrintDetail();
this.getDestFingerPrintDetail();
}
};
</script>
......
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