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