chenrui  преди 2 години
родител
ревизия
5134365968
променени са 1 файла, в които са добавени 12 реда и са изтрити 1 реда
  1. 12 1
      src/views/BasicsData/airportInfo/positionSetting/index.vue

+ 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;