diff --git a/src/views/final/comp/ListAction.vue b/src/views/final/comp/ListAction.vue index f1ef5e2..72da761 100644 --- a/src/views/final/comp/ListAction.vue +++ b/src/views/final/comp/ListAction.vue @@ -28,19 +28,25 @@ const actions = computed(() => { diff --git a/src/views/task/aside/Aside.vue b/src/views/task/aside/Aside.vue index 8ed0c10..cb18e8b 100644 --- a/src/views/task/aside/Aside.vue +++ b/src/views/task/aside/Aside.vue @@ -70,10 +70,8 @@ const showSearch = ref(false) function setShowSearch(value: boolean) { if (!value) { - console.log('setShowSearch', value) search.value = '' taskListRef.value.search('') - return } showSearch.value = value } diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue index 5c7b2c4..8b271ef 100644 --- a/src/views/task/content/Content.vue +++ b/src/views/task/content/Content.vue @@ -240,7 +240,9 @@ async function handleDragEnd(event, item) { const res = await dubiousfileyd({ pictureid: item.pictureId }) if (res.code === 'OK') { message.success('加入成功') + setBatch(false) getTableData() + getImgList() } else { message.error(res.message) @@ -355,6 +357,11 @@ async function getDetail() { getImgList() } +function notPassSuccess(param) { + batchModalRef.value.reload() + reloadList(param, '不通过') +} + function reloadList(param, text) { // 修改左侧状态 const id = currentTaskId() @@ -643,10 +650,8 @@ function switchBatch() { { let canloadMore = true -useInfiniteScroll( - el as any, - () => { - loadMore() - }, - { distance: 10, canLoadMore: () => canloadMore }, -) +// useInfiniteScroll( +// el as any, +// () => { +// console.log(123456) +// loadMore() +// }, +// { distance: 10, canLoadMore: () => canloadMore }, +// ) async function loadMore() { + console.log('loadMore') if (loading.value || el.value == null) return @@ -285,8 +287,12 @@ const showActions = computed(() => { function setBatch(value: boolean) { batch.value = value - if (value === false) - selectIds.value.length = 0 + if (value === false) { + selectIds.value = [] + listData.value.forEach((item) => { + item.checked = false + }) + } } function reject() { @@ -321,13 +327,15 @@ async function refreshHandler() { taskDetailInfo.value = await getTaskDetailInfo(taskId.value, '') nextTick(() => { - useInfiniteScroll( - el as any, - () => { - loadMore() - }, - { distance: 10, canLoadMore: () => canloadMore }, - ) + setTimeout(() => { + useInfiniteScroll( + el as any, + () => { + loadMore() + }, + { distance: 10, canLoadMore: () => canloadMore }, + ) + }, 300) }) } @@ -343,8 +351,31 @@ function switchBatch() { function reload() { selectIds.value = [] + setBatch(false) refreshHandler() } + +function sortHandler(orderby: 'similarityScore' | 'createdate') { + sortBy.orderName = orderby + sortBy.orderType = sortBy.orderType === 'asc' ? 'desc' : 'asc' + + refreshHandler() +} + +// const gridHeight = computed(() => { +// let height = '' +// if (viewMode.value === 'masonry') +// height = '' +// else if (viewMode.value === 'horizontalVersion') +// height = '145px' +// else if (viewMode.value === 'verticalVersion') +// height = '300px' +// else if (viewMode.value === '3:4') +// height = '240px' + +// return height +// }) + defineExpose({ showModal, reload, @@ -364,10 +395,10 @@ defineExpose({
- 任务审批 + 任务审批
- 任务ID:{{ taskDetailInfo.fromtaskname }} + 任务ID:{{ taskDetailInfo.fromtaskname }}
@@ -422,7 +453,7 @@ defineExpose({
- + + + +
+ 时间排序 + +
+
+ 相似度排序 + +
@@ -466,10 +512,15 @@ defineExpose({ class="grid-item" >
- + > --> +
@@ -659,7 +710,7 @@ defineExpose({ margin-bottom: 10px; th { - color: #d7d7d7; + color: #999999; text-align: left; } @@ -733,6 +784,23 @@ defineExpose({ } } + .img { + border-radius: 7px; + display: block; + height: calc(100% - 25px); + } + + .img-full { + width: 100%; + overflow: hidden; + + ::v-deep(img) { + width: 100%; + height: 100%; + object-fit: cover; + } + } + .grid-item { width: 214px; padding: 16px;