|
|
|
@ -291,9 +291,6 @@ async function handleSelect(item: any) {
|
|
|
|
|
if (isEmpty(packageid))
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
// const { data, total } = await getTaskDetailPictureList(workStore.activeId, taskId, { ...taskpagination, ...sortBy })
|
|
|
|
|
// taskDetailPictureList.value = data
|
|
|
|
|
// totalCount.value = total
|
|
|
|
|
refreshHandler()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -301,12 +298,8 @@ async function sortHandler(orderby: 'pictureResult' | 'fromuptime') {
|
|
|
|
|
if (!selectTask.value)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
taskpagination.pageNo = 1
|
|
|
|
|
taskpagination.pageSize = 10
|
|
|
|
|
sortBy.orderbyvalue = orderby
|
|
|
|
|
|
|
|
|
|
const res = await getTaskDetailPictureList(workStore.activeId, selectTask.value.id, { ...taskpagination, ...sortBy })
|
|
|
|
|
taskDetailPictureList.value = res.data
|
|
|
|
|
refreshHandler()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const propertys = computed(() => {
|
|
|
|
@ -357,7 +350,7 @@ function getPercent(pictureid: string) {
|
|
|
|
|
const index = ocpictureid.split(',').indexOf(String(pictureid))
|
|
|
|
|
const results = pictureresult.split(',')
|
|
|
|
|
const percent = results[index] || '0'
|
|
|
|
|
const val = Number.parseFloat(percent)
|
|
|
|
|
const val = Math.floor(Number.parseFloat(percent))
|
|
|
|
|
return `${val}%`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -481,8 +474,8 @@ function previewHandler(event: MouseEvent) {
|
|
|
|
|
</div>
|
|
|
|
|
<div style="display: flex;justify-content: space-between;padding: 12px 0px;">
|
|
|
|
|
<div><span style="font-size: 21px;font-weight: bold;">相似图片</span><span>({{ totalCount }})</span></div>
|
|
|
|
|
<div style="display: flex;align-items: center;" @click="sortHandler('fromuptime')">
|
|
|
|
|
<div style="cursor: pointer;">
|
|
|
|
|
<div style="display: flex;align-items: center;">
|
|
|
|
|
<div style="cursor: pointer;" @click="sortHandler('fromuptime')">
|
|
|
|
|
<span>按时间排序</span>
|
|
|
|
|
<SvgIcon style="margin-left: 8px;" name="sort" size="12" />
|
|
|
|
|
</div>
|
|
|
|
|