浏览代码

位置设置

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;