manage-client 1.8.23-9 → 1.8.25

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.
Files changed (252) hide show
  1. package/.gitattributes +6 -0
  2. package/.gradle/6.1.1/fileContent/fileContent.lock +0 -0
  3. package/.gradle/7.4/checksums/checksums.lock +0 -0
  4. package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  5. package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  6. package/.gradle/7.4/fileChanges/last-build.bin +0 -0
  7. package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  8. package/.gradle/7.4/gc.properties +0 -0
  9. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  10. package/.gradle/buildOutputCleanup/cache.properties +2 -0
  11. package/.gradle/file-system.probe +0 -0
  12. package/.gradle/vcs-1/gc.properties +0 -0
  13. package/build/dev-server.js +155 -158
  14. package/dist/static/NewManageHome/background_qinhua.png +0 -0
  15. package/dist/static/NewManageHome/sell_1.png +0 -0
  16. package/dist/static/NewManageHome/sell_2.png +0 -0
  17. package/dist/static/NewManageHome/title_left.png +0 -0
  18. package/dist/static/NewManageHome/title_right.png +0 -0
  19. package/dist/static/NewManageHome//345/217/263/344/270/212.png +0 -0
  20. package/dist/static/NewManageHome//345/217/263/344/270/213.png +0 -0
  21. package/dist/static/NewManageHome//345/233/276/345/261/2024.png +0 -0
  22. package/dist/static/NewManageHome//345/233/276/345/261/2025.png +0 -0
  23. package/dist/static/NewManageHome//345/267/246/344/270/212.png +0 -0
  24. package/dist/static/NewManageHome//345/267/246/344/270/213.png +0 -0
  25. package/dist/static/NewManageHome//347/273/20437.png +0 -0
  26. package/dist/static/images/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png +0 -0
  27. package/dist/static/images/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
  28. package/dist/static/images/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
  29. package/dist/static/images/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
  30. package/dist/static/images/lefticon//345/233/276/345/261/202577.png +0 -0
  31. package/dist/static/images/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
  32. package/dist/static/images/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
  33. package/dist/static/images/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
  34. package/dist/static/images/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
  35. package/dist/static/images/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
  36. package/dist/static/images/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
  37. package/dist/static/images/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
  38. package/dist/static/images/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
  39. package/dist/static/images/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
  40. package/dist/static/images/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
  41. package/dist/static/images/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
  42. package/dist/static/images/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
  43. package/dist/static/images/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
  44. package/dist/static/images/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
  45. package/dist/static/images/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
  46. package/dist/static/images/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
  47. package/dist/static/images/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
  48. package/dist/static/images/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
  49. package/dist/static/jcwx.jpg +0 -0
  50. package/dist/static/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png +0 -0
  51. package/dist/static/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
  52. package/dist/static/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
  53. package/dist/static/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
  54. package/dist/static/lefticon//345/233/276/345/261/202577.png +0 -0
  55. package/dist/static/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
  56. package/dist/static/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
  57. package/dist/static/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
  58. package/dist/static/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
  59. package/dist/static/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
  60. package/dist/static/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
  61. package/dist/static/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
  62. package/dist/static/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
  63. package/dist/static/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
  64. package/dist/static/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
  65. package/dist/static/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
  66. package/dist/static/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
  67. package/dist/static/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
  68. package/dist/static/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
  69. package/dist/static/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
  70. package/dist/static/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
  71. package/dist/static/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
  72. package/dist/static/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
  73. package/dist/static/loginbg.jpg +0 -0
  74. package/dist/static/loginbg1.jpg +0 -0
  75. package/dist/static/loginbg_jincheng.jpg +0 -0
  76. package/dist/static/loginbgmain.jpg +0 -0
  77. package/dist/static/mainicon/adddevice.png +0 -0
  78. package/dist/static/mainicon/addmeter.png +0 -0
  79. package/dist/static/mainicon/bank.png +0 -0
  80. package/dist/static/mainicon/biaopan.png +0 -0
  81. package/dist/static/mainicon/cad.jpg +0 -0
  82. package/dist/static/mainicon/chaobiaoyuan.png +0 -0
  83. package/dist/static/mainicon/danganguanli.png +0 -0
  84. package/dist/static/mainicon/deletedevice.png +0 -0
  85. package/dist/static/mainicon/excel.jpg +0 -0
  86. package/dist/static/mainicon/huizong.png +0 -0
  87. package/dist/static/mainicon/jibiaoguanli.png +0 -0
  88. package/dist/static/mainicon/jibiaoguanli2.png +0 -0
  89. package/dist/static/mainicon/jiezhang.png +0 -0
  90. package/dist/static/mainicon/loginbg.jpg +0 -0
  91. package/dist/static/mainicon/shouqishoufei.png +0 -0
  92. package/dist/static/mainicon/treeopen.png +0 -0
  93. package/dist/static/mainicon/treeout.png +0 -0
  94. package/dist/static/mainicon/treeset.png +0 -0
  95. package/dist/static/mainicon/word.jpg +0 -0
  96. package/dist/static/mainicon/wulianwang.png +0 -0
  97. package/dist/static/mainicon/yingyechaxun.png +0 -0
  98. package/dist/static/mainicon/zongheyewu.png +0 -0
  99. package/dist/static/newStyle/clear.png +0 -0
  100. package/dist/static/newStyle/fife.png +0 -0
  101. package/dist/static/newStyle/hidden.png +0 -0
  102. package/dist/static/newStyle/label-clear.png +0 -0
  103. package/dist/static/newStyle/left-img.png +0 -0
  104. package/dist/static/newStyle/list_ok.png +0 -0
  105. package/dist/static/newStyle/login-check.png +0 -0
  106. package/dist/static/newStyle/login-con.png +0 -0
  107. package/dist/static/newStyle/login-do.gif +0 -0
  108. package/dist/static/newStyle/login-f.png +0 -0
  109. package/dist/static/newStyle/login-info.png +0 -0
  110. package/dist/static/newStyle/login-left.png +0 -0
  111. package/dist/static/newStyle/login-org.png +0 -0
  112. package/dist/static/newStyle/login-pwd.png +0 -0
  113. package/dist/static/newStyle/login-user.png +0 -0
  114. package/dist/static/newStyle/loginbg.gif +0 -0
  115. package/dist/static/newStyle/loginbg1280.gif +0 -0
  116. package/dist/static/newStyle/loginbg1366.gif +0 -0
  117. package/dist/static/newStyle/setting.png +0 -0
  118. package/dist/static/newStyle/setting1.png +0 -0
  119. package/dist/static/newStyle/shirk.png +0 -0
  120. package/dist/static/newStyle/stretch_bottom.png +0 -0
  121. package/dist/static/newStyle/stretch_left.png +0 -0
  122. package/dist/static/newStyle/stretch_right.png +0 -0
  123. package/dist/static/newStyle/stretch_top.png +0 -0
  124. package/dist/static/newStyle/system-off.png +0 -0
  125. package/dist/static/qh.json +2410 -0
  126. package/dist/static/refresh.png +0 -0
  127. package/dist/static/treeclose.png +0 -0
  128. package/dist/static/yulin.json +1 -0
  129. package/dist/static//345/233/276/345/261/202000.png +0 -0
  130. package/dist/static//345/233/276/345/261/2023.png +0 -0
  131. package/dist/static//345/261/261/344/270/234/347/234/201.json +1 -0
  132. package/package.json +97 -97
  133. package/settings.gradle +10 -0
  134. package/src/App.vue +2 -2
  135. package/src/bootstrap/fonts/PingFangSC-Regular.ttf +0 -0
  136. package/src/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
  137. package/src/bootstrap/fonts/glyphicons-halflings-regular.svg +288 -0
  138. package/src/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
  139. package/src/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
  140. package/src/bootstrap/fonts/glyphicons-halflings-regular.woff2 +0 -0
  141. package/src/bootstrap/fonts//346/261/211/344/273/252/350/217/261/345/277/203/344/275/223/347/256/200.ttf +0 -0
  142. package/src/bootstrap/less/.csscomb.json +304 -0
  143. package/src/bootstrap/less/.csslintrc +19 -0
  144. package/src/bootstrap/less/alerts.less +73 -0
  145. package/src/bootstrap/less/badges.less +66 -0
  146. package/src/bootstrap/less/bootstrap.less +70 -0
  147. package/src/bootstrap/less/breadcrumbs.less +26 -0
  148. package/src/bootstrap/less/button-groups.less +247 -0
  149. package/src/bootstrap/less/buttons.less +172 -0
  150. package/src/bootstrap/less/carousel.less +269 -0
  151. package/src/bootstrap/less/close.less +34 -0
  152. package/src/bootstrap/less/code.less +69 -0
  153. package/src/bootstrap/less/component-animations.less +33 -0
  154. package/src/bootstrap/less/dropdowns.less +216 -0
  155. package/src/bootstrap/less/forms.less +626 -0
  156. package/src/bootstrap/less/glyphicons.less +305 -0
  157. package/src/bootstrap/less/grid.less +84 -0
  158. package/src/bootstrap/less/input-groups.less +167 -0
  159. package/src/bootstrap/less/jumbotron.less +52 -0
  160. package/src/bootstrap/less/labels.less +64 -0
  161. package/src/bootstrap/less/list-group.less +141 -0
  162. package/src/bootstrap/less/manageStyle/manageChile.less +180 -0
  163. package/src/bootstrap/less/manageStyle/manageStyle.less +1400 -0
  164. package/src/bootstrap/less/manageStyle/safeStyle.less +498 -0
  165. package/src/bootstrap/less/media.less +66 -0
  166. package/src/bootstrap/less/mixins/alerts.less +14 -0
  167. package/src/bootstrap/less/mixins/background-variant.less +9 -0
  168. package/src/bootstrap/less/mixins/border-radius.less +18 -0
  169. package/src/bootstrap/less/mixins/buttons.less +69 -0
  170. package/src/bootstrap/less/mixins/center-block.less +7 -0
  171. package/src/bootstrap/less/mixins/clearfix.less +22 -0
  172. package/src/bootstrap/less/mixins/forms.less +90 -0
  173. package/src/bootstrap/less/mixins/gradients.less +59 -0
  174. package/src/bootstrap/less/mixins/grid-framework.less +92 -0
  175. package/src/bootstrap/less/mixins/grid.less +122 -0
  176. package/src/bootstrap/less/mixins/hide-text.less +21 -0
  177. package/src/bootstrap/less/mixins/image.less +33 -0
  178. package/src/bootstrap/less/mixins/labels.less +12 -0
  179. package/src/bootstrap/less/mixins/list-group.less +30 -0
  180. package/src/bootstrap/less/mixins/nav-divider.less +10 -0
  181. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -0
  182. package/src/bootstrap/less/mixins/opacity.less +8 -0
  183. package/src/bootstrap/less/mixins/pagination.less +24 -0
  184. package/src/bootstrap/less/mixins/panels.less +24 -0
  185. package/src/bootstrap/less/mixins/progress-bar.less +10 -0
  186. package/src/bootstrap/less/mixins/reset-filter.less +8 -0
  187. package/src/bootstrap/less/mixins/reset-text.less +18 -0
  188. package/src/bootstrap/less/mixins/resize.less +6 -0
  189. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -0
  190. package/src/bootstrap/less/mixins/size.less +10 -0
  191. package/src/bootstrap/less/mixins/tab-focus.less +9 -0
  192. package/src/bootstrap/less/mixins/table-row.less +44 -0
  193. package/src/bootstrap/less/mixins/text-emphasis.less +9 -0
  194. package/src/bootstrap/less/mixins/text-overflow.less +8 -0
  195. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -0
  196. package/src/bootstrap/less/mixins.less +40 -0
  197. package/src/bootstrap/less/modals.less +151 -0
  198. package/src/bootstrap/less/navbar.less +660 -0
  199. package/src/bootstrap/less/navs.less +286 -0
  200. package/src/bootstrap/less/normalize.less +424 -0
  201. package/src/bootstrap/less/pager.less +76 -0
  202. package/src/bootstrap/less/pagination.less +89 -0
  203. package/src/bootstrap/less/panels.less +275 -0
  204. package/src/bootstrap/less/popovers.less +131 -0
  205. package/src/bootstrap/less/print.less +101 -0
  206. package/src/bootstrap/less/progress-bars.less +87 -0
  207. package/src/bootstrap/less/responsive-embed.less +35 -0
  208. package/src/bootstrap/less/responsive-utilities.less +194 -0
  209. package/src/bootstrap/less/scaffolding.less +161 -0
  210. package/src/bootstrap/less/stand.less +207 -0
  211. package/src/bootstrap/less/tables.less +262 -0
  212. package/src/bootstrap/less/theme.less +291 -0
  213. package/src/bootstrap/less/thumbnails.less +36 -0
  214. package/src/bootstrap/less/tooltip.less +102 -0
  215. package/src/bootstrap/less/type.less +303 -0
  216. package/src/bootstrap/less/utilities.less +55 -0
  217. package/src/bootstrap/less/variables.less +895 -0
  218. package/src/bootstrap/less/wells.less +29 -0
  219. package/src/components/ManageHomeCS/Cockpit.vue +2 -2
  220. package/src/components/ManageHomeCS/CustomerService/ContentmentStatistics.vue +135 -24
  221. package/src/components/ManageHomeCS/NewHome/NewManageHome.vue +48 -15
  222. package/src/components/ManageHomeCS/NewHome/TextChildsellgas.vue +83 -21
  223. package/src/components/ManageHomeCS/NewHome/TextProfit.vue +148 -94
  224. package/src/components/ManageHomeCS/NewHome/TextSellgas.vue +64 -12
  225. package/src/components/ManageHomeCS/NewHome/TextShanximap.vue +128 -123
  226. package/src/components/ManageHomeCS/NewHome/TextTotalsellgas.vue +33 -18
  227. package/src/components/ManageHomeCS/NewHome/TextUser.vue +56 -39
  228. package/src/components/ManageHomeCS/NewHome/TextUser2.vue +295 -0
  229. package/src/components/ManageHomeCS/NewHome/baoding.vue +382 -0
  230. package/src/components/ManageHomeCS/User/GasDistri.vue +106 -83
  231. package/src/components/WebReport/NotUpload.vue +165 -151
  232. package/src/components/WebReport/OweQuery.vue +126 -204
  233. package/src/components/sale/businessquery/ChangeMeterQuery.vue +378 -392
  234. package/src/components/sale/businessquery/ChargeQuery.vue +2 -2
  235. package/src/components/sale/config/exportConfig.js +5 -5
  236. package/src/components/sale/filesquery/MeterQuery.vue +2 -33
  237. package/src/components/sale/filesquery/UserQuery.vue +389 -396
  238. package/src/components/webmeter/DrillData/UserGasAll.vue +371 -391
  239. package/src/components/webmeter/DrillData/UserGasEform.vue +159 -229
  240. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +679 -679
  241. package/src/newmanage.js +4 -0
  242. package/src/reportManage.js +193 -193
  243. package/src/stores/DataSql.js +41 -22
  244. package/static/NewManageHome//347/273/20420.png +0 -0
  245. package/static/NewManageHome//347/273/20421.png +0 -0
  246. package/static/NewManageHome//347/273/204220.png +0 -0
  247. package/static/baoding.json +1 -0
  248. package/static/baoding1.json +29239 -0
  249. package/static/langfang.json +1 -0
  250. package/static//344/277/235/345/256/232/345/270/202.json +1 -0
  251. package/static//345/273/212/345/235/212/345/270/202.json +1 -0
  252. /package/{git → .gradle/7.4/dependencies-accessors/gc.properties} +0 -0
package/.gitattributes ADDED
@@ -0,0 +1,6 @@
1
+ #
2
+ # https://help.github.com/articles/dealing-with-line-endings/
3
+ #
4
+ # These are explicitly windows files and should use crlf
5
+ *.bat text eol=crlf
6
+
File without changes
@@ -0,0 +1,2 @@
1
+ #Thu Jun 20 14:07:38 CST 2024
2
+ gradle.version=7.4
Binary file
File without changes
@@ -1,158 +1,155 @@
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
- var str = 'http://222.223.102.204:8300', str2 = 'http://222.223.102.204:8300'
12
- var proxyTable = {
13
- /*'/rs/logic/exportfile': {
14
- target: str2
15
- },*/
16
- '/file': {
17
- target: str
18
- },
19
- // 查找资源服务数据
20
- '/rs/search': {
21
- target: str2
22
- },
23
- // 用户登录服务地址
24
- '/rs/user': {
25
- target: str2
26
- },
27
- '/rs/path/getParams': {
28
- target: str
29
- },
30
- '/rs/logic/getInitData': {
31
- target: str
32
- },
33
- '/rs/data': {
34
- target: str2
35
- },
36
- '/rs/license': {
37
- target: str2
38
- },
39
- '/rs/db': {
40
- target: str2
41
- },
42
- '/excel': {
43
- target: str2
44
- },
45
-
46
- '/rs/logic/getSaleInitData': {
47
- target: str
48
- },
49
- '/rs/logic/getLogin': {
50
- target: str
51
- },
52
- '/rs/config': {
53
- target: str
54
- },
55
- '/rs/sql/getLicenseById': {
56
- target: str2
57
- },
58
- '/rs/Invoice': {
59
- target: 'http://127.0.0.1:8090/Invoice/rs/aisino/invoice'
60
- },
61
- '/rs/report': {
62
- target: 'http://127.0.0.1:8089/manage'
63
- // target: str
64
- },
65
- '/rs/vue': {
66
- // target: 'http://127.0.0.1:8089/manage'
67
- target: str
68
- },
69
- '/rs/logic/batchSaveinstruct': {
70
- // target: 'http://127.0.0.1:8080/'
71
- target: 'http://127.0.0.1:8080/revenue'
72
- },
73
- '/rs': {
74
- // target: 'http://127.0.0.1:8080/'
75
- target: str
76
- }
77
- }
78
-
79
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
80
- publicPath: config.output.publicPath,
81
- stats: {
82
- colors: true,
83
- chunks: false
84
- }
85
- })
86
-
87
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
88
- // force page reload when html-webpack-plugin template changes
89
- compiler.plugin('compilation', function (compilation) {
90
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
91
- hotMiddleware.publish({ action: 'reload' })
92
- cb()
93
- })
94
- })
95
-
96
- // proxy api requests
97
- Object.keys(proxyTable).forEach(function (context) {
98
- var options = proxyTable[context]
99
- if (typeof options === 'string') {
100
- options = { target: options }
101
- }
102
- app.use(proxyMiddleware(context, options))
103
- })
104
-
105
- // handle fallback for HTML5 history API
106
- app.use(require('connect-history-api-fallback')())
107
-
108
- // serve webpack bundle output
109
- app.use(devMiddleware)
110
-
111
- // enable hot-reload and state-preserving
112
- // compilation error display
113
- app.use(hotMiddleware)
114
-
115
- // serve pure static assets
116
- app.use('/static', express.static('./static'))
117
-
118
- // app.all('/rs/*', function (req, res) {
119
- // proxy.web(req, res, {
120
- // target: 'http://127.0.0.1:8081/reports'
121
- // })
122
- // })
123
-
124
- // app.all('/rs/*', function (req, res) {
125
- // proxy.web(req, res, {
126
- // target: 'http://127.0.0.1:8081/ldap'
127
- // })
128
- // })
129
- // app.all('/excel/*', function (req, res) {
130
- // proxy.web(req, res, {
131
- // target: 'http://127.0.0.1:8081/charge'
132
- // })
133
- // })
134
-
135
- // app.all('/rs/*', function (req, res) {
136
- // proxy.web(req, res, {
137
- // target: 'http://127.0.0.1:82/charge'
138
- // })
139
- // })
140
-
141
- // app.all('/*', function (req, res) {
142
- // proxy.web(req, res, {
143
- // target: 'http://127.0.0.1:82'
144
- // })
145
- // })
146
- // app.all('/rs/user', function (req, res) {
147
- // proxy.web(req, res, {
148
- // target: 'http://127.0.0.1:82'
149
- // })
150
- // })
151
-
152
- module.exports = app.listen(8085, function (err) {
153
- if (err) {
154
- console.log(err)
155
- return
156
- }
157
- console.log('Listening at http://localhost:8085')
158
- })
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
+ var str = 'http://192.168.50.199:8300/', str2 = 'http://192.168.50.199:7000/ldap'
12
+ var proxyTable = {
13
+ /*'/rs/logic/exportfile': {
14
+ target: str2
15
+ },*/
16
+ '/file': {
17
+ target: str
18
+ },
19
+ // 查找资源服务数据
20
+ '/rs/search': {
21
+ target: str2
22
+ },
23
+ // 用户登录服务地址
24
+ '/rs/user': {
25
+ target: str2
26
+ },
27
+ '/rs/path/getParams': {
28
+ target: str
29
+ },
30
+ '/rs/logic/getInitData': {
31
+ target: str
32
+ },
33
+ '/rs/data': {
34
+ target: str2
35
+ },
36
+ '/rs/license': {
37
+ target: str2
38
+ },
39
+ '/rs/db': {
40
+ target: str2
41
+ },
42
+ '/excel': {
43
+ target: str2
44
+ },
45
+
46
+ '/rs/logic/getSaleInitData': {
47
+ target: str
48
+ },
49
+ '/rs/logic/getLogin': {
50
+ target: str
51
+ },
52
+ '/rs/config': {
53
+ target: str
54
+ },
55
+ '/rs/sql/getLicenseById': {
56
+ target: str2
57
+ },
58
+ '/rs/Invoice': {
59
+ target: 'http://127.0.0.1:8090/Invoice/rs/aisino/invoice'
60
+ },
61
+ '/rs/report': {
62
+ target: 'http://127.0.0.1:8089/manage'
63
+ // target: str
64
+ },
65
+ '/rs/vue': {
66
+ // target: 'http://127.0.0.1:8089/manage'
67
+ target: str
68
+ },
69
+ '/rs': {
70
+ target: 'http://127.0.0.1:8080/manage'
71
+ // target: 'http://192.168.50.203:8082/manage'
72
+ // target: str
73
+ }
74
+ }
75
+
76
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
77
+ publicPath: config.output.publicPath,
78
+ stats: {
79
+ colors: true,
80
+ chunks: false
81
+ }
82
+ })
83
+
84
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
85
+ // force page reload when html-webpack-plugin template changes
86
+ compiler.plugin('compilation', function (compilation) {
87
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
88
+ hotMiddleware.publish({ action: 'reload' })
89
+ cb()
90
+ })
91
+ })
92
+
93
+ // proxy api requests
94
+ Object.keys(proxyTable).forEach(function (context) {
95
+ var options = proxyTable[context]
96
+ if (typeof options === 'string') {
97
+ options = { target: options }
98
+ }
99
+ app.use(proxyMiddleware(context, options))
100
+ })
101
+
102
+ // handle fallback for HTML5 history API
103
+ app.use(require('connect-history-api-fallback')())
104
+
105
+ // serve webpack bundle output
106
+ app.use(devMiddleware)
107
+
108
+ // enable hot-reload and state-preserving
109
+ // compilation error display
110
+ app.use(hotMiddleware)
111
+
112
+ // serve pure static assets
113
+ app.use('/static', express.static('./static'))
114
+
115
+ // app.all('/rs/*', function (req, res) {
116
+ // proxy.web(req, res, {
117
+ // target: 'http://127.0.0.1:8081/reports'
118
+ // })
119
+ // })
120
+
121
+ // app.all('/rs/*', function (req, res) {
122
+ // proxy.web(req, res, {
123
+ // target: 'http://127.0.0.1:8081/ldap'
124
+ // })
125
+ // })
126
+ // app.all('/excel/*', function (req, res) {
127
+ // proxy.web(req, res, {
128
+ // target: 'http://127.0.0.1:8081/charge'
129
+ // })
130
+ // })
131
+
132
+ // app.all('/rs/*', function (req, res) {
133
+ // proxy.web(req, res, {
134
+ // target: 'http://127.0.0.1:82/charge'
135
+ // })
136
+ // })
137
+
138
+ // app.all('/*', function (req, res) {
139
+ // proxy.web(req, res, {
140
+ // target: 'http://127.0.0.1:82'
141
+ // })
142
+ // })
143
+ // app.all('/rs/user', function (req, res) {
144
+ // proxy.web(req, res, {
145
+ // target: 'http://127.0.0.1:82'
146
+ // })
147
+ // })
148
+
149
+ module.exports = app.listen(8085, function (err) {
150
+ if (err) {
151
+ console.log(err)
152
+ return
153
+ }
154
+ console.log('Listening at http://localhost:8085')
155
+ })
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file