apply-clients 3.5.5-54 → 3.5.5-56

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.
@@ -5,13 +5,17 @@ var proxyMiddleware = require('http-proxy-middleware')
5
5
  // var httpProxy = require('http-proxy')
6
6
  var app = express()
7
7
  var compiler = webpack(config)
8
- var ldap = 'http://125.71.238.50:30789'
9
- var applyinstall = 'http://125.71.238.50:30789'
10
- //测试地址
11
- // var ldap = 'http://192.168.50.93:31986'
12
- // var applyinstall = 'http://192.168.50.93:31986'
8
+ // var proxy = httpProxy.createProxyServer()
9
+ // var ldap = 'http://121.36.79.201:8400'
10
+ // var applyinstall = 'http://121.36.79.201:8400'
11
+ var ldap = 'http://192.168.50.93:31986/'
12
+ var applyinstall = 'http://192.168.50.93:31986/'
13
13
 
14
14
  var proxyTable = {
15
+ '/api': {
16
+ target: ldap,
17
+ changeOrigin: true
18
+ },
15
19
  '/rs/logic/getSaleInitData': {
16
20
  target: ldap,
17
21
  changeOrigin: true
@@ -124,10 +128,10 @@ app.use(hotMiddleware)
124
128
  // serve pure static assets
125
129
  app.use('/static', express.static('./static'))
126
130
 
127
- module.exports = app.listen(30789, function (err) {
131
+ module.exports = app.listen(8300, function (err) {
128
132
  if (err) {
129
133
  console.log(err)
130
134
  return
131
135
  }
132
- console.log('Listening at http://localhost:30789')
136
+ console.log('Listening at http://localhost:8300')
133
137
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.5.5-54",
3
+ "version": "3.5.5-56",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,141 +1,141 @@
1
- <template>
2
- <div class="flex-row">
3
- <div class="basic-main">
4
- <div :class="showData ? 'top' : 'auto'">
5
- <supervisory-list v-ref:query :show-data="showData"></supervisory-list>
6
- </div>
7
- <div v-if="showtotal" style="height: 89%">
8
- <div class="col-sm-2" style="margin-top: 20px">
9
- <supervisory-chart :selectdata="selectdata"></supervisory-chart>
10
- </div>
11
- <div class="col-sm-10" style="margin-top: 20px">
12
- <tabset v-ref:tabs :close="false">
13
- <tab :header='selectdata.defname'>
14
- <supervisory-service-control :selectdata="selectdata" :node-snapshot="true"></supervisory-service-control>
15
- </tab>
16
- <tab header='附件'>
17
- <apply-upload :blodid="selectdata.f_process_id"
18
- :pblobid="selectdata.f_parent_process_id"
19
- :isupload = "false"
20
- :isdelete="false"
21
- :isusetype="true"
22
- :isremark = "true"
23
- :takeimg="false"
24
- :issearch="true"
25
- :defname="selectdata.defname">
26
- </apply-upload>
27
- </tab>
28
- </tabset>
29
- </div>
30
- <div style="height: 1%">
31
-
32
- </div>
33
- </div>
34
- </div>
35
- </div>
36
-
37
- </template>
38
- <script>
39
- import Vue from 'vue'
40
- import {HttpResetClass} from 'vue-client'
41
- export default {
42
- title: '流程监控',
43
- data () {
44
- return {
45
- showtotal: false, // 控制详细信息显示
46
- showData: true,
47
- selectdata: {},
48
- xmlname: '' // 配置文件名称
49
- }
50
- },
51
- created () {
52
- },
53
- methods: {
54
- // 获取页面配置json文件
55
- async loadName () {
56
- let data = {
57
- workname: this.selectdata.processname
58
- }
59
-
60
- let res = await this.$resetpost(
61
- 'rs/logic/ApplyGetConfigs',
62
- {data: data},
63
- {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
64
- )
65
-
66
- Vue.prototype.$workflow_vue = res.data
67
- }
68
- },
69
- events: {
70
- // 刷新控制层
71
- async 'breakControl' (servicedata) {
72
-
73
- if (servicedata.id) {
74
- let data = {
75
- condition: `u.id = ${servicedata.id}`,
76
- data: {
77
- orgid: this.$login.f.orgid
78
- }
79
- }
80
- let res = await this.$resetpost(
81
- 'rs/sql/supervisory',
82
- {data: data},
83
- {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
84
- )
85
- this.selectdata = Object.assign({}, this.selectdata, res.data[0])
86
- } else {
87
- this.selectdata = servicedata
88
- }
89
-
90
- this.showtotal = false
91
- this.$nextTick(() => {
92
- this.showtotal = true
93
- })
94
-
95
- },
96
- 'onMessage' (data) {
97
- console.log('接收消息')
98
- console.log(data)
99
- if (data.type === 'apply-task') {
100
- this.$refs.queryuser.$refs.cp.$refs.cri.search()
101
- }
102
- },
103
- async 'apply' (val) {
104
- this.selectdata = null
105
- this.selectdata = val
106
- this.showtotal = false
107
-
108
- // 获取配置文件
109
- await this.loadName()
110
-
111
- this.$refs.query.$refs.cp.pager = false
112
- this.showData = false
113
-
114
- this.showtotal = true
115
- },
116
- 'search' () {
117
- // 关闭详细
118
- this.showtotal = false
119
- // 显示列表数据
120
- this.showData = true
121
- // 显示分页
122
- this.$refs.query.$refs.cp.pager = true
123
- // 调用查询
124
- this.$refs.query.$refs.cp.$refs.cri.search()
125
- },
126
- 'loadPage' () {
127
- // 关闭详细
128
- this.showtotal = false
129
- // 显示列表数据
130
- this.showData = true
131
- // 显示分页
132
- this.$refs.query.$refs.cp.pager = true
133
- // 调用查询
134
- this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
135
- }
136
- },
137
-
138
- watch: {
139
- }
140
- }
141
- </script>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <div :class="showData ? 'top' : 'auto'">
5
+ <supervisory-list v-ref:query :show-data="showData"></supervisory-list>
6
+ </div>
7
+ <div v-if="showtotal" style="height: 89%">
8
+ <div class="col-sm-2" style="margin-top: 20px">
9
+ <supervisory-chart :selectdata="selectdata"></supervisory-chart>
10
+ </div>
11
+ <div class="col-sm-10" style="margin-top: 20px">
12
+ <tabset v-ref:tabs :close="false">
13
+ <tab :header='selectdata.defname'>
14
+ <supervisory-service-control :selectdata="selectdata" :node-snapshot="true"></supervisory-service-control>
15
+ </tab>
16
+ <tab header='附件'>
17
+ <apply-upload :blodid="selectdata.f_process_id"
18
+ :pblobid="selectdata.f_parent_process_id"
19
+ :isupload = "false"
20
+ :isdelete="false"
21
+ :isusetype="true"
22
+ :isremark = "true"
23
+ :takeimg="false"
24
+ :issearch="true"
25
+ :defname="selectdata.defname">
26
+ </apply-upload>
27
+ </tab>
28
+ </tabset>
29
+ </div>
30
+ <div style="height: 1%">
31
+
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </div>
36
+
37
+ </template>
38
+ <script>
39
+ import Vue from 'vue'
40
+ import {HttpResetClass} from 'vue-client'
41
+ export default {
42
+ title: '流程监控',
43
+ data () {
44
+ return {
45
+ showtotal: false, // 控制详细信息显示
46
+ showData: true,
47
+ selectdata: {},
48
+ xmlname: '' // 配置文件名称
49
+ }
50
+ },
51
+ created () {
52
+ },
53
+ methods: {
54
+ // 获取页面配置json文件
55
+ async loadName () {
56
+ let data = {
57
+ workname: this.selectdata.processname
58
+ }
59
+
60
+ let res = await this.$resetpost(
61
+ 'rs/logic/ApplyGetConfigs',
62
+ {data: data},
63
+ {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
64
+ )
65
+
66
+ Vue.prototype.$workflow_vue = res.data
67
+ }
68
+ },
69
+ events: {
70
+ // 刷新控制层
71
+ async 'breakControl' (servicedata) {
72
+
73
+ if (servicedata.id) {
74
+ let data = {
75
+ condition: `u.id = ${servicedata.id}`,
76
+ data: {
77
+ orgid: this.$login.f.orgid
78
+ }
79
+ }
80
+ let res = await this.$resetpost(
81
+ 'rs/sql/supervisory',
82
+ {data: data},
83
+ {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
84
+ )
85
+ this.selectdata = Object.assign({}, this.selectdata, res.data[0])
86
+ } else {
87
+ this.selectdata = servicedata
88
+ }
89
+
90
+ this.showtotal = false
91
+ this.$nextTick(() => {
92
+ this.showtotal = true
93
+ })
94
+
95
+ },
96
+ 'onMessage' (data) {
97
+ console.log('接收消息')
98
+ console.log(data)
99
+ if (data.type === 'apply-task') {
100
+ this.$refs.queryuser.$refs.cp.$refs.cri.search()
101
+ }
102
+ },
103
+ async 'apply' (val) {
104
+ this.selectdata = null
105
+ this.selectdata = val
106
+ this.showtotal = false
107
+
108
+ // 获取配置文件
109
+ await this.loadName()
110
+
111
+ this.$refs.query.$refs.cp.pager = false
112
+ this.showData = false
113
+
114
+ this.showtotal = true
115
+ },
116
+ 'search' () {
117
+ // 关闭详细
118
+ this.showtotal = false
119
+ // 显示列表数据
120
+ this.showData = true
121
+ // 显示分页
122
+ this.$refs.query.$refs.cp.pager = true
123
+ // 调用查询
124
+ this.$refs.query.$refs.cp.$refs.cri.search()
125
+ },
126
+ 'loadPage' () {
127
+ // 关闭详细
128
+ this.showtotal = false
129
+ // 显示列表数据
130
+ this.showData = true
131
+ // 显示分页
132
+ this.$refs.query.$refs.cp.pager = true
133
+ // 调用查询
134
+ this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
135
+ }
136
+ },
137
+
138
+ watch: {
139
+ }
140
+ }
141
+ </script>