Sfoglia il codice sorgente

任务审批修改

duy 10 ore fa
parent
commit
43cb3a9690
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      src/views/tasks/hc-data.vue

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

@@ -319,14 +319,15 @@ 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,
+             approvalType: taskids && taskids.length > 0 ? approvalTypeVal : row['approvalType'],
         })
+    
         
         if (!error && code === 200) {
             const alldata = getArrValue(data)