diff --git a/src/api/work/work.ts b/src/api/work/work.ts
index 5f97baf..206e926 100644
--- a/src/api/work/work.ts
+++ b/src/api/work/work.ts
@@ -1,16 +1,17 @@
import { http } from '@/utils/http/axios'
import type { PageParam, PictureSortParam, SetTFParam } from '/#/api'
+
import { ContentTypeEnum } from '@/enums/httpEnum'
/**
* 获取任务包列表
* @returns
*/
-export async function getPackageList(params: PageParam) {
+export async function getPackageList(params: PageParam, packagename: string) {
const res = await http.request({
url: `/ocr/ocrPackagetask/list`,
method: 'get',
- params,
+ params: { ...params, packagename },
})
const { data: { records, pages } } = res
diff --git a/src/store/modules/workOrder.ts b/src/store/modules/workOrder.ts
index 6008791..d41c1a1 100644
--- a/src/store/modules/workOrder.ts
+++ b/src/store/modules/workOrder.ts
@@ -43,9 +43,9 @@ export const useWorkOrderStore = defineStore({
this.setActive(--this.currentIndex)
},
- async fetchOrderList(pagination) {
- const res = await getPackageList(pagination)
-
+ async fetchOrderList(pagination, keyword) {
+ const res = await getPackageList(pagination, keyword)
+
if (res.data.length > 0) {
this.setOrderList(res.data)
this.setActive(0)
diff --git a/src/views/home/content/Content.vue b/src/views/home/content/Content.vue
index a09c218..f100264 100644
--- a/src/views/home/content/Content.vue
+++ b/src/views/home/content/Content.vue
@@ -1,4 +1,13 @@
@@ -93,7 +92,7 @@ const showFilterModal = ()=>{
diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue
index 38312a7..bc550e5 100644
--- a/src/views/task/content/Content.vue
+++ b/src/views/task/content/Content.vue
@@ -22,33 +22,33 @@ const dialog = useDialog()
const confrimModalRef = ref(null)
const batchModalRef = ref(null)
const totalCount = ref(0)
-const CustomSettingModalRef = ref(null);
-
+const CustomSettingModalRef = ref(null)
const sortBy: PictureSortParam = {
- orderbyname: "asc",
- orderbyvalue: "fromuptime",
-};
+ orderbyname: 'asc',
+ orderbyvalue: 'fromuptime',
+}
function setBatch(value: boolean) {
- batch.value = value;
+ batch.value = value
if (value === false) {
- selectItems.value.forEach((item) => (item.checked = false));
- selectItems.value.length = 0;
+ selectItems.value.forEach(item => (item.checked = false))
+ selectItems.value.length = 0
}
}
function onCheckChange(checked: any, item: any) {
- const index = selectItems.value.indexOf(item);
- item.checked = checked;
+ const index = selectItems.value.indexOf(item)
+ item.checked = checked
- if (index === -1 && checked) selectItems.value.push(item);
- else selectItems.value.splice(index, 1);
+ if (index === -1 && checked)
+ selectItems.value.push(item)
+ else selectItems.value.splice(index, 1)
}
const showActions = computed(() => {
- return selectItems.value.length > 0 && batch;
-});
+ return selectItems.value.length > 0 && batch
+})
const taskpagination = reactive({
pageNo: 1,
@@ -180,16 +180,16 @@ function reject(idOrDesc: string, backId: string, isOther: boolean) {
}
function showModal(modalRef: any) {
- const modal = unref(modalRef)! as any;
- modal.showModal();
+ const modal = unref(modalRef)! as any
+ modal.showModal()
}
function forwardHandler() {
- taskStore.forward();
+ taskStore.forward()
}
function backHandler() {
- taskStore.back();
+ taskStore.back()
}
watch(() => [taskStore.activeId, taskStore.refresh], async (newValue, oldValue) => {
@@ -207,9 +207,9 @@ watch(() => [taskStore.activeId, taskStore.refresh], async (newValue, oldValue)
})
const currentTaskId = computed(() => {
- const index = taskStore.getCurrentIndex;
- return taskStore.getApprovalList[index]?.formid || "";
-});
+ const index = taskStore.getCurrentIndex
+ return taskStore.getApprovalList[index]?.formid || ''
+})
function overTaskHandle() {
const item = taskDetailInfo.value
@@ -219,12 +219,12 @@ function overTaskHandle() {
}
function leaveTaskHandler() {
- overTask.value = null;
+ overTask.value = null
}
-function showActionsModal(){
- const modal = unref(CustomSettingModalRef)! as any;
- modal.showModal();
+function showActionsModal() {
+ const modal = unref(CustomSettingModalRef)! as any
+ modal.showModal()
}
onUnmounted(() => {
@@ -359,7 +359,9 @@ function previewHandler(event: MouseEvent) {
@update:checked="onCheckChange($event, item)"
/>
- 96%
+
+ 96%
+
@@ -368,7 +370,9 @@ function previewHandler(event: MouseEvent) {
-
相似图片(16)
+
相似图片({{ count }})