Merge branch 'test' of https://git.mcnetmart.com/guoxiangbin/ocr-web into fix/updatesyspic

pull/223/head
raofuzi 1 year ago
commit 9d21dcb1cd

@ -132,10 +132,10 @@ export async function getSimilarityList(params: any) {
* @returns
*/
export async function getTaskDetailInfo(taskId: string, packageid: string) {
export async function getTaskDetailInfo(taskId: string, packageid: string, taskNode: string) {
const pid = packageid || 0
const res = await http.request({
url: `/backstage/jifen/ocrtaskchildpicture/getdata/${taskId}/${pid}`,
url: `/backstage/jifen/ocrtaskchildpicture/getdata/${taskId}/${pid}/${taskNode}`,
method: 'get',
})

@ -363,7 +363,7 @@ function reload() {
}
function goDetail(row) {
router.push({ name: 'final-detail', query: { id: row.id, packageid: row.packageid } })
router.push({ name: 'final-detail', query: { id: row.id, packageid: row.packageid, taskindex: row.taskIndex } })
}
const showActions = computed(() => {

@ -720,7 +720,7 @@ function validate(items: any[]) {
function goDetail(row) {
router.push({
name: 'final-detail',
query: { id: row.id, packageid: row.packageid },
query: { id: row.id, packageid: row.packageid, taskindex: row.taskIndex },
})
}

@ -199,7 +199,7 @@ function isValidTimestamp(value) {
function goDetail(row) {
router.push({
name: 'final-detail',
query: { id: row.id, packageid: row.packageid },
query: { id: row.id, packageid: row.packageid, taskindex: row.taskIndex },
})
}
//

@ -49,6 +49,7 @@ const batchModalRef: any = ref(null)
const totalCount = ref(0)
const taskId: any = ref('') // id
const packageId: any = ref('') // id
const taskIndex = ref<string>('') //
const CustomSettingModalRef = ref(null)
const taskTableData = ref<any[]>([])
const route = useRoute()
@ -115,6 +116,7 @@ onMounted(() => {
if (route.query.id) {
taskId.value = route.query.id
packageId.value = route.query.packageid
taskIndex.value = route.query.taskindex as string
isDetail.value = true
getDetail()
}
@ -513,6 +515,9 @@ watch(
if (!isEmpty(taskStore.getActiveId)) {
packageId.value = taskStore.getPackageid
taskId.value = taskStore.getActiveId
//
const task = taskStore.getApprovalList.find(i => i.id === taskStore.activeId)
taskIndex.value = task.taskIndex
getDetail()
}
},
@ -520,7 +525,7 @@ watch(
//
async function getDetail() {
taskDetailInfo.value = await getTaskDetailInfo(taskId.value, packageId.value)
taskDetailInfo.value = await getTaskDetailInfo(taskId.value, packageId.value, taskIndex.value)
setBatch(false)
getTableData()
getImgList()

Loading…
Cancel
Save