Merge remote-tracking branch 'origin/master'
正在显示
5 个修改的文件
包含
191 行增加
和
2 行删除
src/api/nmms/importMsg.js
0 → 100644
| 1 | +import request from 'axios' | ||
| 2 | +import qs from 'qs' | ||
| 3 | + | ||
| 4 | +let baseUrl = '/wltp-nmms-custom-reciption-resolver' | ||
| 5 | +export function postFFM(query) { | ||
| 6 | + return request({ | ||
| 7 | + method: 'get', | ||
| 8 | + url: `${baseUrl}/Rmsg/ffm`, | ||
| 9 | + params: query, | ||
| 10 | + headers: { | ||
| 11 | + 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 12 | + } | ||
| 13 | + }) | ||
| 14 | +} | ||
| 15 | + | ||
| 16 | +export function postFWB(query) { | ||
| 17 | + return request({ | ||
| 18 | + method: 'get', | ||
| 19 | + url: `${baseUrl}/Rmsg/fwb`, | ||
| 20 | + params: query, | ||
| 21 | + headers: { | ||
| 22 | + 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 23 | + } | ||
| 24 | + }) | ||
| 25 | +} | ||
| 26 | + | ||
| 27 | +export function postFHL(query) { | ||
| 28 | + return request({ | ||
| 29 | + method: 'get', | ||
| 30 | + url: `${baseUrl}/Rmsg/fhl`, | ||
| 31 | + params: query, | ||
| 32 | + headers: { | ||
| 33 | + 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 34 | + } | ||
| 35 | + }) | ||
| 36 | +} |
| @@ -45,8 +45,9 @@ import airlift from './views/nav4/airlift.vue' | @@ -45,8 +45,9 @@ import airlift from './views/nav4/airlift.vue' | ||
| 45 | import inquiry from './views/nav4/inquiry.vue' | 45 | import inquiry from './views/nav4/inquiry.vue' |
| 46 | import Page6 from './views/nav3/Page6.vue' | 46 | import Page6 from './views/nav3/Page6.vue' |
| 47 | import Page7 from './views/nav3/Page7.vue' | 47 | import Page7 from './views/nav3/Page7.vue' |
| 48 | - | ||
| 49 | - | 48 | +import importFFMMsg from './views/airRadioMsg/importFFMMsg.vue' |
| 49 | +import importFHLMsg from './views/airRadioMsg/importFHLMsg.vue' | ||
| 50 | +import importFWBMsg from './views/airRadioMsg/importFWBMsg.vue' | ||
| 50 | 51 | ||
| 51 | 52 | ||
| 52 | 53 | ||
| @@ -223,6 +224,17 @@ let routes = [ | @@ -223,6 +224,17 @@ let routes = [ | ||
| 223 | ] | 224 | ] |
| 224 | }, | 225 | }, |
| 225 | { | 226 | { |
| 227 | + path: '/radioMsgImport', | ||
| 228 | + component: Home, | ||
| 229 | + name: '航空报文导入', | ||
| 230 | + iconCls:'el-icon-goods', | ||
| 231 | + children:[ | ||
| 232 | + {path:'/ffmRadioMsgImport',component:importFFMMsg,name:'FFM报文导入'}, | ||
| 233 | + {path:'/fhlRadioMsgImport',component:importFHLMsg,name:'FHL报文导入'}, | ||
| 234 | + {path:'/fwbRadioMsgImport',component:importFWBMsg,name:'FWB报文导入'} | ||
| 235 | + ] | ||
| 236 | + }, | ||
| 237 | + { | ||
| 226 | path: '/sec', | 238 | path: '/sec', |
| 227 | component: Home, | 239 | component: Home, |
| 228 | name: '国际安检清单申报管理', | 240 | name: '国际安检清单申报管理', |
src/views/airRadioMsg/importFFMMsg.vue
0 → 100644
| 1 | +<template> | ||
| 2 | + <div class="app-container"> | ||
| 3 | + <div class="filter-container"> | ||
| 4 | + <el-button class="filter-item" type="primary" icon="el-icon-search" @click="handleAdd">导入</el-button> | ||
| 5 | + <el-input | ||
| 6 | + type="textarea" | ||
| 7 | + :rows="40" | ||
| 8 | + placeholder="请输入内容" | ||
| 9 | + v-model="ffmtext"> | ||
| 10 | + </el-input> | ||
| 11 | + </div> | ||
| 12 | + </div> | ||
| 13 | +</template> | ||
| 14 | + | ||
| 15 | +<script> | ||
| 16 | + import {postFFM} from "@/api/nmms/importMsg"; | ||
| 17 | + | ||
| 18 | + export default { | ||
| 19 | + name: 'ImportMessage', | ||
| 20 | + data() { | ||
| 21 | + return { | ||
| 22 | + ffmtext: '' | ||
| 23 | + } | ||
| 24 | + }, | ||
| 25 | + methods: { | ||
| 26 | + handleAdd: function () { | ||
| 27 | + let para = { | ||
| 28 | + ffmmsg: this.ffmtext | ||
| 29 | + } | ||
| 30 | + postFFM(para). | ||
| 31 | + then(res => { | ||
| 32 | + let result = res.data | ||
| 33 | + if (result==1){ | ||
| 34 | + this.$message({ | ||
| 35 | + message: '导入成功', | ||
| 36 | + type: 'success', | ||
| 37 | + duration: 5 * 1000 | ||
| 38 | + }) | ||
| 39 | + } | ||
| 40 | + }) | ||
| 41 | + } | ||
| 42 | + } | ||
| 43 | + } | ||
| 44 | +</script> | ||
| 45 | + | ||
| 46 | +<style> | ||
| 47 | +</style> |
src/views/airRadioMsg/importFHLMsg.vue
0 → 100644
| 1 | +<template> | ||
| 2 | + <div class="app-container"> | ||
| 3 | + <div class="filter-container"> | ||
| 4 | + <el-button class="filter-item" type="primary" icon="el-icon-search" @click="handleAdd">导入</el-button> | ||
| 5 | + <el-input | ||
| 6 | + type="textarea" | ||
| 7 | + :rows="40" | ||
| 8 | + placeholder="请输入内容" | ||
| 9 | + v-model="ffmtext"> | ||
| 10 | + </el-input> | ||
| 11 | + </div> | ||
| 12 | + </div> | ||
| 13 | +</template> | ||
| 14 | + | ||
| 15 | +<script> | ||
| 16 | + import {postFHL} from "@/api/nmms/importMsg"; | ||
| 17 | + | ||
| 18 | + export default { | ||
| 19 | + name: 'ImportMessage', | ||
| 20 | + data() { | ||
| 21 | + return { | ||
| 22 | + ffmtext: '' | ||
| 23 | + } | ||
| 24 | + }, | ||
| 25 | + methods: { | ||
| 26 | + handleAdd: function () { | ||
| 27 | + let para = { | ||
| 28 | + ffmmsg: this.ffmtext | ||
| 29 | + } | ||
| 30 | + postFHL(para). | ||
| 31 | + then(res => { | ||
| 32 | + let result = res.data | ||
| 33 | + if (result==1){ | ||
| 34 | + this.$message({ | ||
| 35 | + message: '导入成功', | ||
| 36 | + type: 'success', | ||
| 37 | + duration: 5 * 1000 | ||
| 38 | + }) | ||
| 39 | + } | ||
| 40 | + }) | ||
| 41 | + } | ||
| 42 | + } | ||
| 43 | + } | ||
| 44 | +</script> | ||
| 45 | + | ||
| 46 | +<style> | ||
| 47 | +</style> |
src/views/airRadioMsg/importFWBMsg.vue
0 → 100644
| 1 | +<template> | ||
| 2 | + <div class="app-container"> | ||
| 3 | + <div class="filter-container"> | ||
| 4 | + <el-button class="filter-item" type="primary" icon="el-icon-search" @click="handleAdd">导入</el-button> | ||
| 5 | + <el-input | ||
| 6 | + type="textarea" | ||
| 7 | + :rows="40" | ||
| 8 | + placeholder="请输入内容" | ||
| 9 | + v-model="ffmtext"> | ||
| 10 | + </el-input> | ||
| 11 | + </div> | ||
| 12 | + </div> | ||
| 13 | +</template> | ||
| 14 | + | ||
| 15 | +<script> | ||
| 16 | + import {postFWB} from "@/api/nmms/importMsg"; | ||
| 17 | + | ||
| 18 | + export default { | ||
| 19 | + name: 'ImportMessage', | ||
| 20 | + data() { | ||
| 21 | + return { | ||
| 22 | + ffmtext: '' | ||
| 23 | + } | ||
| 24 | + }, | ||
| 25 | + methods: { | ||
| 26 | + handleAdd: function () { | ||
| 27 | + let para = { | ||
| 28 | + ffmmsg: this.ffmtext | ||
| 29 | + } | ||
| 30 | + postFWB(para). | ||
| 31 | + then(res => { | ||
| 32 | + let result = res.data | ||
| 33 | + if (result==1){ | ||
| 34 | + this.$message({ | ||
| 35 | + message: '导入成功', | ||
| 36 | + type: 'success', | ||
| 37 | + duration: 5 * 1000 | ||
| 38 | + }) | ||
| 39 | + } | ||
| 40 | + }) | ||
| 41 | + } | ||
| 42 | + } | ||
| 43 | + } | ||
| 44 | +</script> | ||
| 45 | + | ||
| 46 | +<style> | ||
| 47 | +</style> |
-
请 注册 或 登录 后发表评论