王智慧 3 лет назад
Родитель
Сommit
24bc6368f4
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      src/components/ShipInfo.vue

+ 6 - 0
src/components/ShipInfo.vue

@@ -332,9 +332,15 @@ function getShipCerts() {
 
 async function searchShip(e) {
   if (e.target.value.length != 9) return;
+  const loading = ElLoading.service({
+    lock: true,
+    text: "正在匹配船舶...",
+    background: "rgba(0, 0, 0, 0.7)",
+  });
   let { data } = await api.searchShip({
     mmsi: e.target.value,
   });
+  loading.close();
   if (data.status == 0) {
     data.result.shipCerts[0].typeName = "船舶国籍证书";
     data.result.shipCerts[1].typeName = "内河船舶适航证书";