Commit 76c41079 by 李君

特征比对

1 parent b8fd74b3
...@@ -99,16 +99,6 @@ export default { ...@@ -99,16 +99,6 @@ export default {
isLoadingTop.value = false isLoadingTop.value = false
if (r.data&&isArray(r.data.personList)) { if (r.data&&isArray(r.data.personList)) {
if(r.data.personList.length>0){ if(r.data.personList.length>0){
// r.data.forEach((item) => {
// let str = item.features_url.indexOf("/images/feature")
// if (item.features_url) {
// item.features_url = window._baseImgUrl + item.features_url.substring(str)
// }
// let str1 = item.picture_url.indexOf("/images/picture")
// if (item.picture_url) {
// item.picture_url = window._baseImgUrl + item.picture_url.substring(str1)
// }
// })
dataListLeft.value = r.data.personList dataListLeft.value = r.data.personList
console.log(r.data) console.log(r.data)
} }
...@@ -130,16 +120,6 @@ export default { ...@@ -130,16 +120,6 @@ export default {
isLoadingBottom.value = false isLoadingBottom.value = false
if (r.data&&isArray(r.data.personList)) { if (r.data&&isArray(r.data.personList)) {
if(r.data.personList.length>0){ if(r.data.personList.length>0){
// r.data.forEach((item) => {
// let str = item.features_url.indexOf("/images/feature")
// if (item.features_url) {
// item.features_url = window._baseImgUrl + item.features_url.substring(str)
// }
// let str1 = item.picture_url.indexOf("/images/picture")
// if (item.picture_url) {
// item.picture_url = window._baseImgUrl + item.picture_url.substring(str1)
// }
// })
dataListRight.value = r.data.personList dataListRight.value = r.data.personList
} }
} }
......
...@@ -349,19 +349,26 @@ ...@@ -349,19 +349,26 @@
currentItemId.value = data.id currentItemId.value = data.id
const rawData = toRaw(queryForm) const rawData = toRaw(queryForm)
let parmas = { let parmas = {
mall_id:data.mall_id, person_unid:data.person_unid,
picType:rawData.picType, pic_type:rawData.picType,
countdate:formatDate(rawData.date), countdate:formatDate(rawData.date),
pic_id:data.id, pic_id:data.id,
personList:[data] ip:window._baseImgUrl
} }
boxObj.value = data; boxObj.value = data;
featureList.value = [] featureList.value = []
featureApi.getPersonContrastList(parmas).then((r) => { featureApi.getPersonContrastList(parmas).then((r) => {
isLoadingFeature.value = false isLoadingFeature.value = false
console.log(r.data)
if (r.data&&isArray(r.data.personList)) { if (r.data&&isArray(r.data.personList)) {
featureList.value = r.data.personList r.data.personList.forEach((item) => {
if (item.features_url) {
item.features_url = window._baseImgUrl + item.features_url
}
if (item.picture_url) {
item.picture_url = window._baseImgUrl + item.picture_url
}
})
featureList.value = r.data.personList
} }
} }
) )
...@@ -526,12 +533,12 @@ ...@@ -526,12 +533,12 @@
} }
.imgBox2{ .imgBox2{
min-height: 400px; min-height: 400px;
max-height: 600px; max-height: 500px;
overflow-y: auto; overflow-y: auto;
} }
.imgBox1_top{ .imgBox1_top{
min-height: 400px; min-height: 400px;
max-height: 600px; max-height: 500px;
overflow-y: auto; overflow-y: auto;
border-bottom: 10px solid #efefef; border-bottom: 10px solid #efefef;
} }
......
...@@ -4,9 +4,9 @@ class FeatureResultApi { ...@@ -4,9 +4,9 @@ class FeatureResultApi {
getPersonContrastList(data) { getPersonContrastList(data) {
return axiosInstance.request( return axiosInstance.request(
{ {
method: 'POST', method: 'GET',
url: `/feature/personContrast`, url: `/feature/personContrasts`,
data: filterEmptyValueInObject( params: filterEmptyValueInObject(
data data
) )
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!