diff --git a/package.json b/package.json index 2a1f116..0579c94 100755 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/api/nmms/importMsg.js b/src/api/nmms/importMsg.js new file mode 100644 index 0000000..ae807e6 --- /dev/null +++ b/src/api/nmms/importMsg.js @@ -0,0 +1,36 @@ +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' + } + }) +} diff --git a/src/components/TreeTable/eval.js b/src/components/TreeTable/eval.js old mode 100755 new mode 100644 index d9b89e1..d9b89e1 --- a/src/components/TreeTable/eval.js +++ b/src/components/TreeTable/eval.js diff --git a/src/components/TreeTable/index.vue b/src/components/TreeTable/index.vue old mode 100755 new mode 100644 index c13f498..c13f498 --- a/src/components/TreeTable/index.vue +++ b/src/components/TreeTable/index.vue diff --git a/src/components/TreeTable/readme.md b/src/components/TreeTable/readme.md old mode 100755 new mode 100644 index 5b598e1..5b598e1 --- a/src/components/TreeTable/readme.md +++ b/src/components/TreeTable/readme.md diff --git a/src/routes.js b/src/routes.js index cb9060a..94a5141 100755 --- a/src/routes.js +++ b/src/routes.js @@ -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: '通用业务申报', diff --git a/src/views/airRadioMsg/importFFMMsg.vue b/src/views/airRadioMsg/importFFMMsg.vue new file mode 100644 index 0000000..79e596f --- /dev/null +++ b/src/views/airRadioMsg/importFFMMsg.vue @@ -0,0 +1,47 @@ +<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> diff --git a/src/views/airRadioMsg/importFHLMsg.vue b/src/views/airRadioMsg/importFHLMsg.vue new file mode 100644 index 0000000..b5297ea --- /dev/null +++ b/src/views/airRadioMsg/importFHLMsg.vue @@ -0,0 +1,47 @@ +<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> diff --git a/src/views/airRadioMsg/importFWBMsg.vue b/src/views/airRadioMsg/importFWBMsg.vue new file mode 100644 index 0000000..b78abc2 --- /dev/null +++ b/src/views/airRadioMsg/importFWBMsg.vue @@ -0,0 +1,47 @@ +<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>