作者 shenhailong

安检清单 前端所有功能

此 diff 太大无法显示。
@@ -10,10 +10,12 @@ @@ -10,10 +10,12 @@
10 "build": "node build/build.js" 10 "build": "node build/build.js"
11 }, 11 },
12 "dependencies": { 12 "dependencies": {
  13 + "@xkeshi/vue-barcode": "^1.0.0",
13 "axios": "^0.19.0", 14 "axios": "^0.19.0",
14 "echarts": "^3.3.2", 15 "echarts": "^3.3.2",
15 "element-ui": "^2.13.0", 16 "element-ui": "^2.13.0",
16 "eslint": "^5.14.1", 17 "eslint": "^5.14.1",
  18 + "eslint-plugin-html": "^6.0.2",
17 "fecha": "^4.2.0", 19 "fecha": "^4.2.0",
18 "file-saver": "^2.0.2", 20 "file-saver": "^2.0.2",
19 "font-awesome": "^4.7.0", 21 "font-awesome": "^4.7.0",
@@ -62,7 +64,7 @@ @@ -62,7 +64,7 @@
62 "http-proxy-middleware": "^0.19.1", 64 "http-proxy-middleware": "^0.19.1",
63 "json-loader": "^0.5.4", 65 "json-loader": "^0.5.4",
64 "mockjs": "^1.0.1-beta3", 66 "mockjs": "^1.0.1-beta3",
65 - "node-sass": "^4.14.1", 67 + "node-sass": "^4.5.0",
66 "opn": "^4.0.2", 68 "opn": "^4.0.2",
67 "optimize-css-assets-webpack-plugin": "^1.3.0", 69 "optimize-css-assets-webpack-plugin": "^1.3.0",
68 "ora": "^1.0.0", 70 "ora": "^1.0.0",
@@ -12,6 +12,8 @@ export const updateMT2201 = params => { return http.put(`${baseUrl}/updateMt2201 @@ -12,6 +12,8 @@ export const updateMT2201 = params => { return http.put(`${baseUrl}/updateMt2201
12 12
13 export const addMt2201 = params => { return http.post(`${baseUrl}/addMt2201`,params)}; 13 export const addMt2201 = params => { return http.post(`${baseUrl}/addMt2201`,params)};
14 14
  15 +export const selectSecurityAwba = params => { return http.get(`${baseUrl}/selectSecurityAwba`,params)};
  16 +
15 export const getLostLoadChange = params => { return http.get(`${baseUrl}/getLostLoadChange`, params)}; 17 export const getLostLoadChange = params => { return http.get(`${baseUrl}/getLostLoadChange`, params)};
16 18
17 export const saveLostChange = params => { return http.get(`${baseUrl}/saveLostChange`, params)}; 19 export const saveLostChange = params => { return http.get(`${baseUrl}/saveLostChange`, params)};
  1 +import http from '../http.js'
  2 +import axios from "axios";
  3 +
  4 +let baseUrl = 'wltp-security-declaration/security'
  5 +
  6 +export const getList = params => { return http.get(`${baseUrl}/list`, params)};
  7 +
  8 +export const remove = params => { return axios.delete(`${baseUrl}/remove`, { params: params }); };
  9 +
  10 +export const edit = params => { return http.put(`${baseUrl}/edit`, params)};
  11 +
  12 +export const add = params => { return http.post(`${baseUrl}/add`,params)};
  13 +
  14 +
1 -  
2 import Vue from 'vue' 1 import Vue from 'vue'
3 import App from './App' 2 import App from './App'
4 import ElementUI from 'element-ui' 3 import ElementUI from 'element-ui'
@@ -17,6 +16,10 @@ import * as socketApi from './api/socket' @@ -17,6 +16,10 @@ import * as socketApi from './api/socket'
17 import '@/styles/index.scss' 16 import '@/styles/index.scss'
18 import sys_init from '@/common/init/sys_init' 17 import sys_init from '@/common/init/sys_init'
19 18
  19 +// 条形组件
  20 +import VueBarcode from '@xkeshi/vue-barcode'; //导入条形码插件
  21 +Vue.component('barcode', VueBarcode);
  22 +
20 23
21 //定义一个全局过滤器实现日期格式化 24 //定义一个全局过滤器实现日期格式化
22 Vue.filter('datefmt',function(input,fmtstring){ 25 Vue.filter('datefmt',function(input,fmtstring){
@@ -85,6 +85,7 @@ import outConfigure from './views/airtransport/outConfigure.vue' @@ -85,6 +85,7 @@ import outConfigure from './views/airtransport/outConfigure.vue'
85 import queryFlightConfigure from './views/airtransport/queryFlightConfigure.vue' 85 import queryFlightConfigure from './views/airtransport/queryFlightConfigure.vue'
86 import Consigner from './views/consigner/consigner.vue' 86 import Consigner from './views/consigner/consigner.vue'
87 import Consignee from './views/consigner/consignee.vue' 87 import Consignee from './views/consigner/consignee.vue'
  88 +import Security from './views/security/security.vue'
88 89
89 90
90 91
@@ -187,6 +188,15 @@ let routes = [ @@ -187,6 +188,15 @@ let routes = [
187 ] 188 ]
188 }, 189 },
189 { 190 {
  191 + path: '/sec',
  192 + component: Home,
  193 + name: '安检清单申报管理',
  194 + iconCls: 'el-icon-collection',
  195 + children: [
  196 + {path: '/security', component: Security, name: '安检清单申报'}
  197 + ]
  198 + },
  199 + {
190 path: '/nmms2', 200 path: '/nmms2',
191 component: Home, 201 component: Home,
192 name: '进港业务申报', 202 name: '进港业务申报',
此 diff 太大无法显示。