|
@@ -45,7 +45,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { ref, watch } from 'vue'
|
|
|
-import { getArrValue, getObjValue } from 'js-fast-way'
|
|
|
+import { getArrValue, getObjValue, isNullES } from 'js-fast-way'
|
|
|
import mainApi from '~api/tasks/hc-data'
|
|
|
|
|
|
const props = defineProps({
|
|
@@ -78,6 +78,10 @@ const pdfUrl = ref('')
|
|
|
const flowListTask = ref([])
|
|
|
const getDataApi = async () => {
|
|
|
const { taskId } = getObjValue(dataInfo.value)
|
|
|
+ if (isNullES(taskId)) {
|
|
|
+ addModalClose()
|
|
|
+ return
|
|
|
+ }
|
|
|
const { data } = await mainApi.getDetail(taskId)
|
|
|
const tasks = getArrValue(data?.taskProcessInfo)
|
|
|
tasks.forEach(item => {
|