|
|
|
@ -6,7 +6,7 @@ import { useRoute } from 'vue-router'
|
|
|
|
|
import BatchModal from '../modal/BatchModal.vue'
|
|
|
|
|
import { getAllfieldList, getfieldList } from '@/api/home/filter'
|
|
|
|
|
|
|
|
|
|
import { audit, dubiousfileyd } from '@/api/task/task'
|
|
|
|
|
import { audit, dubiousfileyd, getSimilarityList } from '@/api/task/task'
|
|
|
|
|
import { getTaskDetailInfo, getTaskDetailPictureList } from '@/api/work/work'
|
|
|
|
|
import { useTask } from '@/store/modules/task'
|
|
|
|
|
import { useUser } from '@/store/modules/user'
|
|
|
|
@ -32,9 +32,9 @@ const CustomSettingModalRef = ref(null)
|
|
|
|
|
const taskTableData = ref<any[]>([])
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
|
|
|
|
|
const sortBy: PictureSortParam = {
|
|
|
|
|
orderbyname: 'asc',
|
|
|
|
|
orderbyvalue: 'pictureResult',
|
|
|
|
|
const sortBy: any = {
|
|
|
|
|
orderType: 'asc',
|
|
|
|
|
orderName: 'similarityScore',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function setBatch(value: boolean) {
|
|
|
|
@ -294,6 +294,7 @@ watch(
|
|
|
|
|
if (isEmpty(taskId))
|
|
|
|
|
return
|
|
|
|
|
taskDetailInfo.value = await getTaskDetailInfo(taskId, packageid)
|
|
|
|
|
console.log(taskDetailInfo.value)
|
|
|
|
|
getTableData()
|
|
|
|
|
// TODO mock备份 确认逻辑无误后删除
|
|
|
|
|
// let showFieldData = taskDetailInfo.value.ocrPicture;
|
|
|
|
@ -315,13 +316,14 @@ watch(
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
if (!isEmpty(packageid)) {
|
|
|
|
|
const { data, total } = await getTaskDetailPictureList(
|
|
|
|
|
packageid,
|
|
|
|
|
taskId,
|
|
|
|
|
{ ...taskpagination, ...sortBy },
|
|
|
|
|
if (!isEmpty(taskDetailInfo.value.ocrPicture.id)) {
|
|
|
|
|
const { data, total } = await getSimilarityList(
|
|
|
|
|
{ pictureId: taskDetailInfo.value.ocrPicture.id, ...taskpagination, ...sortBy },
|
|
|
|
|
)
|
|
|
|
|
console.log(data)
|
|
|
|
|
|
|
|
|
|
taskDetailPictureList.value = data
|
|
|
|
|
console.log(taskDetailPictureList.value)
|
|
|
|
|
totalCount.value = total
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
@ -417,12 +419,38 @@ function getPercent(pictureid: string) {
|
|
|
|
|
<SvgIcon style="margin-right: 6px" size="22" name="batch" />
|
|
|
|
|
批量审批
|
|
|
|
|
</div>
|
|
|
|
|
<SvgIcon
|
|
|
|
|
style="cursor: pointer"
|
|
|
|
|
size="20"
|
|
|
|
|
name="immersion-model"
|
|
|
|
|
@click="immersionHandler"
|
|
|
|
|
/>
|
|
|
|
|
<n-popover
|
|
|
|
|
ref="popover"
|
|
|
|
|
:style="{ padding: '0px' }"
|
|
|
|
|
style="width: 148px"
|
|
|
|
|
:show-arrow="false"
|
|
|
|
|
placement="bottom-start"
|
|
|
|
|
trigger="click"
|
|
|
|
|
>
|
|
|
|
|
<template #trigger>
|
|
|
|
|
<div class="icon-wrap">
|
|
|
|
|
<SvgIcon size="20" name="more-blue" />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<ul class="wrapper-header-action">
|
|
|
|
|
<li @click="importHandler">
|
|
|
|
|
<SvgIcon size="20" name="download" /><span style="margin-left: 5px">批量导入数据</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li @click="exportHandler">
|
|
|
|
|
<SvgIcon size="20" name="download" /><span style="margin-left: 5px">导出待审数据</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<SvgIcon size="20" name="download" /><span style="margin-left: 5px">导出全部数据</span>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</n-popover>
|
|
|
|
|
<div class="icon-wrap">
|
|
|
|
|
<SvgIcon
|
|
|
|
|
size="20"
|
|
|
|
|
name="immersion-model"
|
|
|
|
|
@click="immersionHandler"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-show="showActions" class="batch">
|
|
|
|
|
<n-button text @click="setBatch(false)">
|
|
|
|
@ -546,13 +574,13 @@ function getPercent(pictureid: string) {
|
|
|
|
|
<div class="list">
|
|
|
|
|
<div
|
|
|
|
|
v-for="(item, index) in taskDetailPictureList"
|
|
|
|
|
:key="index"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
class="item"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
draggable="true"
|
|
|
|
|
class="img-wrapper"
|
|
|
|
|
:style="{ 'background-image': `url(${item.thumburl})` }"
|
|
|
|
|
:style="{ 'background-image': `url(${item.imgUrl})` }"
|
|
|
|
|
@dragend="(event) => { handleDragEnd(event, item) }"
|
|
|
|
|
/>
|
|
|
|
|
<div class="check">
|
|
|
|
@ -604,6 +632,32 @@ function getPercent(pictureid: string) {
|
|
|
|
|
::v-deep(.n-tabs-tab--active .n-tabs-tab__label) {
|
|
|
|
|
color: #507AFD;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wrapper-header-action {
|
|
|
|
|
padding: 8px;
|
|
|
|
|
|
|
|
|
|
li {
|
|
|
|
|
height: 32px;
|
|
|
|
|
line-height: 32px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background-color: #f3f8ff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon-wrap{
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 30px;
|
|
|
|
|
height: 30px;
|
|
|
|
|
background: rgba(80,122,253,.1);
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
.wrapper {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex: 1;
|
|
|
|
@ -802,7 +856,7 @@ function getPercent(pictureid: string) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.item {
|
|
|
|
|
flex-basis: calc((100% - 48px) / 3);
|
|
|
|
|
// flex-basis: calc((100% - 48px) / 3);
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
position: relative;
|
|
|
|
@ -810,8 +864,8 @@ function getPercent(pictureid: string) {
|
|
|
|
|
margin: 0px 16px 27px 0px;
|
|
|
|
|
|
|
|
|
|
.img-wrapper {
|
|
|
|
|
// width: 230px;
|
|
|
|
|
height: 130px;
|
|
|
|
|
width: 122px;
|
|
|
|
|
height: 70px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
background-size: cover;
|
|
|
|
|
background-position: center;
|
|
|
|
|