作者 shenhailong

合并

1 { 1 {
2 "presets": ["es2015", "stage-2"], 2 "presets": ["es2015", "stage-2"],
3 - "plugins": ["transform-runtime"], 3 + "plugins": ["transform-runtime","transform-vue-jsx"],
4 "comments": false 4 "comments": false
5 } 5 }
@@ -23,7 +23,7 @@ module.exports = { @@ -23,7 +23,7 @@ module.exports = {
23 }, 23 },
24 dev: { 24 dev: {
25 env: require('./dev.env'), 25 env: require('./dev.env'),
26 - port: 8001, 26 + port: 4006,
27 autoOpenBrowser: true, 27 autoOpenBrowser: true,
28 assetsSubDirectory: 'static', 28 assetsSubDirectory: 'static',
29 assetsPublicPath: '/', 29 assetsPublicPath: '/',
@@ -975,6 +975,12 @@ @@ -975,6 +975,12 @@
975 "integrity": "sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4=", 975 "integrity": "sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4=",
976 "dev": true 976 "dev": true
977 }, 977 },
  978 + "babel-plugin-syntax-jsx": {
  979 + "version": "6.18.0",
  980 + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz",
  981 + "integrity": "sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY=",
  982 + "dev": true
  983 + },
978 "babel-plugin-syntax-object-rest-spread": { 984 "babel-plugin-syntax-object-rest-spread": {
979 "version": "6.13.0", 985 "version": "6.13.0",
980 "resolved": "https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz", 986 "resolved": "https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz",
@@ -1317,6 +1323,15 @@ @@ -1317,6 +1323,15 @@
1317 "babel-types": "^6.24.1" 1323 "babel-types": "^6.24.1"
1318 } 1324 }
1319 }, 1325 },
  1326 + "babel-plugin-transform-vue-jsx": {
  1327 + "version": "3.7.0",
  1328 + "resolved": "https://registry.npmjs.org/babel-plugin-transform-vue-jsx/-/babel-plugin-transform-vue-jsx-3.7.0.tgz",
  1329 + "integrity": "sha512-W39X07/n3oJMQd8tALBO+440NraGSF//Lo1ydd/9Nme3+QiRGFBb1Q39T9iixh0jZPPbfv3so18tNoIgLatymw==",
  1330 + "dev": true,
  1331 + "requires": {
  1332 + "esutils": "^2.0.2"
  1333 + }
  1334 + },
1320 "babel-polyfill": { 1335 "babel-polyfill": {
1321 "version": "6.26.0", 1336 "version": "6.26.0",
1322 "resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz", 1337 "resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz",
@@ -33,10 +33,13 @@ @@ -33,10 +33,13 @@
33 "autoprefixer": "^6.7.2", 33 "autoprefixer": "^6.7.2",
34 "axios-mock-adapter": "^1.7.1", 34 "axios-mock-adapter": "^1.7.1",
35 "babel-core": "^6.22.1", 35 "babel-core": "^6.22.1",
  36 + "babel-helper-vue-jsx-merge-props": "^2.0.3",
36 "babel-loader": "^6.2.10", 37 "babel-loader": "^6.2.10",
  38 + "babel-plugin-syntax-jsx": "^6.18.0",
37 "babel-plugin-transform-runtime": "^6.22.0", 39 "babel-plugin-transform-runtime": "^6.22.0",
  40 + "babel-plugin-transform-vue-jsx": "^3.7.0",
38 "babel-polyfill": "^6.16.0", 41 "babel-polyfill": "^6.16.0",
39 - "babel-preset-env": "^1.2.1", 42 + "babel-preset-env": "^1.7.0",
40 "babel-preset-es2015": "^6.0.0", 43 "babel-preset-es2015": "^6.0.0",
41 "babel-preset-stage-2": "^6.22.0", 44 "babel-preset-stage-2": "^6.22.0",
42 "babel-register": "^6.22.0", 45 "babel-register": "^6.22.0",
  1 +const loginuserInfo = JSON.parse(sessionStorage.getItem('user'));
  2 +export default loginuserInfo;
  1 +import axios from 'axios'
  2 +
  3 +let base = 'hqpt-process/job';
  4 +
  5 +
  6 +export const getList = params => { return axios.get(`${base}/list`, { params: params }); };
  7 +
  8 +
  9 +export const remove = params => { return axios({
  10 + method: 'DELETE',
  11 + url: `${base}/del`,
  12 + data: params,
  13 + headers: {
  14 + 'Content-Type': 'application/json;charset=UTF-8'
  15 + }
  16 +})};
  17 +
  18 +//批量删除
  19 +export const batchRemove = params => { return axios.get(`${base}/batchremove`, { params: params }); };
  20 +
  21 +export const edit = params => { return axios({
  22 + method: 'PUT',
  23 + url: `${base}/edit`,
  24 + data: params,
  25 + headers: {
  26 + 'Content-Type': 'application/json;charset=UTF-8'
  27 + }
  28 +})};
  29 +
  30 +export const add = params => { return axios({
  31 + method: 'POST',
  32 + url: `${base}/add`,
  33 + params: params,
  34 + headers: {
  35 + 'Content-Type': 'application/json;charset=UTF-8'
  36 + }
  37 +})};
  38 +
  39 +export const startJob = params => { return axios({
  40 + method: 'PUT',
  41 + url: `${base}/start`,
  42 + data: params,
  43 + headers: {
  44 + 'Content-Type': 'application/json;charset=UTF-8'
  45 + }
  46 +})};
  1 +import axios from 'axios'
  2 +
  3 +let base = 'hqpt-process/process';
  4 +
  5 +
  6 +export const getList = params => { return axios.get(`${base}/list`, { params: params }); };
  7 +
  8 +
  9 +export const remove = params => { return axios({
  10 + method: 'DELETE',
  11 + url: `${base}/del`,
  12 + data: params,
  13 + headers: {
  14 + 'Content-Type': 'application/json;charset=UTF-8'
  15 + }
  16 +})};
  17 +
  18 +//批量删除
  19 +export const batchRemove = params => { return axios.get(`${base}/batchremove`, { params: params }); };
  20 +
  21 +export const edit = params => { return axios({
  22 + method: 'PUT',
  23 + url: `${base}/edit`,
  24 + data: params,
  25 + headers: {
  26 + 'Content-Type': 'application/json;charset=UTF-8'
  27 + }
  28 +})};
  29 +
  30 +export const add = params => { return axios({
  31 + method: 'POST',
  32 + url: `${base}/add`,
  33 + params: params,
  34 + headers: {
  35 + 'Content-Type': 'application/json;charset=UTF-8'
  36 + }
  37 +})};
  38 +
  39 +export const updateRolePerm = params => { return axios({
  40 + method: 'PUT',
  41 + url: `${base}/permSet`,
  42 + data: params,
  43 + headers: {
  44 + 'Content-Type': 'application/json;charset=UTF-8'
  45 + }
  46 +})};
  47 +
  48 +export const vacationTypeOptions = [
  49 + {
  50 + value: '0',
  51 + label: '运维检查'
  52 + },
  53 + {
  54 + value: '1',
  55 + label: '设备故障'
  56 + },
  57 + {
  58 + value: '2',
  59 + label: '电话报修'
  60 + }
  61 +];
@@ -84,6 +84,8 @@ let routes = [ @@ -84,6 +84,8 @@ let routes = [
84 { path: '/security_inspection', component: SecrityInspection, name: '职工公寓安全巡视管理' }, 84 { path: '/security_inspection', component: SecrityInspection, name: '职工公寓安全巡视管理' },
85 { path: '/key', component: Key, name: '职工公寓备用钥匙使用登记管理' }, 85 { path: '/key', component: Key, name: '职工公寓备用钥匙使用登记管理' },
86 { path: '/maintain', component: Maintain, name: '职工公寓设施设备维修记录管理' }, 86 { path: '/maintain', component: Maintain, name: '职工公寓设施设备维修记录管理' },
  87 + { path: '/come_car', component: ComeCar, name: '职工公寓外来人员车辆登记管理' },
  88 + { path: '/on_duty', component: OnDuty, name: '职工公寓值班巡视记录管理' },
87 ] 89 ]
88 }, 90 },
89 { 91 {
@@ -378,6 +378,7 @@ @@ -378,6 +378,7 @@
378 } 378 }
379 }); 379 });
380 }, 380 },
  381 +
381 //编辑 382 //编辑
382 editSubmit: function () { 383 editSubmit: function () {
383 this.$refs.editForm.validate((valid) => { 384 this.$refs.editForm.validate((valid) => {
不能预览此文件类型

3.0 KB | 宽: | 高:

3.0 KB | 宽: | 高:

  • 两方对比
  • 交换覆盖
  • 透明覆盖

494.8 KB | 宽: | 高:

494.8 KB | 宽: | 高:

  • 两方对比
  • 交换覆盖
  • 透明覆盖
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型