|
@@ -4,7 +4,7 @@
|
|
|
<Minheader :is-auth="true" :is-statuser="true" @addForm="addForm">
|
|
|
<template #header>
|
|
|
<div class="status flex-wrap">
|
|
|
- <div class="manageTitle">航站楼设置</div>
|
|
|
+ <div class="manageTitle">区域设置</div>
|
|
|
</div>
|
|
|
</template></Minheader
|
|
|
>
|
|
@@ -21,6 +21,7 @@
|
|
|
:flag="flag"
|
|
|
:type="type"
|
|
|
:msgTitle="msgTitle"
|
|
|
+ :delName="tableForm.terminalName"
|
|
|
@resetForm="resetForm"
|
|
|
@delRest="delRest"
|
|
|
@submitForm="submitForm"
|
|
@@ -35,26 +36,31 @@
|
|
|
<el-row :gutter="24">
|
|
|
<el-col>
|
|
|
<el-form-item
|
|
|
- label="航站名称"
|
|
|
+ label="区域名称"
|
|
|
size="default"
|
|
|
prop="terminalName"
|
|
|
:rules="formRules.isNotNull"
|
|
|
>
|
|
|
<el-input
|
|
|
v-model="tableForm.terminalName"
|
|
|
- placeholder="请输入航站名称"
|
|
|
+ placeholder="请输入区域名称"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col>
|
|
|
- <el-form-item label="航站楼编码" size="default">
|
|
|
+ <el-form-item
|
|
|
+ label="区域编码"
|
|
|
+ size="default"
|
|
|
+ prop="terminalID"
|
|
|
+ :rules="formRules.isNotNull"
|
|
|
+ >
|
|
|
<el-input
|
|
|
v-model="tableForm.terminalID"
|
|
|
- placeholder="请输入航站楼编码"
|
|
|
+ placeholder="请输入区域编码"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col>
|
|
|
+ <!-- <el-col>
|
|
|
<el-form-item
|
|
|
label="机场三字码"
|
|
|
size="default"
|
|
@@ -67,6 +73,24 @@
|
|
|
placeholder="请输入机场三字码"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
+ </el-col> -->
|
|
|
+ <el-col>
|
|
|
+ <el-form-item label="机场名称" size="default">
|
|
|
+ <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-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
@@ -93,7 +117,7 @@ const serviceId = ref<String>("");
|
|
|
const tableObj = ref({}); //增删改数据缓存
|
|
|
const flag = ref<Boolean>(false); //弹窗开关
|
|
|
const type = ref<String>(""); //判断是否删除
|
|
|
-const msgTitle = ref<String>("新增航站楼"); //弹窗标题
|
|
|
+const msgTitle = ref<String>("新增区域"); //弹窗标题
|
|
|
const tableColsCopys = reactive<Object>({}); //弹窗
|
|
|
const tableBtnGroup = ref<Array>([
|
|
|
{
|
|
@@ -116,6 +140,8 @@ const tableForm = reactive({
|
|
|
terminalID: "",
|
|
|
terminalName: "",
|
|
|
airportCode: "",
|
|
|
+ abbreviation: "",
|
|
|
+ remarks: "",
|
|
|
event: "",
|
|
|
}); //弹窗内容
|
|
|
//列表
|
|
@@ -130,9 +156,10 @@ const state = reactive({
|
|
|
listLoading: true,
|
|
|
});
|
|
|
tableForm.airportCode = route.query.IATACode;
|
|
|
+tableForm.abbreviation = route.query.abbreviation;
|
|
|
//新增
|
|
|
const addForm = () => {
|
|
|
- msgTitle.value = "新增航站楼";
|
|
|
+ msgTitle.value = "新增区域";
|
|
|
tableForm.event = 1;
|
|
|
flag.value = true;
|
|
|
type.value = "";
|
|
@@ -142,10 +169,11 @@ const resetForm = () => {
|
|
|
flag.value = false;
|
|
|
tableForm.terminalID = "";
|
|
|
tableForm.terminalName = "";
|
|
|
+ tableForm.remarks = "";
|
|
|
};
|
|
|
//编辑
|
|
|
const editDialog = (data) => {
|
|
|
- msgTitle.value = "编辑航站楼";
|
|
|
+ msgTitle.value = "编辑区域";
|
|
|
flag.value = true;
|
|
|
type.value = "";
|
|
|
tableForm.name = data.name;
|
|
@@ -154,7 +182,7 @@ const editDialog = (data) => {
|
|
|
};
|
|
|
//删除
|
|
|
const eleDialog = () => {
|
|
|
- msgTitle.value = "删除航站楼";
|
|
|
+ msgTitle.value = "删除区域";
|
|
|
flag.value = true;
|
|
|
type.value = "del";
|
|
|
};
|
|
@@ -173,15 +201,16 @@ const aloneDialog = () => {
|
|
|
//编辑-删除
|
|
|
const btnClick = (row, index, param) => {
|
|
|
if (param === 2) {
|
|
|
- msgTitle.value = "编辑航站楼";
|
|
|
+ msgTitle.value = "编辑区域";
|
|
|
flag.value = true;
|
|
|
type.value = "";
|
|
|
tableForm.event = 2;
|
|
|
tableForm.terminalID = index.terminalID;
|
|
|
tableForm.terminalName = index.terminalName;
|
|
|
tableForm.airportCode = index.airportCode;
|
|
|
+ tableForm.remarks = index.remarks;
|
|
|
} else if (param === 3) {
|
|
|
- msgTitle.value = "删除航站楼";
|
|
|
+ msgTitle.value = "删除区域";
|
|
|
flag.value = true;
|
|
|
type.value = "del";
|
|
|
tableForm.event = 3;
|
|
@@ -193,6 +222,7 @@ const btnClick = (row, index, param) => {
|
|
|
path: "/BasicsData/positionSetting",
|
|
|
query: {
|
|
|
terminalID: index.terminalID,
|
|
|
+ terminalName: index.terminalName,
|
|
|
},
|
|
|
});
|
|
|
}
|
|
@@ -217,6 +247,9 @@ const getQuery = async () => {
|
|
|
rowTitle.value = titleColumn.columnName;
|
|
|
}
|
|
|
tableData.value.push(...returnData.listValues);
|
|
|
+ tableData.value.forEach((element) => {
|
|
|
+ element.abbreviation = route.query.abbreviation;
|
|
|
+ });
|
|
|
tableCols.value = returnData.columnSet;
|
|
|
tableCols.value.forEach((element) => {
|
|
|
element.label = element.columnLabel;
|