feat:终审卡片最大化报错处理

20240420keydown
zhouxiaoan 1 year ago
parent ac9abbb360
commit b641b502f4

@ -239,7 +239,7 @@ function isValidTimestamp(value) {
function goDetail(row) {
router.push({
name: 'final-detail',
query: { id: row.id, packageid: row.packageid, taskindex: row.taskIndexm,type:'card' },
query: { id: row.id, packageid: row.packageid, taskindex: row.taskNode, type:'card' },
})
}
//

@ -15,12 +15,13 @@ import { formatToDateHMS } from '@/utils/dateUtil'
import { getSimilarityList, getTaskDetailInfo } from '@/api/task/task'
import emitter from '@/utils/mitt'
import bgLoading from '@/assets/images/bg-loading.png'
import { useRoute } from 'vue-router'
const emit = defineEmits<{
(e: 'reject', params: any)
(e: 'approval', params: any)
}>()
const {query} = useRoute()
const cardStyle = {
'--n-padding-bottom': '40px',
'--n-padding-left': '120px',
@ -271,6 +272,7 @@ function handleKeydown(event) {
}
function showModal(value) {
taskId.value = value
console.log('showModal')
refreshHandler()
show.value = true
}
@ -351,7 +353,7 @@ async function refreshHandler() {
if (!taskId.value)
return
const taskPackage = taskStore.getApprovalList[taskStore.getCurrentIndex] || {}
taskDetailInfo.value = await getTaskDetailInfo(taskId.value, taskPackage.packageid, taskPackage?.taskIndex || '')
taskDetailInfo.value = await getTaskDetailInfo(taskId.value, taskPackage.packageid||query.packageid, taskPackage?.taskIndex || query.taskindex)
nextTick(() => {
setTimeout(() => {
useInfiniteScroll(

Loading…
Cancel
Save