|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="airportInfoDetails">
|
|
|
- <Minheader :is-auth="true" :is-statuser="true">
|
|
|
+ <Minheader :is-auth="true" :is-statuser="true" @addForm="addForm">
|
|
|
<template #header>
|
|
|
<div class="status flex-wrap">
|
|
|
<div class="manageTitle">机场信息维护</div>
|
|
@@ -13,20 +13,149 @@
|
|
|
<div class="tree_left">
|
|
|
<el-scrollbar style="height: 100%">
|
|
|
<div class="corporate">{{ company }}</div>
|
|
|
- <el-tree :data="data2"> </el-tree>
|
|
|
+ <el-tree :data="data2" accordion @node-click="handleNodeClick">
|
|
|
+ </el-tree>
|
|
|
</el-scrollbar>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="18">
|
|
|
- <DataTable />
|
|
|
+ <DataTable
|
|
|
+ :tableBtnGroup="tableBtnGroup"
|
|
|
+ @editDialog="editDialog"
|
|
|
+ @eleDialog="eleDialog"
|
|
|
+ @aloneDialog="aloneDialog"
|
|
|
+ />
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
+ <Dialog
|
|
|
+ width="600px"
|
|
|
+ :flag="flag"
|
|
|
+ :type="type"
|
|
|
+ :msgTitle="msgTitle"
|
|
|
+ @resetForm="resetForm"
|
|
|
+ @delRest="delRest"
|
|
|
+ >
|
|
|
+ <div class="diacont">
|
|
|
+ <el-form :model="tableForm">
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="机场名称">
|
|
|
+ <el-input
|
|
|
+ v-model="tableForm.name"
|
|
|
+ placeholder="请输入机场名称"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="三字码">
|
|
|
+ <el-input
|
|
|
+ v-model="tableForm.china"
|
|
|
+ placeholder="请输入三字码"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="四字码">
|
|
|
+ <el-input
|
|
|
+ v-model="tableForm.china"
|
|
|
+ placeholder="请输入四字码"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="中文简称">
|
|
|
+ <el-input
|
|
|
+ v-model="tableForm.china"
|
|
|
+ placeholder="请输入中文简称"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="英文简称">
|
|
|
+ <el-input
|
|
|
+ v-model="tableForm.china"
|
|
|
+ placeholder="请输入英文简称"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="全称">
|
|
|
+ <el-input v-model="tableForm.china" placeholder="请输入全称" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="时区">
|
|
|
+ <!-- <el-input v-model="tableForm.china" /> -->
|
|
|
+ <el-select
|
|
|
+ style="width: 100%"
|
|
|
+ v-model="tableForm.china"
|
|
|
+ class="input-shadow"
|
|
|
+ size="small"
|
|
|
+ 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="描述">
|
|
|
+ <el-input
|
|
|
+ v-model="tableForm.text"
|
|
|
+ placeholder="请输入机场三字码"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ </Dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup lang="ts">
|
|
|
import Minheader from "@/components/minheader/index.vue";
|
|
|
import DataTable from "@/views/table/index.vue";
|
|
|
+import Dialog from "@/components/dialog/index.vue";
|
|
|
+const router = useRouter();
|
|
|
+const tableBtnGroup = ref<Array>([
|
|
|
+ {
|
|
|
+ name: "编辑",
|
|
|
+ className: "editBtn",
|
|
|
+ param: 2,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "航站楼设置",
|
|
|
+ className: "editBtn",
|
|
|
+ param: 4,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "删除",
|
|
|
+ className: "delBtn",
|
|
|
+ param: 3,
|
|
|
+ },
|
|
|
+]); //单独的编辑
|
|
|
+const flag = ref<Boolean>(false); //弹窗开关
|
|
|
+const type = ref<String>(""); //判断是否删除
|
|
|
+const msgTitle = ref<String>("新增机场信息维护"); //弹窗标题
|
|
|
+const tableOptionser = ref<Array>([]); //弹窗下拉
|
|
|
+const tableColsCopys = reactive<Object>({}); //弹窗
|
|
|
+const tableForm = reactive<Object>({
|
|
|
+ name: "",
|
|
|
+ china: "",
|
|
|
+ englin: "",
|
|
|
+ two: "",
|
|
|
+ three: "",
|
|
|
+ text: "",
|
|
|
+}); //弹窗内容
|
|
|
const company = ref("所属公司");
|
|
|
const data2 = reactive([
|
|
|
{
|
|
@@ -78,8 +207,43 @@ const data2 = reactive([
|
|
|
],
|
|
|
},
|
|
|
]);
|
|
|
+//新增
|
|
|
+const addForm = () => {
|
|
|
+ msgTitle.value = "新增机场信息维护";
|
|
|
+ flag.value = true;
|
|
|
+ type.value = "";
|
|
|
+};
|
|
|
+//取消
|
|
|
+const resetForm = () => {
|
|
|
+ flag.value = false;
|
|
|
+};
|
|
|
+//编辑
|
|
|
+const editDialog = () => {
|
|
|
+ msgTitle.value = "编辑机场信息维护";
|
|
|
+ flag.value = true;
|
|
|
+ type.value = "";
|
|
|
+};
|
|
|
+//删除
|
|
|
+const eleDialog = () => {
|
|
|
+ msgTitle.value = "删除机场信息维护";
|
|
|
+ flag.value = true;
|
|
|
+ type.value = "del";
|
|
|
+};
|
|
|
+//删除取消
|
|
|
+const delRest = () => {
|
|
|
+ flag.value = false;
|
|
|
+};
|
|
|
+//航站楼跳转
|
|
|
+const aloneDialog = () => {
|
|
|
+ router.push({ path: "/BasicsData/airportInfoChild" });
|
|
|
+};
|
|
|
+//点击树事件
|
|
|
+const handleNodeClick = () => {};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
+::v-deep .el-form-item__label {
|
|
|
+ width: 80px;
|
|
|
+}
|
|
|
.airportInfoDetails {
|
|
|
.airportInfoDetails-head {
|
|
|
padding: 32px 40px 0px 32px;
|