chenrui  2 gadi atpakaļ
vecāks
revīzija
5134365968

+ 12 - 1
src/views/BasicsData/airportInfo/positionSetting/index.vue

@@ -280,9 +280,20 @@ const getQuery = async () => {
     page.value--;
   }
 };
+// //确认提交
+// const submitForm = () => {
+//   generalDataReception(tableForm);
+// };
 //确认提交
+const positionSettingForm: any = ref(null);
 const submitForm = () => {
-  generalDataReception(tableForm);
+  positionSettingForm.value.validate((valid: any) => {
+    if (valid) {
+      generalDataReception(tableForm);
+    } else {
+      return false;
+    }
+  });
 };
 const resetTable = () => {
   page.value = 0;