diff --git a/src/api/work/work.ts b/src/api/work/work.ts index bbef956..f7e1259 100644 --- a/src/api/work/work.ts +++ b/src/api/work/work.ts @@ -83,7 +83,7 @@ export async function getTaskDetailInfo(checkDuplicateId: string) { * @param params * @returns */ -export async function getTaskDetailPictureList(params: PageParam & PictureSortParam & SimilarityPictureSortParam) { +export async function getPictureSimilarityList(params: PageParam & PictureSortParam & SimilarityPictureSortParam) { const res = await http.request({ url: `/backstage/jifen/ocrtaskchildpicture/getPictureSimilarityList`, @@ -97,6 +97,7 @@ export async function getTaskDetailPictureList(params: PageParam & PictureSortPa const list = records.map((item,index) => { return { id: item.id, + checkDuplicateId: item.checkDuplicateId, taskId: item.taskId, taskname: item.fromTaskName, assignee: item.assignee, diff --git a/src/assets/icons/exclamation-solid.svg b/src/assets/icons/exclamation-solid.svg new file mode 100644 index 0000000..26d03f5 --- /dev/null +++ b/src/assets/icons/exclamation-solid.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/layout/components/Header/ConfrimModal.vue b/src/layout/components/Header/ConfrimModal.vue new file mode 100644 index 0000000..6138e5d --- /dev/null +++ b/src/layout/components/Header/ConfrimModal.vue @@ -0,0 +1,114 @@ + + + + + diff --git a/src/layout/components/Header/RecycleModal.vue b/src/layout/components/Header/RecycleModal.vue index 4afda80..c9d2d99 100644 --- a/src/layout/components/Header/RecycleModal.vue +++ b/src/layout/components/Header/RecycleModal.vue @@ -12,6 +12,7 @@ import { debounce } from 'lodash-es' import { audit } from '@/api/task/task' import NotPassed from '@/components/Approval/NotPassed.vue' import { off, on } from '@/utils/domUtils' +import ConfrimModal from "./ConfrimModal.vue" const cardStyle = { '--n-padding-bottom': '40px', @@ -59,6 +60,7 @@ const show = ref(false) const selectedApproveItems = ref([]); // 审核批量选中 const dialog = useDialog(); let processItems: any[] = []; +const confrimModalRef = ref(); const layout = debounce(() => { if (!show.value) @@ -252,14 +254,8 @@ function closeModal(event: MouseEvent) { selectedApproveItems.value = [] show.value = false } - -async function remove() { - if ( !selectIds.value|| selectIds.value.length === 0) { - message.error('至少选中一个') - return - } - - const ids = selectIds.value.join(',') +async function commit() { + const ids = selectIds.value.join(',') const res = await removeFiles({ pictureid: ids }) if (res.code === 'OK') { message.success('移除成功') @@ -269,6 +265,13 @@ async function remove() { layout() } } + function remove() { + if ( !selectIds.value|| selectIds.value.length === 0) { + message.error('至少选中一个') + return + } + confrimModalRef?.value?.showModal() +} function setBatch(value) { @@ -288,11 +291,9 @@ defineExpose({ showModal, }) -const checked = ref(false) - const notPassModalRef = ref(null) const showActions = computed(() => { - console.log('selectedApproveItems',selectedApproveItems) + console.log('selectedApproveItems', selectedApproveItems) return selectedApproveItems.value.length > 0 && batch; }); @@ -385,7 +386,7 @@ function doAudit(param: any) { function reloadList() { refreshHandler() } -function refreshHandler(){ +function refreshHandler() { reset() featchList() } @@ -394,14 +395,10 @@ function refreshHandler(){ @@ -502,11 +492,9 @@ function refreshHandler(){ user-select: none; border-top-left-radius: 10px; border-top-right-radius: 10px; - - /* Standard syntax */ } -.remove{ +.remove { cursor: pointer; } @@ -538,7 +526,7 @@ function refreshHandler(){ } } -.img{ +.img { border-radius: 8px; } @@ -553,7 +541,7 @@ function refreshHandler(){ padding: 24px 0px 12px 0px; } - &-m32{ + &-m32 { margin-left: 32px; } @@ -636,21 +624,23 @@ function refreshHandler(){ } } -.wrapper-content-form-button{ +.wrapper-content-form-button { cursor: pointer; } .img-fit { - width: 100%; - overflow: hidden; - } - .img-full { - width: 100%; - overflow: hidden; - ::v-deep(img) { - width: 100%; - height: 100%; - object-fit: cover; - } - } + width: 100%; + overflow: hidden; +} + +.img-full { + width: 100%; + overflow: hidden; + + ::v-deep(img) { + width: 100%; + height: 100%; + object-fit: cover; + } +} diff --git a/src/store/modules/workOrder.ts b/src/store/modules/workOrder.ts index 5470f90..a729454 100644 --- a/src/store/modules/workOrder.ts +++ b/src/store/modules/workOrder.ts @@ -11,7 +11,9 @@ export const useWorkOrderStore = defineStore({ activeId: '', packageList: [], immersion: false, - name: '' + name: '', + dataId: '', + approvalList: [], }), getters: { getActiveId: (state: OrderState) => state.activeId, @@ -22,10 +24,11 @@ export const useWorkOrderStore = defineStore({ setOrderList(list: PackageListItem[]) { this.packageList = list }, - setActive(index: number, orderId?: string) { + setActive(index: number, orderId?: string, dataId?: string) { this.currentIndex = index const order = this.packageList[index] this.activeId = orderId || order?.checkDuplicateId + this.dataId = dataId || order.id; }, forward() { const len = this.packageList.length @@ -46,7 +49,7 @@ export const useWorkOrderStore = defineStore({ }, async fetchOrderList(pagination, keyword) { const res = await getPackageList(pagination, keyword) - if (res.data&&res.data.length > 0) { + if (res.data && res.data.length > 0) { this.packageList.push(...res.data) if (!this.activeId) this.setActive(0) diff --git a/src/views/final/aside/Aside.vue b/src/views/final/aside/Aside.vue index 8c2aba9..d8fa596 100644 --- a/src/views/final/aside/Aside.vue +++ b/src/views/final/aside/Aside.vue @@ -1,162 +1,178 @@