|
@@ -1,7 +1,12 @@
|
|
|
<template>
|
|
|
<div class="airportInfo scroll-y">
|
|
|
<div class="wrap">
|
|
|
- <Minheader :is-auth="true" :is-statuser="true" @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,45 +14,106 @@
|
|
|
</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="中文名称" 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">
|
|
|
- <el-input v-model="tableForm.englishFullName" placeholder="请输入英文全称" />
|
|
|
+ <el-input
|
|
|
+ v-model="tableForm.englishFullName"
|
|
|
+ placeholder="请输入英文全称"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col>
|
|
|
<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>
|
|
|
- <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>
|
|
@@ -105,11 +171,13 @@ const tableBtnGroup = ref([
|
|
|
name: "编辑",
|
|
|
className: "editBtn",
|
|
|
param: 2,
|
|
|
+ is: "airline_editor_button",
|
|
|
},
|
|
|
{
|
|
|
name: "删除",
|
|
|
className: "delBtn",
|
|
|
param: 3,
|
|
|
+ is: "airlines_delete_button",
|
|
|
},
|
|
|
]);
|
|
|
//新增
|