|
@@ -9,7 +9,14 @@
|
|
|
<template>
|
|
|
<div class="airportInfo">
|
|
|
<div class="wrap">
|
|
|
- <DataTable :data-id="dataId" :rows="12" labelWidth="100px" :minHeight="70" width="800px" />
|
|
|
+ <DataTable
|
|
|
+ :data-id="dataId"
|
|
|
+ :rows="12"
|
|
|
+ labelWidth="100px"
|
|
|
+ :minHeight="70"
|
|
|
+ width="800px"
|
|
|
+ tableHeight="700"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -28,7 +35,7 @@ import {
|
|
|
export default {
|
|
|
name: "AirportInfo",
|
|
|
components: { Search, Dialog, DataTable },
|
|
|
- data () {
|
|
|
+ data() {
|
|
|
return {
|
|
|
dataId: DATACONTENT_ID.airlineTableId,
|
|
|
arr: [], //内容数据
|
|
@@ -76,11 +83,11 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
},
|
|
|
- mounted () {
|
|
|
+ mounted() {
|
|
|
// this.getAirlines();
|
|
|
},
|
|
|
computed: {
|
|
|
- serachBox () {
|
|
|
+ serachBox() {
|
|
|
if (this.searchInfo) {
|
|
|
return this.arr.filter((data) => {
|
|
|
return Object.keys(data).some((key) => {
|
|
@@ -95,7 +102,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
//删除信息
|
|
|
- handleMove (item) {
|
|
|
+ handleMove(item) {
|
|
|
this.eleForm = item;
|
|
|
this.eleForm["operate"] = "3";
|
|
|
this.ids = item.id;
|
|
@@ -105,7 +112,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
//编辑-航司信息(存储信息)
|
|
|
- airEdit (item) {
|
|
|
+ airEdit(item) {
|
|
|
this.EditForm.ID = item.ID;
|
|
|
this.EditForm.Name = item.Name;
|
|
|
this.EditForm.FullName = item.FullName;
|
|
@@ -113,7 +120,7 @@ export default {
|
|
|
this.EditFlag = true;
|
|
|
},
|
|
|
//编辑机场信息-弹框-提交
|
|
|
- async EditSubmit () {
|
|
|
+ async EditSubmit() {
|
|
|
let arr = 0;
|
|
|
this.$refs["ruleFormer"].validate((valid) => {
|
|
|
if (valid) {
|
|
@@ -142,11 +149,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
//清空内容
|
|
|
- closeForm () {
|
|
|
+ closeForm() {
|
|
|
this.$refs.ruleForm.resetFields();
|
|
|
},
|
|
|
//获取航司信息列表
|
|
|
- async getAirlines () {
|
|
|
+ async getAirlines() {
|
|
|
try {
|
|
|
const res = await Query({
|
|
|
id: 22,
|
|
@@ -163,11 +170,11 @@ export default {
|
|
|
},
|
|
|
|
|
|
//新增机场信息-弹框
|
|
|
- handleAdd () {
|
|
|
+ handleAdd() {
|
|
|
this.addFlag = true;
|
|
|
},
|
|
|
//新增机场信息-弹框-提交
|
|
|
- async addSubmit () {
|
|
|
+ async addSubmit() {
|
|
|
let arr = 0;
|
|
|
this.$refs["ruleForm"].validate((valid) => {
|
|
|
if (valid) {
|
|
@@ -197,7 +204,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
//新增机场信息-弹框-取消
|
|
|
- resetForm () {
|
|
|
+ resetForm() {
|
|
|
this.addFlag = false;
|
|
|
this.EditFlag = false;
|
|
|
this.EditForm.Name = null;
|
|
@@ -206,7 +213,7 @@ export default {
|
|
|
this.ruleForm.code = "";
|
|
|
},
|
|
|
//删除
|
|
|
- async remove () {
|
|
|
+ async remove() {
|
|
|
try {
|
|
|
const res = await GeneralDataReception({
|
|
|
serviceId: "15",
|