duy 1 день назад
Родитель
Сommit
ecc05bea04
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      src/views/tasks/hc-data.vue

+ 5 - 1
src/views/tasks/hc-data.vue

@@ -228,7 +228,9 @@ const rowTaskName = async (row) => {
             }
             taskReviewData.value = approvalFileList
             if (approvalFileList.length > 0) {
- 
+            approvalFileList.forEach((item)=>{
+                item.approvalType = row.approvalType
+            })
                 const { approvalType } = row
                 if (approvalType === 1) {
                      batchPdfUrl.value = await bussPreview( approvalFileList[0])
@@ -291,6 +293,8 @@ const batchApprovalTaskClick = (rows) => {
 const rowTaskReviewClick = async ({ row }) => {
  const { approvalType } = row
   const type = taskReviewType.value
+  console.log(approvalType, 'approvalType')
+    console.log(type, 'type')
  if (approvalType === 1) {
     if (type !== '1') {
         await queryTaskInfo(row)