切换导航条
此项目
正在载入...
登录
朱兆平
/
vue_cli
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
小范
4 years ago
提交
79f41b47004652daf77821b6e92267ef3bfbecd1
1 个父辈
02e53712
运输工具测试
隐藏空白字符变更
内嵌
并排对比
正在显示
6 个修改的文件
包含
114 行增加
和
18 行删除
src/api/transport.js
src/views/airtransport/arrival.vue
src/views/airtransport/confirmatory.vue
src/views/airtransport/declare.vue
src/views/airtransport/departure.vue
src/views/airtransport/routeaircraft.vue
src/api/transport.js
查看文件 @
79f41b4
...
...
@@ -83,6 +83,9 @@ export const selectAirLineAircraft=params=>{return http.get(`${baseUrlAirLineAir
//进港预报申报prediction
//新增方法
export
const
addPrediction
=
params
=>
{
return
http
.
post
(
`
$
{
baseUrlPrediction
}
/addPrediction`, params
)
; }
;
//保存并发送
export
const
sendPredictionIn
=
params
=>
{
return
http
.
post
(
`
$
{
baseUrlPrediction
}
/sendPredictionIn`, params
)
; }
;
//删除方法
export
const
editPrediction
=
params
=>
{
return
http
.
put
(
`
$
{
baseUrlPrediction
}
/editPrediction`, params
)
;}
;
//查询列表
...
...
@@ -92,12 +95,22 @@ export const selectPrediction=params=>{return http.get(`${baseUrlPrediction}/sel
//进港确报申报confirm
//新增方法
export
const
addConfirm
=
params
=>
{
return
http
.
post
(
`
$
{
baseUrlConfirm
}
/addConfirm`, params
)
; }
;
//保存并发送
export
const
sendConfirmIn
=
params
=>
{
return
http
.
post
(
`
$
{
baseUrlPrediction
}
/sendConfirmIn`, params
)
; }
;
//删除方法
export
const
editConfirm
=
params
=>
{
return
http
.
put
(
`
$
{
baseUrlConfirm
}
/editConfirm`, params
)
;}
;
//查询列表
export
const
selectConfirm
=
params
=>
{
return
http
.
get
(
`
$
{
baseUrlConfirm
}
/selectConfirm`, params
)
;}
;
//出港预报申报
//保存并发送
export
const
sendPredictionOut
=
params
=>
{
return
http
.
post
(
`
$
{
baseUrlPrediction
}
/sendPredictionOut`, params
)
; }
;
//出港确报申报
//保存并发送
export
const
sendConfirmOut
=
params
=>
{
return
http
.
post
(
`
$
{
baseUrlConfirm
}
/sendConfirmOut`, params
)
; }
;
//进港航班配置
//新增方法
export
const
addSchedule
=
params
=>
{
return
http
.
post
(
`
$
{
baseUrlSchedule
}
/addSchedule`, params
)
; }
;
...
...
src/views/airtransport/arrival.vue
查看文件 @
79f41b4
...
...
@@ -98,7 +98,7 @@
</el-row>
<el-row style="margin-left: 120px">
<el-col :span="24"> <el-button type="primary" @click="submitForm('arrival')">保 存</el-button>
<el-button type="success">保存并发送</el-button></el-col>
<el-button type="success"
@click="sendForm('arrival')"
>保存并发送</el-button></el-col>
</el-row>
<!--对话提示框-->
<el-row>
...
...
@@ -136,7 +136,7 @@
.el-col{margin-right: 0px;}
</style>
<script>
import {addPrediction} from "../../api/transport";
import {addPrediction
, sendPredictionIn
} from "../../api/transport";
export default {
data(){
...
...
@@ -215,6 +215,26 @@
}
});
},
//新增进港预报申报(保存并发送按钮)
sendForm(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
sendPredictionIn(this.arrival).then(res=>{
let response=res.data;
if(response.code=='200'){
this.centerDialogVisible=true;
this.msg=response.msg;
this.$router.push({path:'/queryArrival',query:{flightNo:this.arrival.flightNo,flightDate:this.arrival.flightDate}});
}else{
this.msg=response.msg;
}
});
} else {
console.log('error submit!!');
return false;
}
});
},
//加载默认值
defaultData(){
if(this.$route.query!=null){
...
...
src/views/airtransport/confirmatory.vue
查看文件 @
79f41b4
...
...
@@ -80,7 +80,7 @@
</el-row>
<el-row style="margin-left: 120px">
<el-col :span="24"> <el-button type="primary" @click="submitForm('confirmatory')">保 存</el-button>
<el-button type="success">保存并发送</el-button></el-col>
<el-button type="success"
@click="sendForm('confirmatory')"
>保存并发送</el-button></el-col>
</el-row>
<!--对话提示框-->
<el-row>
...
...
@@ -118,7 +118,7 @@
.el-col{margin-right: 0px;}
</style>
<script>
import {addConfirm} from "../../api/transport";
import {addConfirm
, sendConfirmIn
} from "../../api/transport";
export default {
data(){
...
...
@@ -188,6 +188,26 @@
}
});
},
//新增进港确报申报(保存并发送按钮)
sendForm(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
sendConfirmIn(this.confirmatory).then(res=>{
let response=res.data;
if(response.code=='200'){
this.centerDialogVisible=true;
this.msg=response.msg;
this.$router.push({path:'/queryConfirmatory',query:{flightNo:this.confirmatory.flightNo,flightDate:this.confirmatory.flightDate}});
}else{
this.msg=response.msg;
}
});
} else {
console.log('error submit!!');
return false;
}
});
},
//加载默认值
defaultData(){
if(this.$route.query!=null){
...
...
@@ -203,4 +223,4 @@
this.defaultData();
}
}
</script>
\ No newline at end of file
</script>
...
...
src/views/airtransport/declare.vue
查看文件 @
79f41b4
...
...
@@ -61,7 +61,7 @@
</el-row>
<el-row style="margin-left: 120px">
<el-col :span="24"> <el-button type="primary" @click="submitForm('declare')">保 存</el-button>
<el-button type="success">保存并发送</el-button></el-col>
<el-button type="success"
@click="sendForm('declare')"
>保存并发送</el-button></el-col>
</el-row>
<!--对话提示框-->
<el-row>
...
...
@@ -99,7 +99,7 @@
.el-col{margin-right: 0px;}
</style>
<script>
import {addConfirm} from "../../api/transport";
import {addConfirm
, sendConfirmOut
} from "../../api/transport";
export default {
data(){
...
...
@@ -162,6 +162,26 @@
}
});
},
//新增出港确报申报(保存按钮)
sendForm(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
sendConfirmOut(this.declare).then(res=>{
let response=res.data;
if(response.code=='200'){
this.centerDialogVisible=true;
this.msg=response.msg;
this.$router.push({path:'/queryDeclare',query:{flightNo:this.declare.flightNo,flightDate:this.declare.flightDate}});
}else{
this.msg=response.msg;
}
});
} else {
console.log('error submit!!');
return false;
}
});
},
//加载默认值
defaultData(){
if(this.$route.query!=null){
...
...
@@ -177,4 +197,4 @@
this.defaultData();
}
}
</script>
\ No newline at end of file
</script>
...
...
src/views/airtransport/departure.vue
查看文件 @
79f41b4
...
...
@@ -72,7 +72,7 @@
</el-row>
<el-row style="margin-left: 120px">
<el-col :span="24"> <el-button type="primary" @click="submitForm('departure')">保 存</el-button>
<el-button type="success">保存并发送</el-button></el-col>
<el-button type="success"
@click="sendForm('departure')"
>保存并发送</el-button></el-col>
</el-row>
<!--对话提示框-->
<el-row>
...
...
@@ -110,7 +110,7 @@
.el-col{margin-right: 0px;}
</style>
<script>
import {addPrediction} from "../../api/transport";
import {addPrediction
, sendPredictionOut
} from "../../api/transport";
export default {
data(){
...
...
@@ -181,6 +181,26 @@
}
});
},
//新增出港预报申报(保存并发送按钮)
sendForm(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
sendPredictionOut(this.departure).then(res=>{
let response=res.data;
if(response.code=='200'){
this.centerDialogVisible=true;
this.msg=response.msg;
this.$router.push({path:'/queryDeparture',query:{flightNo:this.departure.flightNo,flightDate:this.departure.flightDate}});
}else{
this.msg=response.msg;
}
});
} else {
console.log('error submit!!');
return false;
}
});
},
//加载默认值
defaultData(){
if(this.$route.query!=null){
...
...
src/views/airtransport/routeaircraft.vue
查看文件 @
79f41b4
...
...
@@ -30,8 +30,8 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="航空器国籍" prop="areoNationality" label-width="130px">
<el-input v-model="aircraft.areoNationality" placeholder="请输入"></el-input>
<el-form-item label="航空器国籍" prop="aeroNationality" label-width="130px">
<el-input v-model="aircraft.aeroNationality" placeholder="请输入"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
...
...
@@ -46,8 +46,8 @@
</el-col>
<el-col :span="6">
<el-form-item label="机型" prop="areoModel" label-width="130px">
<el-input v-model="aircraft.areoModel" placeholder="请输入"></el-input>
<el-form-item label="机型" prop="aeroModel" label-width="130px">
<el-input v-model="aircraft.aeroModel" placeholder="请输入"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
...
...
@@ -145,8 +145,8 @@
airwayNameEn:undefined,
airwayNameCn:undefined,
aircraftNo:undefined,
areoModel:undefined,
areoNationality:undefined,
aeroModel:undefined,
aeroNationality:undefined,
certNo:undefined,
grossWeight:undefined,
passengerLimit:undefined,
...
...
@@ -169,13 +169,16 @@
airwayCode: [
{required: true, message: '请输入', trigger: 'blur'}
],
meno: [
{required: true, message: '请输入', trigger: 'blur'}
],
airwayNameEn: [
{required: true, message: '请输入', trigger: 'blur'}
],
airwayNameCn: [
{required: true, message: '请输入', trigger: 'blur'}
],
a
re
oNationality: [
a
er
oNationality: [
{required: true, message: '请输入', trigger: 'blur'}
],
aircraftNo: [
...
...
@@ -187,7 +190,7 @@
credentialNo: [
{required: true, message: '请输入', trigger: 'blur'}
],
a
re
oModel: [
a
er
oModel: [
{required: true, message: '请输入', trigger: 'blur'}
],
grossWeight: [
...
...
请
注册
或
登录
后发表评论