eoss-ui 0.3.97

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 (378) hide show
  1. package/CHANGELOG.md +929 -0
  2. package/README.md +30 -0
  3. package/lib/button-group.js +2857 -0
  4. package/lib/button.js +2884 -0
  5. package/lib/card.js +603 -0
  6. package/lib/cascader.js +373 -0
  7. package/lib/checkbox-group.js +3099 -0
  8. package/lib/clients.js +375 -0
  9. package/lib/config/api.js +205 -0
  10. package/lib/data-table-form.js +3848 -0
  11. package/lib/data-table.js +6315 -0
  12. package/lib/date-picker.js +2821 -0
  13. package/lib/dialog.js +3730 -0
  14. package/lib/enterprise.js +372 -0
  15. package/lib/eoss-ui.common.js +65365 -0
  16. package/lib/error-page.js +293 -0
  17. package/lib/flow-group.js +4200 -0
  18. package/lib/flow-list.js +4350 -0
  19. package/lib/flow.js +12893 -0
  20. package/lib/form.js +15635 -0
  21. package/lib/handle-user.js +2900 -0
  22. package/lib/handler.js +3118 -0
  23. package/lib/index.js +1 -0
  24. package/lib/input-number.js +2743 -0
  25. package/lib/input.js +2935 -0
  26. package/lib/label.js +411 -0
  27. package/lib/login.js +5048 -0
  28. package/lib/main.js +5816 -0
  29. package/lib/mainComp.js +6530 -0
  30. package/lib/menu.js +529 -0
  31. package/lib/nav.js +3048 -0
  32. package/lib/notify.js +1079 -0
  33. package/lib/page.js +3036 -0
  34. package/lib/pagination.js +354 -0
  35. package/lib/player.js +2904 -0
  36. package/lib/qr-code.js +2860 -0
  37. package/lib/radio-group.js +3091 -0
  38. package/lib/select-ganged.js +3242 -0
  39. package/lib/select.js +3295 -0
  40. package/lib/selector-panel.js +4425 -0
  41. package/lib/selector.js +3722 -0
  42. package/lib/sizer.js +3067 -0
  43. package/lib/steps.js +2943 -0
  44. package/lib/switch.js +2784 -0
  45. package/lib/table-form.js +6211 -0
  46. package/lib/tabs-panel.js +274 -0
  47. package/lib/tabs.js +4988 -0
  48. package/lib/theme-chalk/base.css +1 -0
  49. package/lib/theme-chalk/button-group.css +1 -0
  50. package/lib/theme-chalk/button.css +0 -0
  51. package/lib/theme-chalk/card.css +1 -0
  52. package/lib/theme-chalk/cascader.css +0 -0
  53. package/lib/theme-chalk/checkbox-group.css +1 -0
  54. package/lib/theme-chalk/clients.css +1 -0
  55. package/lib/theme-chalk/data-table-form.css +1 -0
  56. package/lib/theme-chalk/data-table.css +1 -0
  57. package/lib/theme-chalk/date-picker.css +1 -0
  58. package/lib/theme-chalk/dialog.css +1 -0
  59. package/lib/theme-chalk/enterprise.css +1 -0
  60. package/lib/theme-chalk/error-page.css +1 -0
  61. package/lib/theme-chalk/flow-chart.css +0 -0
  62. package/lib/theme-chalk/flow-group.css +1 -0
  63. package/lib/theme-chalk/flow-list.css +1 -0
  64. package/lib/theme-chalk/flow.css +1 -0
  65. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  66. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  67. package/lib/theme-chalk/form.css +1 -0
  68. package/lib/theme-chalk/handle-user.css +1 -0
  69. package/lib/theme-chalk/handler.css +1 -0
  70. package/lib/theme-chalk/icon.css +1 -0
  71. package/lib/theme-chalk/index.css +1 -0
  72. package/lib/theme-chalk/input-number.css +0 -0
  73. package/lib/theme-chalk/input.css +1 -0
  74. package/lib/theme-chalk/label.css +1 -0
  75. package/lib/theme-chalk/login.css +1 -0
  76. package/lib/theme-chalk/main.css +1 -0
  77. package/lib/theme-chalk/mainComp.css +0 -0
  78. package/lib/theme-chalk/menu.css +1 -0
  79. package/lib/theme-chalk/nav.css +1 -0
  80. package/lib/theme-chalk/notify.css +0 -0
  81. package/lib/theme-chalk/page.css +1 -0
  82. package/lib/theme-chalk/pagination.css +1 -0
  83. package/lib/theme-chalk/player.css +1 -0
  84. package/lib/theme-chalk/qr-code.css +1 -0
  85. package/lib/theme-chalk/radio-group.css +1 -0
  86. package/lib/theme-chalk/radio.css +1 -0
  87. package/lib/theme-chalk/select-ganged.css +1 -0
  88. package/lib/theme-chalk/select.css +0 -0
  89. package/lib/theme-chalk/selector-panel.css +1 -0
  90. package/lib/theme-chalk/selector.css +1 -0
  91. package/lib/theme-chalk/sizer.css +1 -0
  92. package/lib/theme-chalk/steps.css +1 -0
  93. package/lib/theme-chalk/switch.css +1 -0
  94. package/lib/theme-chalk/table-form.css +0 -0
  95. package/lib/theme-chalk/tabs-panel.css +0 -0
  96. package/lib/theme-chalk/tabs.css +1 -0
  97. package/lib/theme-chalk/tips.css +1 -0
  98. package/lib/theme-chalk/toolbar.css +1 -0
  99. package/lib/theme-chalk/tree-group.css +1 -0
  100. package/lib/theme-chalk/tree.css +1 -0
  101. package/lib/theme-chalk/upload.css +1 -0
  102. package/lib/theme-chalk/wujie.css +0 -0
  103. package/lib/theme-chalk/wxlogin.css +1 -0
  104. package/lib/tips.js +2830 -0
  105. package/lib/toolbar.js +531 -0
  106. package/lib/tree-group.js +3373 -0
  107. package/lib/tree.js +3482 -0
  108. package/lib/upload.js +3913 -0
  109. package/lib/utils/bus.js +9 -0
  110. package/lib/utils/date-util.js +318 -0
  111. package/lib/utils/http.js +58 -0
  112. package/lib/utils/rules.js +19 -0
  113. package/lib/utils/store.js +22 -0
  114. package/lib/utils/util.js +2056 -0
  115. package/lib/wujie.js +2845 -0
  116. package/lib/wxlogin.js +2799 -0
  117. package/package.json +151 -0
  118. package/packages/button/index.js +5 -0
  119. package/packages/button/src/main.vue +264 -0
  120. package/packages/button-group/index.js +5 -0
  121. package/packages/button-group/src/main.vue +130 -0
  122. package/packages/card/index.js +5 -0
  123. package/packages/card/src/main.vue +144 -0
  124. package/packages/cascader/index.js +5 -0
  125. package/packages/cascader/src/main.vue +144 -0
  126. package/packages/checkbox-group/index.js +5 -0
  127. package/packages/checkbox-group/src/main.vue +285 -0
  128. package/packages/clients/index.js +5 -0
  129. package/packages/clients/src/main.vue +50 -0
  130. package/packages/data-table/index.js +5 -0
  131. package/packages/data-table/src/children.vue +40 -0
  132. package/packages/data-table/src/column.vue +796 -0
  133. package/packages/data-table/src/main copy.vue +1383 -0
  134. package/packages/data-table/src/main.vue +1229 -0
  135. package/packages/data-table/src/mixins/table.js +12 -0
  136. package/packages/data-table/src/sizer.vue +160 -0
  137. package/packages/data-table-form/index.js +5 -0
  138. package/packages/data-table-form/src/colgroup.vue +17 -0
  139. package/packages/data-table-form/src/main.vue +167 -0
  140. package/packages/data-table-form/src/table.vue +192 -0
  141. package/packages/data-table-form/src/tbody.vue +219 -0
  142. package/packages/data-table-form/src/thead.vue +68 -0
  143. package/packages/date-picker/index.js +5 -0
  144. package/packages/date-picker/src/main.vue +185 -0
  145. package/packages/dialog/index.js +5 -0
  146. package/packages/dialog/src/main.vue +442 -0
  147. package/packages/enterprise/index.js +5 -0
  148. package/packages/enterprise/src/main.vue +66 -0
  149. package/packages/error-page/index.js +5 -0
  150. package/packages/error-page/src/main.vue +44 -0
  151. package/packages/flow/index.js +5 -0
  152. package/packages/flow/src/component/CommonOpinions.vue +290 -0
  153. package/packages/flow/src/component/CustomPreset.vue +311 -0
  154. package/packages/flow/src/component/FileList.vue +97 -0
  155. package/packages/flow/src/component/Preset.vue +253 -0
  156. package/packages/flow/src/component/SendMsg.vue +221 -0
  157. package/packages/flow/src/component/TimeLimit.vue +190 -0
  158. package/packages/flow/src/component/taskUnionExamine.vue +507 -0
  159. package/packages/flow/src/form.vue +120 -0
  160. package/packages/flow/src/main.vue +2107 -0
  161. package/packages/flow/src/processForm.vue +866 -0
  162. package/packages/flow/src/processReject.vue +262 -0
  163. package/packages/flow/src/selectUser.vue +425 -0
  164. package/packages/flow/src/startTaskRead.vue +556 -0
  165. package/packages/flow/src/table.vue +51 -0
  166. package/packages/flow-group/index.js +5 -0
  167. package/packages/flow-group/src/main.vue +540 -0
  168. package/packages/flow-list/index.js +5 -0
  169. package/packages/flow-list/src/flow-table.vue +445 -0
  170. package/packages/flow-list/src/main.vue +456 -0
  171. package/packages/form/index.js +5 -0
  172. package/packages/form/src/main.vue +4429 -0
  173. package/packages/form/src/table.vue +1196 -0
  174. package/packages/handle-user/index.js +5 -0
  175. package/packages/handle-user/src/main.vue +122 -0
  176. package/packages/handler/index.js +5 -0
  177. package/packages/handler/src/main.vue +306 -0
  178. package/packages/input/index.js +5 -0
  179. package/packages/input/src/main.vue +307 -0
  180. package/packages/input-number/index.js +5 -0
  181. package/packages/input-number/src/main.vue +106 -0
  182. package/packages/label/index.js +5 -0
  183. package/packages/label/src/main.vue +208 -0
  184. package/packages/login/index.js +5 -0
  185. package/packages/login/src/main.vue +1193 -0
  186. package/packages/login/src/resetPassword.vue +332 -0
  187. package/packages/main/index.js +5 -0
  188. package/packages/main/src/main.vue +1496 -0
  189. package/packages/main/src/message.vue +239 -0
  190. package/packages/main/src/notice.vue +145 -0
  191. package/packages/main/src/settings.vue +105 -0
  192. package/packages/main/src/userinfo.vue +430 -0
  193. package/packages/mainComp/index.js +5 -0
  194. package/packages/mainComp/src/async-component/index.vue +85 -0
  195. package/packages/mainComp/src/main.vue +1934 -0
  196. package/packages/mainComp/src/message.vue +239 -0
  197. package/packages/mainComp/src/notice.vue +152 -0
  198. package/packages/mainComp/src/settings.vue +105 -0
  199. package/packages/mainComp/src/userinfo.vue +423 -0
  200. package/packages/menu/index.js +5 -0
  201. package/packages/menu/src/main.vue +401 -0
  202. package/packages/nav/index.js +5 -0
  203. package/packages/nav/src/main.vue +250 -0
  204. package/packages/notify/index.js +5 -0
  205. package/packages/notify/src/main.vue +538 -0
  206. package/packages/page/index.js +5 -0
  207. package/packages/page/src/main.vue +167 -0
  208. package/packages/pagination/index.js +5 -0
  209. package/packages/pagination/src/main.vue +77 -0
  210. package/packages/player/index.js +5 -0
  211. package/packages/player/src/main.vue +194 -0
  212. package/packages/qr-code/index.js +5 -0
  213. package/packages/qr-code/src/main.vue +154 -0
  214. package/packages/radio/index.js +5 -0
  215. package/packages/radio/src/main.vue +259 -0
  216. package/packages/radio-group/index.js +6 -0
  217. package/packages/radio-group/src/main.vue +267 -0
  218. package/packages/select/index.js +5 -0
  219. package/packages/select/src/main.vue +683 -0
  220. package/packages/select-ganged/index.js +5 -0
  221. package/packages/select-ganged/src/main.vue +686 -0
  222. package/packages/selector/index.js +5 -0
  223. package/packages/selector/src/main.vue +588 -0
  224. package/packages/selector-panel/index.js +5 -0
  225. package/packages/selector-panel/src/main.vue +968 -0
  226. package/packages/selector-panel/src/selection.vue +142 -0
  227. package/packages/selector-panel/src/tree.vue +129 -0
  228. package/packages/sizer/index.js +5 -0
  229. package/packages/sizer/src/main.vue +254 -0
  230. package/packages/steps/index.js +5 -0
  231. package/packages/steps/src/main.vue +175 -0
  232. package/packages/switch/index.js +5 -0
  233. package/packages/switch/src/main.vue +154 -0
  234. package/packages/table-form/index.js +5 -0
  235. package/packages/tabs/index.js +5 -0
  236. package/packages/tabs/src/main.vue +749 -0
  237. package/packages/tabs-panel/index.js +5 -0
  238. package/packages/tabs-panel/src/main.vue +18 -0
  239. package/packages/theme-chalk/README.md +33 -0
  240. package/packages/theme-chalk/lib/base.css +1 -0
  241. package/packages/theme-chalk/lib/button-group.css +1 -0
  242. package/packages/theme-chalk/lib/button.css +0 -0
  243. package/packages/theme-chalk/lib/card.css +1 -0
  244. package/packages/theme-chalk/lib/cascader.css +0 -0
  245. package/packages/theme-chalk/lib/checkbox-group.css +1 -0
  246. package/packages/theme-chalk/lib/clients.css +1 -0
  247. package/packages/theme-chalk/lib/data-table-form.css +1 -0
  248. package/packages/theme-chalk/lib/data-table.css +1 -0
  249. package/packages/theme-chalk/lib/date-picker.css +1 -0
  250. package/packages/theme-chalk/lib/dialog.css +1 -0
  251. package/packages/theme-chalk/lib/enterprise.css +1 -0
  252. package/packages/theme-chalk/lib/error-page.css +1 -0
  253. package/packages/theme-chalk/lib/flow-chart.css +0 -0
  254. package/packages/theme-chalk/lib/flow-group.css +1 -0
  255. package/packages/theme-chalk/lib/flow-list.css +1 -0
  256. package/packages/theme-chalk/lib/flow.css +1 -0
  257. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  258. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  259. package/packages/theme-chalk/lib/form.css +1 -0
  260. package/packages/theme-chalk/lib/handle-user.css +1 -0
  261. package/packages/theme-chalk/lib/handler.css +1 -0
  262. package/packages/theme-chalk/lib/icon.css +1 -0
  263. package/packages/theme-chalk/lib/index.css +1 -0
  264. package/packages/theme-chalk/lib/input-number.css +0 -0
  265. package/packages/theme-chalk/lib/input.css +1 -0
  266. package/packages/theme-chalk/lib/label.css +1 -0
  267. package/packages/theme-chalk/lib/login.css +1 -0
  268. package/packages/theme-chalk/lib/main.css +1 -0
  269. package/packages/theme-chalk/lib/mainComp.css +0 -0
  270. package/packages/theme-chalk/lib/menu.css +1 -0
  271. package/packages/theme-chalk/lib/nav.css +1 -0
  272. package/packages/theme-chalk/lib/notify.css +0 -0
  273. package/packages/theme-chalk/lib/page.css +1 -0
  274. package/packages/theme-chalk/lib/pagination.css +1 -0
  275. package/packages/theme-chalk/lib/player.css +1 -0
  276. package/packages/theme-chalk/lib/qr-code.css +1 -0
  277. package/packages/theme-chalk/lib/radio-group.css +1 -0
  278. package/packages/theme-chalk/lib/radio.css +1 -0
  279. package/packages/theme-chalk/lib/select-ganged.css +1 -0
  280. package/packages/theme-chalk/lib/select.css +0 -0
  281. package/packages/theme-chalk/lib/selector-panel.css +1 -0
  282. package/packages/theme-chalk/lib/selector.css +1 -0
  283. package/packages/theme-chalk/lib/sizer.css +1 -0
  284. package/packages/theme-chalk/lib/steps.css +1 -0
  285. package/packages/theme-chalk/lib/switch.css +1 -0
  286. package/packages/theme-chalk/lib/table-form.css +0 -0
  287. package/packages/theme-chalk/lib/tabs-panel.css +0 -0
  288. package/packages/theme-chalk/lib/tabs.css +1 -0
  289. package/packages/theme-chalk/lib/tips.css +1 -0
  290. package/packages/theme-chalk/lib/toolbar.css +1 -0
  291. package/packages/theme-chalk/lib/tree-group.css +1 -0
  292. package/packages/theme-chalk/lib/tree.css +1 -0
  293. package/packages/theme-chalk/lib/upload.css +1 -0
  294. package/packages/theme-chalk/lib/wujie.css +0 -0
  295. package/packages/theme-chalk/lib/wxlogin.css +1 -0
  296. package/packages/theme-chalk/package.json +35 -0
  297. package/packages/theme-chalk/src/base.scss +165 -0
  298. package/packages/theme-chalk/src/button-group.scss +9 -0
  299. package/packages/theme-chalk/src/button.scss +0 -0
  300. package/packages/theme-chalk/src/card.scss +55 -0
  301. package/packages/theme-chalk/src/cascader.scss +0 -0
  302. package/packages/theme-chalk/src/checkbox-group.scss +8 -0
  303. package/packages/theme-chalk/src/clients.scss +72 -0
  304. package/packages/theme-chalk/src/common/var.scss +1516 -0
  305. package/packages/theme-chalk/src/data-table-form.scss +55 -0
  306. package/packages/theme-chalk/src/data-table.scss +202 -0
  307. package/packages/theme-chalk/src/date-picker.scss +8 -0
  308. package/packages/theme-chalk/src/dialog.scss +52 -0
  309. package/packages/theme-chalk/src/enterprise.scss +5 -0
  310. package/packages/theme-chalk/src/error-page.scss +18 -0
  311. package/packages/theme-chalk/src/flow-chart.scss +0 -0
  312. package/packages/theme-chalk/src/flow-group.scss +101 -0
  313. package/packages/theme-chalk/src/flow-list.scss +41 -0
  314. package/packages/theme-chalk/src/flow.scss +285 -0
  315. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  316. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  317. package/packages/theme-chalk/src/form.scss +451 -0
  318. package/packages/theme-chalk/src/handle-user.scss +40 -0
  319. package/packages/theme-chalk/src/handler.scss +131 -0
  320. package/packages/theme-chalk/src/icon.scss +1714 -0
  321. package/packages/theme-chalk/src/index.scss +50 -0
  322. package/packages/theme-chalk/src/input-number.scss +0 -0
  323. package/packages/theme-chalk/src/input.scss +3 -0
  324. package/packages/theme-chalk/src/label.scss +24 -0
  325. package/packages/theme-chalk/src/login.scss +490 -0
  326. package/packages/theme-chalk/src/main.scss +483 -0
  327. package/packages/theme-chalk/src/mainComp.scss +0 -0
  328. package/packages/theme-chalk/src/menu.scss +201 -0
  329. package/packages/theme-chalk/src/mixins/color.scss +117 -0
  330. package/packages/theme-chalk/src/mixins/mixins.scss +25 -0
  331. package/packages/theme-chalk/src/nav.scss +73 -0
  332. package/packages/theme-chalk/src/notify.scss +0 -0
  333. package/packages/theme-chalk/src/page.scss +3 -0
  334. package/packages/theme-chalk/src/pagination.scss +14 -0
  335. package/packages/theme-chalk/src/player.scss +9 -0
  336. package/packages/theme-chalk/src/qr-code.scss +17 -0
  337. package/packages/theme-chalk/src/radio-group.scss +9 -0
  338. package/packages/theme-chalk/src/radio.scss +3 -0
  339. package/packages/theme-chalk/src/select-ganged.scss +9 -0
  340. package/packages/theme-chalk/src/select.scss +0 -0
  341. package/packages/theme-chalk/src/selector-panel.scss +203 -0
  342. package/packages/theme-chalk/src/selector.scss +85 -0
  343. package/packages/theme-chalk/src/sizer.scss +36 -0
  344. package/packages/theme-chalk/src/steps.scss +88 -0
  345. package/packages/theme-chalk/src/switch.scss +3 -0
  346. package/packages/theme-chalk/src/table-form.scss +1 -0
  347. package/packages/theme-chalk/src/tabs-panel.scss +0 -0
  348. package/packages/theme-chalk/src/tabs.scss +91 -0
  349. package/packages/theme-chalk/src/tips.scss +7 -0
  350. package/packages/theme-chalk/src/toolbar.scss +121 -0
  351. package/packages/theme-chalk/src/tree-group.scss +64 -0
  352. package/packages/theme-chalk/src/tree.scss +140 -0
  353. package/packages/theme-chalk/src/upload.scss +131 -0
  354. package/packages/theme-chalk/src/wujie.scss +0 -0
  355. package/packages/theme-chalk/src/wxlogin.scss +3 -0
  356. package/packages/tips/index.js +5 -0
  357. package/packages/tips/src/main.vue +126 -0
  358. package/packages/toolbar/index.js +5 -0
  359. package/packages/toolbar/src/main.vue +377 -0
  360. package/packages/tree/index.js +5 -0
  361. package/packages/tree/src/main.vue +636 -0
  362. package/packages/tree-group/index.js +5 -0
  363. package/packages/tree-group/src/main.vue +435 -0
  364. package/packages/upload/index.js +5 -0
  365. package/packages/upload/src/main.vue +1033 -0
  366. package/packages/upload/src/picture.js +15 -0
  367. package/packages/wujie/index.js +5 -0
  368. package/packages/wujie/src/main.vue +137 -0
  369. package/packages/wxlogin/index.js +5 -0
  370. package/packages/wxlogin/src/main.vue +110 -0
  371. package/src/config/api.js +211 -0
  372. package/src/index.js +167 -0
  373. package/src/utils/bus.js +3 -0
  374. package/src/utils/date-util.js +312 -0
  375. package/src/utils/http.js +50 -0
  376. package/src/utils/rules.js +18 -0
  377. package/src/utils/store.js +21 -0
  378. package/src/utils/util.js +2105 -0
package/lib/dialog.js ADDED
@@ -0,0 +1,3730 @@
1
+ module.exports =
2
+ /******/ (function(modules) { // webpackBootstrap
3
+ /******/ // The module cache
4
+ /******/ var installedModules = {};
5
+ /******/
6
+ /******/ // The require function
7
+ /******/ function __webpack_require__(moduleId) {
8
+ /******/
9
+ /******/ // Check if module is in cache
10
+ /******/ if(installedModules[moduleId]) {
11
+ /******/ return installedModules[moduleId].exports;
12
+ /******/ }
13
+ /******/ // Create a new module (and put it into the cache)
14
+ /******/ var module = installedModules[moduleId] = {
15
+ /******/ i: moduleId,
16
+ /******/ l: false,
17
+ /******/ exports: {}
18
+ /******/ };
19
+ /******/
20
+ /******/ // Execute the module function
21
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
+ /******/
23
+ /******/ // Flag the module as loaded
24
+ /******/ module.l = true;
25
+ /******/
26
+ /******/ // Return the exports of the module
27
+ /******/ return module.exports;
28
+ /******/ }
29
+ /******/
30
+ /******/
31
+ /******/ // expose the modules object (__webpack_modules__)
32
+ /******/ __webpack_require__.m = modules;
33
+ /******/
34
+ /******/ // expose the module cache
35
+ /******/ __webpack_require__.c = installedModules;
36
+ /******/
37
+ /******/ // define getter function for harmony exports
38
+ /******/ __webpack_require__.d = function(exports, name, getter) {
39
+ /******/ if(!__webpack_require__.o(exports, name)) {
40
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
+ /******/ }
42
+ /******/ };
43
+ /******/
44
+ /******/ // define __esModule on exports
45
+ /******/ __webpack_require__.r = function(exports) {
46
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
+ /******/ }
49
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
+ /******/ };
51
+ /******/
52
+ /******/ // create a fake namespace object
53
+ /******/ // mode & 1: value is a module id, require it
54
+ /******/ // mode & 2: merge all properties of value into the ns
55
+ /******/ // mode & 4: return value when already ns object
56
+ /******/ // mode & 8|1: behave like require
57
+ /******/ __webpack_require__.t = function(value, mode) {
58
+ /******/ if(mode & 1) value = __webpack_require__(value);
59
+ /******/ if(mode & 8) return value;
60
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
+ /******/ var ns = Object.create(null);
62
+ /******/ __webpack_require__.r(ns);
63
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
+ /******/ return ns;
66
+ /******/ };
67
+ /******/
68
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
69
+ /******/ __webpack_require__.n = function(module) {
70
+ /******/ var getter = module && module.__esModule ?
71
+ /******/ function getDefault() { return module['default']; } :
72
+ /******/ function getModuleExports() { return module; };
73
+ /******/ __webpack_require__.d(getter, 'a', getter);
74
+ /******/ return getter;
75
+ /******/ };
76
+ /******/
77
+ /******/ // Object.prototype.hasOwnProperty.call
78
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
+ /******/
80
+ /******/ // __webpack_public_path__
81
+ /******/ __webpack_require__.p = "/dist/";
82
+ /******/
83
+ /******/
84
+ /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 37);
86
+ /******/ })
87
+ /************************************************************************/
88
+ /******/ ([
89
+ /* 0 */
90
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
91
+
92
+ "use strict";
93
+ /* harmony import */ var _config_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
94
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
95
+ /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
96
+ /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
97
+ /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_2__);
98
+ /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
99
+ /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
100
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5);
101
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_4__);
102
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
103
+
104
+ /**
105
+ * 新封装公告方法规范:
106
+ * 1.方法顺序按字母顺序排列
107
+ * 2.参数超过2个且有的参数是非必传的最好用对象形式传参
108
+ *
109
+ **/
110
+
111
+ /* eslint-disable indent */
112
+ var sm2 = __webpack_require__(7).sm2;
113
+
114
+
115
+
116
+
117
+
118
+ var win = window.__WUJIE_RAW_WINDOW__ ? window.__WUJIE_RAW_WINDOW__ : window;
119
+
120
+ var $hueStep = 2;
121
+ var $saturationStep1 = 0.16;
122
+ var $saturationStep2 = 0.05;
123
+ var $brightnessStep1 = 0.05;
124
+ var $brightnessStep2 = 0.15;
125
+ var $lightColorCount = 5;
126
+ var $darkColorCount = 4;
127
+ var publicKey = 'abcdefghijklmnopqrstuvwxyz12345678';
128
+
129
+ var JSONbigToString = json_bigint__WEBPACK_IMPORTED_MODULE_3___default()({ storeAsString: true });
130
+
131
+
132
+ /**
133
+ * ajax
134
+ * @desc:ajax请求
135
+ * @author huangbo
136
+ * @date 2022年5月7日
137
+ * @param {Object} [headers] - headers
138
+ * @param {String} [method] - 请求类型
139
+ * @param {String} [url] - 请求地址
140
+ * @param {String} [host] - host
141
+ * @param {Object} [data] - 请求参数
142
+ * @param {Object} [params] - 请求参数
143
+ * @param {Boolean} [format] - post请求是否使用表单类型
144
+ * @param {Boolean} [mix] - 是否混合传参
145
+ * @param {Boolean} [defaults] - 是否传入默认参数userId
146
+ * @param {Object} [loading] - loading加载对象
147
+ **/
148
+ // 请求
149
+ var _timer = null;
150
+ var pendingRequest = new Map();
151
+ function getRequestKey(config) {
152
+ var method = config.method,
153
+ url = config.url,
154
+ params = config.params,
155
+ data = config.data;
156
+
157
+ return [method, url, qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(params), qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data)].join('&');
158
+ };
159
+ function delPendingRequest(config) {
160
+ var requestKey = getRequestKey(config);
161
+ if (pendingRequest.has(requestKey)) {
162
+ pendingRequest.delete(requestKey);
163
+ }
164
+ }
165
+ var ajax = function ajax(_ref) {
166
+ var _ref$headers = _ref.headers,
167
+ headers = _ref$headers === undefined ? {} : _ref$headers,
168
+ method = _ref.method,
169
+ url = _ref.url,
170
+ _ref$host = _ref.host,
171
+ host = _ref$host === undefined ? true : _ref$host,
172
+ _ref$data = _ref.data,
173
+ data = _ref$data === undefined ? {} : _ref$data,
174
+ _ref$params = _ref.params,
175
+ params = _ref$params === undefined ? {} : _ref$params,
176
+ _ref$format = _ref.format,
177
+ format = _ref$format === undefined ? true : _ref$format,
178
+ _ref$mix = _ref.mix,
179
+ mix = _ref$mix === undefined ? false : _ref$mix,
180
+ _ref$defaults = _ref.defaults,
181
+ defaults = _ref$defaults === undefined ? false : _ref$defaults,
182
+ loading = _ref.loading;
183
+
184
+ if (!method) {
185
+ if (format) {
186
+ method = 'get';
187
+ } else {
188
+ method = 'post';
189
+ }
190
+ } else {
191
+ method = method.toLowerCase();
192
+ }
193
+ var baseURL = host === true ? getStorage('host') : host === false ? '' : host;
194
+ var http = axios__WEBPACK_IMPORTED_MODULE_1___default.a.create({
195
+ baseURL: baseURL,
196
+ timeout: 99000,
197
+ transformResponse: [function (data) {
198
+ try {
199
+ return JSONbigToString.parse(data);
200
+ } catch (err) {
201
+ return data;
202
+ }
203
+ }]
204
+ });
205
+ // 请求拦截
206
+ http.interceptors.request.use(function (config) {
207
+ config.headers.common = getStorage();
208
+ // 根据请求的信息(请求方式,url,请求get/post数据),产生map的key
209
+ var requestKey = getRequestKey(config);
210
+ // 判断请求是否重复
211
+ if (pendingRequest.has(requestKey)) {
212
+ // 取消上次请求
213
+ var cancel = pendingRequest.get(requestKey);
214
+ cancel();
215
+ // 删除请求信息
216
+ pendingRequest.delete(requestKey);
217
+ }
218
+ // 把请求信息,添加请求到map当中
219
+ // 生成取消方法
220
+ config.cancelToken = config.cancelToken || new axios__WEBPACK_IMPORTED_MODULE_1___default.a.CancelToken(function (cancel) {
221
+ // 把取消方法添加到map
222
+ if (!pendingRequest.has(requestKey)) {
223
+ pendingRequest.set(requestKey, cancel);
224
+ }
225
+ });
226
+ return config;
227
+ }, function (err) {
228
+ return err;
229
+ });
230
+ // 响应拦截
231
+ http.interceptors.response.use(function (response) {
232
+ delPendingRequest(response.config);
233
+ loading && loading.close();
234
+ if (response.headers.authorization && response.headers.authorization !== getStorage('token')) {
235
+ if (localStorage.getItem('storage') === 'localStorage' || localStorage.getItem('ssId') || localStorage.getItem('token') || localStorage.getItem('Authorization')) {
236
+ localStorage.setItem('ssId', response.headers.ssid);
237
+ localStorage.setItem('token', response.headers.authorization);
238
+ localStorage.setItem('Authorization', response.headers.authorization);
239
+ } else {
240
+ sessionStorage.setItem('ssId', response.headers.ssid);
241
+ sessionStorage.setItem('token', response.headers.authorization);
242
+ sessionStorage.setItem('Authorization', response.headers.authorization);
243
+ }
244
+ }
245
+ if (response.status === 200) {
246
+ if (response.data.rCode === 64 || response.data.rCode === 65 || response.data.rCode === 67 || response.data.rCode === 69) {
247
+ removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'deviceUnique', 'menus', 'menus', 'useCaseCodes', 'mainConfig']);
248
+
249
+ var timer = getStorage('timer') || 0;
250
+ timer = parseInt(timer, 10);
251
+ if (win.top.location.href.indexOf('#/login') === -1 && win.top.location.href.indexOf('/login.html') === -1 && !timer) {
252
+ sessionStorage.setItem('timer', 1);
253
+ eoss_element__WEBPACK_IMPORTED_MODULE_4__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
254
+ confirmButtonText: '确定',
255
+ closeOnClickModal: false,
256
+ type: 'warning'
257
+ } : {
258
+ confirmButtonText: '确定',
259
+ cancelButtonText: '取消',
260
+ closeOnClickModal: false,
261
+ type: 'warning'
262
+ }).then(function () {
263
+ var loginPage = getStorage('login') || getStorage('loginPage');
264
+ if (loginPage) {
265
+ win.top.location.href = loginPage;
266
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
267
+ win.top.location.href = './login.html';
268
+ } else {
269
+ var hash = win.top.location.hash;
270
+ if (hash || win.top.location.indexOf('model=') && win.top.location.indexOf('view=') && win.top.location.indexOf('render.html')) {
271
+ var len = win.top.location.href.indexOf(hash);
272
+ var href = win.top.location.href.slice(0, len) + '#/login';
273
+ win.top.location.href = href;
274
+ } else {
275
+ win.top.location.href = '/login.html';
276
+ }
277
+ }
278
+ }).catch(function (e) {
279
+ _timer && clearTimeout(_timer);
280
+ _timer = setTimeout(function () {
281
+ removeStorage('timer');
282
+ clearTimeout(_timer);
283
+ _timer = null;
284
+ }, 1000);
285
+ });
286
+ }
287
+ return Promise.reject(response.data);
288
+ } else {
289
+ // eslint-disable-next-line no-undef
290
+ return Promise.resolve(response.data);
291
+ }
292
+ }
293
+ }, function (error) {
294
+ loading && loading.close();
295
+ if (!axios__WEBPACK_IMPORTED_MODULE_1___default.a.isCancel(error)) {
296
+ delPendingRequest(error.config || {});
297
+ }
298
+ if (error && error.response) {
299
+ if (error.response.status) {
300
+ switch (error.response.status) {
301
+ case 400:
302
+ error.message = '错误请求';
303
+ break;
304
+ case 401:
305
+ error.message = '未授权,请重新登录';
306
+ break;
307
+ case 403:
308
+ error.message = '登录过期,请重新登录';
309
+ break;
310
+ case 404:
311
+ error.message = '网络请求不存在';
312
+ break;
313
+ case 405:
314
+ error.message = '请求方法错误';
315
+ break;
316
+ case 408:
317
+ error.message = '请求超时';
318
+ break;
319
+ case 500:
320
+ error.message = '服务器端出错';
321
+ break;
322
+ case 501:
323
+ error.message = '网络未实现';
324
+ break;
325
+ case 502:
326
+ error.message = '网络错误';
327
+ break;
328
+ case 503:
329
+ error.message = '服务不可用';
330
+ break;
331
+ case 504:
332
+ error.message = '网络超时';
333
+ break;
334
+ case 505:
335
+ error.message = 'http版本不支持该请求';
336
+ break;
337
+ default:
338
+ error.message = '\u8FDE\u63A5\u9519\u8BEF' + error.response.status;
339
+ }
340
+ } else {
341
+ error.message = '无法请求,请联系管理员';
342
+ }
343
+ }
344
+ // eslint-disable-next-line no-undef
345
+ return Promise.reject(error);
346
+ });
347
+ var userId = getStorage('userId');
348
+ if (!Object.prototype.hasOwnProperty.call(data, 'userId') && userId && defaults) {
349
+ data.userId = userId;
350
+ }
351
+ if (!Object.prototype.hasOwnProperty.call(params, 'userId') && userId && defaults) {
352
+ params.userId = getStorage('userId');
353
+ }
354
+ if (!mix && method === 'get') {
355
+ data = {};
356
+ }
357
+ if (method === 'post') {
358
+ if (!mix) {
359
+ params = {};
360
+ }
361
+ if (format) {
362
+ data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
363
+ headers['content-type'] = 'application/x-www-form-urlencoded';
364
+ }
365
+ }
366
+ return http({
367
+ method: method,
368
+ url: url,
369
+ data: data,
370
+ params: params,
371
+ headers: headers
372
+ });
373
+ };
374
+
375
+ /**
376
+ * arrUnique
377
+ * @desc:数组元素对象去重
378
+ * @author huangbo
379
+ * @date 2022年5月7日
380
+ * @param {Object} [data] - 原始数组
381
+ * @param {String} [key] - 对象子元素的属性名
382
+ **/
383
+ var arrUnique = function arrUnique(data, key) {
384
+ var newArr = [];
385
+ if (key === undefined) {
386
+ data.sort();
387
+ newArr = [data[0]];
388
+ for (var i = 1; i < data.length; i++) {
389
+ if (data[i] !== newArr[newArr.length - 1]) {
390
+ newArr.push(data[i]);
391
+ }
392
+ }
393
+ } else {
394
+ var obj = {};
395
+ for (var _i = 0; _i < data.length; _i++) {
396
+ if (!obj[data[_i][key]]) {
397
+ newArr.push(data[_i]);
398
+ obj[data[_i][key]] = true;
399
+ }
400
+ }
401
+ }
402
+ return newArr;
403
+ };
404
+ /**
405
+ * browser
406
+ * @desc:浏览器类型
407
+ * @author huangbo
408
+ * @date 2022年5月7日
409
+ **/
410
+ var browser = function browser() {
411
+ var reg = { ie: /msie/, moz: /gecko/, opera: /opera/, safari: /safari/ };
412
+ for (var i in reg) {
413
+ if (reg[i].test(win.navigator.userAgent.toLowerCase())) {
414
+ return i;
415
+ }
416
+ }
417
+ };
418
+
419
+ /**
420
+ * debounce
421
+ * @desc:添加js内容
422
+ * @author huangbo
423
+ * @date 2022年5月7日
424
+ * @param {Function} [fn] - 函数
425
+ * @param {Number} [wait] - 延迟毫秒数
426
+ * @param {Boolean} [immediate] - 是否首次触发执行
427
+ **/
428
+
429
+ var debounce = function debounce(fn, wait, immediate) {
430
+ var timeout = void 0;
431
+ return function () {
432
+ var self = this;
433
+ var args = arguments;
434
+
435
+ if (timeout) clearTimeout(timeout);
436
+ // 是否在某一批事件中首次执行
437
+ if (immediate) {
438
+ var callNow = !timeout;
439
+ timeout = setTimeout(function () {
440
+ timeout = null;
441
+ fn.apply(self, args);
442
+ immediate = true;
443
+ }, wait);
444
+ if (callNow) {
445
+ fn.apply(self, args);
446
+ }
447
+ immediate = false;
448
+ } else {
449
+ timeout = setTimeout(function () {
450
+ fn.apply(self, args);
451
+ immediate = true;
452
+ }, wait);
453
+ }
454
+ };
455
+ };
456
+ /**
457
+ * delUrlParam
458
+ * @desc:删除url指定参数
459
+ * @author huangbo
460
+ * @date 2022年5月7日
461
+ * @param {String} [url] - url地址
462
+ * @param {String} [key] - 参数名
463
+ **/
464
+ var delUrlParam = function delUrlParam(_ref2) {
465
+ var url = _ref2.url,
466
+ key = _ref2.key;
467
+
468
+ var src = url ? decodeURI(url) : decodeURI(win.top.location.href);
469
+ var param = getParams({ url: src });
470
+ if (param && param.hasOwnProperty(key)) {
471
+ var reg = key + '=' + param[key];
472
+ if (Object.keys(param).length > 1) {
473
+ if (src.indexOf(reg + '&') > -1) {
474
+ src = src.replace(reg + '&', '');
475
+ }
476
+ if (src.indexOf('&' + reg) > -1) {
477
+ src = src.replace('&' + reg, '');
478
+ }
479
+ } else {
480
+ src = src.replace('?' + reg, '');
481
+ }
482
+ }
483
+ return src;
484
+ };
485
+
486
+ /**
487
+ * domEval
488
+ * @desc:添加js内容
489
+ * @author huangbo
490
+ * @date 2022年5月7日
491
+ * @param {String} [code] - js内容
492
+ **/
493
+ var domEval = function domEval(code) {
494
+ var script = document.createElement('script');
495
+ script.text = code;
496
+ document.head.appendChild(script);
497
+ };
498
+
499
+ /**
500
+ * esEncode
501
+ * @desc:加密
502
+ * @author huangbo
503
+ * @date 2022年5月7日
504
+ * @param {string} [data] - 被加密的字符串
505
+ **/
506
+ var esEncode = function esEncode(value) {
507
+ var kleng = publicKey.length;
508
+ var kstr = publicKey.split('');
509
+ var result = '';
510
+ var cat = void 0;
511
+ var cat1 = void 0;
512
+ var cat2 = void 0;
513
+ var cat3 = void 0;
514
+ for (var i = 0; i < value.length; i++) {
515
+ cat = value.charCodeAt(i);
516
+ cat1 = cat % kleng;
517
+ cat = (cat - cat1) / kleng;
518
+ cat2 = cat % kleng;
519
+ cat = (cat - cat2) / kleng;
520
+ cat3 = cat % kleng;
521
+ result += kstr[cat3] + kstr[cat2] + kstr[cat1];
522
+ }
523
+ return result;
524
+ };
525
+
526
+ /**
527
+ * esDecode
528
+ * @desc:解密
529
+ * @author huangbo
530
+ * @date 2022年5月7日
531
+ * @param {string} [value] - 被解密的加密字符串
532
+ * @param {string} [key] - 私钥
533
+ **/
534
+ var esDecode = function esDecode(value) {
535
+ var kleng = publicKey.length;
536
+ var result;
537
+ var cat1 = void 0;
538
+ var cat2 = void 0;
539
+ var cat3 = void 0;
540
+ var num = 0;
541
+ var arr = void 0;
542
+ arr = new Array(Math.floor(value.length / 3));
543
+ result = arr.length;
544
+ for (var i = 0; i < result; i++) {
545
+ cat1 = publicKey.indexOf(value.charAt(num));
546
+ num++;
547
+ cat2 = publicKey.indexOf(value.charAt(num));
548
+ num++;
549
+ cat3 = publicKey.indexOf(value.charAt(num));
550
+ num++;
551
+ arr[i] = cat1 * kleng * kleng + cat2 * kleng + cat3;
552
+ }
553
+ // eslint-disable-next-line no-eval
554
+ result = eval('String.fromCharCode(' + arr.join(',') + ')');
555
+ return result;
556
+ };
557
+
558
+ /**
559
+ * esmEncrypt
560
+ * @desc:sm2加密
561
+ * @author huangbo
562
+ * @date 2022年5月7日
563
+ * @param {string} [data] - 被加密的字符串
564
+ * @param {string} [key] - 公钥
565
+ **/
566
+ var esmEncrypt = function esmEncrypt(_ref3) {
567
+ var data = _ref3.data,
568
+ key = _ref3.key,
569
+ mode = _ref3.mode;
570
+
571
+ var cipherMode = mode ? mode : 1;
572
+ if (!new RegExp('^04').test(key)) {
573
+ key = '04' + key;
574
+ }
575
+ var result = sm2.doEncrypt(data, key, cipherMode);
576
+ return result;
577
+ };
578
+
579
+ /**
580
+ * esmDecode
581
+ * @desc:sm2解密
582
+ * @author huangbo
583
+ * @date 2022年5月7日
584
+ * @param {string} [data] - 被解密的加密字符串
585
+ * @param {string} [key] - 私钥
586
+ **/
587
+ var esmDecode = function esmDecode(_ref4) {
588
+ var data = _ref4.data,
589
+ key = _ref4.key,
590
+ mode = _ref4.mode;
591
+
592
+ var cipherMode = mode ? mode : 1;
593
+ if (new RegExp('^04').test(key)) {
594
+ key = key.slice(2);
595
+ }
596
+ var result = sm2.doDecrypt(data, key, cipherMode);
597
+ return result;
598
+ };
599
+
600
+ /**
601
+ * 排除属性
602
+ * @desc:exclAttribute
603
+ * @author huangbo
604
+ * @date 2022年5月7日
605
+ * @param {String/Array} [attrs] - 要排除的属性
606
+ **/
607
+ var exclAttribute = function exclAttribute(_ref5) {
608
+ var _ref5$attrs = _ref5.attrs,
609
+ attrs = _ref5$attrs === undefined ? 'value' : _ref5$attrs,
610
+ data = _ref5.data;
611
+
612
+ var obj = extend(true, {}, data);
613
+ if (Array.isArray(attrs)) {
614
+ attrs.forEach(function (item) {
615
+ if (obj[item] !== undefined) {
616
+ delete obj[item];
617
+ }
618
+ });
619
+ } else {
620
+ delete obj[attrs];
621
+ }
622
+ return obj;
623
+ };
624
+
625
+ /**
626
+ * exportXls
627
+ * @desc:导出表格数据
628
+ * @author huangbo
629
+ * @date 2022年5月7日
630
+ * @param {thead} [array] - 表单头部
631
+ * @param {data} [array] - 导出的数据
632
+ * @param {name} [string] - 导出文件名
633
+ * @param {numbers} [boolean] - 序号
634
+ **/
635
+ var exportXls = function exportXls(_ref6) {
636
+ var _ref6$thead = _ref6.thead,
637
+ thead = _ref6$thead === undefined ? [] : _ref6$thead,
638
+ _ref6$data = _ref6.data,
639
+ data = _ref6$data === undefined ? [] : _ref6$data,
640
+ name = _ref6.name,
641
+ numbers = _ref6.numbers;
642
+
643
+ var tbody = '';
644
+ var aligns = [];
645
+ var fields = [];
646
+ var others = {};
647
+ var alink = document.createElement('a');
648
+ for (var i = 0; i < thead.length; i++) {
649
+ tbody += '<tr style="text-align: center;">';
650
+ if (numbers) {
651
+ tbody += '<th rowspan="' + thead.length + '"></th>';
652
+ }
653
+ var tr = thead[i];
654
+ var col = 0;
655
+ for (var _x = 0; _x < tr.length; _x++) {
656
+ var td = tr[_x];
657
+ if (td.property) {
658
+ if (col === _x) {
659
+ fields.push(td.property);
660
+ aligns.push(td.align);
661
+ } else {
662
+ others[String(col)] = [td.property, td.align];
663
+ }
664
+ }
665
+ tbody += '<th rowspan="' + td.rowspan + '" colspan="' + td.colspan + '" align="' + td.align + '">' + td.label + '</th>';
666
+ if (td.colspan) {
667
+ col += parseInt(td.colspan, 10);
668
+ } else {
669
+ col++;
670
+ }
671
+ }
672
+ tbody += '</tr>';
673
+ }
674
+ for (var _i2 in others) {
675
+ fields.splice(_i2, 0, others[_i2][0]);
676
+ aligns.splice(_i2, 0, others[_i2][1]);
677
+ }
678
+ for (var _i3 = 0; _i3 < data.length; _i3++) {
679
+ tbody += '<tr>';
680
+ for (var x in fields) {
681
+ tbody += '<td align="' + aligns[x] + '">' + data[_i3][fields[x]] + '</td>';
682
+ }
683
+ tbody += '</tr>';
684
+ }
685
+ if (!name) {
686
+ name = 'table_' + new Date().getTime();
687
+ }
688
+ var uri = 'data:application/vnd.ms-excel;base64,';
689
+ var template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><meta charset="UTF-8"><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table style="vnd.ms-excel.numberformat:@">' + tbody + '</table></body></html>';
690
+ alink.href = uri + win.btoa(unescape(encodeURIComponent(template)));
691
+ alink.download = name + '.xls';
692
+ document.body.appendChild(alink);
693
+ alink.click();
694
+ document.body.removeChild(alink);
695
+ };
696
+
697
+ /**
698
+ * extend
699
+ * @desc:对象拷贝
700
+ * @author huangbo
701
+ * @date 2022年5月7日
702
+ * @param {Object} [target] - 被扩展的对象
703
+ * @param {Boolean}} [deep] - 是否深度操作
704
+ **/
705
+ var extend = function extend() {
706
+ var options = void 0;
707
+ var name = void 0;
708
+ var src = void 0;
709
+ var copy = void 0;
710
+ var copyIsArray = void 0;
711
+ var clone = void 0;
712
+ var target = arguments[0] || {};
713
+ var i = 1;
714
+ var length = arguments.length;
715
+ var deep = false;
716
+ if (typeof target === 'boolean') {
717
+ deep = target;
718
+ target = arguments[i] || {};
719
+ i++;
720
+ }
721
+ if ((typeof target === 'undefined' ? 'undefined' : _typeof(target)) !== 'object' && !isFunction(target)) {
722
+ target = {};
723
+ }
724
+ if (i === length) {
725
+ target = this;
726
+ i--;
727
+ }
728
+ for (; i < length; i++) {
729
+ if ((options = arguments[i]) != null) {
730
+ for (name in options) {
731
+ copy = options[name];
732
+ if (name === '__proto__' || target === copy) {
733
+ continue;
734
+ }
735
+ if (deep && copy && (isObject(copy) || (copyIsArray = Array.isArray(copy)))) {
736
+ src = target[name];
737
+ if (copyIsArray && !Array.isArray(src)) {
738
+ clone = [];
739
+ } else if (!copyIsArray && !isObject(src)) {
740
+ clone = {};
741
+ } else {
742
+ clone = src;
743
+ }
744
+ copyIsArray = false;
745
+ target[name] = extend(deep, clone, copy);
746
+ } else if (copy !== undefined) {
747
+ target[name] = copy;
748
+ }
749
+ }
750
+ }
751
+ }
752
+ return target;
753
+ };
754
+
755
+ /**
756
+ * formatDate
757
+ * @desc:格式化时间
758
+ * @author huangbo
759
+ * @date 2022年5月7日
760
+ * @param {String, Number} [date] - 时间字符串或时间戳
761
+ * @param {String} [fmt] - 格式
762
+ **/
763
+ var formatDate = function formatDate(date, fmt) {
764
+ var obj = void 0;
765
+ if (date) {
766
+ obj = new Date(date);
767
+ } else {
768
+ obj = new Date();
769
+ }
770
+ var quarter = ['一', '二', '三', '四'];
771
+ var o = {
772
+ 'b+': Math.ceil((obj.getMonth() + 1) / 6), // 半年
773
+ 'M+': obj.getMonth() + 1, // 月份
774
+ 'd+': obj.getDate(), // 日
775
+ 'H+': obj.getHours(), // 小时
776
+ 'm+': obj.getMinutes(), // 分
777
+ 's+': obj.getSeconds(), // 秒
778
+ 'q+': quarter[Math.ceil((obj.getMonth() + 1) / 3) - 1], // 季度
779
+ S: obj.getMilliseconds() // 毫秒
780
+ };
781
+ if (/(y+)/.test(fmt)) {
782
+ fmt = fmt.replace(RegExp.$1, (obj.getFullYear() + '').substr(4 - RegExp.$1.length));
783
+ }
784
+ for (var k in o) {
785
+ if (new RegExp('(' + k + ')').test(fmt)) {
786
+ fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));
787
+ }
788
+ }
789
+ return fmt;
790
+ };
791
+
792
+ /**
793
+ * getColor
794
+ * @desc:根据颜色和对应的色板位置,计算出对应的色板颜色
795
+ * @author huangbo
796
+ * @date 2022年5月7日
797
+ **/
798
+ var getColor = function getColor($color, $n) {
799
+ var $isLight = $n < 7;
800
+ var $hsv = rgbToHsv($color);
801
+ // 这里将i转换成以主色为中心,两侧的i值逐渐增大
802
+ var $i = $isLight ? $lightColorCount + 1 - $n : $n - $lightColorCount - 1;
803
+ var color = hsvTorgb(getHue($hsv[0], $i, $isLight), getSaturation($hsv[1], $i, $isLight), getLightness($hsv[2], $i, $isLight));
804
+ return color;
805
+ };
806
+
807
+ /**
808
+ * getHue
809
+ * @desc:转换色相
810
+ * @author huangbo
811
+ * @date 2022年5月7日
812
+ **/
813
+ var getHue = function getHue($h, $i, $isLight) {
814
+ var $hue = void 0;
815
+ if ($h >= 60 && $h <= 240) {
816
+ $hue = $isLight ? $h - $hueStep * $i : $h + $hueStep * $i;
817
+ } else {
818
+ $hue = $isLight ? $h + $hueStep * $i : $h - $hueStep * $i;
819
+ }
820
+ $hue = ($hue + 360) % 360;
821
+ return Math.round($hue);
822
+ };
823
+
824
+ /**
825
+ * getLightness
826
+ * @desc:转换明度
827
+ * @author huangbo
828
+ * @date 2022年5月7日
829
+ **/
830
+ var getLightness = function getLightness($v, $i, $isLight) {
831
+ var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
832
+ $value = $value < 1 ? $value : 1;
833
+ return toFixed($value, 2);
834
+ };
835
+
836
+ /**
837
+ * getObjectType
838
+ * @desc:获取数据类型
839
+ * @author tangdaibing
840
+ * @date 2022年5月7日
841
+ **/
842
+ var getObjectType = function getObjectType(data) {
843
+ var type = Object.prototype.toString.call(data).toLowerCase();
844
+ var typeFormat = {
845
+ '[object string]': 'string',
846
+ '[object number]': 'number',
847
+ '[object null]': 'null',
848
+ '[object boolean]': 'boolean',
849
+ '[object undefined]': 'undefined',
850
+ '[object object]': 'object',
851
+ '[object array]': 'array',
852
+ '[object function]': 'function',
853
+ '[object date]': 'date'
854
+ };
855
+ return typeFormat[type];
856
+ };
857
+
858
+ /**
859
+ * getParams
860
+ * @desc:获取url地址指定参数
861
+ * @author huangbo
862
+ * @date 2022年5月7日
863
+ * @param {String/Object} [res] - String:参数名称;Object:name参数名称,url:需要查询的地址
864
+ * @param {String/Boolean} [url] - Boolean:是否返回不带参数的url地址,String:返回不带参数的url地址的属性名
865
+ **/
866
+ var getParams = function getParams(res, baseUrl) {
867
+ var name = void 0;
868
+ var url = void 0;
869
+ if (typeof res === 'string') {
870
+ name = res;
871
+ } else if ((typeof res === 'undefined' ? 'undefined' : _typeof(res)) === 'object') {
872
+ name = res.name;
873
+ url = res.url ? decodeURI(res.url) : '';
874
+ }
875
+ var search = void 0;
876
+ var _url = void 0;
877
+ if (url) {
878
+ if (startWith(url, ['/', './'], true) || url.indexOf('html') > -1 || url.indexOf('dhtml') > -1 || url.indexOf('/#/') > -1) {
879
+ if (url.indexOf('?') === -1) {
880
+ _url = url.slice(0);
881
+ } else {
882
+ _url = url.slice(0, url.indexOf('?'));
883
+ search = url.slice(url.indexOf('?') + 1);
884
+ }
885
+ }
886
+ } else if (win.location.search) {
887
+ search = decodeURI(win.location.search).slice(1);
888
+ } else {
889
+ search = decodeURI(win.location.hash);
890
+ if (search.indexOf('?') > -1) {
891
+ search = search.slice(search.indexOf('?') + 1);
892
+ } else {
893
+ search = null;
894
+ }
895
+ }
896
+ if (search) {
897
+ if (name) {
898
+ var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)');
899
+ var r = search.match(reg);
900
+ if (r != null) {
901
+ return unescape(r[2]).replace(new RegExp('/+', 'gm'), '&');
902
+ } else {
903
+ return null;
904
+ }
905
+ }
906
+ var obj = {};
907
+ if (baseUrl) {
908
+ if (typeof baseUrl === 'string') {
909
+ obj[baseUrl] = _url;
910
+ } else {
911
+ obj['_baseUrl'] = _url;
912
+ }
913
+ }
914
+ if (search.indexOf('&') > -1) {
915
+ search.split('&').forEach(function (item) {
916
+ var val = item;
917
+ var param = void 0;
918
+ if (val.indexOf('?') > -1) {
919
+ var ary = val.split('?');
920
+ val = ary[0];
921
+ param = ary[1].replace(new RegExp('/+', 'gm'), '&');
922
+ }
923
+ var items = val.split('=');
924
+ obj[items[0]] = items[1] + (param ? '?' + param : '');
925
+ });
926
+ } else {
927
+ var items = search.split('=');
928
+ obj[items[0]] = items[1];
929
+ }
930
+ return obj;
931
+ }
932
+ return null;
933
+ };
934
+
935
+ /**
936
+ * getRgb
937
+ * @desc:获取颜色值的rgb值
938
+ * @author huangbo
939
+ * @date 2022年5月7日
940
+ * @param {string} [$color] - 颜色值
941
+ **/
942
+ var getRgb = function getRgb($color) {
943
+ var rgb = [];
944
+ // 16进制颜色值的正则
945
+ var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
946
+ // 把颜色值变成小写
947
+ $color = $color.toLowerCase();
948
+ if (reg.test($color)) {
949
+ // 如果只有三位的值,需变成六位,如:#fff => #ffffff
950
+ if ($color.length === 4) {
951
+ var colorNew = '#';
952
+ for (var i = 1; i < 4; i++) {
953
+ colorNew += $color.slice(i, i + 1).concat($color.slice(i, i + 1));
954
+ }
955
+ $color = colorNew;
956
+ }
957
+ // 处理六位的颜色值,转为RGB
958
+ for (var _i4 = 1; _i4 < 7; _i4 += 2) {
959
+ rgb.push(parseInt('0x' + $color.slice(_i4, _i4 + 2), 16));
960
+ }
961
+ } else {
962
+ rgb = $color.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
963
+ }
964
+ return rgb;
965
+ };
966
+
967
+ /**
968
+ * getSaturation
969
+ * @desc:转换饱和度
970
+ * @author huangbo
971
+ * @date 2022年5月7日
972
+ **/
973
+ var getSaturation = function getSaturation($s, $i, $isLight) {
974
+ var $saturation = void 0;
975
+ if ($isLight) {
976
+ $saturation = $s - $saturationStep1 * $i;
977
+ } else if ($i === $darkColorCount) {
978
+ $saturation = $s + $saturationStep1;
979
+ } else {
980
+ $saturation = $s + $saturationStep2 * $i;
981
+ }
982
+ $saturation = $saturation < 1 ? $saturation : 1;
983
+
984
+ if ($isLight && $i === $lightColorCount && $saturation > 0.1) {
985
+ $saturation = 0.1;
986
+ }
987
+ $saturation = $saturation > 0.06 ? $saturation : 0.06;
988
+ return toFixed($saturation, 2);
989
+ };
990
+
991
+ /**
992
+ * getScript
993
+ * @desc:获取js文件并执行
994
+ * @author huangbo
995
+ * @date 2022年5月7日
996
+ * @param {String} [url] - js文件地址
997
+ **/
998
+ var getScript = function getScript(url, callback) {
999
+ // eslint-disable-next-line no-undef
1000
+ return new Promise(function (resolve, reject) {
1001
+ var xmlHttp = null;
1002
+ if (win.XMLHttpRequest) {
1003
+ xmlHttp = new XMLHttpRequest();
1004
+ } else if (win.ActiveXObject) {
1005
+ xmlHttp = new win.ActiveXObject('Microsoft.XMLHTTP');
1006
+ }
1007
+ if (xmlHttp == null) {
1008
+ alert('浏览器不支持xmlHttp');
1009
+ return;
1010
+ }
1011
+ xmlHttp.open('GET', url, false);
1012
+ xmlHttp.onreadystatechange = function () {
1013
+ if (xmlHttp.readyState === 4 && xmlHttp.status === 200) {
1014
+ var res = xmlHttp.responseText;
1015
+ if (callback) {
1016
+ typeof callback === 'function' && callback(res);
1017
+ } else {
1018
+ domEval(res);
1019
+ }
1020
+ resolve(res);
1021
+ } else {
1022
+ reject(false);
1023
+ }
1024
+ };
1025
+ xmlHttp.send();
1026
+ });
1027
+ };
1028
+
1029
+ /**
1030
+ * getStorage
1031
+ * @desc:获取本地储存数据
1032
+ * @author huangbo
1033
+ * @date 2022年5月7日
1034
+ * @param {String} [key] - 获取的名称
1035
+ **/
1036
+ var getStorage = function getStorage(key) {
1037
+ if (key) {
1038
+ var res = sessionStorage.getItem(key) || localStorage.getItem(key) || win[key];
1039
+ if (key === 'host' && !res) {
1040
+ return win.location.origin;
1041
+ }
1042
+ return res;
1043
+ }
1044
+ var defaults = {};
1045
+ var token = sessionStorage.getItem('token') || localStorage.getItem('token') || win.token;
1046
+ var ssId = sessionStorage.getItem('ssId') || localStorage.getItem('ssId') || win.ssId;
1047
+ var deviceUnique = sessionStorage.getItem('deviceUnique') || localStorage.getItem('deviceUnique') || win.deviceUnique;
1048
+ if (token) {
1049
+ defaults.Authorization = token;
1050
+ }
1051
+ if (ssId) {
1052
+ defaults.ssId = ssId;
1053
+ }
1054
+ if (deviceUnique) {
1055
+ defaults.deviceUnique = deviceUnique;
1056
+ }
1057
+ return defaults;
1058
+ };
1059
+
1060
+ /**
1061
+ * getStyle
1062
+ * @desc:获取元素样式(含非行内样式)
1063
+ * @author huangbo
1064
+ * @date 2022年5月7日
1065
+ * @param {String} [dom] - dom元素
1066
+ * @param {String} [attr] - 样式属性名
1067
+ **/
1068
+
1069
+ var getStyle = function getStyle(dom, attr) {
1070
+ if (dom.style[attr]) {
1071
+ return dom.style[attr];
1072
+ }
1073
+ if (win.getComputedStyle) {
1074
+ return getComputedStyle(dom, null)[attr];
1075
+ }
1076
+ return dom.currentStyle[attr];
1077
+ };
1078
+
1079
+ /**
1080
+ * getTypeName
1081
+ * @desc:转换类型文本
1082
+ * @author huangbo
1083
+ * @date 2022年5月7日
1084
+ * @param {string} [type] - 类型
1085
+ **/
1086
+ var getTypeName = function getTypeName(type) {
1087
+ var typeName = '';
1088
+ var sysorgname = getStorage('sysorgname');
1089
+ var sysdepname = getStorage('sysdepname');
1090
+ if (type === 'enterprise') {
1091
+ if (sysorgname) {
1092
+ typeName = '[' + sysorgname + ']';
1093
+ } else {
1094
+ typeName = '[公司]';
1095
+ }
1096
+ } else if (type === 'department') {
1097
+ if (sysdepname) {
1098
+ typeName = '[' + sysdepname + ']';
1099
+ } else {
1100
+ typeName = '[部门]';
1101
+ }
1102
+ } else if (type === 'role') {
1103
+ typeName = '[角色]';
1104
+ } else if (type === 'post') {
1105
+ typeName = '[岗位]';
1106
+ } else if (type === 'otheremployee' || type === 'employee') {
1107
+ if (sysdepname) {
1108
+ typeName = '[' + sysdepname + '员工]';
1109
+ } else {
1110
+ typeName = '[部门员工]';
1111
+ }
1112
+ } else if (type === 'postemployee') {
1113
+ typeName = '[岗位员工]';
1114
+ } else if (type === 'persongroup') {
1115
+ typeName = '[人员群组成员]';
1116
+ } else if (type === 'filgroup') {
1117
+ if (sysorgname) {
1118
+ typeName = '[' + sysorgname + '群组成员]';
1119
+ } else {
1120
+ typeName = '[公司群组成员]';
1121
+ }
1122
+ } else if (type === 'depgroup') {
1123
+ if (sysdepname) {
1124
+ typeName = '[' + sysdepname + '群组成员]';
1125
+ } else {
1126
+ typeName = '[部门群组成员]';
1127
+ }
1128
+ } else if (type === 'persongroupobj') {
1129
+ typeName = '[人员群组]';
1130
+ } else if (type === 'filgroupobj') {
1131
+ if (sysorgname) {
1132
+ typeName = '[' + sysorgname + '群组]';
1133
+ } else {
1134
+ typeName = '[公司群组]';
1135
+ }
1136
+ } else if (type === 'depgroupobj') {
1137
+ if (sysdepname) {
1138
+ typeName = '[' + sysdepname + '群组]';
1139
+ } else {
1140
+ typeName = '[部门群组]';
1141
+ }
1142
+ } else if (type === 'otherperson' || type === 'topcontacts' || type === 'person') {
1143
+ typeName = '[人员]';
1144
+ } else if (type === 'codetable') {
1145
+ typeName = '[代码表]';
1146
+ } else if (type === 'organizecentreobj') {
1147
+ typeName = '[组织中心]';
1148
+ }
1149
+ return typeName;
1150
+ };
1151
+
1152
+ /**
1153
+ * getValues
1154
+ * @desc:获取value值
1155
+ * @author huangbo
1156
+ * @date 2022年5月7日
1157
+ * @param {object} [obj] - json对象
1158
+ * @param {boolean} [flag] - 是否不重复获取
1159
+ **/
1160
+ var getValues = function getValues(obj, flag) {
1161
+ var val = {};
1162
+ obj.forEach(function (items) {
1163
+ if (items.contents) {
1164
+ items.contents.forEach(function (item) {
1165
+ if (item.name && item.type !== 'button' && item.type !== 'submit') {
1166
+ if (item.type === 'table' && item.form) {
1167
+ val[item.name] = item.data;
1168
+ } else if (item.name && !flag && !item.hide) {
1169
+ if (item.value !== undefined && item.value !== '') {
1170
+ if (Array.isArray(val)) {
1171
+ if (val.length) {
1172
+ val[item.name] = item.value;
1173
+ }
1174
+ } else {
1175
+ val[item.name] = item.value;
1176
+ }
1177
+ }
1178
+ }
1179
+ }
1180
+ });
1181
+ } else if (items.name && items.type !== 'button' && items.type !== 'submit') {
1182
+ if (items.value !== undefined && items.value !== '') {
1183
+ if (Array.isArray(val)) {
1184
+ if (val.length) {
1185
+ val[items.name] = items.value;
1186
+ }
1187
+ } else {
1188
+ val[items.name] = items.value;
1189
+ }
1190
+ }
1191
+ } else if (items.type === 'table' && items.form) {
1192
+ val[items.type] = items.data;
1193
+ }
1194
+ });
1195
+ return val;
1196
+ };
1197
+
1198
+ /**
1199
+ * handlerUrl
1200
+ * @desc:更新url参数中的时间戳
1201
+ * @author huangbo
1202
+ * @date 2022年5月7日
1203
+ * @param {String} [url] - url地址
1204
+ **/
1205
+
1206
+ var handlerUrl = function handlerUrl(url, before) {
1207
+ var arry = url.split('?');
1208
+ if (arry.length > 2) {
1209
+ var ary = arry.splice(1, arry.length);
1210
+ arry.push(ary.join('?'));
1211
+ }
1212
+ if (arry.length > 1) {
1213
+ if (arry[1].indexOf('_tt') > -1) {
1214
+ var search = arry[1].split('&');
1215
+ for (var i in search) {
1216
+ if (search[i].indexOf('_tt') > -1) {
1217
+ search[i] = '_tt=' + new Date().getTime();
1218
+ }
1219
+ }
1220
+ arry[1] = search.join('&');
1221
+ } else {
1222
+ arry[1] += '&_tt=' + new Date().getTime();
1223
+ }
1224
+ url = arry.join('?');
1225
+ } else {
1226
+ url += '?_tt=' + new Date().getTime();
1227
+ }
1228
+ if (before && before === arry[0]) {
1229
+ var pathname = win.location.pathname;
1230
+ if (pathname === '/') {
1231
+ url = pathname + url;
1232
+ } else {
1233
+ url = pathname.replace('index.html', url);
1234
+ }
1235
+ }
1236
+ return encodeURI(url);
1237
+ };
1238
+ /**
1239
+ * hasChars
1240
+ * @desc: 检测指定字符串是否含有目标字符
1241
+ * @author huangbo
1242
+ * @date 2022年5月7日
1243
+ * @param {String} [str] - 指定字符
1244
+ * @param {String,Array} [res] - 检测目标
1245
+ **/
1246
+ var hasChars = function hasChars(res, str) {
1247
+ if (typeof res === 'string') {
1248
+ return str.indexOf(res) > -1;
1249
+ }
1250
+ if (Array.isArray(res)) {
1251
+ var flag = true;
1252
+ for (var i = 0; i < res.length; i++) {
1253
+ if (str.indexOf(res[i]) === -1) {
1254
+ flag = false;
1255
+ }
1256
+ }
1257
+ return flag;
1258
+ }
1259
+ return false;
1260
+ };
1261
+
1262
+ var hasClass = function hasClass(element, name) {
1263
+ return element && (' ' + element.className + ' ').indexOf(' ' + name + ' ') > -1;
1264
+ };
1265
+ /**
1266
+ * hsvTorgb
1267
+ * @desc:hsv转化成rgb
1268
+ * @author huangbo
1269
+ * @date 2022年5月7日
1270
+ * @param {string} [$color] - 颜色值
1271
+ **/
1272
+ var hsvTorgb = function hsvTorgb($h, $s, $v) {
1273
+ var $th = Math.floor($h / 60);
1274
+ var $t1 = $h / 60 - $th;
1275
+ var $t2 = $v * (1 - $s);
1276
+ var $t3 = $v * (1 - $t1 * $s);
1277
+ var $t4 = $v * (1 - (1 - $t1) * $s);
1278
+ var $r = [$v, $t3, $t2, $t2, $t4, $v][$th % 6];
1279
+ var $g = [$t4, $v, $v, $t3, $t2, $t2][$th % 6];
1280
+ var $b = [$t2, $t2, $t4, $v, $v, $t3][$th % 6];
1281
+ // return `rgb(${Math.round($r * 255)}, ${Math.round($g * 255)}, ${Math.round($b * 255)})`;
1282
+ var red = Math.round($r * 255);
1283
+ var green = Math.round($g * 255);
1284
+ var blue = Math.round($b * 255);
1285
+ red = red.toString(16);
1286
+ green = green.toString(16);
1287
+ blue = blue.toString(16);
1288
+ red = red.length === 1 ? '0' + red : red;
1289
+ green = green.length === 1 ? '0' + green : green;
1290
+ blue = blue.length === 1 ? '0' + blue : blue;
1291
+ return '#' + red + green + blue;
1292
+ };
1293
+
1294
+ /**
1295
+ * identical
1296
+ * @desc:验证值是否相同
1297
+ * @author huangbo
1298
+ * @date 2022年5月7日
1299
+ * @param {value} [array] - 需要对比的值的数组集合
1300
+ * @param {callback} [function] - 回调函数
1301
+ **/
1302
+ var identical = function identical(_ref7) {
1303
+ var value = _ref7.value,
1304
+ callback = _ref7.callback,
1305
+ _ref7$msg = _ref7.msg,
1306
+ msg = _ref7$msg === undefined ? ['请输入值', '请再次输入', '输入不一致!'] : _ref7$msg;
1307
+
1308
+ if (value && value.length > 1) {
1309
+ var val = value[0];
1310
+ if (val === '' || val === undefined || val === null) {
1311
+ callback(new Error(msg[0]));
1312
+ return false;
1313
+ }
1314
+ for (var i = 1; i < value.length; i++) {
1315
+ if (val === '' || val === undefined || val === null) {
1316
+ callback(new Error(msg[1]));
1317
+ return false;
1318
+ } else if (value[i] !== val) {
1319
+ callback(new Error(msg[2]));
1320
+ return false;
1321
+ }
1322
+ }
1323
+ callback();
1324
+ return true;
1325
+ }
1326
+ return false;
1327
+ };
1328
+
1329
+ /**
1330
+ * indexOfObj
1331
+ * @desc:查找数组对象下标
1332
+ * @author huangbo
1333
+ * @date 2022年5月7日
1334
+ * @param {Array} [arry] - 被查找的数组
1335
+ * @param {Object} [target] - 目标对象
1336
+ * @param {String} [key] - 目标对象的属性名
1337
+ **/
1338
+ var indexOfObj = function indexOfObj(arry, target, key) {
1339
+ for (var i = 0; i < arry.length; i++) {
1340
+ if (key) {
1341
+ if (typeof target === 'string' && arry[i][key] === target) {
1342
+ return i;
1343
+ }
1344
+ if (target[key] === arry[i][key]) {
1345
+ return i;
1346
+ }
1347
+ } else {
1348
+ if (JSON.stringify(target) === JSON.stringify(arry[i])) {
1349
+ return i;
1350
+ }
1351
+ }
1352
+ }
1353
+ return -1;
1354
+ };
1355
+
1356
+ /**
1357
+ * isFunction
1358
+ * @desc:判断是否是函数
1359
+ * @author huangbo
1360
+ * @date 2022年5月7日
1361
+ * @param {Object} [obj] - 对象
1362
+ **/
1363
+ var isFunction = function isFunction(obj) {
1364
+ return typeof obj === 'function' && typeof obj.nodeType !== 'number' && typeof obj.item !== 'function';
1365
+ };
1366
+
1367
+ /**
1368
+ * isLogged
1369
+ * @desc:是否登录(用于路由守卫中)
1370
+ * @author huangbo
1371
+ * @date 2022年5月7日
1372
+ * @param {object} [to] - 路由跳转信息
1373
+ * @param {object} [from] - 路由来源信息
1374
+ * @param {function} [next] - 跳转函数
1375
+ * @param {function} [exclude] - 不拦截的路由
1376
+ * @param {boolean} [open] - 是否新窗口打开
1377
+ * @param {boolean} [cookie] - 是否尝试采用
1378
+ * @param {sting} [loginPage] - 第三方登录页面地址
1379
+ * @param {boolean} [redirect] - 是否重定向(用于新脚手架)
1380
+ **/
1381
+ var isLogged = function isLogged(_ref8) {
1382
+ var to = _ref8.to,
1383
+ from = _ref8.from,
1384
+ next = _ref8.next,
1385
+ exclude = _ref8.exclude,
1386
+ open = _ref8.open,
1387
+ cookie = _ref8.cookie,
1388
+ loginPage = _ref8.loginPage,
1389
+ redirect = _ref8.redirect;
1390
+
1391
+ var logined = getStorage('logined');
1392
+ if (cookie === undefined) {
1393
+ cookie = getParams({ name: 'cookie' });
1394
+ }
1395
+ // eslint-disable-next-line eqeqeq
1396
+ if (logined || cookie == true || cookie == 1) {
1397
+ if (loginPage) {
1398
+ sessionStorage.setItem('loginPage', loginPage);
1399
+ }
1400
+ next();
1401
+ } else {
1402
+ var token = getStorage('token') || getStorage('Authorization');
1403
+ if (Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
1404
+ var url = win.top.location.href;
1405
+ ajax({
1406
+ method: 'post',
1407
+ url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
1408
+ data: to.query
1409
+ }).then(function (res) {
1410
+ if (res.rCode === 0) {
1411
+ switch (res.results.statusCode) {
1412
+ case 0:
1413
+ var storage = getStorage('storage');
1414
+ setStorage({
1415
+ type: storage,
1416
+ key: {
1417
+ ssId: res.results.ssId,
1418
+ token: res.results.token,
1419
+ Authorization: res.results.token,
1420
+ deviceUnique: res.results.deviceUnique
1421
+ }
1422
+ });
1423
+ next();
1424
+ break;
1425
+ case 1:
1426
+ break;
1427
+ case 2:
1428
+ break;
1429
+ case 3:
1430
+ var href = res.results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
1431
+ if (open) {
1432
+ win.open(href);
1433
+ } else {
1434
+ win.top.location.href = href;
1435
+ }
1436
+ break;
1437
+ }
1438
+ } else {
1439
+ if (token) {
1440
+ next();
1441
+ } else {
1442
+ alert(res.msg);
1443
+ }
1444
+ }
1445
+ }).catch(function (e) {});
1446
+ } else if (token || to.path === '/' || to.path === '/login' || to.path === '/404' || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1) {
1447
+ if (redirect && to.name && (to.name === 'login' || to.name === 'main')) {
1448
+ window.location.replace(urlJoinParams({ url: './' + to.name + '.html', param: to.query }));
1449
+ } else {
1450
+ next();
1451
+ }
1452
+ } else {
1453
+ if (loginPage) {
1454
+ win.top.location.replace(loginPage);
1455
+ } else if (document.referrer) {
1456
+ win.top.location.replace(document.referrer);
1457
+ } else if (win.top.location.href.indexOf('main.html') > -1) {
1458
+ win.top.location.href = './login.html';
1459
+ } else {
1460
+ next('/login');
1461
+ }
1462
+ }
1463
+ }
1464
+ };
1465
+
1466
+ /**
1467
+ * isObject
1468
+ * @desc:判断是否是对象
1469
+ * @author huangbo
1470
+ * @date 2022年5月7日
1471
+ * @param {Object} [obj] - 对象
1472
+ **/
1473
+ var isObject = function isObject(obj) {
1474
+ var proto = void 0;
1475
+ var Ctor = void 0;
1476
+
1477
+ if (!obj || {}.toString.call(obj) !== '[object Object]') {
1478
+ return false;
1479
+ }
1480
+
1481
+ proto = Object.getPrototypeOf(obj);
1482
+ if (!proto) {
1483
+ return true;
1484
+ }
1485
+ var ObjectFunctionString = Object.prototype.hasOwnProperty.toString.call(Object);
1486
+ Ctor = Object.prototype.hasOwnProperty.call(proto, 'constructor') && proto.constructor;
1487
+ return typeof Ctor === 'function' && Object.prototype.hasOwnProperty.toString.call(Ctor) === ObjectFunctionString;
1488
+ };
1489
+
1490
+ /**
1491
+ * jointUrl
1492
+ * @desc:判断url地址是否以字符开头,没有则添加
1493
+ * @author huangbo
1494
+ * @date 2022年5月7日
1495
+ * @param {string} [reg] - 域名或者路径
1496
+ * @param {string/array} [url] - 地址
1497
+ * @param {boolean} [single] - 是否做js沙箱隔离
1498
+ **/
1499
+ var jointUrl = function jointUrl(_ref9) {
1500
+ var url = _ref9.url,
1501
+ reg = _ref9.reg;
1502
+
1503
+ if (startWith(url, ['https', 'http', 'blob:'], true) || !reg || !reg.length) {
1504
+ return url;
1505
+ }
1506
+ if (Array.isArray(reg)) {
1507
+ var newUrl = '';
1508
+ reg.forEach(function (item) {
1509
+ newUrl = startWith(url, item) ? url : item + url;
1510
+ });
1511
+ return newUrl;
1512
+ }
1513
+ return startWith(url, reg) ? url : reg + url;
1514
+ };
1515
+
1516
+ var loadJs = function loadJs(_ref10) {
1517
+ var url = _ref10.url,
1518
+ _ref10$type = _ref10.type,
1519
+ type = _ref10$type === undefined ? 'text/javascript' : _ref10$type,
1520
+ id = _ref10.id,
1521
+ _ref10$single = _ref10.single,
1522
+ single = _ref10$single === undefined ? true : _ref10$single;
1523
+
1524
+ return new Promise(function (resolve, reject) {
1525
+ var script = document.getElementById(id) || document.createElement('script');
1526
+ var src = script.getAttribute('src');
1527
+ if (src && src === url) {
1528
+ console.warn(id + '已存在');
1529
+ resolve();
1530
+ } else {
1531
+ id && script.setAttribute('id', id);
1532
+ script.setAttribute('type', type);
1533
+ script.setAttribute('src', url);
1534
+ document.getElementsByTagName('head')[0].appendChild(script);
1535
+ script.onreadystatechange = function () {
1536
+ resolve();
1537
+ };
1538
+ script.onload = function () {
1539
+ resolve();
1540
+ };
1541
+ script.onerror = function () {
1542
+ reject();
1543
+ };
1544
+ }
1545
+ });
1546
+ };
1547
+
1548
+ /**
1549
+ * loading
1550
+ * @desc:loading
1551
+ * @author huangbo
1552
+ * @date 2022年5月7日
1553
+ * @param {String} [text] - 显示的文本内容
1554
+ **/
1555
+ var loading = function loading($loading, res) {
1556
+ if (!$loading) {
1557
+ $loading = eoss_element__WEBPACK_IMPORTED_MODULE_4__["Loading"].service;
1558
+ }
1559
+ if (isObject(res)) {
1560
+ var config = extend({}, {
1561
+ target: win.top.document.body,
1562
+ fullscreen: true,
1563
+ background: 'rgba(0, 0, 0, 0.65)',
1564
+ spinner: 'el-icon-loading',
1565
+ text: '加载中...'
1566
+ }, res);
1567
+ return $loading(config);
1568
+ } else {
1569
+ var _loading = $loading({
1570
+ target: win.top.document.body,
1571
+ fullscreen: true,
1572
+ background: 'rgba(0, 0, 0, 0.65)',
1573
+ spinner: 'el-icon-loading',
1574
+ text: res ? res : '加载中...'
1575
+ });
1576
+ return _loading;
1577
+ }
1578
+ };
1579
+
1580
+ /**
1581
+ * mixColor
1582
+ * @desc:生成混合色
1583
+ * @author huangbo
1584
+ * @date 2022年5月7日
1585
+ * @param {string} [$color1] - 颜色值
1586
+ * @param {string} [$color2] - 颜色值
1587
+ * @param {string} [$n] - 百分比 0~1
1588
+ **/
1589
+ var mixColor = function mixColor($color1, $color2, $n) {
1590
+ var rgb1 = getRgb($color1);
1591
+ var rgb2 = getRgb($color2);
1592
+ var r = rgb1[0] * $n + rgb2[0] * (1 - $n);
1593
+ var g = rgb1[1] * $n + rgb2[1] * (1 - $n);
1594
+ var b = rgb1[2] * $n + rgb2[2] * (1 - $n);
1595
+ return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
1596
+ };
1597
+
1598
+ /**
1599
+ * overbrim
1600
+ * @desc:判断是否文字溢出
1601
+ * @author huangbo
1602
+ * @date 2022年5月7日
1603
+ * @param {String} [el] - 文字所在的dom
1604
+ **/
1605
+ var overbrim = function overbrim(el) {
1606
+ var w = el.offsetWidth;
1607
+ var s = el.scrollWidth;
1608
+ if (s > w) {
1609
+ return true;
1610
+ } else {
1611
+ return false;
1612
+ }
1613
+ };
1614
+
1615
+ /**
1616
+ * queryParams
1617
+ * @desc:对象转url地址的拼接参数
1618
+ * @author huangbo
1619
+ * @date 2022年5月7日
1620
+ * @param {Object} [obj] - 被转换的对象
1621
+ **/
1622
+ var queryParams = function queryParams(obj) {
1623
+ var arry = [];
1624
+ for (var i in obj) {
1625
+ arry.push(i + '=' + obj[i]);
1626
+ }
1627
+ if (arry.length) {
1628
+ return arry.join('&');
1629
+ }
1630
+ return false;
1631
+ };
1632
+
1633
+ /**
1634
+ * receiveMessage
1635
+ * @desc:接收发送信息
1636
+ * @author huangbo
1637
+ * @date 2022年5月7日
1638
+ * @param {object} [data] - 数据---其中type必须表示操作类型
1639
+ * @param {string} [url] - 消息源的 URI
1640
+ * @param {function} [callback] - 回调函数
1641
+ **/
1642
+ var receiveMessage = function receiveMessage(_ref11) {
1643
+ var _ref11$data = _ref11.data,
1644
+ data = _ref11$data === undefined ? {} : _ref11$data,
1645
+ url = _ref11.url,
1646
+ callback = _ref11.callback;
1647
+
1648
+ win.addEventListener('message', function (e) {
1649
+ if (url !== undefined) {
1650
+ var origin = e.origin || e.location.origin;
1651
+ if (origin !== url) {
1652
+ // 验证消息来源地址
1653
+ return;
1654
+ }
1655
+ }
1656
+ callback(e.data);
1657
+ });
1658
+ };
1659
+
1660
+ /**
1661
+ * removeStorage
1662
+ * @desc:删除本地储存数据
1663
+ * @author huangbo
1664
+ * @date 2022年5月7日
1665
+ * @param {String, Array} [key] - 获取的名称
1666
+ **/
1667
+ var removeStorage = function removeStorage(key) {
1668
+ if (Array.isArray(key)) {
1669
+ for (var i = 0; i < key.length; i++) {
1670
+ sessionStorage.removeItem(key[i]);
1671
+ localStorage.removeItem(key[i]);
1672
+ }
1673
+ } else if (key) {
1674
+ sessionStorage.removeItem(key);
1675
+ localStorage.removeItem(key);
1676
+ } else {
1677
+ sessionStorage.clear();
1678
+ localStorage.clear();
1679
+ }
1680
+ };
1681
+
1682
+ /**
1683
+ * replenish
1684
+ * @desc:补全小数位数
1685
+ * @author huangbo
1686
+ * @date 2022年5月7日
1687
+ * @param {string、number} [data] - 数字或字符串型数字
1688
+ * @param {number} [precision] - 需要的小数位数
1689
+ **/
1690
+ var replenish = function replenish(_ref12) {
1691
+ var data = _ref12.data,
1692
+ precision = _ref12.precision;
1693
+
1694
+ if (data && precision && precision > 0) {
1695
+ var power = Math.pow(10, precision);
1696
+ var res = data === 'string' ? Number(data) : data;
1697
+ res = String(Math.round(res * power) / power);
1698
+ var len = res.indexOf('.');
1699
+ if (len < 0) {
1700
+ len = res.length;
1701
+ res += '.';
1702
+ }
1703
+ while (res.length <= len + precision) {
1704
+ res += '0';
1705
+ }
1706
+ return parseFloat(res);
1707
+ }
1708
+ return data;
1709
+ };
1710
+
1711
+ /**
1712
+ * rgbToHsv
1713
+ * @desc:rgb转化成hsv
1714
+ * @author huangbo
1715
+ * @date 2022年5月7日
1716
+ * @param {string} [$color] - 颜色值
1717
+ **/
1718
+ var rgbToHsv = function rgbToHsv($color) {
1719
+ var rgb = getRgb($color);
1720
+ var $red = rgb[0];
1721
+ var $green = rgb[1];
1722
+ var $blue = rgb[2];
1723
+ var $max = Math.max($red, $green, $blue);
1724
+ var $min = Math.min($red, $green, $blue);
1725
+ var $diff = $max - $min;
1726
+ var $h = 0;
1727
+ if ($max === $min) {
1728
+ $h = 0;
1729
+ } else if ($max === $red) {
1730
+ $h = 60 * ($green - $blue) / $diff + ($green > $blue - 1 ? 0 : 360);
1731
+ } else if ($max === $green) {
1732
+ $h = 60 * ($blue - $red) / $diff + 120;
1733
+ } else if ($max === $blue) {
1734
+ $h = 60 * ($red - $green) / $diff + 240;
1735
+ }
1736
+ var $s = $max === 0 ? 0 : $diff / $max;
1737
+ var $v = $max / 255;
1738
+ return [$h, $s, $v];
1739
+ };
1740
+
1741
+ /**
1742
+ * sendMessage
1743
+ * @desc:向iframe发送信息
1744
+ * @author huangbo
1745
+ * @date 2022年5月7日
1746
+ * @param {object} [data] - 数据---其中type必须表示操作类型
1747
+ * @param {string} [url] - 指定的消息发送URI地址
1748
+ **/
1749
+ var sendMessage = function sendMessage(_ref13) {
1750
+ var _ref13$data = _ref13.data,
1751
+ data = _ref13$data === undefined ? {} : _ref13$data,
1752
+ url = _ref13.url;
1753
+
1754
+ var iframes = document.getElementsByTagName('iframe');
1755
+ for (var i = 0; i < iframes.length; i++) {
1756
+ if (url !== undefined) {
1757
+ if (iframes[i].contentWindow.location.href === url) {
1758
+ iframes[i].contentWindow.postMessage(data, url);
1759
+ return;
1760
+ }
1761
+ } else {
1762
+ iframes[i].contentWindow.postMessage(data);
1763
+ }
1764
+ }
1765
+ };
1766
+
1767
+ /**
1768
+ * setFavicon
1769
+ * @desc:设置浏览器页签窗口图标
1770
+ * @author huangbo
1771
+ * @date 2022年5月7日
1772
+ * @param {String} [url] - 图标地址
1773
+ **/
1774
+ var setFavicon = function setFavicon(url) {
1775
+ var link = document.querySelector("link[rel*='icon']");
1776
+ if (link) {
1777
+ link.href = url;
1778
+ } else {
1779
+ link = document.createElement('link');
1780
+ link.type = 'image/x-icon';
1781
+ link.rel = 'shortcut icon';
1782
+ link.href = url;
1783
+ document.getElementsByTagName('head')[0].appendChild(link);
1784
+ }
1785
+ };
1786
+
1787
+ /**
1788
+ * setStorage
1789
+ * @desc:设置本地储存数据
1790
+ * @author huangbo
1791
+ * @date 2022年5月7日
1792
+ * @param {String} [type] - 储存类型
1793
+ * @param {String, Array, Object} [key] - 数据的名称,array类型表示多个key保存同一个value,object类型时对象的属性名称作为key属性值作为value
1794
+ * @param {String} [value] - 数据的值
1795
+ **/
1796
+ var setStorage = function setStorage(_ref14) {
1797
+ var type = _ref14.type,
1798
+ key = _ref14.key,
1799
+ value = _ref14.value;
1800
+
1801
+ if (value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {
1802
+ value = JSON.stringify(value);
1803
+ }
1804
+ if (type === undefined || type === 'sessionStorage') {
1805
+ if (typeof key === 'string') {
1806
+ sessionStorage.setItem(key, value);
1807
+ } else if (Array.isArray(key)) {
1808
+ for (var i in key) {
1809
+ sessionStorage.setItem(key[i], value);
1810
+ }
1811
+ } else {
1812
+ for (var _i5 in key) {
1813
+ var val = _typeof(key[_i5]) === 'object' ? JSON.stringify(key[_i5]) : key[_i5];
1814
+ sessionStorage.setItem(_i5, val);
1815
+ }
1816
+ }
1817
+ } else {
1818
+ if (typeof key === 'string') {
1819
+ localStorage.setItem(key, value);
1820
+ } else if (Array.isArray(key)) {
1821
+ for (var _i6 in key) {
1822
+ localStorage.setItem(key[_i6], value);
1823
+ }
1824
+ } else {
1825
+ for (var _i7 in key) {
1826
+ var _val = _typeof(key[_i7]) === 'object' ? JSON.stringify(key[_i7]) : key[_i7];
1827
+ localStorage.setItem(_i7, _val);
1828
+ }
1829
+ }
1830
+ }
1831
+ };
1832
+ /**
1833
+ * startWith
1834
+ * @desc:判断值是否以指定字符开头
1835
+ * @author huangbo
1836
+ * @date 2022年5月7日
1837
+ * @param {string} [value] - 被查找的字符串
1838
+ * @param {string,array} [reg] - 指定字符串
1839
+ * @param {boolean} [or] - 或者(等同于||)
1840
+ **/
1841
+ var startWith = function startWith(value, reg) {
1842
+ var or = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
1843
+
1844
+ if (Array.isArray(reg)) {
1845
+ var flag = true;
1846
+ for (var i = 0; i < reg.length; i++) {
1847
+ var item = reg[i];
1848
+ if (new RegExp('^' + item).test(value)) {
1849
+ if (or) {
1850
+ flag = true;
1851
+ return true;
1852
+ }
1853
+ } else {
1854
+ flag = false;
1855
+ }
1856
+ }
1857
+ return flag;
1858
+ }
1859
+ if (new RegExp('^' + reg).test(value)) {
1860
+ return true;
1861
+ }
1862
+ return false;
1863
+ };
1864
+
1865
+ /**
1866
+ * throttle
1867
+ * @desc:添加js内容
1868
+ * @author huangbo
1869
+ * @date 2022年5月7日
1870
+ * @param {Function} [fn] - 函数
1871
+ * @param {Number} [wait] - 延迟毫秒数
1872
+ **/
1873
+ var throttle = function throttle(fn, wait) {
1874
+ var timer = null;
1875
+ var startTime = Date.now();
1876
+ return function () {
1877
+ var curTime = Date.now();
1878
+ var remaining = wait - (curTime - startTime);
1879
+ var context = this;
1880
+ var args = arguments;
1881
+ clearTimeout(timer);
1882
+ if (remaining <= 0) {
1883
+ fn.apply(context, args);
1884
+ startTime = Date.now();
1885
+ } else {
1886
+ timer = setTimeout(fn, remaining); // 如果小于wait 保证在差值时间后执行
1887
+ }
1888
+ };
1889
+ };
1890
+
1891
+ /**
1892
+ * timeCycle
1893
+ * @desc:时间转换成上午下午晚上
1894
+ * @author huangbo
1895
+ * @date 2022年5月7日
1896
+ * @param {String, Number} [date] - 时间字符串或时间戳
1897
+ **/
1898
+ var timeCycle = function timeCycle(date) {
1899
+ var obj = void 0;
1900
+ if (date) {
1901
+ obj = new Date(date);
1902
+ } else {
1903
+ obj = new Date();
1904
+ }
1905
+ var h = obj.getHours(); // 获取小时
1906
+ var period = '';
1907
+ h < 12 ? period = '上午' : h < 18 ? period = '下午' : period = '晚上';
1908
+ return period;
1909
+ };
1910
+
1911
+ /**
1912
+ * toFixed
1913
+ * @desc:浮点数保留小数位
1914
+ * @author huangbo
1915
+ * @date 2022年5月7日
1916
+ * @param {number} [$float] - 要转换的数值
1917
+ * @param {number} [$digits] - 小数位数
1918
+ **/
1919
+ var toFixed = function toFixed($float, $digits) {
1920
+ var $pow = Math.pow(10, $digits);
1921
+ return Math.round($float * $pow) / $pow;
1922
+ };
1923
+ /**
1924
+ * toFunction
1925
+ * 兼容ie
1926
+ * @desc:函数字符串转函数
1927
+ * @author huangbo
1928
+ * @date 2022年5月7日
1929
+ * @param {string} [str] - 函数字符串
1930
+ **/
1931
+ var toFunction = function toFunction(str) {
1932
+ if (str.indexOf('=>') > -1) {
1933
+ var renders = str.split('=>');
1934
+ var args = renders[0].replace('(', '').replace(')', '').split(',');
1935
+ // eslint-disable-next-line no-control-regex
1936
+ var fnStr = renders[1].trim().replace(new RegExp('\n', 'gm'), '').replace(new RegExp('\t', 'gm'), '').replace(new RegExp('^\\{+|\\}+$', 'g'), '');
1937
+ var fn = void 0;
1938
+ if (args.length) {
1939
+ fn = new (Function.prototype.bind.apply(Function, [null].concat(args, [fnStr])))();
1940
+ } else {
1941
+ fn = new Function(fnStr);
1942
+ }
1943
+ return fn;
1944
+ } else {
1945
+ // eslint-disable-next-line no-eval
1946
+ return eval(str);
1947
+ }
1948
+ };
1949
+
1950
+ /**
1951
+ * updateTheme
1952
+ * @desc:更新主题色
1953
+ * @author huangbo
1954
+ * @date 2022年5月7日
1955
+ * @param {string} [$color] - 颜色值
1956
+ **/
1957
+ var updateTheme = function updateTheme($color, send) {
1958
+ $color = $color ? $color : '#409eff';
1959
+ if (send === undefined) {
1960
+ send = true;
1961
+ }
1962
+ document.documentElement.style.setProperty('--theme-primary', $color);
1963
+ for (var i = 1; i < 11; i++) {
1964
+ if (i === 6) {
1965
+ document.documentElement.style.setProperty('--theme-primary-light-' + i, $color);
1966
+ } else {
1967
+ var light = getColor($color, i);
1968
+ document.documentElement.style.setProperty('--theme-primary-light-' + i, light);
1969
+ }
1970
+ }
1971
+ if (send) {
1972
+ sendMessage({ data: { type: 'setTheme' } });
1973
+ }
1974
+ };
1975
+
1976
+ /**
1977
+ * urlJoinParams
1978
+ * @desc:对象转url拼接参数
1979
+ * @author huangbo
1980
+ * @date 2022年5月7日
1981
+ * @param {Object} [url] - url地址
1982
+ * @param {Object} [param] - 被转换的对象
1983
+ **/
1984
+ var urlJoinParams = function urlJoinParams(_ref15) {
1985
+ var url = _ref15.url,
1986
+ param = _ref15.param,
1987
+ timestamp = _ref15.timestamp;
1988
+
1989
+ var arry = decodeURI(url).split('?');
1990
+ var times = new Date().getTime();
1991
+ var params = timestamp ? { _tt: times } : {};
1992
+ if (arry.length > 1) {
1993
+ var search = arry[1].split('&');
1994
+ search.forEach(function (item) {
1995
+ var items = item.split('=');
1996
+ params[items[0]] = items[1];
1997
+ });
1998
+ }
1999
+ '&_tt=' + new Date().getTime();
2000
+ params = extend(true, params, param);
2001
+ var str = queryParams(params);
2002
+ if (str) {
2003
+ return arry[0] + '?' + str;
2004
+ }
2005
+ return arry[0];
2006
+ };
2007
+ /**
2008
+ * uuid
2009
+ * @desc:唯一id
2010
+ * @author huangbo
2011
+ * @date 2022年5月7日
2012
+ * @param {number} [len] - 长度
2013
+ **/
2014
+ var uuid = function uuid(len) {
2015
+ len = len || 32;
2016
+ var s = 4;
2017
+ var str = '';
2018
+ function S4() {
2019
+ return ((1 + Math.random()) * 0x10000 | 0).toString(16).substring(1);
2020
+ }
2021
+ for (var i = 0; i < Math.ceil(len / s); i++) {
2022
+ str += S4();
2023
+ }
2024
+ return str.substring(0, len);
2025
+ };
2026
+
2027
+ /**
2028
+ * watermark
2029
+ * @desc:水印
2030
+ * @author huangbo
2031
+ * @date 2022年5月7日
2032
+ * @param {object} [option] - 配置参数
2033
+ **/
2034
+ var watermark = function watermark(option) {
2035
+ // 默认设置
2036
+ var config = {
2037
+ rows: 5, // 水印行数
2038
+ cols: 5,
2039
+ html: '水印示例', // 水印文本内容
2040
+ angle: -15, // 旋转角度
2041
+ color: '#000', // 水印文字颜色
2042
+ width: 100, // 水印宽度
2043
+ height: 20, // 水印高度
2044
+ lineHeight: 20, // 水印行高
2045
+ opacity: 0.1, // 水印透明度
2046
+ fontSize: 14, // 水印文字字体大小
2047
+ fontWeight: 400, // 水印字体粗细
2048
+ fontFamily: '微软雅黑', // 水印文字字体类型
2049
+ textAlign: 'center', // 水印文字居中类型
2050
+ zIndex: 999999 // 水印文字的层级
2051
+ };
2052
+ var options = option ? extend(true, config, typeof option === 'string' ? { html: option } : option) : config;
2053
+ var wrap = document.createElement('div');
2054
+ // 禁止选择和复制
2055
+ wrap.onselectstart = wrap.oncontextmenu = function () {
2056
+ return false;
2057
+ };
2058
+ var docFrag = document.createDocumentFragment();
2059
+ var rows = options.rows,
2060
+ cols = options.cols,
2061
+ html = options.html,
2062
+ angle = options.angle,
2063
+ color = options.color,
2064
+ height = options.height,
2065
+ lineHeight = options.lineHeight,
2066
+ opacity = options.opacity,
2067
+ fontSize = options.fontSize,
2068
+ fontWeight = options.fontWeight,
2069
+ fontFamily = options.fontFamily,
2070
+ textAlign = options.textAlign,
2071
+ zIndex = options.zIndex;
2072
+
2073
+
2074
+ wrap.style.cssText = 'display: flex;align-items: center;justify-content: flex-start;flex-wrap: wrap;align-content: space-between;position: fixed;left: 50%;top: 50%;transform: translate(-50%, -50%);height: 100vh;width: 100vw;pointer-events: none;overflow: hidden;background: transparent;z-index: ' + zIndex + ';';
2075
+ var num = rows * cols;
2076
+ for (var i = 0; i < num; i++) {
2077
+ var item = document.createElement('div');
2078
+ item.innerHTML = html;
2079
+ item.style.cssText = 'flex-grow: 1;flex-shrink: 0;color: ' + color + ';text-align: ' + textAlign + ';width: ' + 100 / cols + '%;height: ' + height + 'px;line-height: ' + lineHeight + 'px;font-size:' + fontSize + 'px;font-weight: ' + fontWeight + ';font-family: ' + fontFamily + ';text-align: ' + textAlign + ';transform: rotate(' + angle + 'deg);opacity: ' + opacity + ';';
2080
+ docFrag.appendChild(item);
2081
+ }
2082
+ wrap.appendChild(docFrag);
2083
+ document.body.appendChild(wrap);
2084
+ };
2085
+ /* harmony default export */ __webpack_exports__["a"] = ({
2086
+ ajax: ajax,
2087
+ arrUnique: arrUnique,
2088
+ browser: browser,
2089
+ debounce: debounce,
2090
+ delUrlParam: delUrlParam,
2091
+ domEval: domEval,
2092
+ esDecode: esDecode,
2093
+ esEncode: esEncode,
2094
+ esmEncrypt: esmEncrypt,
2095
+ esmDecode: esmDecode,
2096
+ exclAttribute: exclAttribute,
2097
+ exportXls: exportXls,
2098
+ extend: extend,
2099
+ formatDate: formatDate,
2100
+ getObjectType: getObjectType,
2101
+ getParams: getParams,
2102
+ getRgb: getRgb,
2103
+ getScript: getScript,
2104
+ getStorage: getStorage,
2105
+ getStyle: getStyle,
2106
+ getTypeName: getTypeName,
2107
+ getValues: getValues,
2108
+ handlerUrl: handlerUrl,
2109
+ hasChars: hasChars,
2110
+ hasClass: hasClass,
2111
+ hsvTorgb: hsvTorgb,
2112
+ identical: identical,
2113
+ indexOfObj: indexOfObj,
2114
+ isFunction: isFunction,
2115
+ isLogged: isLogged,
2116
+ isObject: isObject,
2117
+ jointUrl: jointUrl,
2118
+ loadJs: loadJs,
2119
+ loading: loading,
2120
+ mixColor: mixColor,
2121
+ overbrim: overbrim,
2122
+ queryParams: queryParams,
2123
+ receiveMessage: receiveMessage,
2124
+ removeStorage: removeStorage,
2125
+ replenish: replenish,
2126
+ rgbToHsv: rgbToHsv,
2127
+ sendMessage: sendMessage,
2128
+ setFavicon: setFavicon,
2129
+ setStorage: setStorage,
2130
+ startWith: startWith,
2131
+ throttle: throttle,
2132
+ timeCycle: timeCycle,
2133
+ toFixed: toFixed,
2134
+ toFunction: toFunction,
2135
+ updateTheme: updateTheme,
2136
+ urlJoinParams: urlJoinParams,
2137
+ uuid: uuid,
2138
+ watermark: watermark,
2139
+ win: win
2140
+ });
2141
+
2142
+ /***/ }),
2143
+ /* 1 */
2144
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2145
+
2146
+ "use strict";
2147
+ /* unused harmony export doCaLogin */
2148
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return doUserLogin; });
2149
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return doQrLogin; });
2150
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return logout; });
2151
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return initLogin; });
2152
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return switchUserTo; });
2153
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return changeImg; });
2154
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return getLoginCode; });
2155
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return doCodeLogin; });
2156
+ /* unused harmony export updateCode */
2157
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return getModifyPassCode; });
2158
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return codeModifyPass; });
2159
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return authCenter; });
2160
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return initModifyPassword; });
2161
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return doWechatQrLogin; });
2162
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return mainConfig; });
2163
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return initUserSet; });
2164
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return updateUserInfo; });
2165
+ /* unused harmony export getUserImgUrl */
2166
+ /* unused harmony export getDoorIndex */
2167
+ /* unused harmony export refreshOnlineUsers */
2168
+ /* unused harmony export getQuickMenuIds */
2169
+ /* unused harmony export getApplicationIdArray */
2170
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return getComplexApplications; });
2171
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return getComplexApplicationsNew; });
2172
+ /* unused harmony export getUserCustomInfo */
2173
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return updateUserCustomInfo; });
2174
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return sysMsgPage; });
2175
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return ignoreSysMsg; });
2176
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return ignoreAllSysMsg; });
2177
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return getAdjunctProperties; });
2178
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return uploads; });
2179
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return uploadOnlyOne; });
2180
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return getAdjunctFileInfos; });
2181
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return uploadSort; });
2182
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return downloadByAdjunctId; });
2183
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return uploadDownloads; });
2184
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return previewAdjunct; });
2185
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return previewAdjunct2; });
2186
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return previewAdjunctOffice; });
2187
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return delAdjunct; });
2188
+ /* unused harmony export upload_updateClassify */
2189
+ /* unused harmony export getDeleteAdjunctFileInfos */
2190
+ /* unused harmony export getPictureBase64 */
2191
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getSelectorOrgTree; });
2192
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getSelectorOrgDetail; });
2193
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return getOrgMainTree; });
2194
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getSelectOrgsubids; });
2195
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return findSysCode; });
2196
+ /* unused harmony export findUserBaseInfo */
2197
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return gethelpdoc; });
2198
+ /* unused harmony export getCurrentuser */
2199
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return mainDetail; });
2200
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return toStartFlow; });
2201
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return tempSave; });
2202
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return commonOpion; });
2203
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
2204
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return editCommonOpion; });
2205
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return saveCommonOpinion; });
2206
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return updateCommonOpinion; });
2207
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return deleteCommonOpion; });
2208
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return getProcessDefList; });
2209
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return getNodeInfo; });
2210
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return findCodeValues; });
2211
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return findSysCodes; });
2212
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return getNotificationMsg; });
2213
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return getHandleInfoHtml; });
2214
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return taskHandleHtml; });
2215
+ /* unused harmony export getView */
2216
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return register; });
2217
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return pendedhistoryList; });
2218
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return toTaskRejectHtml; });
2219
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return taskRejectHtml; });
2220
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return toStartTaskRead; });
2221
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return toStartTaskReadIndex; });
2222
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return taskReadHtml; });
2223
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return rejectAndEnd; });
2224
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return toSendMsg; });
2225
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return sendMsg; });
2226
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return endFlowHtml; });
2227
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return handleInfo; });
2228
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return loginUserInfo; });
2229
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return wss; });
2230
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return topic; });
2231
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return getPresetCustomInfo; });
2232
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return getPresetNodeInfo; });
2233
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return toTaskTransferIndex; });
2234
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return taskTransfer; });
2235
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return toPresetInfoListIndex; });
2236
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return deletePresetInfo; });
2237
+ /* unused harmony export historyListJson */
2238
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return pendedhistoryListJson; });
2239
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return pressListJson; });
2240
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return deleteFlow; });
2241
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return isCanStartSubFlow; });
2242
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return toTaskUnionExamine; });
2243
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return taskUnionExamine; });
2244
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return toTaskTakeAdvice; });
2245
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return taskTakeAdvice; });
2246
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return toTaskStartDraft; });
2247
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return taskStartDraft; });
2248
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return toTaskReview; });
2249
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return taskReview; });
2250
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return toTaskUnionSeal; });
2251
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return taskUnionSeal; });
2252
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return toTwoOfficesDispatch; });
2253
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return twoOfficesDispatch; });
2254
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return sendList; });
2255
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return sendInfo; });
2256
+ /* unused harmony export sendSave */
2257
+ /* unused harmony export sendUpdate */
2258
+ /* unused harmony export sendDelete */
2259
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return sendBatch; });
2260
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return formContents; });
2261
+ // 登录
2262
+ var doCaLogin = '/sso2/signIn/auth/doCaLogin'; // ca登录认证
2263
+ var doUserLogin = '/sso2/signIn/auth/doUserLogin'; // 一般的账号密码认证含验证码验证
2264
+ var doQrLogin = '/sso2/signIn/auth/doQrLogin'; // 扫码登录
2265
+ var logout = '/sso2/signIn/auth/logout'; // 退出登录
2266
+ var initLogin = '/sso2/signIn/auth/initLogin'; // 初始化登录页面参数
2267
+ var switchUserTo = '/sso2/signIn/auth/switchTo'; // 切换登录用户; 身份切换
2268
+ var changeImg = '/sso2/signIn/auth/changeImg'; // 获取图片验证码
2269
+ var getLoginCode = '/sso2/signIn/auth/getLoginCode'; // 登录获取短信、邮箱验证码
2270
+ var doCodeLogin = '/sso2/signIn/auth/doCodeLogin'; // 短信、邮箱验证码登录
2271
+ var updateCode = '/sso2/signIn/assembly/getSmsModifyPassVerificationCode'; // 获取短信验证码(修改密码)
2272
+ var getModifyPassCode = '/sso2/signIn/assembly/getModifyPassCode'; // 获取修改密码的短信、邮箱验证码
2273
+ var codeModifyPass = '/sso2/signIn/assembly/codeModifyPass'; // 验证码重置密码
2274
+ var authCenter = '/sso2/authCenter/login'; // 单点登录认证中心
2275
+ var initModifyPassword = '/sso2/signIn/assembly/initModifyPassword'; // 初始化密码修改信息
2276
+ var doWechatQrLogin = '/sso2/signIn/auth/doWechatQrLogin'; // 微信扫码登录
2277
+ // 框架
2278
+ var mainConfig = '/main2/main/mainConfig'; // 获取主页面配置
2279
+ var initUserSet = '/main2/main/initUserSet'; // 获取用户信息
2280
+ var updateUserInfo = '/main2/main/updateUserInfo'; // 更新用户信息
2281
+ var getUserImgUrl = '/main2/main/getUserImgUrl'; // 获取当前用户头像地址
2282
+ var getDoorIndex = '/main2/main/getDoorIndex'; // 获取当前用户所在机构门户地址
2283
+ var refreshOnlineUsers = '/main/user/refreshOnlineUsers.dhtml'; // 在线人数
2284
+ var getQuickMenuIds = '/main2/main/getQuickMenuIds'; // 获取已绑定的快捷菜单ids; 返回; 分割的字符串
2285
+ var getApplicationIdArray = '/main2/main/getApplicationIdArray'; // 获取应用父id数组
2286
+ var getComplexApplications = '/main2/menu/getComplexApplications'; // 获取当前用户菜单; 含页签菜单格式的数据
2287
+ var getComplexApplicationsNew = '/main2/menu/getComplexApplicationsNew'; // 获取当前用户应用菜单; 含页签菜单格式的数据
2288
+ var getUserCustomInfo = '/main2/main/getUserCustomInfo'; // 获取主题样式
2289
+ var updateUserCustomInfo = '/main2/main/updateUserCustomInfo'; // 更新主题样式
2290
+ // 框架 - 系统消息
2291
+ var sysMsgPage = '/main2/notify/sysMsgPage'; // 获取系统消息
2292
+ var ignoreSysMsg = '/main2/notify/ignoreSysMsg'; // 忽略系统消息
2293
+ var ignoreAllSysMsg = '/main2/notify/ignoreAllSysMsg'; // 忽略全部系统消息
2294
+ // 附件相关
2295
+ var getAdjunctProperties = '/main2/mecpfileManagement/getAdjunctProperties'; // 获取附件扩展类型大小
2296
+ var uploads = '/main2/mecpfileManagement/upload'; // 上传接口
2297
+ var uploadOnlyOne = '/main2/mecpfileManagement/uploadOnlyOne'; // 上传接口(覆盖之前文件)
2298
+ var getAdjunctFileInfos = '/main2/mecpfileManagement/getAdjunctFileInfos'; // 附件列表
2299
+ var uploadSort = '/main2/mecpfileManagement/sort'; // 根据附件的ids排序附件
2300
+ var downloadByAdjunctId = '/main2/mecpfileManagement/downloadByAdjunctId'; // 下载附件
2301
+ var uploadDownloads = '/main2/mecpfileManagement/uploadDownloads'; // 批量下载//
2302
+ var previewAdjunct = '/main2/mecpfileManagement/previewAdjunct'; // 预览附件
2303
+ var previewAdjunct2 = '/main2/mecpfileManagement/previewAdjunct2/'; // 预览附件(带文件名)
2304
+ var previewAdjunctOffice = '/document/webDocument/documentIndex.dhtml'; // 预览附件word excel ppt
2305
+ var delAdjunct = '/main2/mecpfileManagement/delAdjunct'; // 删除附件
2306
+ var upload_updateClassify = '/main2/mecpfileManagement/updateClassify'; // 根据附件id保存该附件的分类信息
2307
+ var getDeleteAdjunctFileInfos = '/main2/mecpfileManagement/getDeleteAdjunctFileInfos'; // 根据业务id和附件code获取相关已删除附件的元数据列表
2308
+ var getPictureBase64 = '/main2/mecpfileManagement/getPictureBase64'; // 获取图片的base64编码
2309
+ // 组织机构树
2310
+ var getSelectorOrgTree = '/sys/v1/mecpSys/getSelectorOrgTree.dhtml';
2311
+ // 选择器选择内容
2312
+ var getSelectorOrgDetail = '/sys/v1/mecpSys/getSelectorOrgDetail.dhtml';
2313
+ // 业务组织中心树
2314
+ var getOrgMainTree = '/sys/v1/mecpSys/getOrgMainTree.dhtml';
2315
+ // 业务组织中心树下级
2316
+ var getSelectOrgsubids = '/sys/v1/mecpSys/getSelectOrgsubids.dhtml';
2317
+ // 代码表
2318
+ var findSysCode = '/sys/v1/mecpSys/findSysCode.dhtml';
2319
+ // 获取用户基本信息
2320
+ var findUserBaseInfo = '/sys/v1/mecpSys/findUserBaseInfo.dhtml';
2321
+ // 说明文档
2322
+ var gethelpdoc = '/sys/v1/mecpSys/gethelpdoc.json';
2323
+ // 获取当前用户信息
2324
+ var getCurrentuser = '/sys/api/getCurrentuser.dhtml';
2325
+ // 获取主题JSON
2326
+ var mainDetail = '/config/configLayoutTheme/detail';
2327
+ // -------------------- 流程接口 --------------------------
2328
+ // 获取节点信息
2329
+ // export const toStartFlow = '/api/mecp/v1/mecpItask/toStartFlow.json';
2330
+ var toStartFlow = '/bpm/bpmBackend/toStartFlow';
2331
+ // 暂存数据
2332
+ var tempSave = '/oa/task/taskHandle/tempSave.dhtml';
2333
+ // 获取常用意见
2334
+ // /oa/commonOpinionsManager/getOpinionsList.dhtml /api/v1/mecpIpending/commonOpion.json
2335
+ // /api/v1/mecpIpending/commonOpion.json
2336
+ var commonOpion = '/bpm/commonOpinionsManager/list';
2337
+ // 添加常用意见
2338
+ var addCommonOpion = '/bpm/commonOpinionsManager/add';
2339
+ // 获取常用意见编辑信息
2340
+ var editCommonOpion = '/bpm/commonOpinionsManager/edit';
2341
+ // 常用意见新增
2342
+ var saveCommonOpinion = '/oa/commonOpinionsManager/save.dhtml';
2343
+ // 常用意见修改
2344
+ var updateCommonOpinion = '/oa/commonOpinionsManager/update.dhtml';
2345
+ var deleteCommonOpion = '/oa/commonOpinionsManager/delete.dhtml';
2346
+ // 获取选择流程
2347
+ // export const getProcessDefList =
2348
+ // '/api/mecp/v1/mecpItask/getProcessDefList.json';
2349
+ var getProcessDefList = '/bpm/bpmBackend/toStartFlowIndex';
2350
+ // 获取下步办理人 /api/mecp/v1/mecpItask/getNodeInfo.json
2351
+ var getNodeInfo = '/oa/task/taskHandle/getNodeInfo.dhtml';
2352
+
2353
+ // 系统消息
2354
+ // 通知方式
2355
+ var findCodeValues = '/bpm/bpmCommon/findCodeValues';
2356
+ var findSysCodes = '/oa/task/taskHandle/getDefaultNotificationType.dhtml';
2357
+ // 获取通知消息
2358
+ var getNotificationMsg = '/oa/task/taskHandle/getNotificationMsg.dhtml';
2359
+ // 获取审核页面数据
2360
+ var getHandleInfoHtml = '/bpm/bpmBackend/toTaskHandleIndex.dhtml';
2361
+ // export const getHandleInfoHtml =
2362
+ // '/bpm/bpmBackend/toTaskHandleIndex.dhtml';
2363
+ // 获取节点信息(获取节点属性及办理人)
2364
+ // export const getNodeInfoHtml = '/api/mecp/v1/mecpItask/getNodeInfoHtml.json';
2365
+ // 提交办理
2366
+ var taskHandleHtml = '/oa/task/taskHandle/taskHandle.dhtml';
2367
+ // 获取流程图
2368
+ var getView = '/bpm/service/diagram/view.html';
2369
+ // 开始流程
2370
+ var register = '/oa/task/taskHandle/startFlow.dhtml';
2371
+ // 获取流程列表
2372
+ var pendedhistoryList = '/api/v1/mecpIpending/pendedhistoryList.json';
2373
+ // 获取审核按钮信息
2374
+ // export const getHandleButtonHtml =
2375
+ // '/api/mecp/v1/mecpItask/getHandleButtonHtml.json';
2376
+ // 获取驳回页面信息
2377
+ var toTaskRejectHtml = '/bpm/bpmBackend/toTaskReject';
2378
+ // 驳回提交
2379
+ var taskRejectHtml = '/bpm/bpmBackend/taskReject';
2380
+ // 获取分阅信息
2381
+ var toStartTaskRead = '/bpm/bpmBackend/toStartTaskRead';
2382
+ // 获取分阅办理页面
2383
+ var toStartTaskReadIndex = '/bpm/bpmBackend/toTaskReadIndex';
2384
+ // 分阅提交
2385
+ var taskReadHtml = 'bpm/task/taskHandle/taskRead.dhtml';
2386
+ // 驳回并办结
2387
+ var rejectAndEnd = '/bpm/task/taskHandle/rejectAndEnd.dhtml';
2388
+ // 核稿通知
2389
+ var toSendMsg = '/bpm/bpmBackend/toSendMsgIndex';
2390
+ // 核稿通知提交
2391
+ var sendMsg = 'bpm/task/taskHandle/sendMsg.dhtml';
2392
+ // 直接办结
2393
+ var endFlowHtml = '/bpm/task/taskHandle/endFlow.dhtml';
2394
+ // 获取用户信息
2395
+ // export const findUserBaseInfos = '/api/v1/mecpSys/findUserBaseInfo.dhtml';
2396
+ // 搜索用户信息
2397
+ var handleInfo = '/oa/task/taskHandle/handleInfo.dhtml';
2398
+ // 获取当前用户信息
2399
+ var loginUserInfo = '/bpm/bpmCommon/loginUserInfo';
2400
+
2401
+ // WebSocket
2402
+ var wss = window.wss || '/main2/ws';
2403
+ // 订阅
2404
+ var topic = '/user/topic/all';
2405
+ // 流程预设
2406
+ var getPresetCustomInfo = '/oa/task/taskHandle/getPresetCustomInfo.dhtml';
2407
+ // 办理人预设
2408
+ var getPresetNodeInfo = '/oa/task/taskHandle/getPresetNodeInfo.dhtml';
2409
+ // 获取转办页面数据
2410
+ var toTaskTransferIndex = '/bpm/bpmBackend/toTaskTransferIndex';
2411
+ // 转办提交按钮
2412
+ var taskTransfer = '/bpm/task/taskHandle/taskTransfer.dhtml';
2413
+ // 流程预设列表
2414
+ var toPresetInfoListIndex = '/bpm/bpmBackend/toPresetInfoListIndex';
2415
+ // 流程预设置为失效
2416
+ var deletePresetInfo = '/bpm/task/taskHandle/deletePresetInfo.dhtml';
2417
+ // 流程列表
2418
+ var historyListJson = '/oa/pendedhistoryManager/historyListJson.dhtml';
2419
+ // 获取流程列表配置
2420
+ var pendedhistoryListJson = '/oa/pendedhistoryManager/pendedhistoryListJson';
2421
+ // 获取催办列表
2422
+ var pressListJson = '/oa/wfUrgeRecord/listJson.dhtml';
2423
+ // 删除流程列表节点
2424
+ var deleteFlow = '/oa/pendedhistoryManager/delete.dhtml';
2425
+ // 是否允许启动子流程(必经节点)
2426
+ var isCanStartSubFlow = '/bpm/task/taskHandle/isCanStartSubFlow.dhtml';
2427
+ // 联合审核
2428
+ var toTaskUnionExamine = '/bpm/bpmBackend/toTaskUnionExamine';
2429
+ // 联合审核提交
2430
+ var taskUnionExamine = '/bpm/task/taskHandle/taskUnionExamine.dhtml';
2431
+ // 征求意见
2432
+ var toTaskTakeAdvice = '/bpm/bpmBackend/toTaskTakeAdvice';
2433
+ // 征求意见提交
2434
+ var taskTakeAdvice = '/bpm/task/taskHandle/taskTakeAdvice.dhtml';
2435
+ // 稿件递送
2436
+ var toTaskStartDraft = '/bpm/bpmBackend/totaskStartDraft';
2437
+
2438
+ // 稿件递送提交接口
2439
+ // export const taskStartDraft = '/oa/task/taskHandle/taskStartDraft.dhtml';
2440
+ var taskStartDraft = '/archives/task/taskHandle/taskStartDraft.dhtml';
2441
+ // 复核
2442
+ var toTaskReview = '/bpm/bpmBackend/toTaskReview';
2443
+ // 复核提交
2444
+ var taskReview = '/oa/task/taskHandle/taskReview.dhtml';
2445
+ // 联合用印
2446
+ var toTaskUnionSeal = '/bpm/bpmBackend/toTaskUnionSeal';
2447
+ // 联合用印提交
2448
+ var taskUnionSeal = '/bpm/task/taskHandle/taskUnionSeal.dhtml';
2449
+ // 报送两办
2450
+ var toTwoOfficesDispatch = '/bpm/bpmBackend/toTwoOfficesDispatch';
2451
+ // 报送两办提交
2452
+ var twoOfficesDispatch = 'task/taskHandle/twoOfficesDispatch.dhtml';
2453
+
2454
+ // notifySend 消息发送
2455
+ var sendList = '/notify2/notifySendRecord/listJson';
2456
+ var sendInfo = '/notify2/notifySendRecord/info';
2457
+ var sendSave = '/notify2/notifySendRecord/save';
2458
+ var sendUpdate = '/notify2/notifySendRecord/update';
2459
+ var sendDelete = '/notify2/notifySendRecord/deleteById';
2460
+ // 重发
2461
+ var sendBatch = '/notify2/sendRecord/reSendNotifyMessageBatch';
2462
+
2463
+ // 表单结构
2464
+ var formContents = '/config/admin/online/onlineForm/render';
2465
+
2466
+ /***/ }),
2467
+ /* 2 */
2468
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2469
+
2470
+ "use strict";
2471
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
2472
+ /* globals __VUE_SSR_CONTEXT__ */
2473
+
2474
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
2475
+ // This module is a runtime utility for cleaner component module output and will
2476
+ // be included in the final webpack user bundle.
2477
+
2478
+ function normalizeComponent(
2479
+ scriptExports,
2480
+ render,
2481
+ staticRenderFns,
2482
+ functionalTemplate,
2483
+ injectStyles,
2484
+ scopeId,
2485
+ moduleIdentifier /* server only */,
2486
+ shadowMode /* vue-cli only */
2487
+ ) {
2488
+ // Vue.extend constructor export interop
2489
+ var options =
2490
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
2491
+
2492
+ // render functions
2493
+ if (render) {
2494
+ options.render = render
2495
+ options.staticRenderFns = staticRenderFns
2496
+ options._compiled = true
2497
+ }
2498
+
2499
+ // functional template
2500
+ if (functionalTemplate) {
2501
+ options.functional = true
2502
+ }
2503
+
2504
+ // scopedId
2505
+ if (scopeId) {
2506
+ options._scopeId = 'data-v-' + scopeId
2507
+ }
2508
+
2509
+ var hook
2510
+ if (moduleIdentifier) {
2511
+ // server build
2512
+ hook = function (context) {
2513
+ // 2.3 injection
2514
+ context =
2515
+ context || // cached call
2516
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
2517
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
2518
+ // 2.2 with runInNewContext: true
2519
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
2520
+ context = __VUE_SSR_CONTEXT__
2521
+ }
2522
+ // inject component styles
2523
+ if (injectStyles) {
2524
+ injectStyles.call(this, context)
2525
+ }
2526
+ // register component module identifier for async chunk inferrence
2527
+ if (context && context._registeredComponents) {
2528
+ context._registeredComponents.add(moduleIdentifier)
2529
+ }
2530
+ }
2531
+ // used by ssr in case component is cached and beforeCreate
2532
+ // never gets called
2533
+ options._ssrRegister = hook
2534
+ } else if (injectStyles) {
2535
+ hook = shadowMode
2536
+ ? function () {
2537
+ injectStyles.call(
2538
+ this,
2539
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
2540
+ )
2541
+ }
2542
+ : injectStyles
2543
+ }
2544
+
2545
+ if (hook) {
2546
+ if (options.functional) {
2547
+ // for template-only hot-reload because in that case the render fn doesn't
2548
+ // go through the normalizer
2549
+ options._injectStyles = hook
2550
+ // register for functional component in vue file
2551
+ var originalRender = options.render
2552
+ options.render = function renderWithStyleInjection(h, context) {
2553
+ hook.call(context)
2554
+ return originalRender(h, context)
2555
+ }
2556
+ } else {
2557
+ // inject component registration as beforeCreate hook
2558
+ var existing = options.beforeCreate
2559
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
2560
+ }
2561
+ }
2562
+
2563
+ return {
2564
+ exports: scriptExports,
2565
+ options: options
2566
+ }
2567
+ }
2568
+
2569
+
2570
+ /***/ }),
2571
+ /* 3 */
2572
+ /***/ (function(module, exports) {
2573
+
2574
+ module.exports = require("qs");
2575
+
2576
+ /***/ }),
2577
+ /* 4 */
2578
+ /***/ (function(module, exports) {
2579
+
2580
+ module.exports = require("axios");
2581
+
2582
+ /***/ }),
2583
+ /* 5 */
2584
+ /***/ (function(module, exports) {
2585
+
2586
+ module.exports = require("eoss-element");
2587
+
2588
+ /***/ }),
2589
+ /* 6 */
2590
+ /***/ (function(module, exports) {
2591
+
2592
+ module.exports = require("json-bigint");
2593
+
2594
+ /***/ }),
2595
+ /* 7 */
2596
+ /***/ (function(module, exports) {
2597
+
2598
+ module.exports = require("sm-crypto");
2599
+
2600
+ /***/ }),
2601
+ /* 8 */,
2602
+ /* 9 */
2603
+ /***/ (function(module, exports) {
2604
+
2605
+ module.exports = require("babel-runtime/regenerator");
2606
+
2607
+ /***/ }),
2608
+ /* 10 */,
2609
+ /* 11 */,
2610
+ /* 12 */
2611
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2612
+
2613
+ "use strict";
2614
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13);
2615
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
2616
+
2617
+
2618
+ /* harmony default export */ __webpack_exports__["a"] = (new vue__WEBPACK_IMPORTED_MODULE_0___default.a());
2619
+
2620
+ /***/ }),
2621
+ /* 13 */
2622
+ /***/ (function(module, exports) {
2623
+
2624
+ module.exports = require("vue");
2625
+
2626
+ /***/ }),
2627
+ /* 14 */,
2628
+ /* 15 */,
2629
+ /* 16 */,
2630
+ /* 17 */
2631
+ /***/ (function(module, exports) {
2632
+
2633
+ module.exports = require("wujie-vue2");
2634
+
2635
+ /***/ }),
2636
+ /* 18 */,
2637
+ /* 19 */,
2638
+ /* 20 */,
2639
+ /* 21 */,
2640
+ /* 22 */,
2641
+ /* 23 */,
2642
+ /* 24 */,
2643
+ /* 25 */,
2644
+ /* 26 */,
2645
+ /* 27 */,
2646
+ /* 28 */,
2647
+ /* 29 */,
2648
+ /* 30 */,
2649
+ /* 31 */,
2650
+ /* 32 */,
2651
+ /* 33 */,
2652
+ /* 34 */,
2653
+ /* 35 */,
2654
+ /* 36 */,
2655
+ /* 37 */
2656
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2657
+
2658
+ "use strict";
2659
+ // ESM COMPAT FLAG
2660
+ __webpack_require__.r(__webpack_exports__);
2661
+
2662
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/src/main.vue?vue&type=template&id=6037733b&
2663
+ var render = function () {
2664
+ var _vm = this
2665
+ var _h = _vm.$createElement
2666
+ var _c = _vm._self._c || _h
2667
+ return _c(
2668
+ "el-dialog",
2669
+ _vm._g(
2670
+ _vm._b(
2671
+ {
2672
+ ref: _vm.wujieName,
2673
+ staticClass: "es-dialog",
2674
+ class: { "is-middle": _vm.middle },
2675
+ attrs: {
2676
+ title: _vm.titles,
2677
+ visible: _vm.show,
2678
+ width: _vm.wd,
2679
+ height: _vm.ht,
2680
+ "close-on-click-modal": _vm.shadeClose,
2681
+ fullscreen: _vm.full,
2682
+ drag: _vm.drag,
2683
+ "append-to-body": _vm.appendToBody,
2684
+ id: _vm.wujieName,
2685
+ },
2686
+ on: {
2687
+ "update:visible": function ($event) {
2688
+ _vm.show = $event
2689
+ },
2690
+ },
2691
+ },
2692
+ "el-dialog",
2693
+ _vm.$attrs,
2694
+ false
2695
+ ),
2696
+ _vm.$listeners
2697
+ ),
2698
+ [
2699
+ _vm._t("default"),
2700
+ _vm.contents
2701
+ ? [
2702
+ Array.isArray(_vm.contents)
2703
+ ? [
2704
+ _vm._l(_vm.contents, function (item, index) {
2705
+ return [
2706
+ item.type === "form"
2707
+ ? _c(
2708
+ "es-form",
2709
+ _vm._g(
2710
+ _vm._b(
2711
+ {
2712
+ key: index,
2713
+ attrs: { model: item.model },
2714
+ on: {
2715
+ "update:model": function ($event) {
2716
+ _vm.$set(item, "model", $event)
2717
+ },
2718
+ },
2719
+ },
2720
+ "es-form",
2721
+ _vm.handleExclAttribute({
2722
+ data: item,
2723
+ attrs: ["events", "visible", "type", "model"],
2724
+ }),
2725
+ false
2726
+ ),
2727
+ Object.assign({}, item.events)
2728
+ )
2729
+ )
2730
+ : _vm._e(),
2731
+ item.type === "data-table" || item.type === "dataTable"
2732
+ ? _c(
2733
+ "es-data-table",
2734
+ _vm._g(
2735
+ _vm._b(
2736
+ { key: index },
2737
+ "es-data-table",
2738
+ _vm.handleExclAttribute({
2739
+ data: item,
2740
+ attrs: ["events", "visible", "type"],
2741
+ }),
2742
+ false
2743
+ ),
2744
+ item.events
2745
+ ),
2746
+ [
2747
+ item.dialog
2748
+ ? _c(
2749
+ "template",
2750
+ { slot: "dialog" },
2751
+ [
2752
+ Array.isArray(item.dialog)
2753
+ ? _vm._l(
2754
+ item.dialog,
2755
+ function (ele, ids) {
2756
+ return _c(
2757
+ "es-dialog",
2758
+ _vm._g(
2759
+ _vm._b(
2760
+ {
2761
+ key: ids,
2762
+ attrs: {
2763
+ isReload: true,
2764
+ visible: ele.visible,
2765
+ },
2766
+ on: {
2767
+ "update:visible":
2768
+ function ($event) {
2769
+ _vm.$set(
2770
+ ele,
2771
+ "visible",
2772
+ $event
2773
+ )
2774
+ },
2775
+ },
2776
+ },
2777
+ "es-dialog",
2778
+ _vm.handleExclAttribute({
2779
+ data: ele,
2780
+ attrs: ["visible"],
2781
+ }),
2782
+ false
2783
+ ),
2784
+ Object.assign({}, ele.events)
2785
+ )
2786
+ )
2787
+ }
2788
+ )
2789
+ : _c(
2790
+ "es-dialog",
2791
+ _vm._g(
2792
+ _vm._b(
2793
+ {
2794
+ attrs: {
2795
+ isReload: true,
2796
+ visible:
2797
+ item.dialog.visible,
2798
+ },
2799
+ on: {
2800
+ "update:visible": function (
2801
+ $event
2802
+ ) {
2803
+ _vm.$set(
2804
+ item.dialog,
2805
+ "visible",
2806
+ $event
2807
+ )
2808
+ },
2809
+ },
2810
+ },
2811
+ "es-dialog",
2812
+ _vm.handleExclAttribute({
2813
+ data: item.dialog,
2814
+ attrs: ["visible"],
2815
+ }),
2816
+ false
2817
+ ),
2818
+ Object.assign(
2819
+ {},
2820
+ item.dialog.events
2821
+ )
2822
+ )
2823
+ ),
2824
+ ],
2825
+ 2
2826
+ )
2827
+ : _vm._e(),
2828
+ ],
2829
+ 2
2830
+ )
2831
+ : _vm._e(),
2832
+ item.type === "data-table" || item.type === "dataTable"
2833
+ ? _c(
2834
+ "es-tree-group",
2835
+ _vm._g(
2836
+ _vm._b(
2837
+ { key: index },
2838
+ "es-tree-group",
2839
+ _vm.handleExclAttribute({
2840
+ data: item,
2841
+ attrs: ["events", "visible", "type"],
2842
+ }),
2843
+ false
2844
+ ),
2845
+ Object.assign({}, item.events)
2846
+ )
2847
+ )
2848
+ : _vm._e(),
2849
+ item.type === "flow-group" || item.type === "flowGroup"
2850
+ ? _c(
2851
+ "es-flow-group",
2852
+ _vm._g(
2853
+ _vm._b(
2854
+ { key: index },
2855
+ "es-flow-group",
2856
+ _vm.handleExclAttribute({
2857
+ data: item,
2858
+ attrs: ["events", "visible", "type"],
2859
+ }),
2860
+ false
2861
+ ),
2862
+ Object.assign({}, item.events)
2863
+ )
2864
+ )
2865
+ : _vm._e(),
2866
+ item.type === "tabs"
2867
+ ? _c(
2868
+ "es-tabs",
2869
+ _vm._g(
2870
+ _vm._b(
2871
+ { key: index, attrs: { full: true } },
2872
+ "es-tabs",
2873
+ _vm.handleExclAttribute({
2874
+ data: item,
2875
+ attrs: ["events", "visible", "type"],
2876
+ }),
2877
+ false
2878
+ ),
2879
+ Object.assign({}, item.events)
2880
+ )
2881
+ )
2882
+ : _vm._e(),
2883
+ item.type === "dialog"
2884
+ ? _c(
2885
+ "es-dialog",
2886
+ _vm._g(
2887
+ _vm._b(
2888
+ {
2889
+ key: index,
2890
+ attrs: {
2891
+ isReload: true,
2892
+ visible: item.visible,
2893
+ },
2894
+ on: {
2895
+ "update:visible": function ($event) {
2896
+ _vm.$set(item, "visible", $event)
2897
+ },
2898
+ },
2899
+ },
2900
+ "es-dialog",
2901
+ _vm.handleExclAttribute({
2902
+ data: _vm.items,
2903
+ attrs: ["events", "visible", "type"],
2904
+ }),
2905
+ false
2906
+ ),
2907
+ Object.assign({}, item.events)
2908
+ )
2909
+ )
2910
+ : _vm._e(),
2911
+ item.type === "iframe" && _vm.show
2912
+ ? _c("iframe", {
2913
+ key: index,
2914
+ attrs: {
2915
+ frameborder: "0",
2916
+ width: "100%",
2917
+ height: "100%",
2918
+ id: item.name || _vm.contents.id,
2919
+ name: item.name || item.id,
2920
+ src: _vm.getUrl(item),
2921
+ },
2922
+ })
2923
+ : item.type === "wujie" && _vm.show
2924
+ ? _c(
2925
+ "es-wujie",
2926
+ _vm._b(
2927
+ {
2928
+ key: index,
2929
+ attrs: {
2930
+ show: _vm.show,
2931
+ dialog: true,
2932
+ appendTopBody: _vm.appendToBody === "top",
2933
+ name: _vm.wujieName,
2934
+ },
2935
+ },
2936
+ "es-wujie",
2937
+ _vm.handleExclAttribute({
2938
+ data: item,
2939
+ attrs: ["events", "visible", "type"],
2940
+ }),
2941
+ false
2942
+ )
2943
+ )
2944
+ : _vm._e(),
2945
+ ]
2946
+ }),
2947
+ ]
2948
+ : [
2949
+ _vm.contents.type === "form"
2950
+ ? _c(
2951
+ "es-form",
2952
+ _vm._g(
2953
+ _vm._b(
2954
+ {
2955
+ attrs: { model: _vm.contents.model },
2956
+ on: {
2957
+ "update:model": function ($event) {
2958
+ _vm.$set(_vm.contents, "model", $event)
2959
+ },
2960
+ },
2961
+ },
2962
+ "es-form",
2963
+ _vm.handleExclAttribute({
2964
+ data: _vm.contents,
2965
+ attrs: ["events", "visible", "type", "model"],
2966
+ }),
2967
+ false
2968
+ ),
2969
+ Object.assign({}, _vm.contents.events)
2970
+ )
2971
+ )
2972
+ : _vm._e(),
2973
+ _vm.contents.type === "data-table" ||
2974
+ _vm.contents.type === "dataTable"
2975
+ ? _c(
2976
+ "es-data-table",
2977
+ _vm._g(
2978
+ _vm._b(
2979
+ {},
2980
+ "es-data-table",
2981
+ _vm.handleExclAttribute({
2982
+ data: _vm.contents,
2983
+ attrs: ["events", "visible", "type"],
2984
+ }),
2985
+ false
2986
+ ),
2987
+ _vm.contents.events
2988
+ ),
2989
+ [
2990
+ _vm.contents.dialog
2991
+ ? _c(
2992
+ "template",
2993
+ { slot: "dialog" },
2994
+ [
2995
+ Array.isArray(_vm.contents.dialog)
2996
+ ? _vm._l(
2997
+ _vm.contents.dialog,
2998
+ function (ele, ids) {
2999
+ return _c(
3000
+ "es-dialog",
3001
+ _vm._g(
3002
+ _vm._b(
3003
+ {
3004
+ key: ids,
3005
+ attrs: {
3006
+ isReload: true,
3007
+ visible: ele.visible,
3008
+ },
3009
+ on: {
3010
+ "update:visible": function (
3011
+ $event
3012
+ ) {
3013
+ _vm.$set(
3014
+ ele,
3015
+ "visible",
3016
+ $event
3017
+ )
3018
+ },
3019
+ },
3020
+ },
3021
+ "es-dialog",
3022
+ _vm.handleExclAttribute({
3023
+ data: ele,
3024
+ attrs: ["visible"],
3025
+ }),
3026
+ false
3027
+ ),
3028
+ Object.assign({}, ele.events)
3029
+ )
3030
+ )
3031
+ }
3032
+ )
3033
+ : _c(
3034
+ "es-dialog",
3035
+ _vm._g(
3036
+ _vm._b(
3037
+ {
3038
+ attrs: {
3039
+ isReload: true,
3040
+ visible:
3041
+ _vm.contents.dialog.visible,
3042
+ },
3043
+ on: {
3044
+ "update:visible": function (
3045
+ $event
3046
+ ) {
3047
+ _vm.$set(
3048
+ _vm.contents.dialog,
3049
+ "visible",
3050
+ $event
3051
+ )
3052
+ },
3053
+ },
3054
+ },
3055
+ "es-dialog",
3056
+ _vm.handleExclAttribute({
3057
+ data: _vm.contents.dialog,
3058
+ attrs: ["visible"],
3059
+ }),
3060
+ false
3061
+ ),
3062
+ Object.assign(
3063
+ {},
3064
+ _vm.contents.dialog.events
3065
+ )
3066
+ )
3067
+ ),
3068
+ ],
3069
+ 2
3070
+ )
3071
+ : _vm._e(),
3072
+ ],
3073
+ 2
3074
+ )
3075
+ : _vm._e(),
3076
+ _vm.contents.type === "data-table" ||
3077
+ _vm.contents.type === "dataTable"
3078
+ ? _c(
3079
+ "es-tree-group",
3080
+ _vm._g(
3081
+ _vm._b(
3082
+ {},
3083
+ "es-tree-group",
3084
+ _vm.handleExclAttribute({
3085
+ data: _vm.contents,
3086
+ attrs: ["events", "visible", "type"],
3087
+ }),
3088
+ false
3089
+ ),
3090
+ Object.assign({}, _vm.contents.events)
3091
+ )
3092
+ )
3093
+ : _vm._e(),
3094
+ _vm.contents.type === "flow-group" ||
3095
+ _vm.contents.type === "flowGroup"
3096
+ ? _c(
3097
+ "es-flow-group",
3098
+ _vm._g(
3099
+ _vm._b(
3100
+ {},
3101
+ "es-flow-group",
3102
+ _vm.handleExclAttribute({
3103
+ data: _vm.contents,
3104
+ attrs: ["events", "visible", "type"],
3105
+ }),
3106
+ false
3107
+ ),
3108
+ Object.assign({}, _vm.contents.events)
3109
+ )
3110
+ )
3111
+ : _vm._e(),
3112
+ _vm.contents.type === "tabs"
3113
+ ? _c(
3114
+ "es-tabs",
3115
+ _vm._g(
3116
+ _vm._b(
3117
+ { attrs: { full: true } },
3118
+ "es-tabs",
3119
+ _vm.handleExclAttribute({
3120
+ data: _vm.contents,
3121
+ attrs: ["events", "visible", "type"],
3122
+ }),
3123
+ false
3124
+ ),
3125
+ Object.assign({}, _vm.contents.events)
3126
+ )
3127
+ )
3128
+ : _vm._e(),
3129
+ _vm.contents.type === "iframe" && _vm.show
3130
+ ? _c("iframe", {
3131
+ attrs: {
3132
+ id: _vm.contents.name || _vm.contents.id || _vm.name,
3133
+ name:
3134
+ _vm.contents.name || _vm.contents.id || _vm.name,
3135
+ frameborder: "0",
3136
+ width: "100%",
3137
+ height: "100%",
3138
+ src: _vm.getUrl(_vm.contents),
3139
+ },
3140
+ })
3141
+ : _vm.contents.type === "wujie" && _vm.show
3142
+ ? _c(
3143
+ "es-wujie",
3144
+ _vm._b(
3145
+ {
3146
+ attrs: {
3147
+ show: _vm.show,
3148
+ dialog: true,
3149
+ appendTopBody: _vm.appendToBody === "top",
3150
+ name: _vm.wujieName,
3151
+ },
3152
+ },
3153
+ "es-wujie",
3154
+ _vm.handleExclAttribute({
3155
+ data: _vm.contents,
3156
+ attrs: ["events", "visible", "type"],
3157
+ }),
3158
+ false
3159
+ )
3160
+ )
3161
+ : _vm._e(),
3162
+ ],
3163
+ ]
3164
+ : _vm._e(),
3165
+ ],
3166
+ 2
3167
+ )
3168
+ }
3169
+ var staticRenderFns = []
3170
+ render._withStripped = true
3171
+
3172
+
3173
+ // CONCATENATED MODULE: ./packages/dialog/src/main.vue?vue&type=template&id=6037733b&
3174
+
3175
+ // EXTERNAL MODULE: external "babel-runtime/regenerator"
3176
+ var regenerator_ = __webpack_require__(9);
3177
+ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator_);
3178
+
3179
+ // EXTERNAL MODULE: external "wujie-vue2"
3180
+ var external_wujie_vue2_ = __webpack_require__(17);
3181
+ var external_wujie_vue2_default = /*#__PURE__*/__webpack_require__.n(external_wujie_vue2_);
3182
+
3183
+ // EXTERNAL MODULE: ./src/utils/util.js
3184
+ var util = __webpack_require__(0);
3185
+
3186
+ // EXTERNAL MODULE: ./src/utils/bus.js
3187
+ var bus = __webpack_require__(12);
3188
+
3189
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/src/main.vue?vue&type=script&lang=js&
3190
+
3191
+
3192
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
3193
+
3194
+ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
3195
+
3196
+ //
3197
+ //
3198
+ //
3199
+ //
3200
+ //
3201
+ //
3202
+ //
3203
+ //
3204
+ //
3205
+ //
3206
+ //
3207
+ //
3208
+ //
3209
+ //
3210
+ //
3211
+ //
3212
+ //
3213
+ //
3214
+ //
3215
+ //
3216
+ //
3217
+ //
3218
+ //
3219
+ //
3220
+ //
3221
+ //
3222
+ //
3223
+ //
3224
+ //
3225
+ //
3226
+ //
3227
+ //
3228
+ //
3229
+ //
3230
+ //
3231
+ //
3232
+ //
3233
+ //
3234
+ //
3235
+ //
3236
+ //
3237
+ //
3238
+ //
3239
+ //
3240
+ //
3241
+ //
3242
+ //
3243
+ //
3244
+ //
3245
+ //
3246
+ //
3247
+ //
3248
+ //
3249
+ //
3250
+ //
3251
+ //
3252
+ //
3253
+ //
3254
+ //
3255
+ //
3256
+ //
3257
+ //
3258
+ //
3259
+ //
3260
+ //
3261
+ //
3262
+ //
3263
+ //
3264
+ //
3265
+ //
3266
+ //
3267
+ //
3268
+ //
3269
+ //
3270
+ //
3271
+ //
3272
+ //
3273
+ //
3274
+ //
3275
+ //
3276
+ //
3277
+ //
3278
+ //
3279
+ //
3280
+ //
3281
+ //
3282
+ //
3283
+ //
3284
+ //
3285
+ //
3286
+ //
3287
+ //
3288
+ //
3289
+ //
3290
+ //
3291
+ //
3292
+ //
3293
+ //
3294
+ //
3295
+ //
3296
+ //
3297
+ //
3298
+ //
3299
+ //
3300
+ //
3301
+ //
3302
+ //
3303
+ //
3304
+ //
3305
+ //
3306
+ //
3307
+ //
3308
+ //
3309
+ //
3310
+ //
3311
+ //
3312
+ //
3313
+ //
3314
+ //
3315
+ //
3316
+ //
3317
+ //
3318
+ //
3319
+ //
3320
+ //
3321
+ //
3322
+ //
3323
+ //
3324
+ //
3325
+ //
3326
+ //
3327
+ //
3328
+ //
3329
+ //
3330
+ //
3331
+ //
3332
+ //
3333
+ //
3334
+ //
3335
+ //
3336
+ //
3337
+ //
3338
+ //
3339
+ //
3340
+ //
3341
+ //
3342
+ //
3343
+ //
3344
+ //
3345
+ //
3346
+ //
3347
+ //
3348
+ //
3349
+ //
3350
+ //
3351
+ //
3352
+ //
3353
+ //
3354
+ //
3355
+ //
3356
+ //
3357
+ //
3358
+ //
3359
+ //
3360
+ //
3361
+ //
3362
+ //
3363
+ //
3364
+ //
3365
+ //
3366
+ //
3367
+ //
3368
+ //
3369
+ //
3370
+ //
3371
+ //
3372
+ //
3373
+ //
3374
+ //
3375
+ //
3376
+ //
3377
+ //
3378
+ //
3379
+ //
3380
+ //
3381
+ //
3382
+ //
3383
+ //
3384
+ //
3385
+ //
3386
+ //
3387
+ //
3388
+ //
3389
+ //
3390
+ //
3391
+ //
3392
+ //
3393
+ //
3394
+ //
3395
+ //
3396
+ //
3397
+ //
3398
+ //
3399
+ //
3400
+ //
3401
+ //
3402
+ //
3403
+ //
3404
+ //
3405
+ //
3406
+ //
3407
+ //
3408
+ //
3409
+ //
3410
+ //
3411
+ //
3412
+ //
3413
+ //
3414
+ //
3415
+ //
3416
+ //
3417
+ //
3418
+ //
3419
+ //
3420
+ //
3421
+ //
3422
+ //
3423
+ //
3424
+ //
3425
+ //
3426
+ //
3427
+ //
3428
+ //
3429
+ //
3430
+ //
3431
+ //
3432
+ //
3433
+ //
3434
+ //
3435
+ //
3436
+ //
3437
+ //
3438
+ //
3439
+ //
3440
+ //
3441
+ //
3442
+ //
3443
+ //
3444
+ //
3445
+ //
3446
+ //
3447
+ //
3448
+ //
3449
+ //
3450
+ //
3451
+ //
3452
+ //
3453
+ //
3454
+ //
3455
+ //
3456
+
3457
+
3458
+
3459
+
3460
+ var mainvue_type_script_lang_js_bus = external_wujie_vue2_default.a.bus;
3461
+
3462
+ /* harmony default export */ var mainvue_type_script_lang_js_ = ({
3463
+ name: 'EsDialog',
3464
+ inheritAttrs: false,
3465
+ provide: function provide() {
3466
+ return {
3467
+ esDialog: this
3468
+ };
3469
+ },
3470
+
3471
+ inject: {
3472
+ esPage: {
3473
+ default: ''
3474
+ },
3475
+ tableReload: {
3476
+ default: ''
3477
+ }
3478
+ },
3479
+ props: {
3480
+ title: String,
3481
+ busEvent: String,
3482
+ contents: [Array, Object],
3483
+ visible: {
3484
+ type: Boolean,
3485
+ default: false
3486
+ },
3487
+ visibleKey: String,
3488
+ fullscreen: {
3489
+ type: Boolean,
3490
+ default: false
3491
+ },
3492
+ name: String,
3493
+ iframe: String,
3494
+ wujie: String,
3495
+ param: {
3496
+ type: Object,
3497
+ default: function _default() {
3498
+ return {};
3499
+ }
3500
+ },
3501
+ width: String,
3502
+ height: String,
3503
+ middle: {
3504
+ type: Boolean,
3505
+ default: true
3506
+ },
3507
+ appendToBody: {
3508
+ type: [Boolean, String],
3509
+ default: true
3510
+ },
3511
+ shadeClose: {
3512
+ type: Boolean,
3513
+ default: false
3514
+ },
3515
+ isReload: Boolean,
3516
+ firstPage: Boolean,
3517
+ tree: Boolean,
3518
+ size: {
3519
+ type: String,
3520
+ default: 'md'
3521
+ },
3522
+ drag: {
3523
+ type: Boolean,
3524
+ default: true
3525
+ }
3526
+ },
3527
+ computed: {
3528
+ wujieName: function wujieName() {
3529
+ return this.name ? this.name : util["a" /* default */].uuid(16);
3530
+ }
3531
+ },
3532
+ watch: {
3533
+ show: function show(val) {
3534
+ this.$emit('update:visible', val);
3535
+ },
3536
+ visible: function visible(val) {
3537
+ this.show = val;
3538
+ },
3539
+ title: function title(val) {
3540
+ this.titles = val;
3541
+ }
3542
+ },
3543
+ data: function data() {
3544
+ return {
3545
+ titles: this.title,
3546
+ full: false,
3547
+ method: 'router',
3548
+ sizes: {
3549
+ sm: { width: '900px', height: '400px' },
3550
+ md: { width: '900px', height: '600px' },
3551
+ lg: { width: '900px', height: '800px' },
3552
+ full: { width: '100%', height: '100%' }
3553
+ },
3554
+ show: this.visible,
3555
+ defaultProps: {},
3556
+ wd: '',
3557
+ ht: ''
3558
+ };
3559
+ },
3560
+ created: function created() {
3561
+ var _this = this;
3562
+
3563
+ var availWidth = util["a" /* default */].win.top.document.body.offsetWidth - 260;
3564
+ var availHeight = util["a" /* default */].win.top.document.body.offsetHeight - 60;
3565
+ this.sizes.max = { width: availWidth + 'px', height: availHeight + 'px' };
3566
+ if (this.size === 'full' || this.width == '100%' && this.height == '100%') {
3567
+ this.full = true;
3568
+ this.wd = '100%';
3569
+ ht = '100%';
3570
+ } else {
3571
+ this.wd = this.width ? this.width : this.sizes[this.size]['width'];
3572
+ this.ht = this.height ? this.height : this.sizes[this.size]['height'];
3573
+ }
3574
+ if (this.busEvent) {
3575
+ bus["a" /* default */].$on(this.busEvent, function () {
3576
+ var _ref = _asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee(res) {
3577
+ return regenerator_default.a.wrap(function _callee$(_context) {
3578
+ while (1) {
3579
+ switch (_context.prev = _context.next) {
3580
+ case 0:
3581
+ _this.titles = res.title;
3582
+ _context.t0 = _this.handler;
3583
+
3584
+ if (!_context.t0) {
3585
+ _context.next = 5;
3586
+ break;
3587
+ }
3588
+
3589
+ _context.next = 5;
3590
+ return _this.handler(res, _this);
3591
+
3592
+ case 5:
3593
+ _this.handleShow();
3594
+
3595
+ case 6:
3596
+ case 'end':
3597
+ return _context.stop();
3598
+ }
3599
+ }
3600
+ }, _callee, _this);
3601
+ }));
3602
+
3603
+ return function (_x) {
3604
+ return _ref.apply(this, arguments);
3605
+ };
3606
+ }());
3607
+ }
3608
+ },
3609
+ mounted: function mounted() {
3610
+ var _this2 = this;
3611
+
3612
+ mainvue_type_script_lang_js_bus.$on('dialogClose', function (res, dialog) {
3613
+ var _dialog = _this2.$refs[dialog._dialogId];
3614
+ if (_dialog) {
3615
+ _dialog.hide();
3616
+ if (_this2.isReload) {
3617
+ for (var i = 0; i < _this2.$parent.$children.length; i++) {
3618
+ var item = _this2.$parent.$children[i];
3619
+ if (item.reload) {
3620
+ item.reload(_this2.param, _this2.firstPage, _this2.tree);
3621
+ break;
3622
+ }
3623
+ }
3624
+ }
3625
+ }
3626
+ });
3627
+ },
3628
+
3629
+ methods: {
3630
+ setAttrs: function setAttrs(res) {
3631
+ var _this3 = this;
3632
+
3633
+ return _asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee2() {
3634
+ return regenerator_default.a.wrap(function _callee2$(_context2) {
3635
+ while (1) {
3636
+ switch (_context2.prev = _context2.next) {
3637
+ case 0:
3638
+ _this3.titles = res.title;
3639
+ _context2.t0 = _this3.handler;
3640
+
3641
+ if (!_context2.t0) {
3642
+ _context2.next = 5;
3643
+ break;
3644
+ }
3645
+
3646
+ _context2.next = 5;
3647
+ return _this3.handler(res, _this3);
3648
+
3649
+ case 5:
3650
+ _this3.handleShow();
3651
+
3652
+ case 6:
3653
+ case 'end':
3654
+ return _context2.stop();
3655
+ }
3656
+ }
3657
+ }, _callee2, _this3);
3658
+ }))();
3659
+ },
3660
+ getUrl: function getUrl(res) {
3661
+ var params = util["a" /* default */].extend(true, this.param, res.param || {});
3662
+ return util["a" /* default */].urlJoinParams({
3663
+ url: res.url,
3664
+ param: params
3665
+ });
3666
+ },
3667
+ handleExclAttribute: function handleExclAttribute(_ref2) {
3668
+ var data = _ref2.data,
3669
+ attrs = _ref2.attrs;
3670
+
3671
+ return _extends({}, util["a" /* default */].exclAttribute({
3672
+ data: data,
3673
+ attrs: attrs
3674
+ }), this.param);
3675
+ },
3676
+ handleShow: function handleShow() {
3677
+ this.show = true;
3678
+ },
3679
+ handleClose: function handleClose() {
3680
+ var reload = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
3681
+
3682
+ this.$refs[this.wujieName].hide();
3683
+ if (this.isReload !== false && reload !== 0 && reload !== false) {
3684
+ for (var i = 0; i < this.$parent.$children.length; i++) {
3685
+ var item = this.$parent.$children[i];
3686
+ if (item.reload) {
3687
+ item.reload(this.param, this.firstPage, this.tree);
3688
+ break;
3689
+ }
3690
+ }
3691
+ }
3692
+ }
3693
+ }
3694
+ });
3695
+ // CONCATENATED MODULE: ./packages/dialog/src/main.vue?vue&type=script&lang=js&
3696
+ /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
3697
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
3698
+ var componentNormalizer = __webpack_require__(2);
3699
+
3700
+ // CONCATENATED MODULE: ./packages/dialog/src/main.vue
3701
+
3702
+
3703
+
3704
+
3705
+
3706
+ /* normalize component */
3707
+
3708
+ var component = Object(componentNormalizer["a" /* default */])(
3709
+ src_mainvue_type_script_lang_js_,
3710
+ render,
3711
+ staticRenderFns,
3712
+ false,
3713
+ null,
3714
+ null,
3715
+ null
3716
+
3717
+ )
3718
+
3719
+ /* harmony default export */ var main = (component.exports);
3720
+ // CONCATENATED MODULE: ./packages/dialog/index.js
3721
+
3722
+
3723
+ main.install = function (Vue) {
3724
+ return Vue.component(main.name, main);
3725
+ };
3726
+
3727
+ /* harmony default export */ var dialog = __webpack_exports__["default"] = (main);
3728
+
3729
+ /***/ })
3730
+ /******/ ]);