소스 검색

修改bug

ZaiZai 1 년 전
부모
커밋
f080424a56
1개의 변경된 파일8개의 추가작업 그리고 4개의 파일을 삭제
  1. 8 4
      src/views/tentative/detect/commission.vue

+ 8 - 4
src/views/tentative/detect/commission.vue

@@ -421,12 +421,16 @@ const delegateModalClose = () => {
 
 
 //查看
-const rowView = ({ entrustPdf }) => {
-    if (isNullES(entrustPdf)) {
-        window.$message.warning('暂无数据')
+const rowView = ({ entrustEPdf, entrustPdf }) => {
+    if (isNullES(entrustPdf) && isNullES(entrustEPdf)) {
+        window.$message.warning('暂无PDF数据')
         return
     }
-    toPdfPage(entrustPdf)
+    if (!isNullES(entrustEPdf)) {
+        toPdfPage(entrustEPdf)
+    } else if (!isNullES(entrustPdf)) {
+        toPdfPage(entrustPdf)
+    }
 }
 
 //表单数据