作者 朱兆平

报文导入

... ... @@ -61,7 +61,7 @@
"http-proxy-middleware": "^0.19.1",
"json-loader": "^0.5.4",
"mockjs": "^1.0.1-beta3",
"node-sass": "^4.5.0",
"node-sass": "^4.14.1",
"opn": "^4.0.2",
"optimize-css-assets-webpack-plugin": "^1.3.0",
"ora": "^1.0.0",
... ...
import request from 'axios'
import qs from 'qs'
let baseUrl = '/wltp-nmms-custom-reciption-resolver'
export function postFFM(query) {
return request({
method: 'get',
url: `${baseUrl}/Rmsg/ffm`,
params: query,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}
export function postFWB(query) {
return request({
method: 'get',
url: `${baseUrl}/Rmsg/fwb`,
params: query,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}
export function postFHL(query) {
return request({
method: 'get',
url: `${baseUrl}/Rmsg/fhl`,
params: query,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
})
}
... ...
... ... @@ -47,6 +47,9 @@ import ComeCar from './views/staff/come_car.vue'
import OnDuty from './views/staff/on_duty.vue'
import WaterStationsPatrol from './views/water/water_stations_patrol.vue'
import Location from './views/empt/Location.vue'
import importFFMMsg from './views/airRadioMsg/importFFMMsg.vue'
import importFHLMsg from './views/airRadioMsg/importFHLMsg.vue'
import importFWBMsg from './views/airRadioMsg/importFWBMsg.vue'
//运输工具 通用业务申报
import Route from './views/airtransport/route.vue'
... ... @@ -172,6 +175,17 @@ let routes = [
]
},
{
path: '/radioMsgImport',
component: Home,
name: '航空报文导入',
iconCls:'el-icon-goods',
children:[
{path:'/ffmRadioMsgImport',component:importFFMMsg,name:'FFM报文导入'},
{path:'/fhlRadioMsgImport',component:importFHLMsg,name:'FHL报文导入'},
{path:'/fwbRadioMsgImport',component:importFWBMsg,name:'FWB报文导入'}
]
},
{
path: '/airtransport',
component: Home,
name: '通用业务申报',
... ...
<template>
<div class="app-container">
<div class="filter-container">
<el-button class="filter-item" type="primary" icon="el-icon-search" @click="handleAdd">导入</el-button>
<el-input
type="textarea"
:rows="40"
placeholder="请输入内容"
v-model="ffmtext">
</el-input>
</div>
</div>
</template>
<script>
import {postFFM} from "@/api/nmms/importMsg";
export default {
name: 'ImportMessage',
data() {
return {
ffmtext: ''
}
},
methods: {
handleAdd: function () {
let para = {
ffmmsg: this.ffmtext
}
postFFM(para).
then(res => {
let result = res.data
if (result==1){
this.$message({
message: '导入成功',
type: 'success',
duration: 5 * 1000
})
}
})
}
}
}
</script>
<style>
</style>
... ...
<template>
<div class="app-container">
<div class="filter-container">
<el-button class="filter-item" type="primary" icon="el-icon-search" @click="handleAdd">导入</el-button>
<el-input
type="textarea"
:rows="40"
placeholder="请输入内容"
v-model="ffmtext">
</el-input>
</div>
</div>
</template>
<script>
import {postFHL} from "@/api/nmms/importMsg";
export default {
name: 'ImportMessage',
data() {
return {
ffmtext: ''
}
},
methods: {
handleAdd: function () {
let para = {
ffmmsg: this.ffmtext
}
postFHL(para).
then(res => {
let result = res.data
if (result==1){
this.$message({
message: '导入成功',
type: 'success',
duration: 5 * 1000
})
}
})
}
}
}
</script>
<style>
</style>
... ...
<template>
<div class="app-container">
<div class="filter-container">
<el-button class="filter-item" type="primary" icon="el-icon-search" @click="handleAdd">导入</el-button>
<el-input
type="textarea"
:rows="40"
placeholder="请输入内容"
v-model="ffmtext">
</el-input>
</div>
</div>
</template>
<script>
import {postFWB} from "@/api/nmms/importMsg";
export default {
name: 'ImportMessage',
data() {
return {
ffmtext: ''
}
},
methods: {
handleAdd: function () {
let para = {
ffmmsg: this.ffmtext
}
postFWB(para).
then(res => {
let result = res.data
if (result==1){
this.$message({
message: '导入成功',
type: 'success',
duration: 5 * 1000
})
}
})
}
}
}
</script>
<style>
</style>
... ...