apply-clients 3.3.105 → 3.3.107-2

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.
package/.project ADDED
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <projectDescription>
3
+ <name>ApplyClient</name>
4
+ <comment></comment>
5
+ <projects>
6
+ </projects>
7
+ <buildSpec>
8
+ <buildCommand>
9
+ <name>org.eclipse.wst.validation.validationbuilder</name>
10
+ <arguments>
11
+ </arguments>
12
+ </buildCommand>
13
+ </buildSpec>
14
+ <natures>
15
+ <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
16
+ </natures>
17
+ </projectDescription>
@@ -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
+ })
@@ -8,13 +8,31 @@ var compiler = webpack(config)
8
8
  // var proxy = httpProxy.createProxyServer()
9
9
  // var ldap = 'http://121.36.79.201:8400'
10
10
  // var applyinstall = 'http://121.36.79.201:8400'
11
- var ldap = 'http://192.168.20.28:8400'
12
- var applyinstall = 'http://192.168.20.28:8400'
13
- // var applyinstall = 'http://127.0.0.1:8081'
11
+ var ldap = 'http://192.168.20.28:8556'
12
+ //var applyinstall = 'http://192.168.20.28:8556'
13
+ var applyinstall = 'http://192.168.20.28:8556'
14
14
  var proxyTable = {
15
15
  '/wx': {
16
16
  target: ldap
17
17
  },
18
+ // '/ncc': {
19
+ // target: 'http://192.168.20.28:7890'
20
+ // },
21
+ '/rs/logic/bjqadduser': {
22
+ target: 'http://127.0.0.1:8081'
23
+ },
24
+ '/rs/logic/bjqcheck': {
25
+ target: 'http://127.0.0.1:8081'
26
+ },
27
+ '/rs/logic/gdMapTransBMap': {
28
+ target: 'http://127.0.0.1:8081'
29
+ },
30
+ '/rs/logic/saveArea': {
31
+ target: 'http://127.0.0.1:8080'
32
+ },
33
+ '/rs/logic/applyBjqMap': {
34
+ target: 'http://127.0.0.1:8080'
35
+ },
18
36
  '/rs/sql/filemanage_getUserfies/n': {
19
37
  target: ldap
20
38
  },
@@ -119,10 +137,10 @@ app.use(hotMiddleware)
119
137
  // serve pure static assets
120
138
  app.use('/static', express.static('./static'))
121
139
 
122
- module.exports = app.listen(8600, function (err) {
140
+ module.exports = app.listen(8300, function (err) {
123
141
  if (err) {
124
142
  console.log(err)
125
143
  return
126
144
  }
127
- console.log('Listening at http://localhost:8600')
145
+ console.log('Listening at http://localhost:8300')
128
146
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.3.105",
3
+ "version": "3.3.107-2",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
package/src/App.vue CHANGED
@@ -1,20 +1,21 @@
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>
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
+ </article>
9
+ </div>
10
+ </app-base>
11
+ </div>
12
+ </template>
13
+
14
+ <script>
15
+
16
+
17
+ export default {
18
+
19
+
20
+ }
21
+ </script>
package/src/apply.js CHANGED
@@ -94,4 +94,6 @@ export default function () {
94
94
  Vue.component('res-area-select', (resolve) => { require(['./components/product/AreaSelect/ResAreaSelect'], resolve) })
95
95
  Vue.component('res-area-select-group', (resolve) => { require(['./components/product/AreaSelect/ResAreaSelectGroup'], resolve) })
96
96
  Vue.component('area-select', (resolve) => { require(['./components/product/AreaSelect/MyAreaSelect'], resolve) })
97
+ // 地图组件
98
+ Vue.component('gaode-map', (resolve) => { require(['./components/product/GaoDeMapComponents/GaoDeMap'], resolve) })
97
99
  }
@@ -37,4 +37,6 @@ export default function () {
37
37
  Vue.component('app-res-area-select-group', (resolve) => { require(['./components/android/AreaSelect/AppResAreaSelectGroup'], resolve) })
38
38
  Vue.component('area-select', (resolve) => { require(['./components/product/AreaSelect/MyAreaSelect'], resolve) })
39
39
  Vue.component('apply-print-charge', (resolve) => { require(['./components/product/Process/Processes/Print/printCharge'], resolve) })
40
+ //地图组件
41
+ Vue.component('app-res-area-map-group', (resolve) => { require(['./components/android/AreaSelect/AppResAreaMapGroup'], resolve) })
40
42
  }
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="form-horizontal select-overspread">
3
3
  <validator name='v' @valid="$emit('valid')" @invalid="$emit('invalid')">
4
- <form>
4
+ <!--<form>-->
5
5
  <div v-for="(index,item) in data.fields">
6
6
  <!--input-->
7
7
  <div :style="item.style ? item.style : ''"
@@ -320,7 +320,7 @@
320
320
  </button>
321
321
  </footer>
322
322
  </modal>
323
- </form>
323
+ <!--</form>-->
324
324
  </div>
325
325
  </template>
326
326
  <script>
@@ -446,6 +446,10 @@ export default {
446
446
  console.log("区域为空禁止提交:",this.areaData)
447
447
  flag = true
448
448
  }
449
+ if (this.data.onetomany[0].rows[0].f_bjq_baidu_lng ==null){
450
+ console.log("坐标为空禁止提交:",this.data.onetomany[0].rows[0].f_bjq_baidu_lng)
451
+ flag = true
452
+ }
449
453
  }
450
454
  }
451
455
 
@@ -1,158 +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
- <img :src="f_sign_path" width="100%" height="100%" />
6
- </div>
7
- <div class="row text-right form-group">
8
- <button class="btn" style="background-color: #f1e404;border-radius: 5px;margin-right: 10px" @click="clean">清除</button>
9
- <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click="sign">签名</button>
10
- </div>
11
- </div>
12
- </div>
13
- </template>
14
- <script>
15
- import {getNowDate, guid, isEmpty} from '../Util'
16
- import {PagedList} from 'vue-client'
17
- import {HttpResetClass} from 'vue-client'
18
- import QRCode from 'qrcodejs2'
19
- import Vue from "vue";
20
-
21
- export default {
22
- title: '签字',
23
- props: ['filePath','blobid','type', 'defname'],
24
- data () {
25
- return {
26
- f_sign_path: null,
27
- fileName: null
28
- }
29
- },
30
- ready () {
31
- this.f_sign_path = this.filePath
32
- },
33
- methods: {
34
- clean () {
35
- this.f_sign_path = null
36
- this.fileName = null
37
- this.$emit('sign-clean')
38
- },
39
- sign () {
40
- debugger
41
- this.type='手机签字'
42
- console.log('==============签字打印this============',this)
43
- this.delAudioFile(this.f_sign_path)
44
- this.fileName = guid() + '.jpg'
45
- HostApp.__callback__ = this.signCallback
46
- HostApp.__this__ = this
47
- HostApp.getSignature({
48
- file: this.fileName,
49
- requestCode: 111,
50
- callback: 'javascript:HostApp.__callback__("f_sign_path", "%s");'
51
- })
52
- },
53
- // 签名回调
54
- signCallback (prop, signPath) {
55
- console.log('==============签字回调============')
56
- console.log(signPath)
57
- HostApp.__this__.$set(prop, signPath)
58
- console.log(HostApp.__this__.f_sign_path)
59
-
60
- HostApp.__this__.uploadFile()
61
-
62
- HostApp.__callback__ = null
63
- HostApp.__this__ = null
64
- },
65
- uploadFile () {
66
- console.log('===================签字文件上传==============')
67
- console.log('===================打印id==============',HostApp.__this__.blobid)
68
- let data = {
69
- defname:HostApp.__this__.defname,
70
- type:HostApp.__this__.type,
71
- blodid: HostApp.__this__.blobid,
72
- username: Vue.user.name,
73
- fremarks: '报装手机签字文件',
74
- fileName: HostApp.__this__.fileName,
75
- fileUrl: HostApp.__this__.f_sign_path
76
- }
77
-
78
- console.log('-----------bzLogic-----------------')
79
- console.log(JSON.stringify(data))
80
- let res = HostApp.bzLogic({
81
- 'logic': 'appFileUpload',
82
- 'data': data
83
- })
84
- console.log('===============上传回调=================')
85
- console.log(JSON.stringify(res))
86
- HostApp.__this__.getFiles(res.id)
87
- },
88
- async getFiles (fileid) {
89
- debugger
90
- console.log('=========进来===============')
91
- let http = new HttpResetClass()
92
- console.log('=========进来===============')
93
- let data = {
94
- tablename: 't_files',
95
- condition: `f_blobid = '${this.blobid}' `
96
- }
97
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
98
- // let res = await http.load('POST', `rs/sql/singleTable`, {data: data}, {
99
- warnMsg: null,
100
- resolveMsg: null
101
- })
102
-
103
- console.log('=========查询回调===============')
104
- let fileUrl = `${this.$androidUtil.getProxyUrl()}/${res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)}`
105
- console.log(fileUrl)
106
- // HostApp.__this__.$set('f_sign_path', fileUrl)
107
- // HostApp.__this__.f_sign_path = fileUrl
108
- this.f_sign_path = fileUrl
109
-
110
- this.$emit('sign-success', fileUrl)
111
-
112
-
113
- HostApp.__this__.getFiles()
114
- console.log('----------------查询回调结束-------------------')
115
-
116
- HostApp. = null
117
- HostApp.__this__ = null
118
- },
119
- delAudioFile (signPath) {
120
- if (!signPath) {
121
- return
122
- }
123
- HostApp.delfile(signPath)
124
- this.f_sign_path = null
125
- this.fileName = null
126
- }
127
- },
128
- events: {
129
- },
130
- computed: {
131
- },
132
- watch: {
133
- }
134
- }
135
- </script>
136
- <style scoped lang="less">
137
- .qrcode {
138
- display: inline-block !important;
139
- margin: 10px 0px;
140
- }
141
- .panel-self{
142
- border-radius: 10px;
143
- border:1px solid #499EDF;
144
- background-color: #F8F8F8;
145
- }
146
- .vertical-center {
147
- display: flex;
148
- align-items: center;
149
- text-align: center;
150
- }
151
- /*清除model中的浮动*/
152
- .clearfix:after,.clearfix:before{
153
- display: table;
154
- }
155
- .clearfix:after{
156
- clear: both;
157
- }
158
- </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
+ <img :src="f_sign_path" width="100%" height="100%" />
6
+ </div>
7
+ <div class="row text-right form-group">
8
+ <button class="btn" style="background-color: #f1e404;border-radius: 5px;margin-right: 10px" @click="clean">清除</button>
9
+ <button class="btn" style="background-color: #7dc1f4;border-radius: 5px;margin-right: 10px" @click="sign">签名</button>
10
+ </div>
11
+ </div>
12
+ </div>
13
+ </template>
14
+ <script>
15
+ import {getNowDate, guid, isEmpty} from '../Util'
16
+ import {PagedList} from 'vue-client'
17
+ import {HttpResetClass} from 'vue-client'
18
+ import QRCode from 'qrcodejs2'
19
+ import Vue from "vue";
20
+
21
+ export default {
22
+ title: '签字',
23
+ props: ['filePath'],
24
+ data () {
25
+ return {
26
+ f_sign_path: null,
27
+ fileName: null
28
+ }
29
+ },
30
+ ready () {
31
+ this.f_sign_path = this.filePath
32
+ },
33
+ methods: {
34
+ clean () {
35
+ this.f_sign_path = null
36
+ this.fileName = null
37
+ this.$emit('sign-clean')
38
+ },
39
+ sign () {
40
+ this.delAudioFile(this.f_sign_path)
41
+ this.fileName = guid() + '.jpg'
42
+ HostApp.__callback__ = this.signCallback
43
+ HostApp.__this__ = this
44
+ HostApp.getSignature({
45
+ file: this.fileName,
46
+ requestCode: 111,
47
+ callback: 'javascript:HostApp.__callback__("f_sign_path", "%s");'
48
+ })
49
+ },
50
+ // 签名回调
51
+ signCallback (prop, signPath) {
52
+ console.log('==============签字回调============')
53
+ console.log(signPath)
54
+ HostApp.__this__.$set(prop, signPath)
55
+ console.log(HostApp.__this__.f_sign_path)
56
+
57
+ HostApp.__this__.uploadFile()
58
+
59
+ HostApp.__callback__ = null
60
+ HostApp.__this__ = null
61
+ },
62
+ uploadFile () {
63
+ console.log('===================签字文件上传==============')
64
+ let data = {
65
+ blodid: HostApp.__this__.blobid,
66
+ username: Vue.user.name,
67
+ fremarks: '报装手机签字文件',
68
+ fileName: HostApp.__this__.fileName,
69
+ fileUrl: HostApp.__this__.f_sign_path
70
+ }
71
+
72
+ console.log('-----------bzLogic-----------------')
73
+ console.log(JSON.stringify(data))
74
+ let res = HostApp.bzLogic({
75
+ 'logic': 'appFileUpload',
76
+ 'data': data
77
+ })
78
+ console.log('===============上传回调=================')
79
+ console.log(JSON.stringify(res))
80
+ HostApp.__this__.getFiles(res.id)
81
+ },
82
+ async getFiles (fileid) {
83
+ let http = new HttpResetClass()
84
+
85
+ let data = {
86
+ tablename: 't_files',
87
+ condition: `id = '${fileid}'`
88
+ }
89
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data}, {
90
+ // let res = await http.load('POST', `rs/sql/singleTable`, {data: data}, {
91
+ warnMsg: null,
92
+ resolveMsg: null
93
+ })
94
+
95
+ console.log('=========查询回调===============')
96
+ let fileUrl = `${this.$androidUtil.getProxyUrl()}/${res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)}`
97
+ console.log(fileUrl)
98
+ // HostApp.__this__.$set('f_sign_path', fileUrl)
99
+ // HostApp.__this__.f_sign_path = fileUrl
100
+ this.f_sign_path = fileUrl
101
+
102
+ this.$emit('sign-success', fileUrl)
103
+ },
104
+ delAudioFile (signPath) {
105
+ if (!signPath) {
106
+ return
107
+ }
108
+ HostApp.delfile(signPath)
109
+ this.f_sign_path = null
110
+ this.fileName = null
111
+ }
112
+ },
113
+ events: {
114
+ },
115
+ computed: {
116
+ },
117
+ watch: {
118
+ }
119
+ }
120
+ </script>
121
+ <style scoped lang="less">
122
+ .qrcode {
123
+ display: inline-block !important;
124
+ margin: 10px 0px;
125
+ }
126
+ .panel-self{
127
+ border-radius: 10px;
128
+ border:1px solid #499EDF;
129
+ background-color: #F8F8F8;
130
+ }
131
+ .vertical-center {
132
+ display: flex;
133
+ align-items: center;
134
+ text-align: center;
135
+ }
136
+ /*清除model中的浮动*/
137
+ .clearfix:after,.clearfix:before{
138
+ display: table;
139
+ }
140
+ .clearfix:after{
141
+ clear: both;
142
+ }
143
+ </style>