Sfoglia il codice sorgente

pdf请求参数修改

duy 1 mese fa
parent
commit
96415a094f
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      src/views/tasks/hc-data.vue

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

@@ -315,10 +315,12 @@ const rowTaskReviewClick = async ({ row }) => {
 
 //获取PDF数据
 const queryTaskInfo = async (row, taskids) => {
+    console.log(checkedRowsRef.value, 'checkedRowsRef.value')
+       const approvalTypeVal = arrToKey(checkedRowsRef.value, 'approvalType', ',')
     try {
         const { error, code, data } = await tasksApi.queryTaskInfo({
             formDataId: taskids && taskids.length > 0 ? taskids : row['formDataId'],
-            approvalType: row['approvalType'],
+            approvalType: approvalTypeVal,
         })
         
         if (!error && code === 200) {