Browse Source

位置设置

chenrui  2 years ago
parent
commit
5134365968
1 changed files with 12 additions and 1 deletions
  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;