Преглед изворни кода

修改table needShow判断

zhaoke пре 1 година
родитељ
комит
de58eabee3

+ 104 - 20
src/views/BasicsData/airlineCompany/index.vue

@@ -1,7 +1,12 @@
 <template>
   <div class="airportInfo scroll-y">
     <div class="wrap">
-      <Minheader :is-auth="true" :is-statuser="true" powerData="new_airlines_button" @addForm="addForm">
+      <Minheader
+        :is-auth="true"
+        :is-statuser="true"
+        powerData="new_airlines_button"
+        @addForm="addForm"
+      >
         <template #header>
           <div class="status flex-wrap">
             <div class="manageTitle">航司信息维护</div>
@@ -9,50 +14,129 @@
         </template>
       </Minheader>
       <div class="app-containers">
-        <DataTable :tableHeader="tableCols" :tableData="tableData" :tableBtnGroup="tableBtnGroup" :tableProperty="{ rowKey: 'ID' }" @btnClick="btnClick" />
+        <DataTable
+          :tableHeader="tableCols"
+          :tableData="tableData"
+          :tableBtnGroup="tableBtnGroup"
+          :tableProperty="{ rowKey: 'ID' }"
+          @btnClick="btnClick"
+        />
       </div>
-      <Dialog :flag="flag" :type="type" :msgTitle="msgTitle" :delName="tableForm.fullName" @resetForm="resetForm" @delRest="delRest" @submitForm="submitForm" @delRemove="delRemove">
+      <Dialog
+        :flag="flag"
+        :type="type"
+        :msgTitle="msgTitle"
+        :delName="tableForm.fullName"
+        @resetForm="resetForm"
+        @delRest="delRest"
+        @submitForm="submitForm"
+        @delRemove="delRemove"
+      >
         <div class="diacont">
-          <el-form :model="tableForm" :rules="formRules" ref="airlineCompanyForm">
+          <el-form
+            :model="tableForm"
+            :rules="formRules"
+            ref="airlineCompanyForm"
+          >
             <el-row :gutter="24">
               <el-col>
-                <el-form-item label="航司ID" size="default" prop="airlineCompanyID" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.airlineCompanyID" placeholder="请输入航司ID" />
+                <el-form-item
+                  label="航司ID"
+                  size="default"
+                  prop="airlineCompanyID"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.airlineCompanyID"
+                    placeholder="请输入航司ID"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="中文名称" size="default" prop="fullName" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.fullName" placeholder="请输入中文名称" />
+                <el-form-item
+                  label="中文名称"
+                  size="default"
+                  prop="fullName"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.fullName"
+                    placeholder="请输入中文名称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="中文简称" size="default" prop="abbreviation" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.abbreviation" placeholder="请输入中文简称" />
+                <el-form-item
+                  label="中文简称"
+                  size="default"
+                  prop="abbreviation"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.abbreviation"
+                    placeholder="请输入中文简称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="英文全称" size="default" prop="englishFullName" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.englishFullName" placeholder="请输入英文全称" />
+                <el-form-item
+                  label="英文全称"
+                  size="default"
+                  prop="englishFullName"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.englishFullName"
+                    placeholder="请输入英文全称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="英文简称" prop="englishAbbreviation" size="default" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.englishAbbreviation" placeholder="请输入英文简称" />
+                <el-form-item
+                  label="英文简称"
+                  prop="englishAbbreviation"
+                  size="default"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.englishAbbreviation"
+                    placeholder="请输入英文简称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="航司二字码" size="default" prop="ITATCode" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.ITATCode" placeholder="请输入航司二字码" />
+                <el-form-item
+                  label="航司二字码"
+                  size="default"
+                  prop="ITATCode"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.ITATCode"
+                    placeholder="请输入航司二字码"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="航司三字码" size="default" prop="ICAOCode" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.ICAOCode" placeholder="请输入航司三字码" />
+                <el-form-item
+                  label="航司三字码"
+                  size="default"
+                  prop="ICAOCode"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.ICAOCode"
+                    placeholder="请输入航司三字码"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
                 <el-form-item label="备注" size="default">
-                  <el-input type="textarea" v-model="tableForm.remarks" placeholder="请输入备注" />
+                  <el-input
+                    type="textarea"
+                    v-model="tableForm.remarks"
+                    placeholder="请输入备注"
+                  />
                 </el-form-item>
               </el-col>
             </el-row>
@@ -189,7 +273,7 @@ const getQuery = async () => {
         noMore.value = true;
       }
       const titleColumn = returnData.columnSet.find(
-        (item) => item.needShow === 1
+        (item) => item.needShow == 1
       );
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;

+ 95 - 16
src/views/BasicsData/airportCompany/index.vue

@@ -1,7 +1,16 @@
 <template>
   <div class="airportInfo scroll-y">
     <div class="wrap">
-      <Minheader :is-auth="true" :is-statuser="true" :is-btn="true" :is-search="true" powerData="new_airport_companies_button" @searchForms="searchForms" @addForm="addForm" @clearForm="clearForm">
+      <Minheader
+        :is-auth="true"
+        :is-statuser="true"
+        :is-btn="true"
+        :is-search="true"
+        powerData="new_airport_companies_button"
+        @searchForms="searchForms"
+        @addForm="addForm"
+        @clearForm="clearForm"
+      >
         <template #header>
           <div class="status flex-wrap">
             <div class="manageTitle">机场公司维护</div>
@@ -9,38 +18,108 @@
         </template>
       </Minheader>
       <div class="app-containers">
-        <DataTable :tableHeader="tableCols" :tableData="tableData" :tableBtnGroup="tableBtnGroup" :tableProperty="{ rowKey: 'ID' }" @btnClick="btnClick" />
+        <DataTable
+          :tableHeader="tableCols"
+          :tableData="tableData"
+          :tableBtnGroup="tableBtnGroup"
+          :tableProperty="{ rowKey: 'ID' }"
+          @btnClick="btnClick"
+        />
       </div>
-      <Dialog :flag="flag" :type="type" :msgTitle="msgTitle" :delName="tableForm.companyName" @resetForm="resetForm" @delRest="delRest" @submitForm="submitForm" @delRemove="delRemove">
+      <Dialog
+        :flag="flag"
+        :type="type"
+        :msgTitle="msgTitle"
+        :delName="tableForm.companyName"
+        @resetForm="resetForm"
+        @delRest="delRest"
+        @submitForm="submitForm"
+        @delRemove="delRemove"
+      >
         <div class="diacont">
-          <el-form :model="tableForm" :rules="formRules" ref="airportCompanyForm">
+          <el-form
+            :model="tableForm"
+            :rules="formRules"
+            ref="airportCompanyForm"
+          >
             <el-row :gutter="24">
               <el-col>
-                <el-form-item label="公司ID" size="default" :rules="formRules.isNotNull" prop="companyID">
-                  <el-input v-model="tableForm.companyID" placeholder="请输入公司ID" />
+                <el-form-item
+                  label="公司ID"
+                  size="default"
+                  :rules="formRules.isNotNull"
+                  prop="companyID"
+                >
+                  <el-input
+                    v-model="tableForm.companyID"
+                    placeholder="请输入公司ID"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="公司名称" size="default" :rules="formRules.isNotNull" prop="companyName">
-                  <el-input v-model="tableForm.companyName" placeholder="请输入公司名称" />
+                <el-form-item
+                  label="公司名称"
+                  size="default"
+                  :rules="formRules.isNotNull"
+                  prop="companyName"
+                >
+                  <el-input
+                    v-model="tableForm.companyName"
+                    placeholder="请输入公司名称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="上级公司" :rules="formRules.isNotNull" prop="parentID" size="default">
-                  <el-select style="width: 100%" v-model="tableForm.parentID" class="input-shadow" filterable default-first-option clearable placeholder="请选择">
-                    <el-option v-for="item in tableOptionser" :key="item.v" :label="item.k" :value="item.v">
+                <el-form-item
+                  label="上级公司"
+                  :rules="formRules.isNotNull"
+                  prop="parentID"
+                  size="default"
+                >
+                  <el-select
+                    style="width: 100%"
+                    v-model="tableForm.parentID"
+                    class="input-shadow"
+                    filterable
+                    default-first-option
+                    clearable
+                    placeholder="请选择"
+                  >
+                    <el-option
+                      v-for="item in tableOptionser"
+                      :key="item.v"
+                      :label="item.k"
+                      :value="item.v"
+                    >
                     </el-option>
                   </el-select>
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="上级公司ID" :rules="formRules.isNotNull" size="default" prop="parentID">
-                  <el-input :disabled="tableForm.parentID == 'null'" v-model="tableForm.parentID" placeholder="请输入上级公司ID" />
+                <el-form-item
+                  label="上级公司ID"
+                  :rules="formRules.isNotNull"
+                  size="default"
+                  prop="parentID"
+                >
+                  <el-input
+                    :disabled="tableForm.parentID == 'null'"
+                    v-model="tableForm.parentID"
+                    placeholder="请输入上级公司ID"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="公司描述" :rules="formRules.isNotNull" size="default">
-                  <el-input type="textarea" v-model="tableForm.companyDesc" placeholder="请输入公司描述" />
+                <el-form-item
+                  label="公司描述"
+                  :rules="formRules.isNotNull"
+                  size="default"
+                >
+                  <el-input
+                    type="textarea"
+                    v-model="tableForm.companyDesc"
+                    placeholder="请输入公司描述"
+                  />
                 </el-form-item>
               </el-col>
             </el-row>
@@ -198,7 +277,7 @@ const getQuery = async (val = "") => {
         noMore.value = true;
       }
       const titleColumn = returnData.columnSet.find(
-        (item) => item.needShow === 1
+        (item) => item.needShow == 1
       );
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;

+ 100 - 19
src/views/BasicsData/airportInfo/airportInfoChild/index.vue

@@ -1,7 +1,12 @@
 <template>
   <div class="airportInfo scroll-y">
     <div class="wrap">
-      <Minheader :is-auth="true" :is-statuser="true" powerData="newly_added_terminal_button" @addForm="addForm">
+      <Minheader
+        :is-auth="true"
+        :is-statuser="true"
+        powerData="newly_added_terminal_button"
+        @addForm="addForm"
+      >
         <template #header>
           <div class="status flex-wrap">
             <div class="manageTitle">区域设置</div>
@@ -9,50 +14,126 @@
         </template>
       </Minheader>
       <div class="app-containers">
-        <DataTable :tableHeader="tableCols" :tableData="tableData" :tableBtnGroup="tableBtnGroup" :tableProperty="{ rowKey: 'ID' }" @btnClick="btnClick" />
+        <DataTable
+          :tableHeader="tableCols"
+          :tableData="tableData"
+          :tableBtnGroup="tableBtnGroup"
+          :tableProperty="{ rowKey: 'ID' }"
+          @btnClick="btnClick"
+        />
       </div>
-      <Dialog :flag="flag" :type="type" :msgTitle="msgTitle" :delName="tableForm.terminalName" @resetForm="resetForm" @delRest="delRest" @submitForm="submitForm" @delRemove="delRemove">
+      <Dialog
+        :flag="flag"
+        :type="type"
+        :msgTitle="msgTitle"
+        :delName="tableForm.terminalName"
+        @resetForm="resetForm"
+        @delRest="delRest"
+        @submitForm="submitForm"
+        @delRemove="delRemove"
+      >
         <div class="diacont">
-          <el-form :model="tableForm" :rules="formRules" ref="airportInfoChildForm">
+          <el-form
+            :model="tableForm"
+            :rules="formRules"
+            ref="airportInfoChildForm"
+          >
             <el-row :gutter="24">
               <el-col>
-                <el-form-item label="所属区域ID" size="default" prop="terminalID" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.terminalID" placeholder="请输入所属区域ID" />
+                <el-form-item
+                  label="所属区域ID"
+                  size="default"
+                  prop="terminalID"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.terminalID"
+                    placeholder="请输入所属区域ID"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="所属机场ID" size="default" prop="airportID" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.airportID" placeholder="请输入所属机场ID" />
+                <el-form-item
+                  label="所属机场ID"
+                  size="default"
+                  prop="airportID"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.airportID"
+                    placeholder="请输入所属机场ID"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="航站楼ID" size="default" prop="airportTerminalID" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.airportTerminalID" placeholder="请输入航站楼ID" />
+                <el-form-item
+                  label="航站楼ID"
+                  size="default"
+                  prop="airportTerminalID"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.airportTerminalID"
+                    placeholder="请输入航站楼ID"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="区域名称" size="default" prop="terminalName" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.terminalName" placeholder="请输入区域名称" />
+                <el-form-item
+                  label="区域名称"
+                  size="default"
+                  prop="terminalName"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.terminalName"
+                    placeholder="请输入区域名称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="航站楼名称" size="default" prop="airportTerminalName" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.airportTerminalName" placeholder="请输入航站楼名称" />
+                <el-form-item
+                  label="航站楼名称"
+                  size="default"
+                  prop="airportTerminalName"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.airportTerminalName"
+                    placeholder="请输入航站楼名称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="机场三字码" size="default" prop="airportCode" :rules="formRules.isNotNull">
-                  <el-input disabled v-model="tableForm.airportCode" placeholder="请输入机场三字码" />
+                <el-form-item
+                  label="机场三字码"
+                  size="default"
+                  prop="airportCode"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    disabled
+                    v-model="tableForm.airportCode"
+                    placeholder="请输入机场三字码"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
                 <el-form-item label="机场名称" size="default">
-                  <el-input disabled v-model="tableForm.abbreviation" placeholder="请输入机场名称" />
+                  <el-input
+                    disabled
+                    v-model="tableForm.abbreviation"
+                    placeholder="请输入机场名称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col :span="24">
                 <el-form-item label="备注" size="default">
-                  <el-input type="textarea" v-model="tableForm.remarks" placeholder="请输入备注" />
+                  <el-input
+                    type="textarea"
+                    v-model="tableForm.remarks"
+                    placeholder="请输入备注"
+                  />
                 </el-form-item>
               </el-col>
             </el-row>
@@ -228,7 +309,7 @@ const getQuery = async () => {
         noMore.value = true;
       }
       const titleColumn = returnData.columnSet.find(
-        (item) => item.needShow === 1
+        (item) => item.needShow == 1
       );
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;

+ 138 - 25
src/views/BasicsData/airportInfo/index.vue

@@ -1,6 +1,11 @@
 <template>
   <div class="airportInfoDetails">
-    <Minheader :is-auth="true" :is-statuser="true" powerData="new_airport_button" @addForm="addForm">
+    <Minheader
+      :is-auth="true"
+      :is-statuser="true"
+      powerData="new_airport_button"
+      @addForm="addForm"
+    >
       <template #header>
         <div class="status flex-wrap">
           <div class="manageTitle">机场信息维护</div>
@@ -13,79 +18,187 @@
           <div class="tree_left">
             <el-scrollbar style="height: 100%">
               <div class="corporate">{{ company }}</div>
-              <el-tree :data="data" :props="defaultProps" accordion @node-click="handleNodeClick">
+              <el-tree
+                :data="data"
+                :props="defaultProps"
+                accordion
+                @node-click="handleNodeClick"
+              >
               </el-tree>
             </el-scrollbar>
           </div>
         </el-col>
         <el-col :span="18">
           <div class="app-containers">
-            <DataTable :btnGroupWidth="btnGroupWidth" :tableHeader="tableCols" :tableData="tableData" :tableBtnGroup="tableBtnGroup" :tableProperty="{ rowKey: 'ID' }" @btnClick="btnClick" />
+            <DataTable
+              :btnGroupWidth="btnGroupWidth"
+              :tableHeader="tableCols"
+              :tableData="tableData"
+              :tableBtnGroup="tableBtnGroup"
+              :tableProperty="{ rowKey: 'ID' }"
+              @btnClick="btnClick"
+            />
           </div>
         </el-col>
       </el-row>
     </div>
-    <Dialog width="600px" :flag="flag" :type="type" :msgTitle="msgTitle" :delName="tableForm.airportName" @resetForm="resetForm" @delRest="delRest" @submitForm="submitForm" @delRemove="delRemove">
+    <Dialog
+      width="600px"
+      :flag="flag"
+      :type="type"
+      :msgTitle="msgTitle"
+      :delName="tableForm.airportName"
+      @resetForm="resetForm"
+      @delRest="delRest"
+      @submitForm="submitForm"
+      @delRemove="delRemove"
+    >
       <div class="diacont">
         <el-form :model="tableForm" :rules="formRules" ref="airportInfoForm">
           <el-row :gutter="24">
             <el-col :span="12">
-              <el-form-item label="机场ID" size="default" prop="airportID" :rules="formRules.isNotNull">
-                <el-input v-model="tableForm.airportID" placeholder="请输入机场ID" />
+              <el-form-item
+                label="机场ID"
+                size="default"
+                prop="airportID"
+                :rules="formRules.isNotNull"
+              >
+                <el-input
+                  v-model="tableForm.airportID"
+                  placeholder="请输入机场ID"
+                />
               </el-form-item>
             </el-col>
             <el-col :span="12">
-              <el-form-item label="中文全称" size="default" prop="airportName" :rules="formRules.isNotNull">
-                <el-input v-model="tableForm.airportName" placeholder="请输入机场名称" />
+              <el-form-item
+                label="中文全称"
+                size="default"
+                prop="airportName"
+                :rules="formRules.isNotNull"
+              >
+                <el-input
+                  v-model="tableForm.airportName"
+                  placeholder="请输入机场名称"
+                />
               </el-form-item>
             </el-col>
             <el-col :span="12">
-              <el-form-item label="中文简称" size="default" prop="abbreviation" :rules="formRules.isNotNull">
-                <el-input v-model="tableForm.abbreviation" placeholder="请输入中文简称" />
+              <el-form-item
+                label="中文简称"
+                size="default"
+                prop="abbreviation"
+                :rules="formRules.isNotNull"
+              >
+                <el-input
+                  v-model="tableForm.abbreviation"
+                  placeholder="请输入中文简称"
+                />
               </el-form-item>
             </el-col>
             <el-col :span="12">
               <el-form-item label="英文简称" size="default">
-                <el-input v-model="tableForm.englishAbbreviation" placeholder="请输入英文简称" />
+                <el-input
+                  v-model="tableForm.englishAbbreviation"
+                  placeholder="请输入英文简称"
+                />
               </el-form-item>
             </el-col>
             <el-col :span="12">
               <el-form-item label="英文全称" size="default">
-                <el-input v-model="tableForm.fullName" placeholder="请输入英文全称" />
+                <el-input
+                  v-model="tableForm.fullName"
+                  placeholder="请输入英文全称"
+                />
               </el-form-item>
             </el-col>
             <el-col :span="12">
-              <el-form-item label="三字码" size="default" prop="IATACode" :rules="formRules.isNotNull">
-                <el-input v-model="tableForm.IATACode" placeholder="请输入三字码" />
+              <el-form-item
+                label="三字码"
+                size="default"
+                prop="IATACode"
+                :rules="formRules.isNotNull"
+              >
+                <el-input
+                  v-model="tableForm.IATACode"
+                  placeholder="请输入三字码"
+                />
               </el-form-item>
             </el-col>
             <el-col :span="12">
-              <el-form-item label="四字码" size="default" prop="ICAOCode" :rules="formRules.isNotNull">
-                <el-input v-model="tableForm.ICAOCode" placeholder="请输入四字码" />
+              <el-form-item
+                label="四字码"
+                size="default"
+                prop="ICAOCode"
+                :rules="formRules.isNotNull"
+              >
+                <el-input
+                  v-model="tableForm.ICAOCode"
+                  placeholder="请输入四字码"
+                />
               </el-form-item>
             </el-col>
             <el-col :span="12">
-              <el-form-item label="时区" size="default" prop="airportTimeZone" :rules="formRules.isNotNull">
+              <el-form-item
+                label="时区"
+                size="default"
+                prop="airportTimeZone"
+                :rules="formRules.isNotNull"
+              >
                 <!-- <el-input v-model="tableForm.china" /> -->
-                <el-select style="width: 100%" v-model="tableForm.airportTimeZone" class="input-shadow" filterable default-first-option clearable placeholder="请选择时区">
-                  <el-option v-for="item in tableOptionser" :key="item.v ? item.v : item.planDepartureApt" :label="item.k ? item.k : item.planDepartureApt" :value="item.v ? item.v : item.planDepartureApt">
+                <el-select
+                  style="width: 100%"
+                  v-model="tableForm.airportTimeZone"
+                  class="input-shadow"
+                  filterable
+                  default-first-option
+                  clearable
+                  placeholder="请选择时区"
+                >
+                  <el-option
+                    v-for="item in tableOptionser"
+                    :key="item.v ? item.v : item.planDepartureApt"
+                    :label="item.k ? item.k : item.planDepartureApt"
+                    :value="item.v ? item.v : item.planDepartureApt"
+                  >
                   </el-option>
                 </el-select>
               </el-form-item>
             </el-col>
             <el-col :span="12">
-              <el-form-item label="公司名称" size="default" prop="companyName" :rules="formRules.isNotNull">
-                <el-input disabled v-model="tableForm.companyName" placeholder="请输入公司名称" />
+              <el-form-item
+                label="公司名称"
+                size="default"
+                prop="companyName"
+                :rules="formRules.isNotNull"
+              >
+                <el-input
+                  disabled
+                  v-model="tableForm.companyName"
+                  placeholder="请输入公司名称"
+                />
               </el-form-item>
             </el-col>
             <el-col :span="12">
-              <el-form-item label="公司ID" size="default" prop="companyID" :rules="formRules.isNotNull">
-                <el-input disabled v-model="tableForm.companyID" placeholder="请输入公司ID" />
+              <el-form-item
+                label="公司ID"
+                size="default"
+                prop="companyID"
+                :rules="formRules.isNotNull"
+              >
+                <el-input
+                  disabled
+                  v-model="tableForm.companyID"
+                  placeholder="请输入公司ID"
+                />
               </el-form-item>
             </el-col>
             <el-col :span="24">
               <el-form-item label="备注" size="default">
-                <el-input type="textarea" v-model="tableForm.remarks" placeholder="请输入备注" />
+                <el-input
+                  type="textarea"
+                  v-model="tableForm.remarks"
+                  placeholder="请输入备注"
+                />
               </el-form-item>
             </el-col>
           </el-row>
@@ -387,7 +500,7 @@ const getQuery = async () => {
         noMore.value = true;
       }
       const titleColumn = returnData.columnSet.find(
-        (item) => item.needShow === 1
+        (item) => item.needShow == 1
       );
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;

+ 94 - 18
src/views/BasicsData/airportInfo/positionSetting/index.vue

@@ -1,7 +1,12 @@
 <template>
   <div class="airportInfo scroll-y">
     <div class="wrap">
-      <Minheader :is-auth="true" :is-statuser="true" powerData="position_addition_button" @addForm="addForm">
+      <Minheader
+        :is-auth="true"
+        :is-statuser="true"
+        powerData="position_addition_button"
+        @addForm="addForm"
+      >
         <template #header>
           <div class="status flex-wrap">
             <div class="manageTitle">位置设置</div>
@@ -9,45 +14,116 @@
         </template>
       </Minheader>
       <div class="app-containers">
-        <DataTable :tableHeader="tableCols" :tableData="tableData" :tableBtnGroup="tableBtnGroup" :tableProperty="{ rowKey: 'ID' }" @btnClick="btnClick" />
+        <DataTable
+          :tableHeader="tableCols"
+          :tableData="tableData"
+          :tableBtnGroup="tableBtnGroup"
+          :tableProperty="{ rowKey: 'ID' }"
+          @btnClick="btnClick"
+        />
       </div>
-      <Dialog :flag="flag" :type="type" :msgTitle="msgTitle" :delName="tableForm.terminalName" @resetForm="resetForm" @delRest="delRest" @submitForm="submitForm" @delRemove="delRemove">
+      <Dialog
+        :flag="flag"
+        :type="type"
+        :msgTitle="msgTitle"
+        :delName="tableForm.terminalName"
+        @resetForm="resetForm"
+        @delRest="delRest"
+        @submitForm="submitForm"
+        @delRemove="delRemove"
+      >
         <div class="diacont">
-          <el-form :model="tableForm" :rules="formRules" ref="positionSettingForm">
+          <el-form
+            :model="tableForm"
+            :rules="formRules"
+            ref="positionSettingForm"
+          >
             <el-row :gutter="24">
               <el-col>
-                <el-form-item label="位置ID" size="default" prop="positionID" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.positionID" placeholder="位置ID" />
+                <el-form-item
+                  label="位置ID"
+                  size="default"
+                  prop="positionID"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.positionID"
+                    placeholder="位置ID"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="区域名称" size="default" prop="terminalName" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.terminalName" placeholder="请输入区域名称" />
+                <el-form-item
+                  label="区域名称"
+                  size="default"
+                  prop="terminalName"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.terminalName"
+                    placeholder="请输入区域名称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="位置名称" size="default" prop="positionName" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.positionName" placeholder="请输入位置名称" />
+                <el-form-item
+                  label="位置名称"
+                  size="default"
+                  prop="positionName"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.positionName"
+                    placeholder="请输入位置名称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="位置标识" size="default" prop="locationCode" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.locationCode" placeholder="请输入位置标识" />
+                <el-form-item
+                  label="位置标识"
+                  size="default"
+                  prop="locationCode"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.locationCode"
+                    placeholder="请输入位置标识"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="位置所属节点" size="default" prop="positionNode" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.positionNode" placeholder="请输入位置所属节点" />
+                <el-form-item
+                  label="位置所属节点"
+                  size="default"
+                  prop="positionNode"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.positionNode"
+                    placeholder="请输入位置所属节点"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="位置编码" size="default" prop="positionSN" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.positionSN" placeholder="请输入位置编码" />
+                <el-form-item
+                  label="位置编码"
+                  size="default"
+                  prop="positionSN"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.positionSN"
+                    placeholder="请输入位置编码"
+                  />
                 </el-form-item>
               </el-col>
               <el-col :span="24">
                 <el-form-item label="备注" size="default">
-                  <el-input type="textarea" v-model="tableForm.remarks" placeholder="请输入备注" />
+                  <el-input
+                    type="textarea"
+                    v-model="tableForm.remarks"
+                    placeholder="请输入备注"
+                  />
                 </el-form-item>
               </el-col>
               <!-- <el-col>
@@ -202,7 +278,7 @@ const getQuery = async () => {
         noMore.value = true;
       }
       const titleColumn = returnData.columnSet.find(
-        (item) => item.needShow === 1
+        (item) => item.needShow == 1
       );
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;

+ 78 - 14
src/views/BasicsData/cargoInformation/index.vue

@@ -1,7 +1,16 @@
 <template>
   <div class="airportInfo scroll-y">
     <div class="wrap">
-      <Minheader :is-auth="true" :is-btn="true" :is-search="true" :is-statuser="true" powerData="new_freight_forwarder_button" @searchForms="searchForms" @clearForm="clearForm" @addForm="addForm">
+      <Minheader
+        :is-auth="true"
+        :is-btn="true"
+        :is-search="true"
+        :is-statuser="true"
+        powerData="new_freight_forwarder_button"
+        @searchForms="searchForms"
+        @clearForm="clearForm"
+        @addForm="addForm"
+      >
         <template #header>
           <div class="status flex-wrap">
             <div class="manageTitle">货代管理</div>
@@ -9,35 +18,90 @@
         </template>
       </Minheader>
       <div class="app-containers">
-        <DataTable :tableHeader="tableCols" :tableData="tableData" :tableBtnGroup="tableBtnGroup" :tableProperty="{ rowKey: 'ID' }" @btnClick="btnClick" />
+        <DataTable
+          :tableHeader="tableCols"
+          :tableData="tableData"
+          :tableBtnGroup="tableBtnGroup"
+          :tableProperty="{ rowKey: 'ID' }"
+          @btnClick="btnClick"
+        />
       </div>
-      <Dialog :flag="flag" :type="type" :msgTitle="msgTitle" :delName="tableForm.agentName" @resetForm="resetForm" @delRest="delRest" @submitForm="submitForm" @delRemove="delRemove">
+      <Dialog
+        :flag="flag"
+        :type="type"
+        :msgTitle="msgTitle"
+        :delName="tableForm.agentName"
+        @resetForm="resetForm"
+        @delRest="delRest"
+        @submitForm="submitForm"
+        @delRemove="delRemove"
+      >
         <div class="diacont">
-          <el-form :model="tableForm" :rules="formRules" ref="cargoInformationForm">
+          <el-form
+            :model="tableForm"
+            :rules="formRules"
+            ref="cargoInformationForm"
+          >
             <el-row :gutter="24">
               <el-col>
-                <el-form-item label="货代ID" size="default" prop="agentID" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.agentID" placeholder="请输入货代ID" />
+                <el-form-item
+                  label="货代ID"
+                  size="default"
+                  prop="agentID"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.agentID"
+                    placeholder="请输入货代ID"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="货代名称" size="default" prop="agentName" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.agentName" placeholder="请输入货代名称" />
+                <el-form-item
+                  label="货代名称"
+                  size="default"
+                  prop="agentName"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.agentName"
+                    placeholder="请输入货代名称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="货代编码" size="default" prop="agentCode" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.agentCode" placeholder="请输入货代编码" />
+                <el-form-item
+                  label="货代编码"
+                  size="default"
+                  prop="agentCode"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.agentCode"
+                    placeholder="请输入货代编码"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="货代等级" size="default" prop="level" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.level" placeholder="请输入货代等级" />
+                <el-form-item
+                  label="货代等级"
+                  size="default"
+                  prop="level"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.level"
+                    placeholder="请输入货代等级"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
                 <el-form-item label="备注" size="default">
-                  <el-input type="textarea" v-model="tableForm.agentDesc" placeholder="请输入备注" />
+                  <el-input
+                    type="textarea"
+                    v-model="tableForm.agentDesc"
+                    placeholder="请输入备注"
+                  />
                 </el-form-item>
               </el-col>
             </el-row>
@@ -188,7 +252,7 @@ const getQuery = async (val = "") => {
         noMore.value = true;
       }
       const titleColumn = returnData.columnSet.find(
-        (item) => item.needShow === 1
+        (item) => item.needShow == 1
       );
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;

+ 78 - 14
src/views/BasicsData/containerMaintenance/index.vue

@@ -1,7 +1,16 @@
 <template>
   <div class="airportInfo scroll-y">
     <div class="wrap">
-      <Minheader :is-auth="true" :is-btn="true" :is-search="true" :is-statuser="true" powerData="container_addition_button" @clearForm="clearForm" @searchForms="searchForms" @addForm="addForm">
+      <Minheader
+        :is-auth="true"
+        :is-btn="true"
+        :is-search="true"
+        :is-statuser="true"
+        powerData="container_addition_button"
+        @clearForm="clearForm"
+        @searchForms="searchForms"
+        @addForm="addForm"
+      >
         <template #header>
           <div class="status flex-wrap">
             <div class="manageTitle">容器类型维护</div>
@@ -9,35 +18,90 @@
         </template>
       </Minheader>
       <div class="app-containers">
-        <DataTable :tableHeader="tableCols" :tableData="tableData" :tableBtnGroup="tableBtnGroup" :tableProperty="{ rowKey: 'ID' }" @btnClick="btnClick" />
+        <DataTable
+          :tableHeader="tableCols"
+          :tableData="tableData"
+          :tableBtnGroup="tableBtnGroup"
+          :tableProperty="{ rowKey: 'ID' }"
+          @btnClick="btnClick"
+        />
       </div>
-      <Dialog :flag="flag" :type="type" :msgTitle="msgTitle" :delName="tableForm.containerName" @resetForm="resetForm" @delRest="delRest" @submitForm="submitForm" @delRemove="delRemove">
+      <Dialog
+        :flag="flag"
+        :type="type"
+        :msgTitle="msgTitle"
+        :delName="tableForm.containerName"
+        @resetForm="resetForm"
+        @delRest="delRest"
+        @submitForm="submitForm"
+        @delRemove="delRemove"
+      >
         <div class="diacont">
-          <el-form :model="tableForm" :rules="formRules" ref="containerMaintenanceForm">
+          <el-form
+            :model="tableForm"
+            :rules="formRules"
+            ref="containerMaintenanceForm"
+          >
             <el-row :gutter="24">
               <el-col>
-                <el-form-item label="容器类型ID" size="default" prop="containerID" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.containerID" placeholder="请输入容器类型ID" />
+                <el-form-item
+                  label="容器类型ID"
+                  size="default"
+                  prop="containerID"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.containerID"
+                    placeholder="请输入容器类型ID"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="容器类型名称" size="default" prop="containerName" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.containerName" placeholder="请输入容器类型名称" />
+                <el-form-item
+                  label="容器类型名称"
+                  size="default"
+                  prop="containerName"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.containerName"
+                    placeholder="请输入容器类型名称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="容器类型识别码" size="default" prop="containerCode" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.containerCode" placeholder="请输入容器类型识别码" />
+                <el-form-item
+                  label="容器类型识别码"
+                  size="default"
+                  prop="containerCode"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.containerCode"
+                    placeholder="请输入容器类型识别码"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="容器单位" size="default" prop="containerUnit" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.containerUnit" placeholder="请输入容器单位" />
+                <el-form-item
+                  label="容器单位"
+                  size="default"
+                  prop="containerUnit"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.containerUnit"
+                    placeholder="请输入容器单位"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
                 <el-form-item label="备注" size="default">
-                  <el-input type="textarea" v-model="tableForm.containerDesc" placeholder="请输入备注" />
+                  <el-input
+                    type="textarea"
+                    v-model="tableForm.containerDesc"
+                    placeholder="请输入备注"
+                  />
                 </el-form-item>
               </el-col>
             </el-row>
@@ -189,7 +253,7 @@ const getQuery = async (val = "") => {
         noMore.value = true;
       }
       const titleColumn = returnData.columnSet.find(
-        (item) => item.needShow === 1
+        (item) => item.needShow == 1
       );
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;

+ 59 - 11
src/views/BasicsData/deployNode/index.vue

@@ -1,7 +1,12 @@
 <template>
   <div class="airportInfo scroll-y">
     <div class="wrap">
-      <Minheader :is-auth="true" :is-statuser="true" powerData="new_node_button" @addForm="addForm">
+      <Minheader
+        :is-auth="true"
+        :is-statuser="true"
+        powerData="new_node_button"
+        @addForm="addForm"
+      >
         <template #header>
           <div class="status flex-wrap">
             <div class="manageTitle">节点信息维护</div>
@@ -9,30 +14,73 @@
         </template>
       </Minheader>
       <div class="app-containers">
-        <DataTable :tableHeader="tableCols" :tableData="tableData" :tableBtnGroup="tableBtnGroup" :tableProperty="{ rowKey: 'ID' }" @btnClick="btnClick" />
+        <DataTable
+          :tableHeader="tableCols"
+          :tableData="tableData"
+          :tableBtnGroup="tableBtnGroup"
+          :tableProperty="{ rowKey: 'ID' }"
+          @btnClick="btnClick"
+        />
       </div>
-      <Dialog :flag="flag" :type="type" :msgTitle="msgTitle" :delName="tableForm.nodeName" @resetForm="resetForm" @delRest="delRest" @submitForm="submitForm" @delRemove="delRemove">
+      <Dialog
+        :flag="flag"
+        :type="type"
+        :msgTitle="msgTitle"
+        :delName="tableForm.nodeName"
+        @resetForm="resetForm"
+        @delRest="delRest"
+        @submitForm="submitForm"
+        @delRemove="delRemove"
+      >
         <div class="diacont">
           <el-form :model="tableForm" :rules="formRules" ref="deployNodeForm">
             <el-row :gutter="24">
               <el-col>
-                <el-form-item label="节点ID" size="default" prop="nodeID" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.nodeID" placeholder="请输入节点ID" />
+                <el-form-item
+                  label="节点ID"
+                  size="default"
+                  prop="nodeID"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.nodeID"
+                    placeholder="请输入节点ID"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="节点名称" size="default" prop="nodeName" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.nodeName" placeholder="请输入名称" />
+                <el-form-item
+                  label="节点名称"
+                  size="default"
+                  prop="nodeName"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.nodeName"
+                    placeholder="请输入名称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="节点编码" size="default" prop="nodeCode" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.nodeCode" placeholder="请输入航站名称" />
+                <el-form-item
+                  label="节点编码"
+                  size="default"
+                  prop="nodeCode"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.nodeCode"
+                    placeholder="请输入航站名称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
                 <el-form-item label="备注" size="default">
-                  <el-input type="textarea" v-model="tableForm.nodeDescribe" placeholder="请输入备注" />
+                  <el-input
+                    type="textarea"
+                    v-model="tableForm.nodeDescribe"
+                    placeholder="请输入备注"
+                  />
                 </el-form-item>
               </el-col>
             </el-row>
@@ -172,7 +220,7 @@ const getQuery = async () => {
         noMore.value = true;
       }
       const titleColumn = returnData.columnSet.find(
-        (item) => item.needShow === 1
+        (item) => item.needShow == 1
       );
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;

+ 100 - 19
src/views/BasicsData/equipmentMaintenance/index.vue

@@ -1,7 +1,12 @@
 <template>
   <div class="airportInfo scroll-y">
     <div class="wrap">
-      <Minheader :is-auth="true" :is-statuser="true" powerData="equipment_addition_button" @addForm="addForm">
+      <Minheader
+        :is-auth="true"
+        :is-statuser="true"
+        powerData="equipment_addition_button"
+        @addForm="addForm"
+      >
         <template #header>
           <div class="status flex-wrap">
             <div class="manageTitle">设备维护</div>
@@ -9,45 +14,121 @@
         </template>
       </Minheader>
       <div class="app-containers">
-        <DataTable :tableHeader="tableCols" :tableData="tableData" :tableBtnGroup="tableBtnGroup" :tableProperty="{ rowKey: 'ID' }" @btnClick="btnClick" />
+        <DataTable
+          :tableHeader="tableCols"
+          :tableData="tableData"
+          :tableBtnGroup="tableBtnGroup"
+          :tableProperty="{ rowKey: 'ID' }"
+          @btnClick="btnClick"
+        />
       </div>
-      <Dialog :flag="flag" :type="type" :msgTitle="msgTitle" :delName="tableForm.deviceName" @resetForm="resetForm" @delRest="delRest" @submitForm="submitForm" @delRemove="delRemove">
+      <Dialog
+        :flag="flag"
+        :type="type"
+        :msgTitle="msgTitle"
+        :delName="tableForm.deviceName"
+        @resetForm="resetForm"
+        @delRest="delRest"
+        @submitForm="submitForm"
+        @delRemove="delRemove"
+      >
         <div class="diacont">
-          <el-form :model="tableForm" :rules="formRules" ref="equipmentMaintenanceForm">
+          <el-form
+            :model="tableForm"
+            :rules="formRules"
+            ref="equipmentMaintenanceForm"
+          >
             <el-row :gutter="24">
               <el-col>
-                <el-form-item label="设备ID" size="default" prop="deviceID" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.deviceID" placeholder="请输入设备ID" />
+                <el-form-item
+                  label="设备ID"
+                  size="default"
+                  prop="deviceID"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.deviceID"
+                    placeholder="请输入设备ID"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="设备名称" size="default" prop="deviceName" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.deviceName" placeholder="请输入设备名称" />
+                <el-form-item
+                  label="设备名称"
+                  size="default"
+                  prop="deviceName"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.deviceName"
+                    placeholder="请输入设备名称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="设备类型" size="default" :rules="formRules.isNotNull" prop="deviceType">
-                  <el-input v-model="tableForm.deviceType" placeholder="请输入设备类型" />
+                <el-form-item
+                  label="设备类型"
+                  size="default"
+                  :rules="formRules.isNotNull"
+                  prop="deviceType"
+                >
+                  <el-input
+                    v-model="tableForm.deviceType"
+                    placeholder="请输入设备类型"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="设备位置" size="default" :rules="formRules.isNotNull" prop="location">
-                  <el-input v-model="tableForm.location" placeholder="请输入设备位置" />
+                <el-form-item
+                  label="设备位置"
+                  size="default"
+                  :rules="formRules.isNotNull"
+                  prop="location"
+                >
+                  <el-input
+                    v-model="tableForm.location"
+                    placeholder="请输入设备位置"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="设备编码" size="default" prop="deviceCode" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.deviceCode" placeholder="请输入设备编码" />
+                <el-form-item
+                  label="设备编码"
+                  size="default"
+                  prop="deviceCode"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.deviceCode"
+                    placeholder="请输入设备编码"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="IP" size="default" prop="deviceIP" :rules="formRules.isNotNull">
-                  <el-input type="textarea" v-model="tableForm.deviceIP" placeholder="请输入IP" />
+                <el-form-item
+                  label="IP"
+                  size="default"
+                  prop="deviceIP"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    type="textarea"
+                    v-model="tableForm.deviceIP"
+                    placeholder="请输入IP"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="备注" :rules="formRules.isNotNull" size="default">
-                  <el-input type="textarea" v-model="tableForm.remarks" placeholder="请输入备注" />
+                <el-form-item
+                  label="备注"
+                  :rules="formRules.isNotNull"
+                  size="default"
+                >
+                  <el-input
+                    type="textarea"
+                    v-model="tableForm.remarks"
+                    placeholder="请输入备注"
+                  />
                 </el-form-item>
               </el-col>
             </el-row>
@@ -203,7 +284,7 @@ const getQuery = async () => {
         noMore.value = true;
       }
       const titleColumn = returnData.columnSet.find(
-        (item) => item.needShow === 1
+        (item) => item.needShow == 1
       );
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;

+ 74 - 14
src/views/BasicsData/modelMaintenance/index.vue

@@ -1,7 +1,12 @@
 <template>
   <div class="airportInfo scroll-y">
     <div class="wrap">
-      <Minheader :is-auth="true" :is-statuser="true" powerData="new_model_button" @addForm="addForm">
+      <Minheader
+        :is-auth="true"
+        :is-statuser="true"
+        powerData="new_model_button"
+        @addForm="addForm"
+      >
         <template #header>
           <div class="status flex-wrap">
             <div class="manageTitle">机型维护</div>
@@ -9,35 +14,90 @@
         </template>
       </Minheader>
       <div class="app-containers">
-        <DataTable :tableHeader="tableCols" :tableData="tableData" :tableBtnGroup="tableBtnGroup" :tableProperty="{ rowKey: 'ID' }" @btnClick="btnClick" />
+        <DataTable
+          :tableHeader="tableCols"
+          :tableData="tableData"
+          :tableBtnGroup="tableBtnGroup"
+          :tableProperty="{ rowKey: 'ID' }"
+          @btnClick="btnClick"
+        />
       </div>
-      <Dialog :flag="flag" :type="type" :msgTitle="msgTitle" :delName="tableForm.modelName" @resetForm="resetForm" @delRest="delRest" @submitForm="submitForm" @delRemove="delRemove">
+      <Dialog
+        :flag="flag"
+        :type="type"
+        :msgTitle="msgTitle"
+        :delName="tableForm.modelName"
+        @resetForm="resetForm"
+        @delRest="delRest"
+        @submitForm="submitForm"
+        @delRemove="delRemove"
+      >
         <div class="diacont">
-          <el-form :model="tableForm" :rules="formRules" ref="modelMaintenanceForm">
+          <el-form
+            :model="tableForm"
+            :rules="formRules"
+            ref="modelMaintenanceForm"
+          >
             <el-row :gutter="24">
               <el-col>
-                <el-form-item label="机型ID" size="default" prop="modelID" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.modelID" placeholder="请输入机型ID" />
+                <el-form-item
+                  label="机型ID"
+                  size="default"
+                  prop="modelID"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.modelID"
+                    placeholder="请输入机型ID"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="机型名称" size="default" prop="modelName" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.modelName" placeholder="请输入机型名称" />
+                <el-form-item
+                  label="机型名称"
+                  size="default"
+                  prop="modelName"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.modelName"
+                    placeholder="请输入机型名称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="机型类型" size="default" prop="modelType" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.modelType" placeholder="请输入机型类型" />
+                <el-form-item
+                  label="机型类型"
+                  size="default"
+                  prop="modelType"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.modelType"
+                    placeholder="请输入机型类型"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="机型编码" size="default" prop="modelCode" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.modelCode" placeholder="请输入机型编码" />
+                <el-form-item
+                  label="机型编码"
+                  size="default"
+                  prop="modelCode"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.modelCode"
+                    placeholder="请输入机型编码"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
                 <el-form-item label="备注" size="default">
-                  <el-input type="textarea" v-model="tableForm.modelDesc" placeholder="请输入备注" />
+                  <el-input
+                    type="textarea"
+                    v-model="tableForm.modelDesc"
+                    placeholder="请输入备注"
+                  />
                 </el-form-item>
               </el-col>
             </el-row>
@@ -198,7 +258,7 @@ const getQuery = async () => {
         noMore.value = true;
       }
       const titleColumn = returnData.columnSet.find(
-        (item) => item.needShow === 1
+        (item) => item.needShow == 1
       );
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;

+ 78 - 15
src/views/BasicsData/shippingSpace/index.vue

@@ -1,7 +1,12 @@
 <template>
   <div class="airportInfo scroll-y">
     <div class="wrap">
-      <Minheader :is-auth="true" :is-statuser="true" powerData="new_cabin_button" @addForm="addForm">
+      <Minheader
+        :is-auth="true"
+        :is-statuser="true"
+        powerData="new_cabin_button"
+        @addForm="addForm"
+      >
         <template #header>
           <div class="status flex-wrap">
             <div class="manageTitle">舱位管理</div>
@@ -9,40 +14,98 @@
         </template>
       </Minheader>
       <div class="app-containers">
-        <DataTable :tableHeader="tableCols" :tableData="tableData" :tableBtnGroup="tableBtnGroup" :tableProperty="{ rowKey: 'ID' }" @btnClick="btnClick" />
+        <DataTable
+          :tableHeader="tableCols"
+          :tableData="tableData"
+          :tableBtnGroup="tableBtnGroup"
+          :tableProperty="{ rowKey: 'ID' }"
+          @btnClick="btnClick"
+        />
       </div>
-      <Dialog :flag="flag" :type="type" :msgTitle="msgTitle" :delName="tableForm.storingName" @resetForm="resetForm" @delRest="delRest" @submitForm="submitForm" @delRemove="delRemove">
+      <Dialog
+        :flag="flag"
+        :type="type"
+        :msgTitle="msgTitle"
+        :delName="tableForm.storingName"
+        @resetForm="resetForm"
+        @delRest="delRest"
+        @submitForm="submitForm"
+        @delRemove="delRemove"
+      >
         <div class="diacont">
-          <el-form :model="tableForm" :rules="formRules" ref="shippingSpaceForm">
+          <el-form
+            :model="tableForm"
+            :rules="formRules"
+            ref="shippingSpaceForm"
+          >
             <el-row :gutter="24">
               <el-col>
-                <el-form-item label="机型ID" prop="binNo" :rules="formRules.isNotNull" size="default">
-                  <el-input v-model="tableForm.binNo" placeholder="请输入机型ID" />
+                <el-form-item
+                  label="机型ID"
+                  prop="binNo"
+                  :rules="formRules.isNotNull"
+                  size="default"
+                >
+                  <el-input
+                    v-model="tableForm.binNo"
+                    placeholder="请输入机型ID"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="舱位ID" prop="storingID" :rules="formRules.isNotNull" size="default">
-                  <el-input v-model="tableForm.storingID" placeholder="请输入舱位ID" />
+                <el-form-item
+                  label="舱位ID"
+                  prop="storingID"
+                  :rules="formRules.isNotNull"
+                  size="default"
+                >
+                  <el-input
+                    v-model="tableForm.storingID"
+                    placeholder="请输入舱位ID"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
                 <el-form-item label="机型名称" size="default">
-                  <el-input disabled v-model="tableForm.modelName" placeholder="请输入机型名称" />
+                  <el-input
+                    disabled
+                    v-model="tableForm.modelName"
+                    placeholder="请输入机型名称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="舱位名称" size="default" prop="storingName" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.storingName" placeholder="请输入舱位名称" />
+                <el-form-item
+                  label="舱位名称"
+                  size="default"
+                  prop="storingName"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.storingName"
+                    placeholder="请输入舱位名称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="舱位编码" size="default" prop="storingCode" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.storingCode" placeholder="请输入舱位编码" />
+                <el-form-item
+                  label="舱位编码"
+                  size="default"
+                  prop="storingCode"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.storingCode"
+                    placeholder="请输入舱位编码"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
                 <el-form-item label="备注" size="default">
-                  <el-input v-model="tableForm.storingDesc" placeholder="请输入备注" />
+                  <el-input
+                    v-model="tableForm.storingDesc"
+                    placeholder="请输入备注"
+                  />
                 </el-form-item>
               </el-col>
             </el-row>
@@ -189,7 +252,7 @@ const getQuery = async () => {
         noMore.value = true;
       }
       const titleColumn = returnData.columnSet.find(
-        (item) => item.needShow === 1
+        (item) => item.needShow == 1
       );
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;

+ 78 - 14
src/views/BasicsData/specialCargoMaintenance/index.vue

@@ -1,7 +1,16 @@
 <template>
   <div class="airportInfo scroll-y">
     <div class="wrap">
-      <Minheader :is-auth="true" :is-btn="true" :is-search="true" :is-statuser="true" powerData="new_special_goods_type_button" @searchForms="searchForms" @clearForm="clearForm" @addForm="addForm">
+      <Minheader
+        :is-auth="true"
+        :is-btn="true"
+        :is-search="true"
+        :is-statuser="true"
+        powerData="new_special_goods_type_button"
+        @searchForms="searchForms"
+        @clearForm="clearForm"
+        @addForm="addForm"
+      >
         <template #header>
           <div class="status flex-wrap">
             <div class="manageTitle">特殊货物类型维护</div>
@@ -9,35 +18,90 @@
         </template>
       </Minheader>
       <div class="app-containers">
-        <DataTable :tableHeader="tableCols" :tableData="tableData" :tableBtnGroup="tableBtnGroup" :tableProperty="{ rowKey: 'ID' }" @btnClick="btnClick" />
+        <DataTable
+          :tableHeader="tableCols"
+          :tableData="tableData"
+          :tableBtnGroup="tableBtnGroup"
+          :tableProperty="{ rowKey: 'ID' }"
+          @btnClick="btnClick"
+        />
       </div>
-      <Dialog :flag="flag" :type="type" :msgTitle="msgTitle" :delName="tableForm.specialTypeName" @resetForm="resetForm" @delRest="delRest" @submitForm="submitForm" @delRemove="delRemove">
+      <Dialog
+        :flag="flag"
+        :type="type"
+        :msgTitle="msgTitle"
+        :delName="tableForm.specialTypeName"
+        @resetForm="resetForm"
+        @delRest="delRest"
+        @submitForm="submitForm"
+        @delRemove="delRemove"
+      >
         <div class="diacont">
-          <el-form :model="tableForm" :rules="formRules" ref="specialCargoMaintenanceForm">
+          <el-form
+            :model="tableForm"
+            :rules="formRules"
+            ref="specialCargoMaintenanceForm"
+          >
             <el-row :gutter="24">
               <el-col>
-                <el-form-item label="特殊货物类型ID" size="default" prop="specialTypeID" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.specialTypeID" placeholder="请输入特殊货物类型ID" />
+                <el-form-item
+                  label="特殊货物类型ID"
+                  size="default"
+                  prop="specialTypeID"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.specialTypeID"
+                    placeholder="请输入特殊货物类型ID"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="特殊货物类型名称" size="default" prop="specialTypeName" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.specialTypeName" placeholder="请输入特殊货物类型名称" />
+                <el-form-item
+                  label="特殊货物类型名称"
+                  size="default"
+                  prop="specialTypeName"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.specialTypeName"
+                    placeholder="请输入特殊货物类型名称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="特殊货物类型编码" size="default" prop="specialType" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.specialType" placeholder="请输入特殊货物类型编码" />
+                <el-form-item
+                  label="特殊货物类型编码"
+                  size="default"
+                  prop="specialType"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.specialType"
+                    placeholder="请输入特殊货物类型编码"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
-                <el-form-item label="特殊货物类型简称" size="default" prop="abbspecialType" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.abbspecialType" placeholder="请输入特殊货物类型简称" />
+                <el-form-item
+                  label="特殊货物类型简称"
+                  size="default"
+                  prop="abbspecialType"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.abbspecialType"
+                    placeholder="请输入特殊货物类型简称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col>
                 <el-form-item label="备注" size="default">
-                  <el-input type="textarea" v-model="tableForm.specialTypeDescribe" placeholder="请输入备注" />
+                  <el-input
+                    type="textarea"
+                    v-model="tableForm.specialTypeDescribe"
+                    placeholder="请输入备注"
+                  />
                 </el-form-item>
               </el-col>
             </el-row>
@@ -189,7 +253,7 @@ const getQuery = async (val = "") => {
         noMore.value = true;
       }
       const titleColumn = returnData.columnSet.find(
-        (item) => item.needShow === 1
+        (item) => item.needShow == 1
       );
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;

+ 8 - 3
src/views/systemSettings/datastructure/datastructureTerm.vue

@@ -318,7 +318,7 @@ const addForm = () => {
 };
 //取消
 const resetForm = () => {
-  datastructureTermForm.value?.resetFields()
+  datastructureTermForm.value?.resetFields();
   flag.value = false;
   // tableForm.ItemID = "";
   // tableForm.ItemName = "";
@@ -417,7 +417,7 @@ const getQuery = async () => {
         noMore.value = true;
       }
       const titleColumn = returnData.columnSet.find(
-        (item) => item.needShow === 1
+        (item) => item.needShow == 1
       );
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;
@@ -464,7 +464,12 @@ const resetTable = () => {
   tableData.value = [];
 };
 
-const btnAuthMap = [, 'add_data_item_button', 'data_item_editing_button', 'data_item_deletion_button']
+const btnAuthMap = [
+  ,
+  "add_data_item_button",
+  "data_item_editing_button",
+  "data_item_deletion_button",
+];
 //新增-编辑-删除
 const generalDataReception = async (data) => {
   try {

+ 8 - 3
src/views/systemSettings/datastructure/index.vue

@@ -172,7 +172,7 @@ const addForm = () => {
 };
 //取消
 const resetForm = () => {
-  datastructureForm.value?.resetFields()
+  datastructureForm.value?.resetFields();
   flag.value = false;
   // tableForm.dataStructureID = "";
   // tableForm.structureName = "";
@@ -263,7 +263,7 @@ const getQuery = async () => {
         noMore.value = true;
       }
       const titleColumn = returnData.columnSet.find(
-        (item) => item.needShow === 1
+        (item) => item.needShow == 1
       );
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;
@@ -307,7 +307,12 @@ const resetTable = () => {
   tableData.value = [];
 };
 
-const btnAuthMap = [, 'new_data_structure_button', 'data_structure_editing_button', 'data_structure_deletion_button']
+const btnAuthMap = [
+  ,
+  "new_data_structure_button",
+  "data_structure_editing_button",
+  "data_structure_deletion_button",
+];
 //新增-编辑-删除
 const generalDataReception = async (data) => {
   try {

+ 8 - 3
src/views/systemSettings/messageTemplate/index.vue

@@ -120,7 +120,7 @@ const addDialogShow = () => {
 };
 //取消
 const resetForm = () => {
-  messageTemplateForm.value?.resetFields()
+  messageTemplateForm.value?.resetFields();
   dialogFlag.value = false;
   // Object.keys(messageForm).forEach((key) => {
   //   messageForm.newsId = "";
@@ -169,7 +169,7 @@ const getTableData = async () => {
         page.value--;
         noMore.value = true;
       }
-      const titleColumn = columnSet.find((item) => item.needShow === 1);
+      const titleColumn = columnSet.find((item) => item.needShow == 1);
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;
       }
@@ -201,7 +201,12 @@ const resetTable = () => {
   tableData.value = [];
 };
 
-const btnAuthMap = [, 'adding_message_template', 'message_template_editing', 'message_template_deletion']
+const btnAuthMap = [
+  ,
+  "adding_message_template",
+  "message_template_editing",
+  "message_template_deletion",
+];
 //新增-编辑-删除
 const generalDataReception = async (formData) => {
   try {

+ 8 - 3
src/views/systemSettings/protocolManagement/index.vue

@@ -185,7 +185,7 @@ const addForm = () => {
 };
 //取消
 const resetForm = () => {
-  protocolManagement.value?.resetFields()
+  protocolManagement.value?.resetFields();
   flag.value = false;
   // tableForm.protocolID = "";
   // tableForm.protocolName = "";
@@ -252,7 +252,7 @@ const getQuery = async () => {
         noMore.value = true;
       }
       const titleColumn = returnData.columnSet.find(
-        (item) => item.needShow === 1
+        (item) => item.needShow == 1
       );
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;
@@ -291,7 +291,12 @@ const resetTable = () => {
   tableData.value = [];
 };
 
-const btnAuthMap = [, 'agreement_addition', 'arotocol_Editing', 'agreement_deletion']
+const btnAuthMap = [
+  ,
+  "agreement_addition",
+  "arotocol_Editing",
+  "agreement_deletion",
+];
 //新增-编辑-删除
 const generalDataReception = async (data) => {
   try {

+ 7 - 2
src/views/systemSettings/queryTemplate/index.vue

@@ -191,7 +191,7 @@ const getQuery = async () => {
         noMore.value = true;
       }
       const titleColumn = returnData.columnSet.find(
-        (item) => item.needShow === 1
+        (item) => item.needShow == 1
       );
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;
@@ -224,7 +224,12 @@ const resetTable = () => {
   tableData.value = [];
 };
 
-const btnAuthMap = [, 'add_query_template_button', 'query_template_editing_button', 'query_template_deletion_button']
+const btnAuthMap = [
+  ,
+  "add_query_template_button",
+  "query_template_editing_button",
+  "query_template_deletion_button",
+];
 //新增-编辑-删除
 const generalDataReception = async (data) => {
   try {

+ 8 - 3
src/views/systemSettings/queryTemplate/queryTemplateColumn.vue

@@ -328,7 +328,7 @@ const addForm = () => {
 };
 //取消
 const resetForm = () => {
-  queryTemplateColumnForm.value?.resetFields()
+  queryTemplateColumnForm.value?.resetFields();
   flag.value = false;
   // tableForm.queryTemplateColumnSetID = "";
   // tableForm.columnName = "";
@@ -427,7 +427,7 @@ const getQuery = async () => {
         noMore.value = true;
       }
       const titleColumn = returnData.columnSet.find(
-        (item) => item.needShow === 1
+        (item) => item.needShow == 1
       );
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;
@@ -486,7 +486,12 @@ const resetTable = () => {
   tableData.value = [];
 };
 
-const btnAuthMap = [, 'column_setting_add_button', 'column_settings_edit_button', 'column_setting_deletion_button']
+const btnAuthMap = [
+  ,
+  "column_setting_add_button",
+  "column_settings_edit_button",
+  "column_setting_deletion_button",
+];
 //新增-编辑-删除
 const generalDataReception = async (data) => {
   try {

+ 202 - 44
src/views/systemSettings/serviceManagement/index.vue

@@ -1,7 +1,12 @@
 <template>
   <div class="serivce-home scroll-y">
     <div class="wrap">
-      <MinHeader :is-auth="true" :is-statuser="true" power-data="service_addition_button" @addForm="addServiceDialogShow">
+      <MinHeader
+        :is-auth="true"
+        :is-statuser="true"
+        power-data="service_addition_button"
+        @addForm="addServiceDialogShow"
+      >
         <template #header>
           <div class="status flex-wrap">
             <div class="manageTitle">服务管理</div>
@@ -12,19 +17,57 @@
         </template>
       </MinHeader>
       <div class="app-containers">
-        <DataTable :is-Status="true" :table-header="tableColumns" :table-data="tableData" :table-btn-group="tableBtnGroup" btn-group-width="310px" :table-property="{ rowKey: 'ID' }" @btn-click="tableButtonClickHandler" />
+        <DataTable
+          :is-Status="true"
+          :table-header="tableColumns"
+          :table-data="tableData"
+          :table-btn-group="tableBtnGroup"
+          btn-group-width="310px"
+          :table-property="{ rowKey: 'ID' }"
+          @btn-click="tableButtonClickHandler"
+        />
       </div>
-      <Dialog :width="serviceDialogWidth" :flag="serviceDialogVisible" :type="serviceDialogType" :del-name="delName" :msg-title="msgTitle" @del-remove="delSubmitHandler" @del-rest="delDialogHide" @submit-form="serviceSubmitHandler" @reset-form="addServiceDialogHide">
-        <el-form ref="serviceFormRef" class="service-form" :model="serviceForm" :rules="serviceFormRules" label-position="right" label-width="90px" size="mini">
+      <Dialog
+        :width="serviceDialogWidth"
+        :flag="serviceDialogVisible"
+        :type="serviceDialogType"
+        :del-name="delName"
+        :msg-title="msgTitle"
+        @del-remove="delSubmitHandler"
+        @del-rest="delDialogHide"
+        @submit-form="serviceSubmitHandler"
+        @reset-form="addServiceDialogHide"
+      >
+        <el-form
+          ref="serviceFormRef"
+          class="service-form"
+          :model="serviceForm"
+          :rules="serviceFormRules"
+          label-position="right"
+          label-width="90px"
+          size="mini"
+        >
           <el-row :gutter="36" type="flex">
             <el-col :span="12">
               <el-form-item label="服务名称" prop="serviceName">
-                <el-input v-model="serviceForm.serviceName" placeholder="请输入服务名称" clearable />
+                <el-input
+                  v-model="serviceForm.serviceName"
+                  placeholder="请输入服务名称"
+                  clearable
+                />
               </el-form-item>
             </el-col>
             <el-col :span="12">
-              <el-form-item label="前序输出编号" label-width="120px" prop="serviceOutputID">
-                <el-input v-model="serviceForm.serviceOutputID" placeholder="请输入前序输出编号" clearable />
+              <el-form-item
+                label="前序输出编号"
+                label-width="120px"
+                prop="serviceOutputID"
+              >
+                <el-input
+                  v-model="serviceForm.serviceOutputID"
+                  placeholder="请输入前序输出编号"
+                  clearable
+                />
               </el-form-item>
             </el-col>
             <el-col :span="12">
@@ -49,66 +92,146 @@
               <div class="flex">
                 <el-form-item label="数据来源" prop="dataSourceID">
                   <el-select v-model="serviceForm.dataSourceID" clearable>
-                    <el-option v-for="dataSource in selectOptionMap[
+                    <el-option
+                      v-for="dataSource in selectOptionMap[
                         queryTemplateIDMap.dataSourceName
-                      ]" :key="dataSource.dataSourceID" :value="dataSource.dataSourceID" :label="dataSource.dataSourceName" />
+                      ]"
+                      :key="dataSource.dataSourceID"
+                      :value="dataSource.dataSourceID"
+                      :label="dataSource.dataSourceName"
+                    />
                   </el-select>
                 </el-form-item>
-                <el-button type="primary" size="small" style="height: 28px; line-height: 0px" @click="addDataSourceDialogShow">新增</el-button>
+                <el-button
+                  type="primary"
+                  size="small"
+                  style="height: 28px; line-height: 0px"
+                  @click="addDataSourceDialogShow"
+                  >新增</el-button
+                >
               </div>
             </el-col>
             <el-col :span="12">
-              <el-form-item label="数据来源对象" label-width="120px" prop="sourceObjectName">
-                <el-input v-model="serviceForm.sourceObjectName" placeholder="请输入数据来源对象名称" clearable />
+              <el-form-item
+                label="数据来源对象"
+                label-width="120px"
+                prop="sourceObjectName"
+              >
+                <el-input
+                  v-model="serviceForm.sourceObjectName"
+                  placeholder="请输入数据来源对象名称"
+                  clearable
+                />
               </el-form-item>
             </el-col>
             <el-col :span="12">
               <el-form-item label="服务描述" prop="serviceDescribe">
-                <el-input v-model="serviceForm.serviceDescribe" placeholder="请输入描述" clearable />
+                <el-input
+                  v-model="serviceForm.serviceDescribe"
+                  placeholder="请输入描述"
+                  clearable
+                />
               </el-form-item>
             </el-col>
             <el-col :span="12">
-              <el-form-item label="生命周期ID键名" prop="lifeCycleCol" label-width="120px">
-                <el-input v-model="serviceForm.lifeCycleCol" placeholder="请输入生命周期ID键名" clearable />
+              <el-form-item
+                label="生命周期ID键名"
+                prop="lifeCycleCol"
+                label-width="120px"
+              >
+                <el-input
+                  v-model="serviceForm.lifeCycleCol"
+                  placeholder="请输入生命周期ID键名"
+                  clearable
+                />
               </el-form-item>
             </el-col>
             <el-col :span="24">
               <el-form-item label="取值规则" prop="computingMethod">
-                <el-input v-model="serviceForm.computingMethod" placeholder="请输入取值规则" type="textarea" :autosize="{ minRows: 4, maxRows: 4 }" resize="none" clearable />
+                <el-input
+                  v-model="serviceForm.computingMethod"
+                  placeholder="请输入取值规则"
+                  type="textarea"
+                  :autosize="{ minRows: 4, maxRows: 4 }"
+                  resize="none"
+                  clearable
+                />
               </el-form-item>
             </el-col>
             <el-col :span="24">
               <el-form-item label="检测规则" prop="validationExpression">
-                <el-input v-model="serviceForm.validationExpression" placeholder="请输入检测规则" type="textarea" :autosize="{ minRows: 4, maxRows: 4 }" resize="none" clearable />
+                <el-input
+                  v-model="serviceForm.validationExpression"
+                  placeholder="请输入检测规则"
+                  type="textarea"
+                  :autosize="{ minRows: 4, maxRows: 4 }"
+                  resize="none"
+                  clearable
+                />
               </el-form-item>
             </el-col>
             <el-col :span="8">
               <el-form-item label="启动时间" prop="startTime">
-                <el-date-picker v-model="serviceForm.startTime" type="datetime" format="YYYY-MM-DD HH:mm" value-format="YYYY-MM-DD HH:mm" placeholder="请选择启动时间" />
+                <el-date-picker
+                  v-model="serviceForm.startTime"
+                  type="datetime"
+                  format="YYYY-MM-DD HH:mm"
+                  value-format="YYYY-MM-DD HH:mm"
+                  placeholder="请选择启动时间"
+                />
               </el-form-item>
             </el-col>
             <el-col :span="8">
               <el-form-item label="停止时间" prop="stopTime">
-                <el-date-picker v-model="serviceForm.stopTime" type="datetime" format="YYYY-MM-DD HH:mm" value-format="YYYY-MM-DD HH:mm" placeholder="请选择停止时间" />
+                <el-date-picker
+                  v-model="serviceForm.stopTime"
+                  type="datetime"
+                  format="YYYY-MM-DD HH:mm"
+                  value-format="YYYY-MM-DD HH:mm"
+                  placeholder="请选择停止时间"
+                />
               </el-form-item>
             </el-col>
             <el-col :span="8">
-              <el-form-item label="失败重试次数" prop="retryCount" label-width="100px">
-                <el-input v-model="serviceForm.retryCount" type="number" placeholder="请输入重试次数" clearable />
+              <el-form-item
+                label="失败重试次数"
+                prop="retryCount"
+                label-width="100px"
+              >
+                <el-input
+                  v-model="serviceForm.retryCount"
+                  type="number"
+                  placeholder="请输入重试次数"
+                  clearable
+                />
               </el-form-item>
             </el-col>
             <el-col :span="8">
               <el-form-item label="循环次数" prop="loopCount">
-                <el-input v-model="serviceForm.loopCount" type="number" placeholder="请输入循环次数" clearable />
+                <el-input
+                  v-model="serviceForm.loopCount"
+                  type="number"
+                  placeholder="请输入循环次数"
+                  clearable
+                />
               </el-form-item>
             </el-col>
             <el-col :span="8">
               <el-form-item label="循环频率" prop="frequencyCount">
-                <el-input v-model="serviceForm.frequencyCount" type="number" placeholder="请输入循环频率" clearable />
+                <el-input
+                  v-model="serviceForm.frequencyCount"
+                  type="number"
+                  placeholder="请输入循环频率"
+                  clearable
+                />
               </el-form-item>
             </el-col>
             <el-col :span="8">
-              <el-form-item label="循环频率单位" prop="frequencyUnit" label-width="100px">
+              <el-form-item
+                label="循环频率单位"
+                prop="frequencyUnit"
+                label-width="100px"
+              >
                 <el-select v-model="serviceForm.frequencyUnit" clearable>
                   <el-option label="天" :value="24 * 60 * 60 * 1000" />
                   <el-option label="小时" :value="60 * 60 * 1000" />
@@ -119,36 +242,75 @@
               </el-form-item>
             </el-col>
             <el-col :span="12">
-              <el-form-item label="日志存储位置" label-width="100px" prop="logDataSourceID">
+              <el-form-item
+                label="日志存储位置"
+                label-width="100px"
+                prop="logDataSourceID"
+              >
                 <el-select v-model="serviceForm.logDataSourceID">
-                  <el-option v-for="dataSource in selectOptionMap[
+                  <el-option
+                    v-for="dataSource in selectOptionMap[
                       queryTemplateIDMap.dataSourceName
-                    ]" :key="dataSource.dataSourceID" :value="dataSource.dataSourceID" :label="dataSource.dataSourceName" />
+                    ]"
+                    :key="dataSource.dataSourceID"
+                    :value="dataSource.dataSourceID"
+                    :label="dataSource.dataSourceName"
+                  />
                 </el-select>
               </el-form-item>
             </el-col>
             <el-col :span="12">
-              <el-form-item label="日志过滤条件" label-width="100px" prop="logList">
-                <el-input v-model="serviceForm.logList" placeholder="请输入日志过滤条件" clearable />
+              <el-form-item
+                label="日志过滤条件"
+                label-width="100px"
+                prop="logList"
+              >
+                <el-input
+                  v-model="serviceForm.logList"
+                  placeholder="请输入日志过滤条件"
+                  clearable
+                />
               </el-form-item>
             </el-col>
           </el-row>
         </el-form>
       </Dialog>
-      <Dialog type="add" width="500px" :flag="dataSourceDialogVisible" msg-title="新增数据来源" @submit-form="dataSourceSubmitHandler" @reset-form="dataSourceDialogHide">
+      <Dialog
+        type="add"
+        width="500px"
+        :flag="dataSourceDialogVisible"
+        msg-title="新增数据来源"
+        @submit-form="dataSourceSubmitHandler"
+        @reset-form="dataSourceDialogHide"
+      >
         <el-form ref="sourceFormRef" label-width="100px" :model="sourceForm">
           <el-form-item label="数据源名称">
             <el-input v-model="sourceForm.dataSourceName" size="small" />
           </el-form-item>
           <el-form-item label="协议名称">
-            <el-select size="small" style="width: 100%" v-model="sourceForm.protocolID" placeholder="请选择活动区域">
-              <el-option v-for="protocol in selectOptionMap[
+            <el-select
+              size="small"
+              style="width: 100%"
+              v-model="sourceForm.protocolID"
+              placeholder="请选择活动区域"
+            >
+              <el-option
+                v-for="protocol in selectOptionMap[
                   queryTemplateIDMap.protocolName
-                ]" :key="protocol.protocolID" :label="protocol.protocolName" :value="protocol.protocolID" />
+                ]"
+                :key="protocol.protocolID"
+                :label="protocol.protocolName"
+                :value="protocol.protocolID"
+              />
             </el-select>
           </el-form-item>
           <el-form-item label="连接参数">
-            <el-input size="small" type="textarea" rows="3" v-model="sourceForm.connectConfig" />
+            <el-input
+              size="small"
+              type="textarea"
+              rows="3"
+              v-model="sourceForm.connectConfig"
+            />
           </el-form-item>
         </el-form>
       </Dialog>
@@ -192,18 +354,14 @@ const getSelectOptionOfColumn = (columns: CommonTableColumn[]) => {
 };
 const getSelectOptions = async (id: number) => {
   try {
-    const {
-      code,
-      returnData,
-      message,
-    }: SelectOptionQueryResult = await Query({
+    const { code, returnData, message }: SelectOptionQueryResult = await Query({
       id,
       dataContent: [],
     });
     if (Number(code) !== 0) {
       throw new Error(message ?? "失败");
     }
-    const listValues = returnData.listValues || returnData
+    const listValues = returnData.listValues || returnData;
     const options = listValues.map(({ k, v, setlabel, setvalue }) => ({
       k,
       v,
@@ -258,7 +416,7 @@ const getTableData = async () => {
       page.value--;
       noMore.value = false;
     }
-    const titleColumn = columnSet.find((column) => column.needShow === 1);
+    const titleColumn = columnSet.find((column) => column.needShow == 1);
     if (titleColumn) {
       rowTitle.value = titleColumn.columnName;
     }
@@ -337,7 +495,7 @@ const changeServiceState = async (serviceID: number, runState: string) => {
     } = await Query({
       id: DATACONTENT_ID.sysServiceNodeList,
       dataContent: [serviceID],
-      btnAuth: 'service_stop_button'
+      btnAuth: "service_stop_button",
     });
     if (Number(code) !== 0) {
       throw new Error(message ?? "失败");
@@ -407,7 +565,7 @@ const deleteService = async () => {
     const { code, message } = await GeneralDataReception({
       serviceId: SERVICE_ID.sysServiceEdit,
       dataContent: JSON.stringify(dataContent),
-      btnAuth: 'service_deletion_button'
+      btnAuth: "service_deletion_button",
     });
     if (Number(code) === 0) {
       ElMessage.success(message ?? "成功");
@@ -494,7 +652,7 @@ const createService = async () => {
     const { code, message } = await GeneralDataReception({
       serviceId: SERVICE_ID.sysServiceEdit,
       dataContent: JSON.stringify(dataContent),
-      btnAuth: 'service_addition_button',
+      btnAuth: "service_addition_button",
     });
     if (Number(code) === 0) {
       ElMessage.success(message ?? "成功");

+ 8 - 3
src/views/systemSettings/sourceTube/index.vue

@@ -151,7 +151,7 @@ const addForm = () => {
 };
 //取消
 const resetForm = () => {
-  sourceTubeForm.value?.resetFields()
+  sourceTubeForm.value?.resetFields();
   flag.value = false;
   // tableForm.dataSourceID = "";
   // tableForm.protocolID = "";
@@ -237,7 +237,7 @@ const getQuery = async () => {
         noMore.value = true;
       }
       const titleColumn = returnData.columnSet.find(
-        (item) => item.needShow === 1
+        (item) => item.needShow == 1
       );
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;
@@ -281,7 +281,12 @@ const resetTable = () => {
   tableData.value = [];
 };
 
-const btnAuthMap = [, 'new_data_source_button', 'data_source_editing_button', 'data_source_deletion_button']
+const btnAuthMap = [
+  ,
+  "new_data_source_button",
+  "data_source_editing_button",
+  "data_source_deletion_button",
+];
 //新增-编辑-删除
 const generalDataReception = async (data) => {
   try {

+ 261 - 44
src/views/systemSettings/warningEdit/index.vue

@@ -9,7 +9,12 @@
         </template>
       </Minheader>
       <div class="diacont">
-        <el-form :model="tableForm" class="w100 fw" :rules="formRules" ref="warningEditsForm">
+        <el-form
+          :model="tableForm"
+          class="w100 fw"
+          :rules="formRules"
+          ref="warningEditsForm"
+        >
           <!-- <div class="outersurface pd30">
             <el-form-item label="策略名称" size="default">
               <el-input v-model="tableForm.name" placeholder="请输入策略名称" />
@@ -17,49 +22,128 @@
           </div> -->
           <div class="outersurface pd30">
             <el-form-item label="名称" prop="alarmname" size="default">
-              <el-input v-model="tableForm.alarmname" placeholder="请输入名称" />
+              <el-input
+                v-model="tableForm.alarmname"
+                placeholder="请输入名称"
+              />
             </el-form-item>
           </div>
           <div class="outersurface pd30">
             <el-form-item label="航司二字码" size="default" prop="IATACode">
-              <el-select style="width: 100%" v-model="tableForm.IATACode" class="input-shadow" filterable allow-create default-first-option clearable placeholder="请选择航司二字码">
-                <el-option v-for="item in iaCodeArr" :key="item.airlineCompanyID" :label="item.ITATCode" :value="item.ITATCode">
+              <el-select
+                style="width: 100%"
+                v-model="tableForm.IATACode"
+                class="input-shadow"
+                filterable
+                allow-create
+                default-first-option
+                clearable
+                placeholder="请选择航司二字码"
+              >
+                <el-option
+                  v-for="item in iaCodeArr"
+                  :key="item.airlineCompanyID"
+                  :label="item.ITATCode"
+                  :value="item.ITATCode"
+                >
                 </el-option>
               </el-select>
             </el-form-item>
           </div>
           <div class="outersurface pd30">
-            <el-form-item label="国内国际" size="default" prop="ditype" :rules="formRules.isNotNull">
-              <el-select style="width: 100%" v-model="tableForm.ditype" class="input-shadow" filterable allow-create default-first-option placeholder="请选择国内国际">
-                <el-option v-for="(item,index) in ditypeAll" :key="index" :label="item.k" :value="item.v">
+            <el-form-item
+              label="国内国际"
+              size="default"
+              prop="ditype"
+              :rules="formRules.isNotNull"
+            >
+              <el-select
+                style="width: 100%"
+                v-model="tableForm.ditype"
+                class="input-shadow"
+                filterable
+                allow-create
+                default-first-option
+                placeholder="请选择国内国际"
+              >
+                <el-option
+                  v-for="(item, index) in ditypeAll"
+                  :key="index"
+                  :label="item.k"
+                  :value="item.v"
+                >
                 </el-option>
               </el-select>
             </el-form-item>
           </div>
           <div class="outersurface pd30">
-            <el-form-item label="起飞机场" size="default" prop="departmentAirport" :rules="formRules.isNotNull">
-              <el-select style="width: 100%" v-model="tableForm.departmentAirport" class="input-shadow" filterable allow-create default-first-option clearable placeholder="请选择起飞机场">
-                <el-option v-for="item in tableOption" :key="item.airportID" :label="item.IATACode" :value="item.IATACode">
+            <el-form-item
+              label="起飞机场"
+              size="default"
+              prop="departmentAirport"
+              :rules="formRules.isNotNull"
+            >
+              <el-select
+                style="width: 100%"
+                v-model="tableForm.departmentAirport"
+                class="input-shadow"
+                filterable
+                allow-create
+                default-first-option
+                clearable
+                placeholder="请选择起飞机场"
+              >
+                <el-option
+                  v-for="item in tableOption"
+                  :key="item.airportID"
+                  :label="item.IATACode"
+                  :value="item.IATACode"
+                >
                 </el-option>
               </el-select>
             </el-form-item>
           </div>
           <div class="outersurface pd30">
             <el-form-item label="降落机场" size="default">
-              <el-select style="width: 100%" v-model="tableForm.landingAirport" class="input-shadow" filterable allow-create default-first-option clearable placeholder="请选择降落机场">
-                <el-option v-for="item in tableOption" :key="item.airportID" :label="item.IATACode" :value="item.IATACode">
+              <el-select
+                style="width: 100%"
+                v-model="tableForm.landingAirport"
+                class="input-shadow"
+                filterable
+                allow-create
+                default-first-option
+                clearable
+                placeholder="请选择降落机场"
+              >
+                <el-option
+                  v-for="item in tableOption"
+                  :key="item.airportID"
+                  :label="item.IATACode"
+                  :value="item.IATACode"
+                >
                 </el-option>
               </el-select>
             </el-form-item>
           </div>
           <div class="outersurface pd30">
             <el-form-item label="航班号" size="default" prop="flightNo">
-              <el-input v-model="tableForm.flightNo" placeholder="请输入航班号" />
+              <el-input
+                v-model="tableForm.flightNo"
+                placeholder="请输入航班号"
+              />
             </el-form-item>
           </div>
           <div class="outersurface pd30">
             <el-form-item label="机型" prop="planetype" size="default">
-              <el-select style="width: 100%" v-model="tableForm.planetype" class="input-shadow" filterable allow-create default-first-option placeholder="请选择机型">
+              <el-select
+                style="width: 100%"
+                v-model="tableForm.planetype"
+                class="input-shadow"
+                filterable
+                allow-create
+                default-first-option
+                placeholder="请选择机型"
+              >
                 <el-option label="宽体机" value="宽体机" />
                 <el-option label="窄体机" value="窄体机" />
                 <el-option label="全部" value="全部" />
@@ -68,33 +152,67 @@
           </div>
           <div class="outersurface pd30">
             <el-form-item label="客货机" prop="flighttype" size="default">
-              <el-select style="width: 100%" v-model="tableForm.flighttype" class="input-shadow" filterable allow-create default-first-option placeholder="请选择客货机">
+              <el-select
+                style="width: 100%"
+                v-model="tableForm.flighttype"
+                class="input-shadow"
+                filterable
+                allow-create
+                default-first-option
+                placeholder="请选择客货机"
+              >
                 <el-option label="客机" value="客机" />
-                    <el-option label="货机" value="货机" />
-                    <el-option label="全部" value="全部" />
+                <el-option label="货机" value="货机" />
+                <el-option label="全部" value="全部" />
               </el-select>
             </el-form-item>
           </div>
           <div class="outersurface pd30">
             <el-form-item label="停机位" prop="landingstand" size="default">
-              <el-input ref="inputRef" v-model="tableForm.landingstand" placeholder="请输入停机位" />
+              <el-input
+                ref="inputRef"
+                v-model="tableForm.landingstand"
+                placeholder="请输入停机位"
+              />
             </el-form-item>
           </div>
           <div class="outersurface pd30">
-            <el-form-item label="生效时间" size="default" prop="startDate" :rules="formRules.isNotNull">
-              <el-date-picker v-model="tableForm.startDate" :rows="1" type="datetime" format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" placeholder="选择日期时间">
+            <el-form-item
+              label="生效时间"
+              size="default"
+              prop="startDate"
+              :rules="formRules.isNotNull"
+            >
+              <el-date-picker
+                v-model="tableForm.startDate"
+                :rows="1"
+                type="datetime"
+                format="YYYY-MM-DD HH:mm:ss"
+                value-format="YYYY-MM-DD HH:mm:ss"
+                placeholder="选择日期时间"
+              >
               </el-date-picker>
             </el-form-item>
           </div>
           <div class="outersurface pd30">
             <el-form-item label="失效时间" size="default" prop="endDate">
-              <el-date-picker format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" v-model="tableForm.endDate" :rows="1" type="datetime" placeholder="选择日期时间">
+              <el-date-picker
+                format="YYYY-MM-DD HH:mm:ss"
+                value-format="YYYY-MM-DD HH:mm:ss"
+                v-model="tableForm.endDate"
+                :rows="1"
+                type="datetime"
+                placeholder="选择日期时间"
+              >
               </el-date-picker>
             </el-form-item>
           </div>
           <div class="outersurface pd30">
             <el-form-item label="描述" prop="alarmdesc" size="default">
-              <el-input v-model="tableForm.alarmdesc" placeholder="请输入描述" />
+              <el-input
+                v-model="tableForm.alarmdesc"
+                placeholder="请输入描述"
+              />
             </el-form-item>
           </div>
         </el-form>
@@ -109,7 +227,14 @@
       content="多个停机位用逗号分隔,例如 51,52"
     />
     <div class="centerBox">
-      <Minheader :is-auth="true" :is-statuser="true" :is-Search="false" powerData="add_alert_policy_button" @addForm="addForm" style="margin-top: 20px">
+      <Minheader
+        :is-auth="true"
+        :is-statuser="true"
+        :is-Search="false"
+        powerData="add_alert_policy_button"
+        @addForm="addForm"
+        style="margin-top: 20px"
+      >
         <template #header>
           <div class="status flex-wrap">
             <div class="manageTitle">预警告警策略</div>
@@ -118,29 +243,79 @@
       </Minheader>
     </div>
     <div class="containers scroll-y">
-      <DataTable :tableHeader="tableCols" :tableData="tableData" :tableBtnGroup="tableBtnGroup" :tableProperty="{ rowKey: 'ID' }" @btnClick="btnClick" />
+      <DataTable
+        :tableHeader="tableCols"
+        :tableData="tableData"
+        :tableBtnGroup="tableBtnGroup"
+        :tableProperty="{ rowKey: 'ID' }"
+        @btnClick="btnClick"
+      />
     </div>
-    <Dialog width="600px" :flag="flag" :type="type" :msgTitle="msgTitle" :delName="delName" @resetForm="resetForm" @delRest="delRest" @submitForm="submitForm" @delRemove="delRemove">
+    <Dialog
+      width="600px"
+      :flag="flag"
+      :type="type"
+      :msgTitle="msgTitle"
+      :delName="delName"
+      @resetForm="resetForm"
+      @delRest="delRest"
+      @submitForm="submitForm"
+      @delRemove="delRemove"
+    >
       <div class="diacont">
         <el-form :model="tableForms" :rules="formRules" ref="warningEditForm">
           <el-row :gutter="24">
             <el-col :span="12">
-              <el-form-item label="策略名称" size="default" prop="StrategyName" :rules="formRules.isNotNull">
-                <el-input v-model="tableForms.StrategyName" placeholder="请输入策略名称" />
+              <el-form-item
+                label="策略名称"
+                size="default"
+                prop="StrategyName"
+                :rules="formRules.isNotNull"
+              >
+                <el-input
+                  v-model="tableForms.StrategyName"
+                  placeholder="请输入策略名称"
+                />
               </el-form-item>
             </el-col>
             <el-col :span="12">
               <el-form-item label="计算依据" size="default">
-                <el-select style="width: 100%" v-model="tableForms.calculationBasis" class="input-shadow" filterable default-first-option placeholder="请选择计算依据">
-                  <el-option v-for="item in calculationBasis" :key="item.v ? item.v : item.planDepartureApt" :label="item.k ? item.k : item.planDepartureApt" :value="item.v ? item.v : item.planDepartureApt">
+                <el-select
+                  style="width: 100%"
+                  v-model="tableForms.calculationBasis"
+                  class="input-shadow"
+                  filterable
+                  default-first-option
+                  placeholder="请选择计算依据"
+                >
+                  <el-option
+                    v-for="item in calculationBasis"
+                    :key="item.v ? item.v : item.planDepartureApt"
+                    :label="item.k ? item.k : item.planDepartureApt"
+                    :value="item.v ? item.v : item.planDepartureApt"
+                  >
                   </el-option>
                 </el-select>
               </el-form-item>
             </el-col>
             <el-col :span="12">
               <el-form-item label="基准节点" size="default">
-                <el-select style="width: 100%" v-model="tableForms.beginNode" class="input-shadow" filterable default-first-option clearable placeholder="请选择开始节点" @change="changeSelect">
-                  <el-option v-for="item in tableOptionser" :key="item.nodeID" :label="item.nodeName" :value="item.nodeCode">
+                <el-select
+                  style="width: 100%"
+                  v-model="tableForms.beginNode"
+                  class="input-shadow"
+                  filterable
+                  default-first-option
+                  clearable
+                  placeholder="请选择开始节点"
+                  @change="changeSelect"
+                >
+                  <el-option
+                    v-for="item in tableOptionser"
+                    :key="item.nodeID"
+                    :label="item.nodeName"
+                    :value="item.nodeCode"
+                  >
                   </el-option>
                 </el-select>
               </el-form-item>
@@ -155,8 +330,22 @@
             </el-col> -->
             <el-col :span="12">
               <el-form-item label="报警节点" size="default">
-                <el-select style="width: 100%" v-model="tableForms.endNode" class="input-shadow" filterable default-first-option clearable placeholder="请选择结束节点" @change="changeSelected">
-                  <el-option v-for="item in tableOptionser" :key="item.nodeID" :label="item.nodeName" :value="item.nodeCode">
+                <el-select
+                  style="width: 100%"
+                  v-model="tableForms.endNode"
+                  class="input-shadow"
+                  filterable
+                  default-first-option
+                  clearable
+                  placeholder="请选择结束节点"
+                  @change="changeSelected"
+                >
+                  <el-option
+                    v-for="item in tableOptionser"
+                    :key="item.nodeID"
+                    :label="item.nodeName"
+                    :value="item.nodeCode"
+                  >
                   </el-option>
                 </el-select>
               </el-form-item>
@@ -170,23 +359,51 @@
               </el-form-item>
             </el-col> -->
             <el-col :span="12">
-              <el-form-item label="超时预警" size="default" prop="warningDuration">
-                <el-input v-model="tableForms.warningDuration" placeholder="请输入超时分钟" />
+              <el-form-item
+                label="超时预警"
+                size="default"
+                prop="warningDuration"
+              >
+                <el-input
+                  v-model="tableForms.warningDuration"
+                  placeholder="请输入超时分钟"
+                />
               </el-form-item>
             </el-col>
             <el-col :span="12">
-              <el-form-item label="超时报警" size="default" prop="alarmDuration">
-                <el-input v-model="tableForms.alarmDuration" placeholder="请输入超时分钟" />
+              <el-form-item
+                label="超时报警"
+                size="default"
+                prop="alarmDuration"
+              >
+                <el-input
+                  v-model="tableForms.alarmDuration"
+                  placeholder="请输入超时分钟"
+                />
               </el-form-item>
             </el-col>
             <el-col :span="24">
-              <el-form-item label="运单数报警百分比" :label-width="140" size="default">
-                <el-input v-model="tableForms.percentage" placeholder="请输入运单数报警百分比" />
+              <el-form-item
+                label="运单数报警百分比"
+                :label-width="140"
+                size="default"
+              >
+                <el-input
+                  v-model="tableForms.percentage"
+                  placeholder="请输入运单数报警百分比"
+                />
               </el-form-item>
             </el-col>
             <el-col :span="24">
-              <el-form-item label="板卡数报警百分比" :label-width="140" size="default">
-                <el-input v-model="tableForms.percentuld" placeholder="请输入板卡数报警百分比" />
+              <el-form-item
+                label="板卡数报警百分比"
+                :label-width="140"
+                size="default"
+              >
+                <el-input
+                  v-model="tableForms.percentuld"
+                  placeholder="请输入板卡数报警百分比"
+                />
               </el-form-item>
             </el-col>
           </el-row>
@@ -223,7 +440,7 @@ const beginPositionId = ref<string | any>("");
 const endPositionId = ref<string | any>("");
 const tableObj = ref({}); //增删改数据缓存
 const delName = ref<string | any>("");
-const inputRef = ref(null)
+const inputRef = ref(null);
 const tableForm = reactive({
   alarmSceneId: null,
   IATACode: null,
@@ -326,7 +543,7 @@ const addForm = () => {
 };
 //取消
 const resetForm = () => {
-  warningEditForm.value?.resetFields()
+  warningEditForm.value?.resetFields();
   flag.value = false;
   // tableForms.alarmStrategyID = null;
   // tableForms.StrategyName = null;
@@ -727,7 +944,7 @@ const getQuery = async () => {
         page.value--;
         noMore.value = true;
       }
-      const titleColumn = columnSet.find((item) => item.needShow === 1);
+      const titleColumn = columnSet.find((item) => item.needShow == 1);
       if (titleColumn) {
         rowTitle.value = titleColumn.columnName;
       }

+ 175 - 25
src/views/systemSettings/warningSet/index.vue

@@ -1,7 +1,16 @@
 <template>
   <div class="airportInfo scroll-y">
     <div class="wrap">
-      <Minheader :is-auth="true" :is-btn="true" :is-search="true" :is-statuser="true" powerData="alert_alarm_settings_add_button" @addForm="addForm" @searchForms="searchForms" @clearForm="clearForm">
+      <Minheader
+        :is-auth="true"
+        :is-btn="true"
+        :is-search="true"
+        :is-statuser="true"
+        powerData="alert_alarm_settings_add_button"
+        @addForm="addForm"
+        @searchForms="searchForms"
+        @clearForm="clearForm"
+      >
         <template #header>
           <div class="status flex-wrap">
             <div class="manageTitle">预警告警维护</div>
@@ -9,9 +18,25 @@
         </template>
       </Minheader>
       <div class="app-containers">
-        <DataTable :tableHeader="tableCols" :tableData="tableData" :tableBtnGroup="tableBtnGroup" :tableProperty="{ rowKey: 'ID' }" @btnClick="btnClick" />
+        <DataTable
+          :tableHeader="tableCols"
+          :tableData="tableData"
+          :tableBtnGroup="tableBtnGroup"
+          :tableProperty="{ rowKey: 'ID' }"
+          @btnClick="btnClick"
+        />
       </div>
-      <Dialog width="600px" :flag="flag" :type="type" :msgTitle="msgTitle" :delName="delName" @resetForm="resetForm" @delRest="delRest" @submitForm="submitForm" @delRemove="delRemove">
+      <Dialog
+        width="600px"
+        :flag="flag"
+        :type="type"
+        :msgTitle="msgTitle"
+        :delName="delName"
+        @resetForm="resetForm"
+        @delRest="delRest"
+        @submitForm="submitForm"
+        @delRemove="delRemove"
+      >
         <div class="diacont">
           <el-form :model="tableForm" :rules="formRules" ref="warningSetForm">
             <el-row :gutter="24">
@@ -24,50 +49,134 @@
                 </el-form-item>
               </el-col> -->
               <el-col :span="12">
-                <el-form-item label="名称" prop="alarmname" size="default" :rules="formRules.isNotNull">
-                  <el-input v-model="tableForm.alarmname" placeholder="请输入名称" />
+                <el-form-item
+                  label="名称"
+                  prop="alarmname"
+                  size="default"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-input
+                    v-model="tableForm.alarmname"
+                    placeholder="请输入名称"
+                  />
                 </el-form-item>
               </el-col>
               <el-col :span="12">
-                <el-form-item label="起飞机场" size="default" prop="departmentAirport" :rules="formRules.isNotNull">
-                  <el-select style="width: 100%" v-model="tableForm.departmentAirport" class="input-shadow" filterable allow-create default-first-option clearable placeholder="请选择起飞机场">
-                    <el-option v-for="item in tableOptionser" :key="item.airportID" :label="item.IATACode" :value="item.IATACode">
+                <el-form-item
+                  label="起飞机场"
+                  size="default"
+                  prop="departmentAirport"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-select
+                    style="width: 100%"
+                    v-model="tableForm.departmentAirport"
+                    class="input-shadow"
+                    filterable
+                    allow-create
+                    default-first-option
+                    clearable
+                    placeholder="请选择起飞机场"
+                  >
+                    <el-option
+                      v-for="item in tableOptionser"
+                      :key="item.airportID"
+                      :label="item.IATACode"
+                      :value="item.IATACode"
+                    >
                     </el-option>
                   </el-select>
                 </el-form-item>
               </el-col>
               <el-col :span="12">
                 <el-form-item label="降落机场" size="default">
-                  <el-select style="width: 100%" v-model="tableForm.landingAirport" class="input-shadow" filterable allow-create default-first-option clearable placeholder="请选择降落机场">
-                    <el-option v-for="item in tableOptionser" :key="item.airportID" :label="item.IATACode" :value="item.IATACode">
+                  <el-select
+                    style="width: 100%"
+                    v-model="tableForm.landingAirport"
+                    class="input-shadow"
+                    filterable
+                    allow-create
+                    default-first-option
+                    clearable
+                    placeholder="请选择降落机场"
+                  >
+                    <el-option
+                      v-for="item in tableOptionser"
+                      :key="item.airportID"
+                      :label="item.IATACode"
+                      :value="item.IATACode"
+                    >
                     </el-option>
                   </el-select>
                 </el-form-item>
               </el-col>
               <el-col :span="12">
                 <el-form-item label="航司二字码" size="default" prop="IATACode">
-                  <el-select style="width: 100%" v-model="tableForm.IATACode" class="input-shadow" filterable allow-create default-first-option clearable placeholder="请选择航司二字码">
-                    <el-option v-for="item in iaCodeArr" :key="item.airlineCompanyID" :label="item.ITATCode" :value="item.ITATCode">
+                  <el-select
+                    style="width: 100%"
+                    v-model="tableForm.IATACode"
+                    class="input-shadow"
+                    filterable
+                    allow-create
+                    default-first-option
+                    clearable
+                    placeholder="请选择航司二字码"
+                  >
+                    <el-option
+                      v-for="item in iaCodeArr"
+                      :key="item.airlineCompanyID"
+                      :label="item.ITATCode"
+                      :value="item.ITATCode"
+                    >
                     </el-option>
                   </el-select>
                 </el-form-item>
               </el-col>
               <el-col :span="12">
-                <el-form-item label="国内国际" size="default" prop="ditype" :rules="formRules.isNotNull">
-                  <el-select style="width: 100%" v-model="tableForm.ditype" class="input-shadow" filterable allow-create default-first-option placeholder="请选择国内国际">
-                    <el-option v-for="(item,index) in ditypeAll" :key="index" :label="item.k" :value="item.v">
+                <el-form-item
+                  label="国内国际"
+                  size="default"
+                  prop="ditype"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-select
+                    style="width: 100%"
+                    v-model="tableForm.ditype"
+                    class="input-shadow"
+                    filterable
+                    allow-create
+                    default-first-option
+                    placeholder="请选择国内国际"
+                  >
+                    <el-option
+                      v-for="(item, index) in ditypeAll"
+                      :key="index"
+                      :label="item.k"
+                      :value="item.v"
+                    >
                     </el-option>
                   </el-select>
                 </el-form-item>
               </el-col>
               <el-col :span="12">
                 <el-form-item label="航班号" size="default">
-                  <el-input v-model="tableForm.flightNo" placeholder="请输入航班号" />
+                  <el-input
+                    v-model="tableForm.flightNo"
+                    placeholder="请输入航班号"
+                  />
                 </el-form-item>
               </el-col>
               <el-col :span="12">
                 <el-form-item label="机型" prop="planetype" size="default">
-                  <el-select style="width: 100%" v-model="tableForm.planetype" class="input-shadow" filterable allow-create default-first-option placeholder="请选择机型">
+                  <el-select
+                    style="width: 100%"
+                    v-model="tableForm.planetype"
+                    class="input-shadow"
+                    filterable
+                    allow-create
+                    default-first-option
+                    placeholder="请选择机型"
+                  >
                     <el-option label="宽体机" value="宽体机" />
                     <el-option label="窄体机" value="窄体机" />
                     <el-option label="全部" value="全部" />
@@ -76,7 +185,15 @@
               </el-col>
               <el-col :span="12">
                 <el-form-item label="客货机" prop="flighttype" size="default">
-                  <el-select style="width: 100%" v-model="tableForm.flighttype" class="input-shadow" filterable allow-create default-first-option placeholder="请选择客货机">
+                  <el-select
+                    style="width: 100%"
+                    v-model="tableForm.flighttype"
+                    class="input-shadow"
+                    filterable
+                    allow-create
+                    default-first-option
+                    placeholder="请选择客货机"
+                  >
                     <el-option label="客机" value="客机" />
                     <el-option label="货机" value="货机" />
                     <el-option label="全部" value="全部" />
@@ -85,24 +202,50 @@
               </el-col>
               <el-col :span="12">
                 <el-form-item label="停机位" prop="landingstand" size="default">
-                  <el-input ref="inputRef" v-model="tableForm.landingstand" placeholder="请输入停机位" />
+                  <el-input
+                    ref="inputRef"
+                    v-model="tableForm.landingstand"
+                    placeholder="请输入停机位"
+                  />
                 </el-form-item>
               </el-col>
               <el-col :span="12">
-                <el-form-item label="生效时间" size="default" prop="startDate" :rules="formRules.isNotNull">
-                  <el-date-picker v-model="tableForm.startDate" :rows="1" type="date" format="YYYY-MM-DD" value-format="YYYY-MM-DD" placeholder="选择日期时间">
+                <el-form-item
+                  label="生效时间"
+                  size="default"
+                  prop="startDate"
+                  :rules="formRules.isNotNull"
+                >
+                  <el-date-picker
+                    v-model="tableForm.startDate"
+                    :rows="1"
+                    type="date"
+                    format="YYYY-MM-DD"
+                    value-format="YYYY-MM-DD"
+                    placeholder="选择日期时间"
+                  >
                   </el-date-picker>
                 </el-form-item>
               </el-col>
               <el-col :span="12">
                 <el-form-item label="失效时间" size="default" prop="endDate">
-                  <el-date-picker format="YYYY-MM-DD" value-format="YYYY-MM-DD" v-model="tableForm.endDate" :rows="1" type="date" placeholder="选择日期时间">
+                  <el-date-picker
+                    format="YYYY-MM-DD"
+                    value-format="YYYY-MM-DD"
+                    v-model="tableForm.endDate"
+                    :rows="1"
+                    type="date"
+                    placeholder="选择日期时间"
+                  >
                   </el-date-picker>
                 </el-form-item>
               </el-col>
               <el-col :span="12">
                 <el-form-item label="描述" prop="alarmdesc" size="default">
-                  <el-input v-model="tableForm.alarmdesc" placeholder="请输入描述" />
+                  <el-input
+                    v-model="tableForm.alarmdesc"
+                    placeholder="请输入描述"
+                  />
                 </el-form-item>
               </el-col>
               <!-- <el-col>
@@ -118,7 +261,14 @@
           </el-form>
         </div>
       </Dialog>
-      <el-popover ref="popoverRef" :virtual-ref="inputRef" virtual-triggering placement="right" trigger="click" content="多个停机位用逗号分隔,例如 51,52" />
+      <el-popover
+        ref="popoverRef"
+        :virtual-ref="inputRef"
+        virtual-triggering
+        placement="right"
+        trigger="click"
+        content="多个停机位用逗号分隔,例如 51,52"
+      />
     </div>
   </div>
 </template>
@@ -535,7 +685,7 @@ const getQuery = async (data?) => {
       tableCols.value = columnSet;
       // console.log(tableData);
       // const titleColumn = returnData.columnSet.find(
-      //   (item) => item.needShow === 1
+      //   (item) => item.needShow == 1
       // );
       // if (titleColumn) {
       //   rowTitle.value = titleColumn.columnName;