Merge pull request 'feat:添加阈值标签,全部展示功能的联动' (#212) from fix/change_task into test

Reviewed-on: #212
pull/213/head
赵辉 1 year ago
commit b1904b3236

@ -479,7 +479,7 @@ async function query(
) { ) {
console.log("query", taskName); console.log("query", taskName);
const asideParmas = cloneDeep(unref(finalStore.getAsideValue)); const asideParmas = cloneDeep(unref(finalStore.getAsideValue));
console.log(asideParmas); // console.log(asideParmas);
if (asideParmas.izyear) { if (asideParmas.izyear) {
asideParmas.izuptime = cloneDeep(asideParmas.izyear); asideParmas.izuptime = cloneDeep(asideParmas.izyear);
@ -498,7 +498,10 @@ async function query(
// 使使 // 使使
// let params = filterId ? { userSearchId: filterId } : asideParmas // let params = filterId ? { userSearchId: filterId } : asideParmas
let params = asideParmas; let params = asideParmas;
params = params?.izshowall ? {} : params; if(params?.izshowall==false){
params.isFail=false
}
params = params?.izshowall ? {isFail:true} : params;
const result = await getFinalList({ const result = await getFinalList({
sortorder: sortorder.value, sortorder: sortorder.value,

@ -93,8 +93,11 @@ async function initData(
const asideParmas = unref(finalStore.getAsideValue) const asideParmas = unref(finalStore.getAsideValue)
// 使使 // 使使
// let params = filterId ? { userSearchId: filterId } : asideParmas // let params = filterId ? { userSearchId: filterId } : asideParmas
let params = asideParmas let params = asideParmas;
params = params?.izshowall ? {} : params if(params?.izshowall==false){
params.isFail=false
}
params = params?.izshowall ? {isFail:true} : params;
const result = await getFinalList({ const result = await getFinalList({
sortorder: sortorder.value, sortorder: sortorder.value,
@ -549,7 +552,7 @@ defineExpose({
/> />
</div> </div>
</div> </div>
<div :class="tableData.length>16?'cotnet_wrapeer':'cotnet_wrapeertwo'" @scroll="checkBottom" ref="scrollContainer"> <div :class="tableData.length>4?'cotnet_wrapeer':'cotnet_wrapeertwo'" @scroll="checkBottom" ref="scrollContainer">
<div <div
v-for="(sitem, sindex) in tableData" v-for="(sitem, sindex) in tableData"
:key="sindex" :key="sindex"
@ -587,7 +590,12 @@ defineExpose({
: `background:url(${item.imgUrl});background-size:100% 100%;background-repeat: no-repeat;` : `background:url(${item.imgUrl});background-size:100% 100%;background-repeat: no-repeat;`
" "
@click="goDetail(item)" @click="goDetail(item)"
/> ><div class="percent" v-if="item.similarityscore != -1">
<SvgIcon size="30" :name="item.similarityscore == 100 ? 'error_tag' : 'tag'" />
<div class="val">
{{ `${item.similarityscore}%` }}
</div>
</div></div>
<div v-show="item.states == 2" class="check_box"> <div v-show="item.states == 2" class="check_box">
<n-checkbox <n-checkbox
size="medium" size="medium"
@ -853,6 +861,7 @@ defineExpose({
// height: auto; // height: auto;
object-fit: cover; object-fit: cover;
border-radius: 0.18rem; border-radius: 0.18rem;
position: relative;
} }
.check_box { .check_box {
position: absolute; position: absolute;
@ -945,6 +954,32 @@ defineExpose({
overflow: auto; overflow: auto;
width: calc(100% + 5px); width: calc(100% + 5px);
} }
.percent {
position: absolute;
text-align: center;
z-index: 3;
right: 0px;
top: -4px;
color: #fff;
.val {
position: absolute;
left: 0;
top: 0;
display: block;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
font-family: PingFang SC, PingFang SC-Semibold;
font-weight: Semibold;
text-align: left;
color: #ffffff;
line-height: 24px;
}
}
/* 定义滚动条的宽度及背景颜色 */ /* 定义滚动条的宽度及背景颜色 */
::-webkit-scrollbar { ::-webkit-scrollbar {
position: fixed; position: fixed;

Loading…
Cancel
Save