浏览代码

预警报警维护添加字段

zhongxiaoyu 2 年之前
父节点
当前提交
a009124086
共有 2 个文件被更改,包括 82 次插入0 次删除
  1. 24 0
      src/views/systemSettings/warningEdit/index.vue
  2. 58 0
      src/views/systemSettings/warningSet/index.vue

+ 24 - 0
src/views/systemSettings/warningEdit/index.vue

@@ -52,6 +52,19 @@
               <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-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-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="选择日期时间">
@@ -67,6 +80,14 @@
         </el-form>
       </div>
     </div>
+    <el-popover
+      ref="popoverRef"
+      :virtual-ref="inputRef"
+      virtual-triggering
+      placement="right"
+      trigger="click"
+      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">
         <template #header>
@@ -182,6 +203,7 @@ const beginPositionId = ref<string | any>("");
 const endPositionId = ref<string | any>("");
 const tableObj = ref({}); //增删改数据缓存
 const delName = ref<string | any>("");
+const inputRef = ref(null)
 const tableForm = reactive({
   alarmSceneId: null,
   IATACode: null,
@@ -190,6 +212,8 @@ const tableForm = reactive({
   flightNo: null,
   startDate: null,
   endDate: null,
+  planetype: null,
+  landingstand: null,
   event: 2,
   ditype: "ALL",
 }); //报警预警场景

+ 58 - 0
src/views/systemSettings/warningSet/index.vue

@@ -60,6 +60,19 @@
                   <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-option label="宽体机" value="宽体机" />
+                    <el-option label="窄体机" value="窄体机" />
+                  </el-select>
+                </el-form-item>
+              </el-col>
+              <el-col :span="12">
+                <el-form-item label="停机位" prop="landingstand" size="default">
+                  <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="选择日期时间">
@@ -85,6 +98,14 @@
           </el-form>
         </div>
       </Dialog>
+      <el-popover
+        ref="popoverRef"
+        :virtual-ref="inputRef"
+        virtual-triggering
+        placement="right"
+        trigger="click"
+        content="多个停机位用逗号分隔,例如 51,52"
+      />
     </div>
   </div>
 </template>
@@ -118,6 +139,7 @@ const tableOptionser = ref<any>([]); //弹窗下拉
 const submitID = ref<string | any>("");
 const delName = ref<string>("");
 const listqueryTemplateID = ref<string | any>("");
+const inputRef = ref(null)
 const tableForm = reactive<any>({
   IATACode: null,
   departmentAirport: null,
@@ -126,6 +148,8 @@ const tableForm = reactive<any>({
   startDate: null,
   endDate: null,
   ditype: "ALL",
+  planetype: null,
+  landingstand: null,
   // alarmSceneId: "",
   // event: "",
 }); //弹窗内容
@@ -199,6 +223,8 @@ const resetForm = () => {
   tableForm.flightNo = "";
   tableForm.startDate = "";
   tableForm.endDate = "";
+  tableForm.planetype = '',
+  tableForm.landingstand = '',
   // tableForm.event = "";
   delName.value = "";
 };
@@ -355,6 +381,38 @@ const getQuery = async (data?) => {
         orderNumber: null,
         needSearch: null,
       },
+      {
+        queryTemplateColumnSetID: 297,
+        queryTemplateID: 13,
+        columnName: "planetype",
+        columnLabel: "机型",
+        columnDescribe: "宽体机/窄体机",
+        needSort: 0,
+        needFilters: 1,
+        needShow: 1,
+        needGroup: 0,
+        dataType: "varchar",
+        listqueryTemplateID: null,
+        needCount: null,
+        orderNumber: null,
+        needSearch: null,
+      },
+      {
+        queryTemplateColumnSetID: 298,
+        queryTemplateID: 13,
+        columnName: "landingstand",
+        columnLabel: "停机位",
+        columnDescribe: "停机位",
+        needSort: 0,
+        needFilters: 1,
+        needShow: 1,
+        needGroup: 0,
+        dataType: "varchar",
+        listqueryTemplateID: null,
+        needCount: null,
+        orderNumber: null,
+        needSearch: null,
+      },
       {
         queryTemplateColumnSetID: 295,
         queryTemplateID: 13,