lighter 3 лет назад
Родитель
Сommit
f54b8da24b
1 измененных файлов с 9 добавлено и 4 удалено
  1. 9 4
      src/views/medical-insurance/allpatient/SetlInfo.vue

+ 9 - 4
src/views/medical-insurance/allpatient/SetlInfo.vue

@@ -110,10 +110,15 @@ export default {
       }
       slctSetlPrm.begndate = formatDate(dateRange.value[0])
       slctSetlPrm.enddate = formatDate(dateRange.value[1])
-      selectSetlinfos(slctSetlPrm).then((res) => {
-        setlinfos.value = res.list
-        optins.value = res.optins
-      })
+      selectSetlinfos(slctSetlPrm)
+        .then((res) => {
+          setlinfos.value = res.list
+          optins.value = res.optins
+        })
+        .catch(() => {
+          setlinfos.value = []
+          optins.value = []
+        })
     }
 
     const bfrChkSetl = () => {