manage-client 3.1.18 → 3.1.19-zk

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,174 +1,170 @@
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
-
7
- var app = express()
8
- var compiler = webpack(config)
9
- // var proxy = httpProxy.createProxyServer()
10
-
11
- // Define HTTP proxies to your custom API backend
12
- // https://github.com/chimurai/http-proxy-middleware
13
- // var bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
14
- var shaoguan='http://119.146.1.106:8300/'
15
- var qtx='http://36.103.222.144:6300/'
16
- var bendi = 'http://127.0.0.1:8084/', fuwu_login = 'http://192.168.50.4:8400'
17
- var fuwu = 'http://192.168.50.4:8400'
18
- var system = 'http://192.168.50.4:8400'
19
- //192.168.
20
- // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
21
- // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
22
- var proxyTable = {
23
- '/rs/logic/exportfile': {
24
- target: fuwu
25
- },
26
- '/files': {
27
- target: fuwu
28
- },
29
- // 查找资源服务数据
30
- '/rs/search': {
31
- target: fuwu
32
- },
33
- // 查找资源服务数据
34
- '/rs/logic/getLogin': {
35
- target: fuwu
36
- },
37
- // 查找资源服务数据
38
- '/rs/logic/getInitData': {
39
- target: fuwu
40
- },
41
- '/rs/logic/getSaleInitData':{
42
- target: fuwu
43
- },
44
- // 用户登录服务地址
45
- '/rs/user': {
46
- target: fuwu
47
- },
48
- '/rs/path/getParams': {
49
- target: fuwu
50
- },
51
- '/rs/data': {
52
- target: fuwu
53
- },
54
- '/rs/license': {
55
- target: fuwu
56
- },
57
- '/rs/db': {
58
- target: fuwu
59
- },
60
- '/excel': {
61
- target: fuwu
62
- },
63
- '/rs/config': {
64
- target: fuwu
65
- },
66
- '/rs/sql/getLicenseById': {
67
- target: fuwu
68
- },
69
- '/rs/report': {
70
- target: fuwu
71
- },
72
- '/rs/vue': {
73
- target: fuwu
74
- },
75
- '/rs/file': {
76
- target: fuwu
77
- },
78
- '/rs/logic/SumSettleFileImport': {
79
- target: 'http://127.0.0.1:8080'
80
- },
81
- '/rs': {
82
- target: bendi
83
- }
84
- }
85
-
86
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
87
- publicPath: config.output.publicPath,
88
- stats: {
89
- colors: true,
90
- chunks: false
91
- }
92
- })
93
-
94
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
95
- // force page reload when html-webpack-plugin template changes
96
- compiler.plugin('compilation', function (compilation) {
97
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
98
- hotMiddleware.publish({action: 'reload'})
99
- cb()
100
- })
101
- })
102
-
103
- // proxy api requests
104
- Object.keys(proxyTable).forEach(function (context) {
105
- var options = proxyTable[context]
106
- if (typeof options === 'string') {
107
- options = {target: options}
108
- }
109
- app.use(proxyMiddleware(context, options))
110
- })
111
-
112
- // handle fallback for HTML5 history API
113
- app.use(require('connect-history-api-fallback')())
114
- // app.use(function (req, res, next) {
115
- // res.header('Access-Control-Allow-Origin', '*')
116
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
117
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
118
- // res.header('X-Powered-By', '3,2,1')
119
- // res.header('Access-Control-Allow-Credentials', 'true')
120
- // res.header('Content-Type', 'application/json;charset=utf-8')
121
- // next()
122
- // })
123
-
124
- // serve webpack bundle output
125
- app.use(devMiddleware)
126
-
127
- // enable hot-reload and state-preserving
128
- // compilation error display
129
- app.use(hotMiddleware)
130
-
131
- // serve pure static assets
132
- app.use('/static', express.static('./static'))
133
-
134
- // app.all('/rs/*', function (req, res) {
135
- // proxy.web(req, res, {
136
- // target: 'http://127.0.0.1:8081/reports'
137
- // })
138
- // })
139
-
140
- // app.all('/rs/*', function (req, res) {
141
- // proxy.web(req, res, {
142
- // target: 'http://127.0.0.1:8081/ldap'
143
- // })
144
- // })
145
- // app.all('/excel/*', function (req, res) {
146
- // proxy.web(req, res, {
147
- // target: 'http://127.0.0.1:8081/charge'
148
- // })
149
- // })
150
-
151
- // app.all('/rs/*', function (req, res) {
152
- // proxy.web(req, res, {
153
- // target: 'http://127.0.0.1:82/charge'
154
- // })
155
- // })
156
-
157
- // app.all('/*', function (req, res) {
158
- // proxy.web(req, res, {
159
- // target: 'http://127.0.0.1:82'
160
- // })
161
- // })
162
- // app.all('/rs/user', function (req, res) {
163
- // proxy.web(req, res, {
164
- // target: 'http://127.0.0.1:82'
165
- // })
166
- // })
167
-
168
- module.exports = app.listen(8085, function (err) {
169
- if (err) {
170
- console.log(err)
171
- return
172
- }
173
- console.log('Listening at http://localhost:8085')
174
- })
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
+
7
+ var app = express()
8
+ var compiler = webpack(config)
9
+ // var proxy = httpProxy.createProxyServer()
10
+
11
+ // Define HTTP proxies to your custom API backend
12
+ // https://github.com/chimurai/http-proxy-middleware
13
+ var bendi = 'http://127.0.0.1:8081/'
14
+ var fuwu = 'http://192.168.20.27:8400/'
15
+ var proxyTable = {
16
+ '/rs/logic/exportfile': {
17
+ target: fuwu
18
+ },
19
+ '/files': {
20
+ target: fuwu
21
+ },
22
+ // 查找资源服务数据
23
+ '/rs/search': {
24
+ target: fuwu
25
+ },
26
+ // 查找资源服务数据
27
+ '/rs/logic/getLogin': {
28
+ target: fuwu
29
+ },
30
+ // 查找资源服务数据
31
+ '/rs/logic/getInitData': {
32
+ target: fuwu
33
+ },
34
+ '/rs/logic/getSaleInitData':{
35
+ target: fuwu
36
+ },
37
+ // 用户登录服务地址
38
+ '/rs/user': {
39
+ target: fuwu
40
+ },
41
+ '/rs/path/getParams': {
42
+ target: fuwu
43
+ },
44
+ '/rs/data': {
45
+ target: fuwu
46
+ },
47
+ '/rs/license': {
48
+ target: fuwu
49
+ },
50
+ '/rs/db': {
51
+ target: fuwu
52
+ },
53
+ '/excel': {
54
+ target: fuwu
55
+ },
56
+ '/rs/config': {
57
+ target: fuwu
58
+ },
59
+ '/rs/sql/getLicenseById': {
60
+ target: fuwu
61
+ },
62
+ '/rs/report': {
63
+ target: fuwu
64
+ },
65
+ '/rs/sql': {
66
+ target: bendi
67
+ },
68
+ '/rs/vue': {
69
+ target: fuwu
70
+ },
71
+ '/rs/file': {
72
+ target: fuwu
73
+ },
74
+ '/rs/logic/SumSettleFileImport': {
75
+ target: 'http://127.0.0.1:8080'
76
+ },
77
+ '/rs': {
78
+ target: bendi
79
+ }
80
+ }
81
+
82
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
83
+ publicPath: config.output.publicPath,
84
+ stats: {
85
+ colors: true,
86
+ chunks: false
87
+ }
88
+ })
89
+
90
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
91
+ // force page reload when html-webpack-plugin template changes
92
+ compiler.plugin('compilation', function (compilation) {
93
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
94
+ hotMiddleware.publish({action: 'reload'})
95
+ cb()
96
+ })
97
+ })
98
+
99
+ // proxy api requests
100
+ Object.keys(proxyTable).forEach(function (context) {
101
+ var options = proxyTable[context]
102
+ if (typeof options === 'string') {
103
+ options = {target: options}
104
+ }
105
+ app.use(proxyMiddleware(context, options))
106
+ })
107
+
108
+ // handle fallback for HTML5 history API
109
+ app.use(require('connect-history-api-fallback')())
110
+ // app.use(function (req, res, next) {
111
+ // res.header('Access-Control-Allow-Origin', '*')
112
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
113
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
114
+ // res.header('X-Powered-By', '3,2,1')
115
+ // res.header('Access-Control-Allow-Credentials', 'true')
116
+ // res.header('Content-Type', 'application/json;charset=utf-8')
117
+ // next()
118
+ // })
119
+
120
+ // serve webpack bundle output
121
+ app.use(devMiddleware)
122
+
123
+ // enable hot-reload and state-preserving
124
+ // compilation error display
125
+ app.use(hotMiddleware)
126
+
127
+ // serve pure static assets
128
+ app.use('/static', express.static('./static'))
129
+
130
+ // app.all('/rs/*', function (req, res) {
131
+ // proxy.web(req, res, {
132
+ // target: 'http://127.0.0.1:8081/reports'
133
+ // })
134
+ // })
135
+
136
+ // app.all('/rs/*', function (req, res) {
137
+ // proxy.web(req, res, {
138
+ // target: 'http://127.0.0.1:8081/ldap'
139
+ // })
140
+ // })
141
+ // app.all('/excel/*', function (req, res) {
142
+ // proxy.web(req, res, {
143
+ // target: 'http://127.0.0.1:8081/charge'
144
+ // })
145
+ // })
146
+
147
+ // app.all('/rs/*', function (req, res) {
148
+ // proxy.web(req, res, {
149
+ // target: 'http://127.0.0.1:82/charge'
150
+ // })
151
+ // })
152
+
153
+ // app.all('/*', function (req, res) {
154
+ // proxy.web(req, res, {
155
+ // target: 'http://127.0.0.1:82'
156
+ // })
157
+ // })
158
+ // app.all('/rs/user', function (req, res) {
159
+ // proxy.web(req, res, {
160
+ // target: 'http://127.0.0.1:82'
161
+ // })
162
+ // })
163
+
164
+ module.exports = app.listen(8085, function (err) {
165
+ if (err) {
166
+ console.log(err)
167
+ return
168
+ }
169
+ console.log('Listening at http://localhost:8085')
170
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.1.18",
3
+ "version": "3.1.19-zk",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -78,6 +78,7 @@
78
78
  trigger: 'item',
79
79
  // borderColor: 'rgba(255,255,255,.3)',
80
80
  // backgroundColor: 'rgba(13,5,30,.6)',
81
+ extraCssText: 'width:auto;height:25%;',
81
82
  borderWidth: 1,
82
83
  padding: 5,
83
84
  formatter: function(parms) {
@@ -6,7 +6,7 @@
6
6
 
7
7
  客服</span>
8
8
  <img src="../../../static/NewManageHome/title_left.png" alt="" style="vertical-align:middle">
9
- <img src="../../../static/NewManageHome/title_wujie.png" alt="" style="vertical-align:middle">
9
+ <img src="../../../static/NewManageHome/title_wuhai.png" alt="" style="vertical-align:middle">
10
10
  <img src="../../../static/NewManageHome/title_right.png" alt="" style="vertical-align:middle">
11
11
  <span class="title_main" style="vertical-align:right;background: url('../../../static/NewManageHome/矩形1186拷贝.png')" @click="showCharts('数据化管理')" b>
12
12
 
@@ -1,50 +1,49 @@
1
1
  <template lang="html">
2
2
  <div :class="classname" :style="{width:width,height:height}">
3
- <div class="form-horizontal select-overspread container-fluid auto">
4
- <div class="row">
5
- <div class="col-sm-3 form-group">
6
- <label class="font_normal_body" >使用公司:</label>
7
- <res-select restype='organization'
8
- v-model="model.orgid"
9
- :initresid="model.id">
3
+ <div style="height: 97%;">
4
+ <div class="col-sm-3" style="height: 97%">
5
+ <div class="row form-group" style="height: 5%">
6
+ <label class="font_normal_body" >使用公司:</label>
7
+ <res-select :initresid='model.orgid'
8
+ @res-select="getorg"
9
+ :is-mul="false"
10
+ class="select select_list"
11
+ restype='organization'
12
+ style="width: 60%">
10
13
  </res-select>
11
14
  </div>
12
- <div style="text-align:center;"><p>营收系统数据统计信息</p></div>
13
- </div>
14
- </div>
15
- <div style="height: 97%;">
16
- <div class="col-sm-3 " style="height: 97%">
17
- <div style="width: 100%;height: 97%;" align="center">
18
- <p>用户数量</p>
19
- <table border="1" style="text-align:center;">
20
- <tr>
21
- <th><nobr>现有户数</nobr></th>
22
- <th><nobr>年度新增</nobr></th>
23
- <th><nobr>本月新增</nobr></th>
15
+ <div class="row" style="margin-left: 5%;margin-right: 5%;height: 15%;text-align:center;" >
16
+ <h4 style="font-size: 18px;">用户数量</h4>
17
+ <table class="col-sm-12 table table-bordered table-striped" style="font-size: 16px;">
18
+ <tr class="text-center">
19
+ <th style="text-align:center;"><nobr>现有户数</nobr></th>
20
+ <th style="text-align:center;"><nobr>年度新增</nobr></th>
21
+ <th style="text-align:center;"><nobr>本月新增</nobr></th>
24
22
  </tr>
25
23
  <tr>
26
- <td><nobr>{{num}}</nobr></td>
27
- <td><nobr>{{year}}</nobr></td>
28
- <td><nobr>{{month}}</nobr></td>
24
+ <td style="text-align:center;"><nobr>{{num}}</nobr></td>
25
+ <td style="text-align:center;"><nobr>{{year}}</nobr></td>
26
+ <td style="text-align:center;"><nobr>{{month}}</nobr></td>
29
27
  </tr>
30
28
  </table>
31
- <div style="width: 100%;height: 50%">
32
- <p style="text-align:center;" auto>民用分类实有户数</p>
33
- <ring-chart :sdata="sdata2" ></ring-chart>
34
- </div>
35
- <div style="width: 100%;height: 50%">
36
- <p style="text-align:center;">工商业分类实有户数</p>
37
- <ring-chart :sdata="sdata1" ></ring-chart>
38
- </div>
29
+ </div>
30
+ <div style="width: 100%;height: 40%;margin-top: 10%;text-align:center;">
31
+ <h4 style="font-size: 18px;">民用分类实有户数</h4>
32
+ <ring-chart :sdata="sdata2" ></ring-chart>
33
+ </div>
34
+ <div style="width: 100%;height: 40%;text-align:center;">
35
+ <h4 style="font-size: 18px;">工商业分类实有户数</h4>
36
+ <ring-chart :sdata="sdata1" ></ring-chart>
39
37
  </div>
40
38
  </div>
41
- <div class="col-sm-6" style="height: 97%">
39
+ <div class="col-sm-6" style="height: 97%;text-align:center;">
40
+ <h3>营收系统数据统计信息</h3>
42
41
  <div style="width: 100%;height: 50%">
43
42
  <div>
44
43
  <bar-chart :xdata="xdata" :sdata="sdata" :legend="legendData" :xname="xname" :yname="yname"> </bar-chart>
45
44
  </div>
46
45
  </div>
47
- <div style="width: 100%;height: 47%">
46
+ <div style="width: 100%;height: 50%">
48
47
  <div>
49
48
  <!-- <bussiness-type :orgid='model.orgid[0]' v-ref:pay ></bussiness-type>-->
50
49
  <bar-chart :xdata="xdata3" :sdata="sdata3" :legend="legendData1" :xname="xname" :yname="yname"> </bar-chart>
@@ -52,8 +51,8 @@
52
51
  </div>
53
52
  </div>
54
53
  <div class="col-sm-3" style="height: 97%">
55
- <div style="width: 100%;height: 97%" align="center">
56
- <p>各类表具在用用户数量</p>
54
+ <div style="width: 100%;height: 95%;margin-top: 10%;margin-right: 5%;" align="center">
55
+ <h4 style="font-size: 18px;">各类表具在用用户数量</h4>
57
56
  <data-grid :model=mood class="table_sy" partial='list' >
58
57
  <template partial='head' >
59
58
  <tr>
@@ -98,22 +97,21 @@ export default {
98
97
  }
99
98
  },
100
99
  watch:{
101
- 'model.orgid'(val) {
102
- if (val) {
103
- // console.log("77777777777777777",val)
100
+ 'f_orgid'(val) {
101
+ // if (val) {
104
102
  this.ks()
105
- }
103
+ // }
106
104
  }
107
105
  },
108
106
  data() {
109
107
  return {
110
108
  jurisdiction: this.$login.r,
111
109
  model: {
112
- id: [this.$login.f.orgid],
113
110
  orgid: [this.$login.f.orgid],
114
111
  startDate: Util.toStandardDateString(),
115
112
  endDate: Util.toStandardDateString()
116
113
  },
114
+ f_orgid: '',
117
115
  xdata:[],
118
116
  sdata: [],
119
117
  legendData: ['民用'],
@@ -129,15 +127,28 @@ export default {
129
127
  month:'',
130
128
  arr:[],
131
129
  arrs:[],
132
- mood:''
130
+ mood:'',
131
+ resoptions: []
133
132
  }
134
133
 
135
134
  },
136
135
  ready() {
137
- this.ks()
136
+
138
137
  },
139
138
  methods: {
140
139
  ks(){
140
+ this.xdata = []
141
+ this.sdata = []
142
+ this.sdata1 = []
143
+ this.sdata2 = []
144
+ this.xdata3 = []
145
+ this.sdata3 = []
146
+ this.num = ''
147
+ this.year = ''
148
+ this.month = ''
149
+ this.arr = []
150
+ this.arrs = []
151
+ this.mood = ''
141
152
  this.getuser()
142
153
  this.getType()
143
154
  this.getType1()
@@ -146,39 +157,43 @@ export default {
146
157
  this.getmeterbrand()
147
158
  console.log("7777777777777",this.sdata)
148
159
  },
149
- async getuser (){
160
+ getorg (val) {
161
+ this.f_orgid = this.$login.convertToIn(val)
162
+ // this.$parent.f_orgid = this.f_orgid
163
+ },
164
+ async getuser (){
150
165
  let load = new HttpResetClass()
151
- let id = this.model.orgid.toString()
152
- await load.load('POST','rs/sql/getUser', {data: {f_orgid: id}}).then((res) => {
166
+ // let id = this.model.orgid.toString()
167
+ await load.load('POST','rs/sql/getUser', {data: {f_orgid: this.f_orgid}}).then((res) => {
153
168
  console.log("加载res",res)
154
169
  for (var i = 0; i < res.data.length; i++) {
155
170
  this.num = res.data[i].number
156
- this.year= res.data[i].year
157
- this.month= res.data[i].month
171
+ this.year = res.data[i].year
172
+ this.month = res.data[i].month
158
173
  }
159
174
  })
160
175
  },
161
- async getType (){
176
+ async getType (){
162
177
  let load = new HttpResetClass()
163
- let id = this.model.orgid.toString()
164
- await load.load('POST','rs/sql/getTypess', {data: {f_orgid: id}}).then((res) => {
165
- const rdata=res.data
178
+ // let id = this.model.orgid.toString()
179
+ await load.load('POST','rs/sql/getTypess', {data: {f_orgid: this.f_orgid}}).then((res) => {
180
+ const rdata = res.data
166
181
  for (let i = 0; i < rdata.length; i++) {
167
- const object={
168
- value:rdata[i].f_type,
169
- name:rdata[i].f_devices_type
182
+ const object={
183
+ value: rdata[i].f_type,
184
+ name: rdata[i].f_devices_type
170
185
  }
171
186
  this.sdata2.push(object)
172
187
  }
173
188
  })
174
189
  },
175
- async getType1 (){
190
+ async getType1 (){
176
191
  let load = new HttpResetClass()
177
- let id = this.model.orgid.toString()
178
- await load.load('POST','rs/sql/getTypek', {data: {f_orgid: id}}).then((res) => {
179
- const rdata=res.data
192
+ // let id = this.model.orgid.toString()
193
+ await load.load('POST','rs/sql/getTypek', {data: {f_orgid: this.f_orgid}}).then((res) => {
194
+ const rdata = res.data
180
195
  for (let i = 0; i < rdata.length; i++) {
181
- const object={
196
+ const object = {
182
197
  value:rdata[i].f_type,
183
198
  name:rdata[i].f_devices_type
184
199
  }
@@ -186,10 +201,10 @@ export default {
186
201
  }
187
202
  })
188
203
  },
189
- async getnumber (){
204
+ async getnumber (){
190
205
  let load = new HttpResetClass()
191
- let id = this.model.orgid.toString()
192
- await load.load('POST','rs/sql/getNumberss', {data: {f_orgid: id}}).then((res) => {
206
+ // let id = this.model.orgid.toString()
207
+ await load.load('POST','rs/sql/getNumberss', {data: {f_orgid: this.f_orgid}}).then((res) => {
193
208
  const rdata=res.data
194
209
  for (let i = 0; i < rdata.length; i++) {
195
210
  this.arr.push(rdata[i].num)
@@ -199,10 +214,10 @@ export default {
199
214
  this.sdata.push(this.arr)
200
215
  })
201
216
  },
202
- async getnumber1 (){
217
+ async getnumber1 (){
203
218
  let load = new HttpResetClass()
204
- let id = this.model.orgid.toString()
205
- await load.load('POST','rs/sql/getNumbers', {data: {f_orgid: id}}).then((res) => {
219
+ // let id = this.model.orgid.toString()
220
+ await load.load('POST','rs/sql/getNumbers', {data: {f_orgid: this.f_orgid}}).then((res) => {
206
221
  console.log("加载res3",res)
207
222
  const rdata=res.data
208
223
  for (let i = 0; i < rdata.length; i++) {
@@ -216,20 +231,16 @@ export default {
216
231
  this.sdata3.push(this.arrs)
217
232
  })
218
233
  },
219
- async getmeterbrand (){
234
+ async getmeterbrand (){
220
235
  let load = new HttpResetClass()
221
- let id = this.model.orgid.toString()
222
- await load.load('POST','rs/sql/getMeterbrand', {data: {f_orgid: id}}).then((res) => {
236
+ // let id = this.model.orgid.toString()
237
+ await load.load('POST','rs/sql/getMeterbrand', {data: {f_orgid: this.f_orgid}}).then((res) => {
223
238
  this.mood=res
224
239
  })
225
- },
226
- searchdata () {
227
- this.$refs.pay.searchdata()
228
- },
229
- // getRes (obj) {
230
- // this.model.orgid = obj
231
- // // this.ks()
232
- // }
240
+ }
241
+ // searchdata () {
242
+ // this.$refs.pay.searchdata()
243
+ // },
233
244
  }
234
245
  }
235
246
  </script>