apply-clients 3.3.94 → 3.3.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,76 +1,76 @@
1
- var express = require('express')
2
- var webpack = require('webpack')
3
- var config = require('./webpack.dev.conf')
4
- var proxyMiddleware = require('http-proxy-middleware')
5
- // var httpProxy = require('http-proxy')
6
- var app = express()
7
- var compiler = webpack(config)
8
- // var proxy = httpProxy.createProxyServer()
9
-
10
- // Define HTTP proxies to your custom API backend
11
- // https://github.com/chimurai/http-proxy-middleware
12
- var proxyTable = {
13
- '/rs': {
14
- target: 'http://192.168.20.27:8555'
15
- // target: 'http://192.168.30.86:8077'
16
- },
17
- '/AndroidRest/rs': {
18
- target: 'http://192.168.20.27:8555'
19
- }
20
- }
21
-
22
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
23
- publicPath: config.output.publicPath,
24
- stats: {
25
- colors: true,
26
- chunks: false
27
- }
28
- })
29
-
30
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
31
- // force page reload when html-webpack-plugin template changes
32
- compiler.plugin('compilation', function (compilation) {
33
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
34
- hotMiddleware.publish({action: 'reload'})
35
- cb()
36
- })
37
- })
38
-
39
- // proxy api requests
40
- Object.keys(proxyTable).forEach(function (context) {
41
- var options = proxyTable[context]
42
- if (typeof options === 'string') {
43
- options = {target: options}
44
- }
45
- app.use(proxyMiddleware(context, options))
46
- })
47
-
48
- // handle fallback for HTML5 history API
49
- app.use(require('connect-history-api-fallback')())
50
- // app.use(function (req, res, next) {
51
- // res.header('Access-Control-Allow-Origin', '*')
52
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
53
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
54
- // res.header('X-Powered-By', '3,2,1')
55
- // res.header('Access-Control-Allow-Credentials', 'true')
56
- // res.header('Content-Type', 'application/json;charset=utf-8')
57
- // next()
58
- // })
59
-
60
- // serve webpack bundle output
61
- app.use(devMiddleware)
62
-
63
- // enable hot-reload and state-preserving
64
- // compilation error display
65
- app.use(hotMiddleware)
66
-
67
- // serve pure static assets
68
- app.use('/static', express.static('./static'))
69
-
70
- module.exports = app.listen(8089, function (err) {
71
- if (err) {
72
- console.log(err)
73
- return
74
- }
75
- console.log('Listening at http://localhost:8089')
76
- })
1
+ var express = require('express')
2
+ var webpack = require('webpack')
3
+ var config = require('./webpack.dev.conf')
4
+ var proxyMiddleware = require('http-proxy-middleware')
5
+ // var httpProxy = require('http-proxy')
6
+ var app = express()
7
+ var compiler = webpack(config)
8
+ // var proxy = httpProxy.createProxyServer()
9
+
10
+ // Define HTTP proxies to your custom API backend
11
+ // https://github.com/chimurai/http-proxy-middleware
12
+ var proxyTable = {
13
+ '/rs': {
14
+ target: 'http://192.168.20.27:8555'
15
+ // target: 'http://192.168.30.86:8077'
16
+ },
17
+ '/AndroidRest/rs': {
18
+ target: 'http://192.168.20.27:8555'
19
+ }
20
+ }
21
+
22
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
23
+ publicPath: config.output.publicPath,
24
+ stats: {
25
+ colors: true,
26
+ chunks: false
27
+ }
28
+ })
29
+
30
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
31
+ // force page reload when html-webpack-plugin template changes
32
+ compiler.plugin('compilation', function (compilation) {
33
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
34
+ hotMiddleware.publish({action: 'reload'})
35
+ cb()
36
+ })
37
+ })
38
+
39
+ // proxy api requests
40
+ Object.keys(proxyTable).forEach(function (context) {
41
+ var options = proxyTable[context]
42
+ if (typeof options === 'string') {
43
+ options = {target: options}
44
+ }
45
+ app.use(proxyMiddleware(context, options))
46
+ })
47
+
48
+ // handle fallback for HTML5 history API
49
+ app.use(require('connect-history-api-fallback')())
50
+ // app.use(function (req, res, next) {
51
+ // res.header('Access-Control-Allow-Origin', '*')
52
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
53
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
54
+ // res.header('X-Powered-By', '3,2,1')
55
+ // res.header('Access-Control-Allow-Credentials', 'true')
56
+ // res.header('Content-Type', 'application/json;charset=utf-8')
57
+ // next()
58
+ // })
59
+
60
+ // serve webpack bundle output
61
+ app.use(devMiddleware)
62
+
63
+ // enable hot-reload and state-preserving
64
+ // compilation error display
65
+ app.use(hotMiddleware)
66
+
67
+ // serve pure static assets
68
+ app.use('/static', express.static('./static'))
69
+
70
+ module.exports = app.listen(8089, function (err) {
71
+ if (err) {
72
+ console.log(err)
73
+ return
74
+ }
75
+ console.log('Listening at http://localhost:8089')
76
+ })
@@ -9,30 +9,20 @@ var compiler = webpack(config)
9
9
  // var ldap = 'http://121.36.79.201:8400'
10
10
  // var applyinstall = 'http://121.36.79.201:8400'
11
11
  var ldap = 'http://192.168.20.28:8400'
12
- var applyinstall = 'http://127.0.0.1:8080'
13
- // var ldap = 'http://192.168.20.28:8556'
14
- // var applyinstall = 'http://192.168.20.28:8556'
12
+ // var applyinstall = 'http://192.168.20.28:8400'
13
+ var applyinstall = 'http://127.0.0.1:8081'
15
14
  var proxyTable = {
16
15
  '/wx': {
17
16
  target: ldap
18
17
  },
19
- '/ncc': {
20
- target: 'http://192.168.20.27:7890'
21
- },
22
18
  '/rs/sql/filemanage_getUserfies/n': {
23
19
  target: ldap
24
20
  },
25
21
  '/rs/sql/filemanage_getUserfies': {
26
22
  target: ldap
27
23
  },
28
- '/rs/entity/t_apply': {
29
- target: 'http://127.0.0.1:8080'
30
- },
31
- '/rs/logic/ApplyProductService': {
32
- target: 'http://127.0.0.1:8080'
33
- },
34
- '/rs/sql/checkuser': {
35
- target: 'http://127.0.0.1:8080'
24
+ '/rs/logic/saveInsInfo': {
25
+ target: ldap
36
26
  },
37
27
  '/rs/logic/exportfile': {
38
28
  target: ldap
@@ -40,36 +30,9 @@ var proxyTable = {
40
30
  '/rs/logic/getBatchOperaPro': {
41
31
  target: ldap
42
32
  },
43
- '/rs/sql/getApplyCharge': {
44
- target: 'http://127.0.0.1:8080'
45
- },
46
- '/rs/sql/getChargeAll': {
47
- target: 'http://127.0.0.1:8080'
48
- },
49
- '/rs/sql/supervisory': {
50
- target: 'http://127.0.0.1:8080'
51
- },
52
33
  '/rs/logic/updateApplyOrder': {
53
34
  target: ldap
54
35
  },
55
- // '/rs/sql/getAddresAndUserinfoAndUserfilesAmount': {
56
- // target: 'http://127.0.0.1:8080'
57
- // },
58
- // '/rs/sql/singleTable': {
59
- // target: 'http://127.0.0.1:8080'
60
- // },
61
- // '/rs/sql/countApplyUserinfo': {
62
- // target: 'http://127.0.0.1:8080'
63
- // },
64
- // '/rs/sql/getStockMaterial': {
65
- // target: 'http://127.0.0.1:8080'
66
- // },
67
- '/rs/logic/resAreaSelect': {
68
- target: 'http://127.0.0.1:8080'
69
- },
70
- // '/rs/logic/bjqCheck': {
71
- // target: 'http://127.0.0.1:8080'
72
- // },
73
36
  '/rs/logic/getSaleInitData': {
74
37
  target: ldap
75
38
  },
@@ -156,10 +119,10 @@ app.use(hotMiddleware)
156
119
  // serve pure static assets
157
120
  app.use('/static', express.static('./static'))
158
121
 
159
- module.exports = app.listen(8300, function (err) {
122
+ module.exports = app.listen(8600, function (err) {
160
123
  if (err) {
161
124
  console.log(err)
162
125
  return
163
126
  }
164
- console.log('Listening at http://localhost:8300')
127
+ console.log('Listening at http://localhost:8600')
165
128
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.3.94",
3
+ "version": "3.3.95",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
package/src/App.vue CHANGED
@@ -1,22 +1,20 @@
1
- <template>
2
- <div>
3
- <app-base class="bg">
4
- <div class='flex'>
5
- <article>
6
- <route :comp="{name: 'login'}"></route>
7
- <!-- <route :comp="{name: 'login-app'}"></route>-->
8
-
9
- </article>
10
- </div>
11
- </app-base>
12
- </div>
13
- </template>
14
-
15
- <script>
16
-
17
-
18
- export default {
19
-
20
-
21
- }
22
- </script>
1
+ <template>
2
+ <div>
3
+ <app-base class="bg">
4
+ <div class='flex'>
5
+ <article>
6
+ <route :comp="{name: 'login'}"></route>
7
+ </article>
8
+ </div>
9
+ </app-base>
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+
15
+
16
+ export default {
17
+
18
+
19
+ }
20
+ </script>
@@ -37,17 +37,10 @@ export default {
37
37
  this.$emit('sign-clean')
38
38
  },
39
39
  sign () {
40
- console.log('==============签字开始============')
41
- console.log(this.f_sign_path)
42
- console.log(guid() )
43
40
  this.delAudioFile(this.f_sign_path)
44
- console.log(this.signCallback)
45
41
  this.fileName = guid() + '.jpg'
46
- console.log(this.fileName)
47
42
  HostApp.__callback__ = this.signCallback
48
43
  HostApp.__this__ = this
49
-
50
-
51
44
  HostApp.getSignature({
52
45
  file: this.fileName,
53
46
  requestCode: 111,
@@ -69,6 +62,7 @@ export default {
69
62
  uploadFile () {
70
63
  console.log('===================签字文件上传==============')
71
64
  let data = {
65
+ blodid: HostApp.__this__.blobid,
72
66
  username: Vue.user.name,
73
67
  fremarks: '报装手机签字文件',
74
68
  fileName: HostApp.__this__.fileName,
@@ -78,8 +72,8 @@ export default {
78
72
  console.log('-----------bzLogic-----------------')
79
73
  console.log(JSON.stringify(data))
80
74
  let res = HostApp.bzLogic({
81
- 'logic': 'appFileUpload',
82
- 'data': data
75
+ 'logic': 'appFileUpload',
76
+ 'data': data
83
77
  })
84
78
  console.log('===============上传回调=================')
85
79
  console.log(JSON.stringify(res))
@@ -108,8 +102,6 @@ export default {
108
102
  this.$emit('sign-success', fileUrl)
109
103
  },
110
104
  delAudioFile (signPath) {
111
- console.log('=========回调===============')
112
- console.log(signPath)
113
105
  if (!signPath) {
114
106
  return
115
107
  }
@@ -1,144 +1,143 @@
1
- <template>
2
- <div class="panel">
3
- <div class="panel-body panel-self" style="background-color: #F8F8F8;">
4
- <div class="row form-group" style="height: 240px;overflow: scroll;">
5
- <div class="col-xs-4 col-sm-3 col-md-2 col-xs-offset-1 col-sm-offset-1 col-md-offset-1" v-for="(index,file) in fileList">
6
- <img-self :src="file.f_downloadURL" :width="120" :height="170"></img-self>
7
- <img v-if="isdelete" src="../../../src/assets/删除.png" style="width: 15px;margin-top: -80px" @click.prevent="delfile(file, index)">
8
- </div>
9
- </div>
10
- <div class="row text-right form-group" v-if="istakepic">
11
- <v-select
12
- class="fileType"
13
- placeholder="请选择使用类型"
14
- v-if="istype"
15
- :search="false"
16
- close-on-select
17
- value-single
18
- :options="typeList"
19
- v-model="type"
20
- :value.sync="type"
21
- ></v-select>
22
- <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click.prevent="takePic(type)">拍照</button>
23
- </div>
24
- </div>
25
- </div>
26
- </template>
27
-
28
- <script>
29
- import {HttpResetClass} from 'vue-client'
30
- import {guid, toStandardTimeString} from '../Util'
31
- import Vue from 'vue'
32
- export default {
33
- title: '附件',
34
- props: ['blobid', 'type', 'defname', 'istype', 'typelabel', 'isdelete', 'istakepic'],
35
- data () {
36
- return {
37
- fileList: []
38
- }
39
- },
40
- ready () {
41
- this.getFiles()
42
- },
43
- methods: {
44
- async getFiles () {
45
- console.log('----------------开始查询图片----------------')
46
- this.fileList = []
47
-
48
- let http = new HttpResetClass()
49
-
50
- let data = {
51
- tablename: 't_files',
52
- condition: `f_blobid = '${this.blobid}' and fremarks = '手机拍照' order by f_uploaddate desc `
53
- }
54
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
55
- // let res = await http.load('POST', `rs/sql/singleTable`, {data: data}, {
56
- warnMsg: null,
57
- resolveMsg: null
58
- })
59
-
60
- for (var i = 0; i < res.data.length; i++) {
61
- console.log('-----------地址----------------')
62
- console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`)
63
- res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
64
- }
65
-
66
- this.fileList = res.data
67
- },
68
- delfile (file, index) {
69
- console.log('-----------文件----------------')
70
- this.$resetdelete(`${this.$androidUtil.getProxyUrl()}/rs/entity/t_files`, {id: file.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
71
- this.$dispatch("delResid", file.id)
72
- this.getFiles()
73
- })
74
- },
75
- takePic (title) {
76
- // 拍照成功回调
77
- HostApp.__callback__ = this.cameraCallBack
78
- HostApp.__this__ = this
79
- let fileName = guid() + '.jpg'
80
- // 打开相机
81
- HostApp._open_a_page({
82
- type: 'boomerang',
83
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
84
- param: {
85
- file: fileName,
86
- requestCode: 200,
87
- callback: 'javascript:HostApp.__callback__("' + fileName + '", "%s");',
88
- watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
89
- }
90
- })
91
- },
92
- cameraCallBack (fileName, fileUrl) {
93
- console.log('-----------cameraCallBack-----------------')
94
-
95
- let data = {
96
- blodid: HostApp.__this__.blobid,
97
- type: HostApp.__this__.type,
98
- defname: HostApp.__this__.defname,
99
- username: Vue.user.name,
100
- fremarks: '手机拍照',
101
- fileName: fileName,
102
- fileUrl: fileUrl
103
- }
104
-
105
- console.log('-----------bzLogic-----------------')
106
- HostApp.bzLogic({
107
- 'logic': 'appFileUpload',
108
- 'data': data
109
- })
110
-
111
- console.log('----------------开始回调查询-------------------')
112
- HostApp.__this__.getFiles()
113
- console.log('----------------查询回调结束-------------------')
114
-
115
- HostApp.__callback__ = null
116
- HostApp.__this__ = null
117
- }
118
- },
119
- computed: {
120
- typeList () {
121
- if (this.typelabel) {
122
- return this.$appdata.getParam(this.typelabel)
123
- }
124
- return this.$appdata.getParam('使用类型')
125
- }
126
- },
127
- events: {
128
- }
129
- }
130
- </script>
131
-
132
- <style lang="less">
133
- .fileType {
134
- float: left;
135
- .select-style {
136
- background: #f8f8f8;
137
- border: 0px;
138
- }
139
- input {
140
- border-left: none;
141
- width: 100%;
142
- }
143
- }
144
- </style>
1
+ <template>
2
+ <div class="panel">
3
+ <div class="panel-body panel-self" style="background-color: #F8F8F8;">
4
+ <div class="row form-group" style="height: 240px;overflow: scroll;">
5
+ <div class="col-xs-4 col-sm-3 col-md-2 col-xs-offset-1 col-sm-offset-1 col-md-offset-1" v-for="(index,file) in fileList">
6
+ <img-self :src="file.f_downloadURL" :width="120" :height="170"></img-self>
7
+ <img v-if="isdelete" src="../../../src/assets/删除.png" style="width: 15px;margin-top: -80px" @click.prevent="delfile(file, index)">
8
+ </div>
9
+ </div>
10
+ <div class="row text-right form-group" v-if="istakepic">
11
+ <v-select
12
+ class="fileType"
13
+ placeholder="请选择使用类型"
14
+ v-if="istype"
15
+ :search="false"
16
+ close-on-select
17
+ value-single
18
+ :options="typeList"
19
+ v-model="type"
20
+ :value.sync="type"
21
+ ></v-select>
22
+ <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click.prevent="takePic(type)">拍照</button>
23
+ </div>
24
+ </div>
25
+ </div>
26
+ </template>
27
+
28
+ <script>
29
+ import {HttpResetClass} from 'vue-client'
30
+ import {guid, toStandardTimeString} from '../Util'
31
+ import Vue from 'vue'
32
+ export default {
33
+ title: '附件',
34
+ props: ['blobid', 'type', 'defname', 'istype', 'typelabel', 'isdelete', 'istakepic'],
35
+ data () {
36
+ return {
37
+ fileList: []
38
+ }
39
+ },
40
+ ready () {
41
+ this.getFiles()
42
+ },
43
+ methods: {
44
+ async getFiles () {
45
+ console.log('----------------开始查询图片----------------')
46
+ this.fileList = []
47
+
48
+ let http = new HttpResetClass()
49
+
50
+ let data = {
51
+ tablename: 't_files',
52
+ condition: `f_blobid = '${this.blobid}' and fremarks = '手机拍照' order by f_uploaddate desc `
53
+ }
54
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
55
+ // let res = await http.load('POST', `rs/sql/singleTable`, {data: data}, {
56
+ warnMsg: null,
57
+ resolveMsg: null
58
+ })
59
+
60
+ for (var i = 0; i < res.data.length; i++) {
61
+ console.log('-----------地址----------------')
62
+ console.log(`${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`)
63
+ res.data[i].f_downloadURL = `${this.$androidUtil.getProxyUrl()}/${res.data[i].f_downloadpath.substring(res.data[i].f_downloadpath.lastIndexOf(":\\") + 2)}`
64
+ }
65
+
66
+ this.fileList = res.data
67
+ },
68
+ delfile (file, index) {
69
+ this.$resetdelete(`${this.$androidUtil.getProxyUrl()}/rs/entity/t_files`, {id: file.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
70
+ this.$dispatch("delResid", file.id)
71
+ this.getFiles()
72
+ })
73
+ },
74
+ takePic (title) {
75
+ // 拍照成功回调
76
+ HostApp.__callback__ = this.cameraCallBack
77
+ HostApp.__this__ = this
78
+ let fileName = guid() + '.jpg'
79
+ // 打开相机
80
+ HostApp._open_a_page({
81
+ type: 'boomerang',
82
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
83
+ param: {
84
+ file: fileName,
85
+ requestCode: 200,
86
+ callback: 'javascript:HostApp.__callback__("' + fileName + '", "%s");',
87
+ watermark: title + '\t时间:' + toStandardTimeString() + '\t' + Vue.user.name // 水印
88
+ }
89
+ })
90
+ },
91
+ cameraCallBack (fileName, fileUrl) {
92
+ console.log('-----------cameraCallBack-----------------')
93
+
94
+ let data = {
95
+ blodid: HostApp.__this__.blobid,
96
+ type: HostApp.__this__.type,
97
+ defname: HostApp.__this__.defname,
98
+ username: Vue.user.name,
99
+ fremarks: '手机拍照',
100
+ fileName: fileName,
101
+ fileUrl: fileUrl
102
+ }
103
+
104
+ console.log('-----------bzLogic-----------------')
105
+ HostApp.bzLogic({
106
+ 'logic': 'appFileUpload',
107
+ 'data': data
108
+ })
109
+
110
+ console.log('----------------开始回调查询-------------------')
111
+ HostApp.__this__.getFiles()
112
+ console.log('----------------查询回调结束-------------------')
113
+
114
+ HostApp.__callback__ = null
115
+ HostApp.__this__ = null
116
+ }
117
+ },
118
+ computed: {
119
+ typeList () {
120
+ if (this.typelabel) {
121
+ return this.$appdata.getParam(this.typelabel)
122
+ }
123
+ return this.$appdata.getParam('使用类型')
124
+ }
125
+ },
126
+ events: {
127
+ }
128
+ }
129
+ </script>
130
+
131
+ <style lang="less">
132
+ .fileType {
133
+ float: left;
134
+ .select-style {
135
+ background: #f8f8f8;
136
+ border: 0px;
137
+ }
138
+ input {
139
+ border-left: none;
140
+ width: 100%;
141
+ }
142
+ }
143
+ </style>