wzg преди 2 години
родител
ревизия
7c8a3a4f9f
променени са 1 файла, в които са добавени 11 реда и са изтрити 1 реда
  1. 11 1
      src/components/ShipInfo.vue

+ 11 - 1
src/components/ShipInfo.vue

@@ -82,7 +82,10 @@
           <view class="unit"></view>
         </div>
         <div class="info-line">
-          <div class="info-line-title">MMSI</div>
+          <div class="info-line-title">
+            <span class="red">*</span>
+            MMSI
+          </div>
           <el-input
             class="info-line-text"
             v-model="shipInfos[currentIndex].mmsi"
@@ -439,6 +442,13 @@ async function submit() {
     });
     return;
   }
+  if (!props.shipInfos[currentIndex.value].mmsi) {
+    ElMessage({
+      type: "warning",
+      message: "请填写船舶MMSI",
+    });
+    return;
+  }
   if (!props.shipInfos[currentIndex.value].contentShipOwnerName) {
     ElMessage({
       type: "warning",