瀏覽代碼

修改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)
+    }
 }
 
 //表单数据