manage-client 3.2.74 → 3.2.75

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 (476) hide show
  1. package/.babelrc +5 -5
  2. package/.classpath +6 -6
  3. package/.editorconfig +9 -9
  4. package/.project +18 -18
  5. package/README.md +38 -38
  6. package/build/dev-server.js +21 -21
  7. package/config/dev.env.js +6 -6
  8. package/config/prod.env.js +3 -3
  9. package/config/test.env.js +6 -6
  10. package/package.json +1 -1
  11. package/release.bat +5 -5
  12. package/src/components/MeterManage/ChangeMeterQuery.vue +82 -82
  13. package/src/components/MeterManage/HandQuery.vue +72 -72
  14. package/src/components/MeterManage/ReversalQuery.vue +77 -77
  15. package/src/components/SellReport/GaspriceHas.vue +141 -141
  16. package/src/components/SellReport/ManageBusSummary.vue +224 -224
  17. package/src/components/WebReport/AbnormalInfoEcharts.vue +120 -120
  18. package/src/components/WebReport/Communication.vue +131 -131
  19. package/src/components/WebReport/CompanyUser.vue +79 -79
  20. package/src/components/WebReport/GaspriceHas.vue +141 -141
  21. package/src/components/WebReport/ReportWorklist.vue +220 -220
  22. package/src/components/WebReport/SellType.vue +89 -89
  23. package/src/components/WebReport/Telemanlist.vue +221 -221
  24. package/src/components/WebReport/UserGasEcharts.vue +107 -107
  25. package/src/components/WebReport/ValueEcharts.vue +99 -99
  26. package/src/components/sale/config/DefaultPrint.js +6 -6
  27. package/src/components/sale/filesquery/detail/oper/ChangeMessage.vue +46 -46
  28. package/src/components/sale/filesquery/detail/oper/HandOper.vue +46 -46
  29. package/src/components/sale/filesquery/detail/oper/HandleMessage.vue +46 -46
  30. package/src/components/webmeter/gasAnalysis/GasAnalysisEcharts.vue +144 -144
  31. package/src/components/webmeter/gasAnalysis/GasAnalysisSummary.vue +162 -162
  32. package/src/components/webmeter/instruction/NewQueryInstruct.vue +6 -0
  33. package/src/components/webmeter/newwebmeter/NewException/NewExceptionEform.vue +149 -149
  34. package/src/filiale/macheng/RecordInfoQuery.vue +1023 -1023
  35. package/src/filiale/tongchuan/DeviceQuery.vue +581 -581
  36. package/src/filiale/tongchuan/FillGasQuery.vue +524 -524
  37. package/src/filiale/tongchuan/HandplanQuery.vue +1327 -1327
  38. package/src/filiale/tongchuan/MeterQuery.vue +970 -970
  39. package/src/filiale/tongchuan/PriceChangeQuery.vue +408 -408
  40. package/src/filiale/tongchuan/ReportList.vue +472 -472
  41. package/src/filiale/tongchuan/UserDeviceQuery.vue +441 -441
  42. package/src/filiale/tongchuan/UserQuery.vue +947 -947
  43. package/src/filiale/tongchuan/config/exportConfig.js +857 -857
  44. package/src/filiale/tongchuan/sale.js +25 -25
  45. package/src/main.js +66 -66
  46. package/src/plugins/LodopFuncs.js +124 -124
  47. package/src/stores/GetParames.js +15 -15
  48. package/src/stores/Util.js +132 -132
  49. package/test/unit/.eslintrc +5 -5
  50. package/test/unit/TestUtil.js +35 -35
  51. package/test/unit/context.html +20 -20
  52. package/test/unit/index.js +13 -13
  53. package/test/unit/init.js +11 -11
  54. package/test/unit/karma.conf.js +45 -45
  55. package/test/unit/specs/components/CallReport/Repair.spec.js +25 -25
  56. package/test/unit/specs/components/ManageBusiness/EquipmentQuery.spec.js +21 -21
  57. package/test/unit/specs/components/ManageBusiness/TableWithQuery.spec.js +21 -21
  58. package/test/unit/specs/components/ManageBusiness/UserQuery.spec.js +21 -21
  59. package/.gradle/5.2.1/executionHistory/executionHistory.bin +0 -0
  60. package/.gradle/5.2.1/executionHistory/executionHistory.lock +0 -0
  61. package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
  62. package/.gradle/5.2.1/fileHashes/fileHashes.bin +0 -0
  63. package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
  64. package/.gradle/5.2.1/gc.properties +0 -0
  65. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  66. package/dist/static/.gitkeep +0 -0
  67. package/dist/static/ManageHomePic/gasborder.png +0 -0
  68. package/dist/static/ManageHomePic//345/212/240/350/275/275/346/225/260/346/215/256.gif +0 -0
  69. package/dist/static/ManageHomePic//345/212/240/350/275/275/346/225/260/346/215/2561.gif +0 -0
  70. package/dist/static/ManageHomePic//345/233/276/345/261/2020.png +0 -0
  71. package/dist/static/ManageHomePic//345/233/276/345/261/20211.png +0 -0
  72. package/dist/static/ManageHomePic//345/233/276/345/261/2021343.png +0 -0
  73. package/dist/static/ManageHomePic//345/233/276/345/261/2021510.png +0 -0
  74. package/dist/static/ManageHomePic//345/233/276/345/261/20215100.png +0 -0
  75. package/dist/static/ManageHomePic//345/233/276/345/261/2021519.png +0 -0
  76. package/dist/static/ManageHomePic//345/233/276/345/261/2021520.png +0 -0
  77. package/dist/static/ManageHomePic//345/233/276/345/261/2021566.png +0 -0
  78. package/dist/static/ManageHomePic//345/233/276/345/261/2021682.png +0 -0
  79. package/dist/static/ManageHomePic//345/233/276/345/261/2021682/346/213/267/350/264/235.png +0 -0
  80. package/dist/static/ManageHomePic//345/233/276/345/261/202519.png +0 -0
  81. package/dist/static/ManageHomePic//345/233/276/345/261/2025/346/213/267/350/264/235.png +0 -0
  82. package/dist/static/ManageHomePic//345/233/276/345/261/2025/346/213/267/350/264/2354.png +0 -0
  83. package/dist/static/ManageHomePic//345/233/276/345/261/2026.png +0 -0
  84. package/dist/static/ManageHomePic//345/233/276/345/261/20261.png +0 -0
  85. package/dist/static/ManageHomePic//345/233/276/345/261/2027.png +0 -0
  86. package/dist/static/ManageHomePic//345/233/276/345/261/20271.png +0 -0
  87. package/dist/static/ManageHomePic//345/233/276/345/261/2028.png +0 -0
  88. package/dist/static/ManageHomePic//345/233/276/345/261/2029.png +0 -0
  89. package/dist/static/ManageHomePic//345/233/276/345/261/202949/346/213/267/350/264/235.png +0 -0
  90. package/dist/static/ManageHomePic//345/275/242/347/212/266927.png +0 -0
  91. package/dist/static/ManageHomePic//345/275/242/347/212/266927/346/213/267/350/264/235.png +0 -0
  92. package/dist/static/ManageHomePic//345/275/242/347/212/266927/346/213/267/350/264/2352.png +0 -0
  93. package/dist/static/ManageHomePic//346/244/255/345/234/2062.png +0 -0
  94. package/dist/static/ManageHomePic//346/244/255/345/234/2064.png +0 -0
  95. package/dist/static/ManageHomePic//346/244/255/345/234/2066/346/213/267/350/264/2353.png +0 -0
  96. package/dist/static/ManageHomePic//346/244/255/345/234/2067/346/213/267/350/264/23516.png +0 -0
  97. package/dist/static/ManageHomePic//346/244/255/345/234/2067/346/213/267/350/264/23517.png +0 -0
  98. package/dist/static/ManageHomePic//346/244/255/345/234/2067/346/213/267/350/264/23518.png +0 -0
  99. package/dist/static/ManageHomePic//346/244/255/345/234/2067/346/213/267/350/264/23519.png +0 -0
  100. package/dist/static/ManageHomePic//346/244/255/345/234/2068/346/213/267/350/264/2356.png +0 -0
  101. package/dist/static/ManageHomePic//347/237/251/345/275/2421684.png +0 -0
  102. package/dist/static/ManageHomePic//347/237/251/345/275/2428.png +0 -0
  103. package/dist/static/ManageHomePic//350/203/214/346/231/257.png +0 -0
  104. package/dist/static/ManagementControl/echarts10.png +0 -0
  105. package/dist/static/ManagementControl/echarts11.png +0 -0
  106. package/dist/static/ManagementControl/echarts12.png +0 -0
  107. package/dist/static/ManagementControl/echarts13.png +0 -0
  108. package/dist/static/ManagementControl/echarts14.png +0 -0
  109. package/dist/static/ManagementControl/echarts15.png +0 -0
  110. package/dist/static/ManagementControl/echarts16.png +0 -0
  111. package/dist/static/ManagementControl/echarts17.png +0 -0
  112. package/dist/static/ManagementControl/echarts18.png +0 -0
  113. package/dist/static/ManagementControl/echarts4.png +0 -0
  114. package/dist/static/ManagementControl/echarts5.png +0 -0
  115. package/dist/static/ManagementControl/echarts51.png +0 -0
  116. package/dist/static/ManagementControl/echarts6.png +0 -0
  117. package/dist/static/ManagementControl/echarts7.png +0 -0
  118. package/dist/static/ManagementControl/echarts71.png +0 -0
  119. package/dist/static/ManagementControl/echarts8.png +0 -0
  120. package/dist/static/ManagementControl//345/233/276/345/261/20211/346/213/267/350/264/235.png +0 -0
  121. package/dist/static/ManagementControl//347/237/251/345/275/2425/346/213/267/350/264/2353.png +0 -0
  122. package/dist/static/ManagementControl//347/237/251/345/275/2425/346/213/267/350/264/2355.png +0 -0
  123. package/dist/static/ManagementControl//347/237/251/345/275/2425/346/213/267/350/264/2356.png +0 -0
  124. package/dist/static/NewManageHome/01.png +0 -0
  125. package/dist/static/NewManageHome/02.png +0 -0
  126. package/dist/static/NewManageHome/03.png +0 -0
  127. package/dist/static/NewManageHome/04.png +0 -0
  128. package/dist/static/NewManageHome/1.gif +0 -0
  129. package/dist/static/NewManageHome/2.gif +0 -0
  130. package/dist/static/NewManageHome/3.gif +0 -0
  131. package/dist/static/NewManageHome/5gif.gif +0 -0
  132. package/dist/static/NewManageHome/6gif.gif +0 -0
  133. package/dist/static/NewManageHome/7.gif +0 -0
  134. package/dist/static/NewManageHome/8.gif +0 -0
  135. package/dist/static/NewManageHome/9.gif +0 -0
  136. package/dist/static/NewManageHome/NewManageHome/01.png +0 -0
  137. package/dist/static/NewManageHome/NewManageHome/02.png +0 -0
  138. package/dist/static/NewManageHome/NewManageHome/03.png +0 -0
  139. package/dist/static/NewManageHome/NewManageHome/04.png +0 -0
  140. package/dist/static/NewManageHome/NewManageHome/1.gif +0 -0
  141. package/dist/static/NewManageHome/NewManageHome/2.gif +0 -0
  142. package/dist/static/NewManageHome/NewManageHome/3.gif +0 -0
  143. package/dist/static/NewManageHome/NewManageHome/5gif.gif +0 -0
  144. package/dist/static/NewManageHome/NewManageHome/6gif.gif +0 -0
  145. package/dist/static/NewManageHome/NewManageHome/7.gif +0 -0
  146. package/dist/static/NewManageHome/NewManageHome/8.gif +0 -0
  147. package/dist/static/NewManageHome/NewManageHome/9.gif +0 -0
  148. package/dist/static/NewManageHome/NewManageHome/background_qinhua.png +0 -0
  149. package/dist/static/NewManageHome/NewManageHome/green.png +0 -0
  150. package/dist/static/NewManageHome/NewManageHome/map.png +0 -0
  151. package/dist/static/NewManageHome/NewManageHome/map1.png +0 -0
  152. package/dist/static/NewManageHome/NewManageHome/mpa.png +0 -0
  153. package/dist/static/NewManageHome/NewManageHome/sell_1.png +0 -0
  154. package/dist/static/NewManageHome/NewManageHome/sell_2.png +0 -0
  155. package/dist/static/NewManageHome/NewManageHome/title.png +0 -0
  156. package/dist/static/NewManageHome/NewManageHome/title_left.png +0 -0
  157. package/dist/static/NewManageHome/NewManageHome/title_right.png +0 -0
  158. package/dist/static/NewManageHome/NewManageHome//345/210/206/345/205/254/345/217/270/345/271/264/345/272/246/350/264/255/350/277/233/351/207/217.png +0 -0
  159. package/dist/static/NewManageHome/NewManageHome//345/212/240/350/275/275.gif +0 -0
  160. package/dist/static/NewManageHome/NewManageHome//345/212/250/346/225/210.gif +0 -0
  161. package/dist/static/NewManageHome/NewManageHome//345/215/203/351/230/263/345/216/2771.png +0 -0
  162. package/dist/static/NewManageHome/NewManageHome//345/215/203/351/230/263/345/216/2772.png +0 -0
  163. package/dist/static/NewManageHome/NewManageHome//345/215/242/346/260/217/345/216/2771.png +0 -0
  164. package/dist/static/NewManageHome/NewManageHome//345/215/242/346/260/217/345/216/2772.png +0 -0
  165. package/dist/static/NewManageHome/NewManageHome//345/217/263/344/270/212.png +0 -0
  166. package/dist/static/NewManageHome/NewManageHome//345/217/263/344/270/213.png +0 -0
  167. package/dist/static/NewManageHome/NewManageHome//345/233/272/345/256/232/350/265/204/344/272/247.png +0 -0
  168. package/dist/static/NewManageHome/NewManageHome//345/233/276/345/261/2020.png +0 -0
  169. package/dist/static/NewManageHome/NewManageHome//345/233/276/345/261/20212.png +0 -0
  170. package/dist/static/NewManageHome/NewManageHome//345/233/276/345/261/2024.png +0 -0
  171. package/dist/static/NewManageHome/NewManageHome//345/233/276/345/261/2025.png +0 -0
  172. package/dist/static/NewManageHome/NewManageHome//345/233/276/345/261/202527.png +0 -0
  173. package/dist/static/NewManageHome/NewManageHome//345/234/206/350/247/222/347/237/251/345/275/2421163.png +0 -0
  174. package/dist/static/NewManageHome/NewManageHome//345/237/216/344/270/2341.png +0 -0
  175. package/dist/static/NewManageHome/NewManageHome//345/237/216/344/270/2342.png +0 -0
  176. package/dist/static/NewManageHome/NewManageHome//345/237/216/345/214/2271.png +0 -0
  177. package/dist/static/NewManageHome/NewManageHome//345/237/216/345/214/2272.png +0 -0
  178. package/dist/static/NewManageHome/NewManageHome//345/237/216/345/215/2271.png +0 -0
  179. package/dist/static/NewManageHome/NewManageHome//345/237/216/345/215/2272.png +0 -0
  180. package/dist/static/NewManageHome/NewManageHome//345/237/216/350/245/2771.png +0 -0
  181. package/dist/static/NewManageHome/NewManageHome//345/237/216/350/245/2772.png +0 -0
  182. package/dist/static/NewManageHome/NewManageHome//345/267/246/344/270/212.png +0 -0
  183. package/dist/static/NewManageHome/NewManageHome//345/267/246/344/270/213.png +0 -0
  184. package/dist/static/NewManageHome/NewManageHome//345/271/263/345/210/251/345/216/2771.png +0 -0
  185. package/dist/static/NewManageHome/NewManageHome//345/271/263/345/210/251/345/216/2772.png +0 -0
  186. package/dist/static/NewManageHome/NewManageHome//346/200/273/345/205/254/345/217/270/351/224/200/345/224/256/350/266/213/345/212/277.png +0 -0
  187. package/dist/static/NewManageHome/NewManageHome//347/224/250/346/210/267.png +0 -0
  188. package/dist/static/NewManageHome/NewManageHome//347/237/251/345/275/2421173/346/213/267/350/264/235.png +0 -0
  189. package/dist/static/NewManageHome/NewManageHome//347/237/251/345/275/2421186.png +0 -0
  190. package/dist/static/NewManageHome/NewManageHome//347/237/251/345/275/2421186/346/213/267/350/264/235.png +0 -0
  191. package/dist/static/NewManageHome/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2353.png +0 -0
  192. package/dist/static/NewManageHome/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2356.png +0 -0
  193. package/dist/static/NewManageHome/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2357.png +0 -0
  194. package/dist/static/NewManageHome/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2359.png +0 -0
  195. package/dist/static/NewManageHome/NewManageHome//347/237/251/345/275/24216/346/213/267/350/264/23511.png +0 -0
  196. package/dist/static/NewManageHome/NewManageHome//347/237/251/345/275/24216/346/213/267/350/264/23516.png +0 -0
  197. package/dist/static/NewManageHome/NewManageHome//347/237/251/345/275/24216/346/213/267/350/264/23522.png +0 -0
  198. package/dist/static/NewManageHome/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2353.png +0 -0
  199. package/dist/static/NewManageHome/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2354.png +0 -0
  200. package/dist/static/NewManageHome/NewManageHome//347/273/20420.png +0 -0
  201. package/dist/static/NewManageHome/NewManageHome//347/273/20437.png +0 -0
  202. package/dist/static/NewManageHome/NewManageHome//347/273/20443.png +0 -0
  203. package/dist/static/NewManageHome/NewManageHome//347/273/20445.png +0 -0
  204. package/dist/static/NewManageHome/NewManageHome//350/203/214/346/231/2571.png +0 -0
  205. package/dist/static/NewManageHome/NewManageHome//350/220/245/344/270/232/346/224/266/345/205/245.png +0 -0
  206. package/dist/static/NewManageHome/NewManageHome//351/224/200/345/224/256/346/260/224/351/207/217.png +0 -0
  207. package/dist/static/NewManageHome/background_qinhua.png +0 -0
  208. package/dist/static/NewManageHome/green.png +0 -0
  209. package/dist/static/NewManageHome/sell_1.png +0 -0
  210. package/dist/static/NewManageHome/sell_2.png +0 -0
  211. package/dist/static/NewManageHome/title.png +0 -0
  212. package/dist/static/NewManageHome/title_left.png +0 -0
  213. package/dist/static/NewManageHome/title_right.png +0 -0
  214. package/dist/static/NewManageHome/title_wuhai.png +0 -0
  215. package/dist/static/NewManageHome/title_wujie1.png +0 -0
  216. package/dist/static/NewManageHome//345/210/206/345/205/254/345/217/270/345/271/264/345/272/246/350/264/255/350/277/233/351/207/217.png +0 -0
  217. package/dist/static/NewManageHome//345/212/240/350/275/275.gif +0 -0
  218. package/dist/static/NewManageHome//345/212/250/346/225/210.gif +0 -0
  219. package/dist/static/NewManageHome//345/217/263/344/270/212.png +0 -0
  220. package/dist/static/NewManageHome//345/217/263/344/270/213.png +0 -0
  221. package/dist/static/NewManageHome//345/233/272/345/256/232/350/265/204/344/272/247.png +0 -0
  222. package/dist/static/NewManageHome//345/233/276/345/261/2020.png +0 -0
  223. package/dist/static/NewManageHome//345/233/276/345/261/20212.png +0 -0
  224. package/dist/static/NewManageHome//345/233/276/345/261/2024.png +0 -0
  225. package/dist/static/NewManageHome//345/233/276/345/261/2025.png +0 -0
  226. package/dist/static/NewManageHome//345/233/276/345/261/202527.png +0 -0
  227. package/dist/static/NewManageHome//345/267/246/344/270/212.png +0 -0
  228. package/dist/static/NewManageHome//345/267/246/344/270/213.png +0 -0
  229. package/dist/static/NewManageHome//346/200/273/345/205/254/345/217/270/351/224/200/345/224/256/350/266/213/345/212/277.png +0 -0
  230. package/dist/static/NewManageHome//347/224/250/346/210/267.png +0 -0
  231. package/dist/static/NewManageHome//347/237/251/345/275/2421173/346/213/267/350/264/235.png +0 -0
  232. package/dist/static/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2353.png +0 -0
  233. package/dist/static/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2356.png +0 -0
  234. package/dist/static/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2357.png +0 -0
  235. package/dist/static/NewManageHome//347/237/251/345/275/24211/346/213/267/350/264/2359.png +0 -0
  236. package/dist/static/NewManageHome//347/237/251/345/275/24216/346/213/267/350/264/23511.png +0 -0
  237. package/dist/static/NewManageHome//347/237/251/345/275/24216/346/213/267/350/264/23516.png +0 -0
  238. package/dist/static/NewManageHome//347/237/251/345/275/24216/346/213/267/350/264/23522.png +0 -0
  239. package/dist/static/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2353.png +0 -0
  240. package/dist/static/NewManageHome//347/237/251/345/275/2426/346/213/267/350/264/2354.png +0 -0
  241. package/dist/static/NewManageHome//347/273/20420.png +0 -0
  242. package/dist/static/NewManageHome//347/273/20437.png +0 -0
  243. package/dist/static/NewManageHome//347/273/20443.png +0 -0
  244. package/dist/static/NewManageHome//347/273/20445.png +0 -0
  245. package/dist/static/NewManageHome//350/203/214/346/231/2571.png +0 -0
  246. package/dist/static/NewManageHome//350/220/245/344/270/232/346/224/266/345/205/245.png +0 -0
  247. package/dist/static/NewManageHome//351/224/200/345/224/256/346/260/224/351/207/217.png +0 -0
  248. package/dist/static/WebMetericon/0001.png +0 -0
  249. package/dist/static/WebMetericon/0002.png +0 -0
  250. package/dist/static/WebMetericon/0003.png +0 -0
  251. package/dist/static/WebMetericon/0004.png +0 -0
  252. package/dist/static/WebMetericon/001.png +0 -0
  253. package/dist/static/WebMetericon/002.png +0 -0
  254. package/dist/static/WebMetericon/003.png +0 -0
  255. package/dist/static/WebMetericon/004.png +0 -0
  256. package/dist/static/WebMetericon/01.png +0 -0
  257. package/dist/static/WebMetericon/02.png +0 -0
  258. package/dist/static/WebMetericon/03.png +0 -0
  259. package/dist/static/WebMetericon/04.png +0 -0
  260. package/dist/static/WebMetericon/1.png +0 -0
  261. package/dist/static/WebMetericon/2.png +0 -0
  262. package/dist/static/WebMetericon/3.png +0 -0
  263. package/dist/static/WebMetericon/4.png +0 -0
  264. package/dist/static/WebMetericon/Cell1.png +0 -0
  265. package/dist/static/WebMetericon/Cell2.png +0 -0
  266. package/dist/static/WebMetericon/Cell3.png +0 -0
  267. package/dist/static/WebMetericon/Cell4.png +0 -0
  268. package/dist/static/WebMetericon/Cell5.png +0 -0
  269. package/dist/static/WebMetericon/Cell6.png +0 -0
  270. package/dist/static/WebMetericon/Signal1.png +0 -0
  271. package/dist/static/WebMetericon/Signal2.png +0 -0
  272. package/dist/static/WebMetericon/Signal3.png +0 -0
  273. package/dist/static/WebMetericon/Signal4.png +0 -0
  274. package/dist/static/WebMetericon/guzhang.png +0 -0
  275. package/dist/static/WebMetericon/zhengchang.png +0 -0
  276. package/dist/static/WebMetericon//345/233/276/345/261/2021554.png +0 -0
  277. package/dist/static/WebMetericon//345/233/276/345/261/2021558.png +0 -0
  278. package/dist/static/WebMetericon//345/233/276/345/261/2021558/346/213/267/350/264/2352.png +0 -0
  279. package/dist/static/WebMetericon//345/233/276/345/261/2021573/346/213/267/350/264/235.png +0 -0
  280. package/dist/static/WebMetericon//345/233/276/345/261/2021573/346/213/267/350/264/2352.png +0 -0
  281. package/dist/static/WebMetericon//345/233/276/345/261/20216/346/213/267/350/264/2353.png +0 -0
  282. package/dist/static/WebMetericon//345/233/276/345/261/20217/346/213/267/350/264/2357.png +0 -0
  283. package/dist/static/WebMetericon//345/233/276/345/261/2022556.png +0 -0
  284. package/dist/static/WebMetericon//345/233/276/345/261/20225560.png +0 -0
  285. package/dist/static/WebMetericon//345/233/276/345/261/2025/346/213/267/350/264/2353.png +0 -0
  286. package/dist/static/WebMetericon//345/233/276/345/261/202872/346/213/267/350/264/235.png +0 -0
  287. package/dist/static/WebMetericon//346/244/255/345/234/206874.png +0 -0
  288. package/dist/static/WebMetericon//346/244/255/345/234/206874/346/213/267/350/264/235.png +0 -0
  289. package/dist/static/WebMetericon//347/237/251/345/275/2421538/346/213/267/350/264/2353.png +0 -0
  290. package/dist/static/WebMetericon//347/237/251/345/275/2421828.png +0 -0
  291. package/dist/static/WebMetericon//350/256/276/347/275/256/345/217/202/346/225/260.png +0 -0
  292. package/dist/static/batchleft.png +0 -0
  293. package/dist/static/batchright.png +0 -0
  294. package/dist/static/bluemainbg.jpg +0 -0
  295. package/dist/static/china.json +0 -1
  296. package/dist/static/huangtengbiaozhi.png +0 -0
  297. package/dist/static/images/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png +0 -0
  298. package/dist/static/images/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
  299. package/dist/static/images/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
  300. package/dist/static/images/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
  301. package/dist/static/images/lefticon//345/233/276/345/261/202577.png +0 -0
  302. package/dist/static/images/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
  303. package/dist/static/images/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
  304. package/dist/static/images/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
  305. package/dist/static/images/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
  306. package/dist/static/images/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
  307. package/dist/static/images/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
  308. package/dist/static/images/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
  309. package/dist/static/images/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
  310. package/dist/static/images/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
  311. package/dist/static/images/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
  312. package/dist/static/images/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
  313. package/dist/static/images/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
  314. package/dist/static/images/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
  315. package/dist/static/images/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
  316. package/dist/static/images/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
  317. package/dist/static/images/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
  318. package/dist/static/images/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
  319. package/dist/static/images/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
  320. package/dist/static/img/close.png +0 -0
  321. package/dist/static/img/close_img.png +0 -0
  322. package/dist/static/img/open_img.png +0 -0
  323. package/dist/static/jcwx.jpg +0 -0
  324. package/dist/static/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png +0 -0
  325. package/dist/static/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
  326. package/dist/static/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
  327. package/dist/static/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
  328. package/dist/static/lefticon//345/233/276/345/261/202577.png +0 -0
  329. package/dist/static/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
  330. package/dist/static/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
  331. package/dist/static/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
  332. package/dist/static/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
  333. package/dist/static/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
  334. package/dist/static/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
  335. package/dist/static/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
  336. package/dist/static/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
  337. package/dist/static/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
  338. package/dist/static/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
  339. package/dist/static/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
  340. package/dist/static/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
  341. package/dist/static/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
  342. package/dist/static/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
  343. package/dist/static/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
  344. package/dist/static/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
  345. package/dist/static/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
  346. package/dist/static/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
  347. package/dist/static/login_bg.jpg +0 -0
  348. package/dist/static/login_title.png +0 -0
  349. package/dist/static/login_title1.png +0 -0
  350. package/dist/static/loginbg.jpg +0 -0
  351. package/dist/static/loginbg1.jpg +0 -0
  352. package/dist/static/loginbg_jincheng.jpg +0 -0
  353. package/dist/static/loginbgmain.jpg +0 -0
  354. package/dist/static/loginlogo.png +0 -0
  355. package/dist/static/main_logo.png +0 -0
  356. package/dist/static/mainbg.jpg +0 -0
  357. package/dist/static/mainicon/adddevice.png +0 -0
  358. package/dist/static/mainicon/addmeter.png +0 -0
  359. package/dist/static/mainicon/bank.png +0 -0
  360. package/dist/static/mainicon/biaopan.png +0 -0
  361. package/dist/static/mainicon/cad.jpg +0 -0
  362. package/dist/static/mainicon/chaobiaoyuan.png +0 -0
  363. package/dist/static/mainicon/danganguanli.png +0 -0
  364. package/dist/static/mainicon/deletedevice.png +0 -0
  365. package/dist/static/mainicon/excel.jpg +0 -0
  366. package/dist/static/mainicon/huizong.png +0 -0
  367. package/dist/static/mainicon/jibiaoguanli.png +0 -0
  368. package/dist/static/mainicon/jibiaoguanli2.png +0 -0
  369. package/dist/static/mainicon/jiezhang.png +0 -0
  370. package/dist/static/mainicon/loginbg.jpg +0 -0
  371. package/dist/static/mainicon/shouqishoufei.png +0 -0
  372. package/dist/static/mainicon/treeopen.png +0 -0
  373. package/dist/static/mainicon/treeout.png +0 -0
  374. package/dist/static/mainicon/treeset.png +0 -0
  375. package/dist/static/mainicon/word.jpg +0 -0
  376. package/dist/static/mainicon/wulianwang.png +0 -0
  377. package/dist/static/mainicon/yingyechaxun.png +0 -0
  378. package/dist/static/mainicon/zongheyewu.png +0 -0
  379. package/dist/static/menulogo.png +0 -0
  380. package/dist/static/newStyle/clear.png +0 -0
  381. package/dist/static/newStyle/fife.png +0 -0
  382. package/dist/static/newStyle/hidden.png +0 -0
  383. package/dist/static/newStyle/label-clear.png +0 -0
  384. package/dist/static/newStyle/left-img.png +0 -0
  385. package/dist/static/newStyle/list_ok.png +0 -0
  386. package/dist/static/newStyle/login-check.png +0 -0
  387. package/dist/static/newStyle/login-con.png +0 -0
  388. package/dist/static/newStyle/login-do.gif +0 -0
  389. package/dist/static/newStyle/login-f.png +0 -0
  390. package/dist/static/newStyle/login-info.png +0 -0
  391. package/dist/static/newStyle/login-left.png +0 -0
  392. package/dist/static/newStyle/login-org.png +0 -0
  393. package/dist/static/newStyle/login-pwd.png +0 -0
  394. package/dist/static/newStyle/login-user.png +0 -0
  395. package/dist/static/newStyle/loginbg.gif +0 -0
  396. package/dist/static/newStyle/loginbg1280.gif +0 -0
  397. package/dist/static/newStyle/loginbg1366.gif +0 -0
  398. package/dist/static/newStyle/position.png +0 -0
  399. package/dist/static/newStyle/setting.png +0 -0
  400. package/dist/static/newStyle/setting1.png +0 -0
  401. package/dist/static/newStyle/shirk.png +0 -0
  402. package/dist/static/newStyle/stretch_bottom.png +0 -0
  403. package/dist/static/newStyle/stretch_left.png +0 -0
  404. package/dist/static/newStyle/stretch_right.png +0 -0
  405. package/dist/static/newStyle/stretch_top.png +0 -0
  406. package/dist/static/newStyle/system-off.png +0 -0
  407. package/dist/static/newmainbg.jpg +0 -0
  408. package/dist/static/psicon.png +0 -0
  409. package/dist/static/qh.json +0 -2410
  410. package/dist/static/refresh.png +0 -0
  411. package/dist/static/res.json +0 -58412
  412. package/dist/static/shanxi1.json +0 -1
  413. package/dist/static/singleleft.png +0 -0
  414. package/dist/static/singleright.png +0 -0
  415. package/dist/static/treeclose.png +0 -0
  416. package/dist/static/treeopen.png +0 -0
  417. package/dist/static/treeout.png +0 -0
  418. package/dist/static/treeset.png +0 -0
  419. package/dist/static/usericon.png +0 -0
  420. package/dist/static/webMeter/0001.png +0 -0
  421. package/dist/static/webMeter/0002.png +0 -0
  422. package/dist/static/webMeter/0003.png +0 -0
  423. package/dist/static/webMeter/0004.png +0 -0
  424. package/dist/static/webMeter/001.png +0 -0
  425. package/dist/static/webMeter/002.png +0 -0
  426. package/dist/static/webMeter/003.png +0 -0
  427. package/dist/static/webMeter/004.png +0 -0
  428. package/dist/static/webMeter/01.png +0 -0
  429. package/dist/static/webMeter/02.png +0 -0
  430. package/dist/static/webMeter/03.png +0 -0
  431. package/dist/static/webMeter/04.png +0 -0
  432. package/dist/static/webMeter/1.png +0 -0
  433. package/dist/static/webMeter/2.png +0 -0
  434. package/dist/static/webMeter/3.png +0 -0
  435. package/dist/static/webMeter/4.png +0 -0
  436. package/dist/static/webMeter/Cell1.png +0 -0
  437. package/dist/static/webMeter/Cell2.png +0 -0
  438. package/dist/static/webMeter/Cell3.png +0 -0
  439. package/dist/static/webMeter/Cell4.png +0 -0
  440. package/dist/static/webMeter/Cell5.png +0 -0
  441. package/dist/static/webMeter/Cell6.png +0 -0
  442. package/dist/static/webMeter/Signal1.png +0 -0
  443. package/dist/static/webMeter/Signal2.png +0 -0
  444. package/dist/static/webMeter/Signal3.png +0 -0
  445. package/dist/static/webMeter/Signal4.png +0 -0
  446. package/dist/static/webMeter/guzhang.png +0 -0
  447. package/dist/static/webMeter/shangsheng.png +0 -0
  448. package/dist/static/webMeter/shousuo.png +0 -0
  449. package/dist/static/webMeter/shuaxin.png +0 -0
  450. package/dist/static/webMeter/zhengchang.png +0 -0
  451. package/dist/static/webMeter//345/233/276/345/261/2021554.png +0 -0
  452. package/dist/static/webMeter//345/233/276/345/261/2021558.png +0 -0
  453. package/dist/static/webMeter//345/233/276/345/261/2021558/346/213/267/350/264/2352.png +0 -0
  454. package/dist/static/webMeter//345/233/276/345/261/2021573/346/213/267/350/264/235.png +0 -0
  455. package/dist/static/webMeter//345/233/276/345/261/2021573/346/213/267/350/264/2352.png +0 -0
  456. package/dist/static/webMeter//345/233/276/345/261/20216/346/213/267/350/264/2353.png +0 -0
  457. package/dist/static/webMeter//345/233/276/345/261/20217/346/213/267/350/264/2357.png +0 -0
  458. package/dist/static/webMeter//345/233/276/345/261/2022556.png +0 -0
  459. package/dist/static/webMeter//345/233/276/345/261/20225560.png +0 -0
  460. package/dist/static/webMeter//345/233/276/345/261/2025/346/213/267/350/264/235.png +0 -0
  461. package/dist/static/webMeter//345/233/276/345/261/2025/346/213/267/350/264/2353.png +0 -0
  462. package/dist/static/webMeter//345/233/276/345/261/2025/346/213/267/350/264/2355.png +0 -0
  463. package/dist/static/webMeter//345/233/276/345/261/2025/346/213/267/350/264/2356.png +0 -0
  464. package/dist/static/webMeter//345/233/276/345/261/202872/346/213/267/350/264/235.png +0 -0
  465. package/dist/static/webMeter//345/275/242/347/212/2665.png +0 -0
  466. package/dist/static/webMeter//346/244/255/345/234/206874.png +0 -0
  467. package/dist/static/webMeter//346/244/255/345/234/206874/346/213/267/350/264/235.png +0 -0
  468. package/dist/static/webMeter//347/237/251/345/275/2421538/346/213/267/350/264/2353.png +0 -0
  469. package/dist/static/webMeter//347/237/251/345/275/2421828.png +0 -0
  470. package/dist/static/webMeter//350/256/276/347/275/256/345/217/202/346/225/260.png +0 -0
  471. package/dist/static/wuhai.json +0 -1610
  472. package/dist/static/xinxi.png +0 -0
  473. package/dist/static/yulin.json +0 -1
  474. package/dist/static//345/233/276/345/261/202000.png +0 -0
  475. package/dist/static//345/233/276/345/261/2023.png +0 -0
  476. package/dist/static//345/261/261/344/270/234/347/234/201.json +0 -1
@@ -1,132 +1,132 @@
1
- import Vue from 'vue'
2
-
3
- // 获取当前具体时间
4
- export function getStandardDatetime () {
5
- var now = new Date()
6
- var year = now.getFullYear()
7
- var month = now.getMonth() + 1
8
- if (month < 10) {
9
- month = '0' + month
10
- }
11
- var date1 = now.getDate()
12
- if (date1 < 10) {
13
- date1 = '0' + date1
14
- }
15
- var hour = now.getHours()
16
- if (hour < 10) {
17
- hour = '0' + hour
18
- }
19
- var min = now.getMinutes()
20
- if (min < 10) {
21
- min = '0' + min
22
- }
23
- var second = now.getSeconds()
24
- if (second < 10) {
25
- second = '0' + second
26
- }
27
- var Z = year + '-' + month + '-' + date1 + ' ' + hour + ':' + min + ':' + second
28
- return Z
29
- }
30
-
31
- export function toStandardDateString () {
32
- let dt = new Date()
33
- let month = dt.getMonth() + 1
34
- let date = dt.getDate()
35
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
36
- }
37
-
38
- export function toStandardTimeString () {
39
- let dt = new Date()
40
- let month = dt.getMonth() + 1
41
- let date = dt.getDate()
42
- let hour = dt.getHours()
43
- let min = dt.getMinutes()
44
- let sec = dt.getSeconds()
45
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date) + ' ' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
46
- }
47
- export function toStandardTimeStrings (dt) {
48
- let month = dt.getMonth() + 1
49
- let date = dt.getDate()
50
- let hour = dt.getHours()
51
- let min = dt.getMinutes()
52
- let sec = dt.getSeconds()
53
- return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date) + ' ' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
54
- }
55
-
56
- export function booleanFilter (paper) {
57
- for (let key in paper) {
58
- if (key === 'f_waterheater' || key === 'f_closevalve' || key === 'f_wallhangboiler' || key === 'f_kitchen' || key === 'f_lndheating' || key === 'f_lndheating' || key === 'f_lndjiarelu' || key === 'f_lndfurnace' || key === 'f_welfareboiler' || key === 'f_welfarekitchen' || key === 'f_businboiler' || key === 'f_businkitchen' || key === 'f_jtprice' || key === 'f_dibaohu') {
59
- if (!paper.hasOwnProperty(key)) {
60
- continue
61
- }
62
- if (typeof paper[key] === 'object' && paper[key] != null) {
63
- booleanFilter(paper[key])
64
- } else {
65
- if (paper[key] === 1 || paper[key] === 0) {
66
- paper[key] = (paper[key] === 1)
67
- }
68
- }
69
- }
70
- }
71
- }
72
-
73
- export function reBooleanFilter (paper) {
74
- for (let key in paper) {
75
- console.log(key + ':' + paper[key])
76
- if (!paper.hasOwnProperty(key)) {
77
- continue
78
- }
79
- if (typeof paper[key] === 'object' && paper[key] != null) {
80
- reBooleanFilter(paper[key])
81
- } else {
82
- if (paper[key] === true || paper[key] === false) {
83
- paper[key] = (paper[key] === true ? 1 : 0)
84
- }
85
- }
86
- }
87
- }
88
-
89
- export function guid () {
90
- let buf = new Uint16Array(8)
91
- window.crypto.getRandomValues(buf)
92
- let S4 = function (num) {
93
- let ret = num.toString(16)
94
- while (ret.length < 4) {
95
- ret = '0' + ret
96
- }
97
- return ret
98
- }
99
- return (S4(buf[0]) + S4(buf[1]) + S4(buf[2]) + S4(buf[3]) + S4(buf[4]) + S4(buf[5]) + S4(buf[6]) + S4(buf[7]))
100
- }
101
-
102
- // 通过地址栏的参数获取参数内容
103
- export function getUrlParames (param) {
104
- var query = window.location.search
105
- var iLen = param.length
106
- var iStart = query.indexOf(param)
107
- if (iStart === -1) {
108
- return ''
109
- }
110
- iStart += iLen + 1
111
- var iEnd = query.indexOf('&', iStart)
112
- if (iEnd === -1) {
113
- return query.substring(iStart)
114
- }
115
- return query.substring(iStart, iEnd)
116
- }
117
-
118
- export function choices (param, hasBlank = false, blankHint = '请选择') {
119
- let result = []
120
- if (hasBlank) {
121
- result.push({label: blankHint, value: null})
122
- }
123
- if (!Vue.param) {
124
- result.push({label: 'aaa', value: 'bbb'})
125
- } else {
126
- let p = Vue.param[param]
127
- p.forEach(function (item) {
128
- result.push({label: item.name, value: item.name})
129
- })
130
- }
131
- return result
132
- }
1
+ import Vue from 'vue'
2
+
3
+ // 获取当前具体时间
4
+ export function getStandardDatetime () {
5
+ var now = new Date()
6
+ var year = now.getFullYear()
7
+ var month = now.getMonth() + 1
8
+ if (month < 10) {
9
+ month = '0' + month
10
+ }
11
+ var date1 = now.getDate()
12
+ if (date1 < 10) {
13
+ date1 = '0' + date1
14
+ }
15
+ var hour = now.getHours()
16
+ if (hour < 10) {
17
+ hour = '0' + hour
18
+ }
19
+ var min = now.getMinutes()
20
+ if (min < 10) {
21
+ min = '0' + min
22
+ }
23
+ var second = now.getSeconds()
24
+ if (second < 10) {
25
+ second = '0' + second
26
+ }
27
+ var Z = year + '-' + month + '-' + date1 + ' ' + hour + ':' + min + ':' + second
28
+ return Z
29
+ }
30
+
31
+ export function toStandardDateString () {
32
+ let dt = new Date()
33
+ let month = dt.getMonth() + 1
34
+ let date = dt.getDate()
35
+ return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
36
+ }
37
+
38
+ export function toStandardTimeString () {
39
+ let dt = new Date()
40
+ let month = dt.getMonth() + 1
41
+ let date = dt.getDate()
42
+ let hour = dt.getHours()
43
+ let min = dt.getMinutes()
44
+ let sec = dt.getSeconds()
45
+ return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date) + ' ' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
46
+ }
47
+ export function toStandardTimeStrings (dt) {
48
+ let month = dt.getMonth() + 1
49
+ let date = dt.getDate()
50
+ let hour = dt.getHours()
51
+ let min = dt.getMinutes()
52
+ let sec = dt.getSeconds()
53
+ return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date) + ' ' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
54
+ }
55
+
56
+ export function booleanFilter (paper) {
57
+ for (let key in paper) {
58
+ if (key === 'f_waterheater' || key === 'f_closevalve' || key === 'f_wallhangboiler' || key === 'f_kitchen' || key === 'f_lndheating' || key === 'f_lndheating' || key === 'f_lndjiarelu' || key === 'f_lndfurnace' || key === 'f_welfareboiler' || key === 'f_welfarekitchen' || key === 'f_businboiler' || key === 'f_businkitchen' || key === 'f_jtprice' || key === 'f_dibaohu') {
59
+ if (!paper.hasOwnProperty(key)) {
60
+ continue
61
+ }
62
+ if (typeof paper[key] === 'object' && paper[key] != null) {
63
+ booleanFilter(paper[key])
64
+ } else {
65
+ if (paper[key] === 1 || paper[key] === 0) {
66
+ paper[key] = (paper[key] === 1)
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+
73
+ export function reBooleanFilter (paper) {
74
+ for (let key in paper) {
75
+ console.log(key + ':' + paper[key])
76
+ if (!paper.hasOwnProperty(key)) {
77
+ continue
78
+ }
79
+ if (typeof paper[key] === 'object' && paper[key] != null) {
80
+ reBooleanFilter(paper[key])
81
+ } else {
82
+ if (paper[key] === true || paper[key] === false) {
83
+ paper[key] = (paper[key] === true ? 1 : 0)
84
+ }
85
+ }
86
+ }
87
+ }
88
+
89
+ export function guid () {
90
+ let buf = new Uint16Array(8)
91
+ window.crypto.getRandomValues(buf)
92
+ let S4 = function (num) {
93
+ let ret = num.toString(16)
94
+ while (ret.length < 4) {
95
+ ret = '0' + ret
96
+ }
97
+ return ret
98
+ }
99
+ return (S4(buf[0]) + S4(buf[1]) + S4(buf[2]) + S4(buf[3]) + S4(buf[4]) + S4(buf[5]) + S4(buf[6]) + S4(buf[7]))
100
+ }
101
+
102
+ // 通过地址栏的参数获取参数内容
103
+ export function getUrlParames (param) {
104
+ var query = window.location.search
105
+ var iLen = param.length
106
+ var iStart = query.indexOf(param)
107
+ if (iStart === -1) {
108
+ return ''
109
+ }
110
+ iStart += iLen + 1
111
+ var iEnd = query.indexOf('&', iStart)
112
+ if (iEnd === -1) {
113
+ return query.substring(iStart)
114
+ }
115
+ return query.substring(iStart, iEnd)
116
+ }
117
+
118
+ export function choices (param, hasBlank = false, blankHint = '请选择') {
119
+ let result = []
120
+ if (hasBlank) {
121
+ result.push({label: blankHint, value: null})
122
+ }
123
+ if (!Vue.param) {
124
+ result.push({label: 'aaa', value: 'bbb'})
125
+ } else {
126
+ let p = Vue.param[param]
127
+ p.forEach(function (item) {
128
+ result.push({label: item.name, value: item.name})
129
+ })
130
+ }
131
+ return result
132
+ }
@@ -1,5 +1,5 @@
1
- {
2
- "env": {
3
- "jasmine": true
4
- }
5
- }
1
+ {
2
+ "env": {
3
+ "jasmine": true
4
+ }
5
+ }
@@ -1,35 +1,35 @@
1
- import Vue from 'vue'
2
-
3
- let id = 0
4
-
5
- const createElm = function () {
6
- const elm = document.createElement('div')
7
-
8
- elm.id = 'app' + ++id
9
- document.body.appendChild(elm)
10
-
11
- return elm
12
- }
13
-
14
- export default {
15
- // 创建一个测试组件
16
- createTest: function (name, props) {
17
- const template = '<div>' + '<' + name + ' v-ref:child></' + name + '></div>'
18
- const elm = createElm()
19
- const comp = new Vue({
20
- template: template
21
- })
22
- comp.$mount(elm)
23
- const vm = comp.$refs.child
24
- Object.assign(vm, props)
25
- return vm
26
- },
27
-
28
- // 删除一个组件
29
- destroyVM: function (vm) {
30
- vm.$destroy && vm.$destroy()
31
- vm.$el &&
32
- vm.$el.parentNode &&
33
- vm.$el.parentNode.removeChild(vm.$el)
34
- }
35
- }
1
+ import Vue from 'vue'
2
+
3
+ let id = 0
4
+
5
+ const createElm = function () {
6
+ const elm = document.createElement('div')
7
+
8
+ elm.id = 'app' + ++id
9
+ document.body.appendChild(elm)
10
+
11
+ return elm
12
+ }
13
+
14
+ export default {
15
+ // 创建一个测试组件
16
+ createTest: function (name, props) {
17
+ const template = '<div>' + '<' + name + ' v-ref:child></' + name + '></div>'
18
+ const elm = createElm()
19
+ const comp = new Vue({
20
+ template: template
21
+ })
22
+ comp.$mount(elm)
23
+ const vm = comp.$refs.child
24
+ Object.assign(vm, props)
25
+ return vm
26
+ },
27
+
28
+ // 删除一个组件
29
+ destroyVM: function (vm) {
30
+ vm.$destroy && vm.$destroy()
31
+ vm.$el &&
32
+ vm.$el.parentNode &&
33
+ vm.$el.parentNode.removeChild(vm.$el)
34
+ }
35
+ }
@@ -1,20 +1,20 @@
1
- <!DOCTYPE html>
2
- <html lang="zh-CN">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
6
- <meta name="referrer" content="never">
7
- <title>呼叫系统</title>
8
- <link rel="stylesheet" href="http://cache.amap.com/lbs/static/main1119.css"/>
9
- <script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.3&key=4889f1e58df01cb40415536c8907bf64&plugin=AMap.Autocomplete,AMap.PlaceSearch"></script>
10
- <script type="text/javascript" src="http://cache.amap.com/lbs/static/addToolbar.js"></script>
11
- <style media="screen">
12
- /*url(./static/newmainbg.jpg)*/
13
- body{width: 100%;background:#7f8eaf no-repeat center bottom; background-size: cover;}
14
- body .loginbg{ width:100%; height:100%; background:url(./static/loginbg.jpg) no-repeat center top;}
15
- </style>
16
- </head>
17
- <body>
18
- 测试2
19
- </body>
20
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
6
+ <meta name="referrer" content="never">
7
+ <title>呼叫系统</title>
8
+ <link rel="stylesheet" href="http://cache.amap.com/lbs/static/main1119.css"/>
9
+ <script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.3&key=4889f1e58df01cb40415536c8907bf64&plugin=AMap.Autocomplete,AMap.PlaceSearch"></script>
10
+ <script type="text/javascript" src="http://cache.amap.com/lbs/static/addToolbar.js"></script>
11
+ <style media="screen">
12
+ /*url(./static/newmainbg.jpg)*/
13
+ body{width: 100%;background:#7f8eaf no-repeat center bottom; background-size: cover;}
14
+ body .loginbg{ width:100%; height:100%; background:url(./static/loginbg.jpg) no-repeat center top;}
15
+ </style>
16
+ </head>
17
+ <body>
18
+ 测试2
19
+ </body>
20
+ </html>
@@ -1,13 +1,13 @@
1
- // Polyfill fn.bind() for PhantomJS
2
- /* eslint-disable no-extend-native */
3
- Function.prototype.bind = require('function-bind')
4
-
5
- // require all test files (files that ends with .spec.js)
6
- var testsContext = require.context('./specs', true, /\.spec$/)
7
- testsContext.keys().forEach(testsContext)
8
-
9
- // require all src files except main.js for coverage.
10
- // you can also change this to match only the subset of files that
11
- // you want coverage for.
12
- // var srcContext = require.context('../../src', true, /^\.\/(?!main(\.js)?$)/)
13
- // srcContext.keys().forEach(srcContext)
1
+ // Polyfill fn.bind() for PhantomJS
2
+ /* eslint-disable no-extend-native */
3
+ Function.prototype.bind = require('function-bind')
4
+
5
+ // require all test files (files that ends with .spec.js)
6
+ var testsContext = require.context('./specs', true, /\.spec$/)
7
+ testsContext.keys().forEach(testsContext)
8
+
9
+ // require all src files except main.js for coverage.
10
+ // you can also change this to match only the subset of files that
11
+ // you want coverage for.
12
+ // var srcContext = require.context('../../src', true, /^\.\/(?!main(\.js)?$)/)
13
+ // srcContext.keys().forEach(srcContext)
package/test/unit/init.js CHANGED
@@ -1,11 +1,11 @@
1
- import Vue from 'vue'
2
- import { all } from 'vue-client'
3
- import { system } from 'system-clients'
4
-
5
- export default function () {
6
- Vue.config.silent = false
7
-
8
- all()
9
- system()
10
- require('../../src/bootstrap/less/bootstrap.less')
11
- }
1
+ import Vue from 'vue'
2
+ import { all } from 'vue-client'
3
+ import { system } from 'system-clients'
4
+
5
+ export default function () {
6
+ Vue.config.silent = false
7
+
8
+ all()
9
+ system()
10
+ require('../../src/bootstrap/less/bootstrap.less')
11
+ }
@@ -1,45 +1,45 @@
1
- // This is a karma config file. For more details see
2
- // http://karma-runner.github.io/0.13/config/configuration-file.html
3
- // we are also using it with karma-webpack
4
- // https://github.com/webpack/karma-webpack
5
-
6
- var webpackConfig = require('../../build/webpack.test.conf')
7
-
8
- module.exports = function (config) {
9
- config.set({
10
- // to run in additional browsers:
11
- // 1. install corresponding karma launcher
12
- // http://karma-runner.github.io/0.13/config/browsers.html
13
- // 2. add it to the `browsers` array below.
14
- browsers: ['Chrome_without_security'],
15
- customLaunchers: {
16
- Chrome_without_security: {
17
- base: 'Chrome',
18
- flags: ['--disable-web-security']
19
- }
20
- },
21
- proxies: {
22
- // '/rs': 'http://192.168.50.220:8300/rs',
23
- '/rs': 'http://127.0.0.1:8084/rs',
24
- },
25
-
26
- autoWatch: true,
27
- frameworks: ['mocha', 'sinon-chai'],
28
- reporters: ['spec', 'coverage'],
29
- files: ['./index.js'],
30
- preprocessors: {
31
- './index.js': ['webpack', 'sourcemap']
32
- },
33
- webpack: webpackConfig,
34
- webpackMiddleware: {
35
- noInfo: true
36
- },
37
- coverageReporter: {
38
- dir: './coverage',
39
- reporters: [
40
- { type: 'lcov', subdir: '.' },
41
- { type: 'text-summary' }
42
- ]
43
- }
44
- })
45
- }
1
+ // This is a karma config file. For more details see
2
+ // http://karma-runner.github.io/0.13/config/configuration-file.html
3
+ // we are also using it with karma-webpack
4
+ // https://github.com/webpack/karma-webpack
5
+
6
+ var webpackConfig = require('../../build/webpack.test.conf')
7
+
8
+ module.exports = function (config) {
9
+ config.set({
10
+ // to run in additional browsers:
11
+ // 1. install corresponding karma launcher
12
+ // http://karma-runner.github.io/0.13/config/browsers.html
13
+ // 2. add it to the `browsers` array below.
14
+ browsers: ['Chrome_without_security'],
15
+ customLaunchers: {
16
+ Chrome_without_security: {
17
+ base: 'Chrome',
18
+ flags: ['--disable-web-security']
19
+ }
20
+ },
21
+ proxies: {
22
+ // '/rs': 'http://192.168.50.220:8300/rs',
23
+ '/rs': 'http://127.0.0.1:8084/rs',
24
+ },
25
+
26
+ autoWatch: true,
27
+ frameworks: ['mocha', 'sinon-chai'],
28
+ reporters: ['spec', 'coverage'],
29
+ files: ['./index.js'],
30
+ preprocessors: {
31
+ './index.js': ['webpack', 'sourcemap']
32
+ },
33
+ webpack: webpackConfig,
34
+ webpackMiddleware: {
35
+ noInfo: true
36
+ },
37
+ coverageReporter: {
38
+ dir: './coverage',
39
+ reporters: [
40
+ { type: 'lcov', subdir: '.' },
41
+ { type: 'text-summary' }
42
+ ]
43
+ }
44
+ })
45
+ }
@@ -1,25 +1,25 @@
1
- import init from 'test/unit/init'
2
- import { TestUtil } from 'vue-client'
3
-
4
- import Repair from 'src/components/CallReport/Repair'
5
-
6
- describe('Repair: 维修员报表', () => {
7
- let vm = null
8
- before(() => {
9
- init()
10
- })
11
-
12
- after(function () {
13
- })
14
-
15
- it('组件能够正确显示', () => {
16
- vm = TestUtil.createTest(Repair, {})
17
- console.log(vm.$el.innerText)
18
- })
19
-
20
- it('查询数据', async function() {
21
- let model = {startDate: '2018-10-8', endDate: '2018-10-9', outlets: ['']}
22
- await vm.model.search('1=1', model)
23
- console.log(vm.$el.innerText)
24
- })
25
- })
1
+ import init from 'test/unit/init'
2
+ import { TestUtil } from 'vue-client'
3
+
4
+ import Repair from 'src/components/CallReport/Repair'
5
+
6
+ describe('Repair: 维修员报表', () => {
7
+ let vm = null
8
+ before(() => {
9
+ init()
10
+ })
11
+
12
+ after(function () {
13
+ })
14
+
15
+ it('组件能够正确显示', () => {
16
+ vm = TestUtil.createTest(Repair, {})
17
+ console.log(vm.$el.innerText)
18
+ })
19
+
20
+ it('查询数据', async function() {
21
+ let model = {startDate: '2018-10-8', endDate: '2018-10-9', outlets: ['']}
22
+ await vm.model.search('1=1', model)
23
+ console.log(vm.$el.innerText)
24
+ })
25
+ })
@@ -1,21 +1,21 @@
1
- import Vue from 'vue'
2
- import init from 'test/unit/init'
3
- import { TestUtil } from 'vue-client'
4
-
5
- import EquipmentQuery from 'src/components/ManageBusiness/EquipmentQuery'
6
-
7
- describe('EquipmentQuery: 设备查询', () => {
8
- let vm = null
9
- before(() => {
10
- init()
11
- })
12
-
13
- after(function () {
14
- })
15
-
16
- it('组件能够正确显示', async function() {
17
- await Vue.$login.login('hainan', '1')
18
- vm = await TestUtil.createAsyncTest(EquipmentQuery, {})
19
- assert.include(vm.$el.innerText, '')
20
- })
21
- })
1
+ import Vue from 'vue'
2
+ import init from 'test/unit/init'
3
+ import { TestUtil } from 'vue-client'
4
+
5
+ import EquipmentQuery from 'src/components/ManageBusiness/EquipmentQuery'
6
+
7
+ describe('EquipmentQuery: 设备查询', () => {
8
+ let vm = null
9
+ before(() => {
10
+ init()
11
+ })
12
+
13
+ after(function () {
14
+ })
15
+
16
+ it('组件能够正确显示', async function() {
17
+ await Vue.$login.login('hainan', '1')
18
+ vm = await TestUtil.createAsyncTest(EquipmentQuery, {})
19
+ assert.include(vm.$el.innerText, '')
20
+ })
21
+ })