eoss 0.1.0-alpha.20 → 0.1.0-alpha.21

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 (207) hide show
  1. package/lib/account-login.js +1943 -1890
  2. package/lib/alert.js +4 -4
  3. package/lib/aside.js +4 -4
  4. package/lib/autocomplete.js +4936 -4834
  5. package/lib/avatar.js +4 -4
  6. package/lib/backtop.js +4 -4
  7. package/lib/badge.js +4 -4
  8. package/lib/breadcrumb-item.js +6 -6
  9. package/lib/breadcrumb.js +7 -7
  10. package/lib/button-group.js +11 -14
  11. package/lib/button.js +6 -6
  12. package/lib/ca-login.js +2480 -2382
  13. package/lib/calendar.js +798 -798
  14. package/lib/card.js +4 -4
  15. package/lib/carousel-item.js +911 -813
  16. package/lib/carousel.js +1646 -1548
  17. package/lib/cascader-panel.js +2556 -2458
  18. package/lib/cascader.js +4546 -4444
  19. package/lib/checkbox-button.js +4 -4
  20. package/lib/checkbox-group.js +2894 -2841
  21. package/lib/checkbox.js +4 -4
  22. package/lib/col.js +2 -2
  23. package/lib/collapse-item.js +35159 -2572
  24. package/lib/collapse.js +35410 -2762
  25. package/lib/color-picker.js +494 -490
  26. package/lib/config/api.js +15 -1
  27. package/lib/container.js +4 -4
  28. package/lib/cron.js +4 -4
  29. package/lib/data-table.js +1895 -1842
  30. package/lib/date-picker.js +6422 -6320
  31. package/lib/dialog.js +2912 -2806
  32. package/lib/divider.js +4 -4
  33. package/lib/drawer.js +311 -299
  34. package/lib/dropdown-item.js +6 -6
  35. package/lib/dropdown-menu.js +539 -535
  36. package/lib/dropdown.js +2270 -2172
  37. package/lib/email-login.js +1783 -1730
  38. package/lib/empty.js +723 -0
  39. package/lib/eoss.common.js +63680 -56193
  40. package/lib/flip.js +4 -4
  41. package/lib/flow-group.js +2985 -2887
  42. package/lib/flow.js +28067 -28022
  43. package/lib/footer.js +4 -4
  44. package/lib/form-item.js +1935 -1837
  45. package/lib/form.js +9230 -9092
  46. package/lib/header.js +4 -4
  47. package/lib/icon.js +1708 -1590
  48. package/lib/icons.js +4 -4
  49. package/lib/image-viewer.js +1660 -1562
  50. package/lib/image.js +162 -162
  51. package/lib/index.js +1 -1
  52. package/lib/infinite-scroll.js +76 -76
  53. package/lib/input-number.js +172 -172
  54. package/lib/input.js +1362 -1264
  55. package/lib/link.js +4 -4
  56. package/lib/loading.js +321 -317
  57. package/lib/login.js +3306 -3300
  58. package/lib/lowcode.js +13320 -0
  59. package/lib/main.js +14465 -14339
  60. package/lib/marquee.js +1237 -1139
  61. package/lib/menu-item-group.js +119 -119
  62. package/lib/menu-item.js +114 -114
  63. package/lib/menu.js +6193 -6091
  64. package/lib/message-box.js +3582 -3480
  65. package/lib/message.js +2265 -2163
  66. package/lib/notification.js +2430 -2328
  67. package/lib/option-group.js +4 -4
  68. package/lib/option.js +842 -744
  69. package/lib/page-header.js +4 -4
  70. package/lib/pagination.js +1916 -1815
  71. package/lib/phone-login.js +1788 -1735
  72. package/lib/popconfirm.js +8 -8
  73. package/lib/popover.js +4559 -4457
  74. package/lib/progress.js +4 -4
  75. package/lib/qr-code.js +9 -9
  76. package/lib/qrcode-login.js +1600 -1543
  77. package/lib/radio-button.js +6 -6
  78. package/lib/radio-group.js +2142 -2089
  79. package/lib/radio.js +6 -6
  80. package/lib/rate.js +1226 -1128
  81. package/lib/row.js +2 -2
  82. package/lib/scrollbar.js +2695 -2597
  83. package/lib/select.js +5985 -5961
  84. package/lib/selector-panel.js +5239 -5186
  85. package/lib/selector.js +1712 -1659
  86. package/lib/slider.js +16 -16
  87. package/lib/step.js +35836 -2736
  88. package/lib/steps.js +1281 -1183
  89. package/lib/submenu.js +461 -457
  90. package/lib/switch.js +1010 -912
  91. package/lib/tab-pane.js +4 -4
  92. package/lib/table-column.js +2595 -2497
  93. package/lib/table.js +9225 -9239
  94. package/lib/tabs.js +2414 -2320
  95. package/lib/tag.js +4 -4
  96. package/lib/theme-chalk/account-login.css +1 -1
  97. package/lib/theme-chalk/autocomplete.css +1 -1
  98. package/lib/theme-chalk/base.css +1 -1
  99. package/lib/theme-chalk/cascader.css +1 -1
  100. package/lib/theme-chalk/date-picker.css +1 -1
  101. package/lib/theme-chalk/empty.css +1 -0
  102. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  103. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  104. package/lib/theme-chalk/form.css +1 -1
  105. package/lib/theme-chalk/icon.css +1 -1
  106. package/lib/theme-chalk/index.css +1 -1
  107. package/lib/theme-chalk/input-number.css +1 -1
  108. package/lib/theme-chalk/input.css +1 -1
  109. package/lib/theme-chalk/login.css +1 -1
  110. package/lib/theme-chalk/lowcode.css +1 -0
  111. package/lib/theme-chalk/main.css +1 -1
  112. package/lib/theme-chalk/message-box.css +1 -1
  113. package/lib/theme-chalk/pagination.css +1 -1
  114. package/lib/theme-chalk/qrcode-login.css +1 -1
  115. package/lib/theme-chalk/select.css +1 -1
  116. package/lib/theme-chalk/slider.css +1 -1
  117. package/lib/theme-chalk/tabs.css +1 -1
  118. package/lib/theme-chalk/time-picker.css +1 -1
  119. package/lib/theme-chalk/transfer.css +1 -1
  120. package/lib/time-picker.js +5823 -5819
  121. package/lib/time-select.js +3578 -3574
  122. package/lib/timeline-item.js +4 -4
  123. package/lib/timeline.js +4 -4
  124. package/lib/tips.js +1633 -1580
  125. package/lib/toolbar.js +213 -213
  126. package/lib/tooltip.js +4441 -4339
  127. package/lib/transfer.js +938 -840
  128. package/lib/tree-group.js +1875 -1757
  129. package/lib/tree.js +2626 -2573
  130. package/lib/upload.js +7209 -7156
  131. package/lib/utils/ajax.js +185 -243
  132. package/lib/utils/bus.js +2 -2
  133. package/lib/utils/popup/index.js +5 -1
  134. package/lib/utils/util.js +108 -11
  135. package/package.json +2 -2
  136. package/packages/button/src/button-group.vue +1 -4
  137. package/packages/collapse/src/collapse-item.vue +47 -33
  138. package/packages/dialog/src/dialog.vue +4 -1
  139. package/packages/drawer/src/drawer.vue +12 -4
  140. package/packages/empty/index.js +7 -0
  141. package/packages/empty/src/img-empty.vue +132 -0
  142. package/packages/empty/src/index.vue +49 -0
  143. package/packages/form/src/form-item-render.vue +16 -18
  144. package/packages/form/src/form.vue +27 -5
  145. package/packages/icons/src/icon.json +1 -1
  146. package/packages/login/src/login.vue +19 -21
  147. package/packages/login/src/mixins.js +2 -1
  148. package/packages/lowcode/index.js +5 -0
  149. package/packages/lowcode/src/aside.vue +331 -0
  150. package/packages/lowcode/src/attribute/bind.vue +441 -0
  151. package/packages/lowcode/src/attribute/dependency.vue +325 -0
  152. package/packages/lowcode/src/attribute/function.vue +112 -0
  153. package/packages/lowcode/src/attribute/property.vue +331 -0
  154. package/packages/lowcode/src/attribute/styles.vue +318 -0
  155. package/packages/lowcode/src/attribute.vue +135 -0
  156. package/packages/lowcode/src/canvas.vue +296 -0
  157. package/packages/lowcode/src/json.vue +32 -0
  158. package/packages/lowcode/src/lowcode.vue +539 -0
  159. package/packages/lowcode/src/modules.vue +93 -0
  160. package/packages/lowcode/src/pages.vue +91 -0
  161. package/packages/lowcode/src/render.vue +247 -0
  162. package/packages/lowcode/src/source.vue +32 -0
  163. package/packages/lowcode/src/toolbar.vue +162 -0
  164. package/packages/main/src/components/pages.vue +28 -2
  165. package/packages/main/src/components/set-menus.vue +3 -3
  166. package/packages/main/src/components/user.vue +6 -1
  167. package/packages/main/src/early.vue +2 -2
  168. package/packages/main/src/gzw.vue +55 -61
  169. package/packages/main/src/minxs.js +113 -36
  170. package/packages/pagination/src/pager.vue +2 -2
  171. package/packages/pagination/src/pagination.js +4 -1
  172. package/packages/qrcode-login/src/qrcode-login.vue +6 -2
  173. package/packages/select/src/select.vue +28 -6
  174. package/packages/steps/src/step.vue +7 -5
  175. package/packages/tabs/src/tab-nav.vue +1 -0
  176. package/packages/tabs/src/tabs.vue +0 -2
  177. package/packages/theme-chalk/dist/fonts/iconfont.ttf +0 -0
  178. package/packages/theme-chalk/dist/fonts/iconfont.woff +0 -0
  179. package/packages/theme-chalk/gulpfile.js +3 -0
  180. package/packages/theme-chalk/src/account-login.scss +1 -0
  181. package/packages/theme-chalk/src/base.scss +1 -1
  182. package/packages/theme-chalk/src/common/var.scss +16 -0
  183. package/packages/theme-chalk/src/empty.scss +45 -0
  184. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  185. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  186. package/packages/theme-chalk/src/form.scss +1 -8
  187. package/packages/theme-chalk/src/icon.scss +30 -1
  188. package/packages/theme-chalk/src/index.scss +2 -0
  189. package/packages/theme-chalk/src/input-number.scss +0 -4
  190. package/packages/theme-chalk/src/input.scss +9 -0
  191. package/packages/theme-chalk/src/login.scss +32 -29
  192. package/packages/theme-chalk/src/lowcode.scss +461 -0
  193. package/packages/theme-chalk/src/main.scss +28 -65
  194. package/packages/theme-chalk/src/pagination.scss +4 -55
  195. package/packages/theme-chalk/src/qrcode-login.scss +3 -1
  196. package/packages/theme-chalk/src/tabs.scss +81 -50
  197. package/src/config/api.js +13 -0
  198. package/src/index.js +17 -4
  199. package/src/utils/ajax.js +61 -65
  200. package/src/utils/bus.js +2 -2
  201. package/src/utils/popup/index.js +5 -1
  202. package/src/utils/util.js +104 -7
  203. package/lib/index_/345/211/257/346/234/254.js +0 -583
  204. package/packages/dialog copy/index.js +0 -8
  205. package/packages/dialog copy/src/dialog.vue +0 -615
  206. package/src/index_/345/211/257/346/234/254.js +0 -359
  207. /package/{packages/form/src → src/components}/field-render.vue +0 -0
package/lib/tree-group.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 215);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 219);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -91,13 +91,13 @@ module.exports =
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
94
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return noop; });
94
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return noop; });
95
95
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return hasOwn; });
96
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return toObject; });
96
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return toObject; });
97
97
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return getValueByPath; });
98
98
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return getPropByPath; });
99
99
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return generateId; });
100
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return valueEquals; });
100
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return valueEquals; });
101
101
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return escapeRegexpString; });
102
102
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return arrayFindIndex; });
103
103
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFind; });
@@ -111,12 +111,12 @@ module.exports =
111
111
  /* unused harmony export looseEqual */
112
112
  /* unused harmony export arrayEquals */
113
113
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return isEqual; });
114
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return rafThrottle; });
114
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return rafThrottle; });
115
115
  /* unused harmony export objToArray */
116
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return requestAnimationFrame; });
116
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return requestAnimationFrame; });
117
117
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return cancelAnimationFrame; });
118
118
  /* unused harmony export debounce */
119
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return throttle; });
119
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return throttle; });
120
120
  /* unused harmony export guid */
121
121
  /* unused harmony export uid */
122
122
  /* unused harmony export get */
@@ -150,7 +150,7 @@ module.exports =
150
150
  /* unused harmony export getValues */
151
151
  /* unused harmony export getZoom */
152
152
  /* unused harmony export getLength */
153
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return timestampUrl; });
153
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return timestampUrl; });
154
154
  /* unused harmony export hasChars */
155
155
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return identical; });
156
156
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return indexOfObj; });
@@ -159,41 +159,42 @@ module.exports =
159
159
  /* unused harmony export isFunction */
160
160
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return isObjectEqual; });
161
161
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return joinUrl; });
162
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return layoutWaterfall; });
162
163
  /* unused harmony export loadJs */
163
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return loading; });
164
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return loading; });
164
165
  /* unused harmony export lowerCase */
165
166
  /* unused harmony export overbrim */
166
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return queryParams; });
167
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return queryParams; });
167
168
  /* unused harmony export receiveMessage */
168
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return renderIcon; });
169
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return renderIcon; });
169
170
  /* unused harmony export replenish */
170
171
  /* unused harmony export rmbToCapital */
171
172
  /* unused harmony export setScale */
172
173
  /* unused harmony export sendMessage */
173
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P", function() { return setFavicon; });
174
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return setFavicon; });
174
175
  /* unused harmony export sum */
175
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return startWith; });
176
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return startWith; });
176
177
  /* unused harmony export takeLeft */
177
178
  /* unused harmony export takeRight */
178
179
  /* unused harmony export trimWhitespace */
179
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return toFixed; });
180
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return toFixed; });
180
181
  /* unused harmony export toFunction */
181
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return updateTheme; });
182
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return updateTheme; });
182
183
  /* unused harmony export upperType */
183
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return urlJoinParams; });
184
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return uuid; });
185
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return watermark; });
184
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return urlJoinParams; });
185
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return uuid; });
186
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return watermark; });
186
187
  /* unused harmony export winTopOpen */
187
188
  /* unused harmony export confirm */
188
189
  /* unused harmony export success */
189
190
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return error; });
190
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return warning; });
191
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
191
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return warning; });
192
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
192
193
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
193
- /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12);
194
- /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
195
- /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
196
- /* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6);
194
+ /* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13);
195
+ /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
196
+ /* harmony import */ var _storage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2);
197
+ /* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
197
198
  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; };
198
199
 
199
200
  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; };
@@ -203,9 +204,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
203
204
 
204
205
 
205
206
 
206
- var _get = __webpack_require__(15);
207
- var _set = __webpack_require__(16);
208
- var _cloneDeep = __webpack_require__(17);
207
+ var _get = __webpack_require__(20);
208
+ var _set = __webpack_require__(21);
209
+ var _cloneDeep = __webpack_require__(22);
209
210
  var hasOwnProperty = Object.prototype.hasOwnProperty;
210
211
 
211
212
  // 导入date中的formatDate函数
@@ -1404,7 +1405,9 @@ var getObjectType = function getObjectType(obj) {
1404
1405
  * @return {Object|string} 参数对象或指定参数值
1405
1406
  **/
1406
1407
  var getParams = function getParams() {
1407
- var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
1408
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1409
+
1410
+ var _ref5 = typeof options === 'string' ? { name: options } : options,
1408
1411
  url = _ref5.url,
1409
1412
  name = _ref5.name;
1410
1413
 
@@ -1816,10 +1819,7 @@ var indexOfObj = function indexOfObj(arry, target, key) {
1816
1819
  return _i3;
1817
1820
  }
1818
1821
  } else if (target && (typeof target === 'undefined' ? 'undefined' : _typeof(target)) === 'object') {
1819
- if (currentItem[currentKey] === undefined) {
1820
- throw new Error('\u5C5E\u6027' + currentKey + '\u4E0D\u5B58\u5728');
1821
- }
1822
- if (currentItem[currentKey] === target[currentKey]) {
1822
+ if (currentItem[currentKey] !== undefined && currentItem[currentKey] === target[currentKey]) {
1823
1823
  return _i3;
1824
1824
  }
1825
1825
  }
@@ -2014,7 +2014,105 @@ var joinUrl = function joinUrl(_ref8) {
2014
2014
  // 如果前缀类型无效,直接返回URL
2015
2015
  return url;
2016
2016
  };
2017
+ /**
2018
+ * layoutWaterfall
2019
+ * @desc 布布流布局计算
2020
+ * @author huangbo
2021
+ * @date 2022年5月7日
2022
+ * @param {String} url - JS文件地址
2023
+ * @param {Function} [callback] - 回调函数
2024
+ **/
2025
+ var layoutWaterfall = function layoutWaterfall(self, container, pages, columns, gap) {
2026
+ if (!container) return;
2027
+
2028
+ if (pages.length === 0) return;
2029
+
2030
+ // 获取容器实际内容宽度(减去 padding)
2031
+ var computedStyle = getComputedStyle(container);
2032
+ var paddingLeft = parseFloat(computedStyle.paddingLeft) || 0;
2033
+ var paddingRight = parseFloat(computedStyle.paddingRight) || 0;
2034
+ var paddingTop = parseFloat(computedStyle.paddingTop) || 0;
2035
+ var containerWidth = container.clientWidth - paddingLeft - paddingRight;
2036
+ if (containerWidth === 0) return;
2037
+
2038
+ // 计算每列宽度
2039
+ var columnWidth = (containerWidth - gap * (columns - 1)) / columns;
2040
+
2041
+ // 初始化每列高度数组(以 paddingTop 为起始偏移)
2042
+ var columnHeights = new Array(columns).fill(paddingTop);
2043
+
2044
+ // 遍历所有元素,分配到高度最小的列
2045
+ pages.forEach(function (item) {
2046
+ // 确保span在有效范围内
2047
+ var span = Math.max(1, Math.min(item.style ? item.style.span || item.span || 1 : item.span || 1, columns));
2048
+
2049
+ // 找到可以容纳当前元素span宽度的最小高度起始列
2050
+ var minHeight = Infinity;
2051
+ var startColumn = 0;
2052
+
2053
+ // 遍历所有可能的起始列,找到可以放置span列元素的位置
2054
+ for (var i = 0; i <= columns - span; i++) {
2055
+ // 计算当前连续span列的最大高度
2056
+ var currentMaxHeight = 0;
2057
+ for (var j = i; j < i + span; j++) {
2058
+ if (columnHeights[j] > currentMaxHeight) {
2059
+ currentMaxHeight = columnHeights[j];
2060
+ }
2061
+ }
2062
+
2063
+ // 找到最小的最大高度
2064
+ if (currentMaxHeight < minHeight) {
2065
+ minHeight = currentMaxHeight;
2066
+ startColumn = i;
2067
+ }
2068
+ }
2069
+
2070
+ // 计算元素宽度和位置
2071
+ var existingWidth = item.style && item.style.width ? parseInt(item.style.width, 10) : null;
2072
+ var hasSpan = item.style && item.style.span || item.span;
2073
+ var calculatedWidth = columnWidth * span + gap * (span - 1);
2074
+ var useCustomWidth = !hasSpan && existingWidth;
2075
+ var elementWidth = useCustomWidth ? existingWidth : calculatedWidth;
2076
+
2077
+ // 根据是否使用自定义宽度计算 left(加上 padding 偏移)
2078
+ var left = void 0;
2079
+ if (useCustomWidth) {
2080
+ // 自定义宽度:在分配的列范围内居中(取整避免亚像素)
2081
+ var columnSpaceWidth = columnWidth * span + gap * (span - 1);
2082
+ left = Math.round(paddingLeft + startColumn * columnWidth + startColumn * gap + (columnSpaceWidth - elementWidth) / 2);
2083
+ } else {
2084
+ // 标准 span 宽度:正常计算位置
2085
+ left = paddingLeft + startColumn * columnWidth + startColumn * gap;
2086
+ }
2087
+ var top = minHeight;
2017
2088
 
2089
+ // 设置元素样式(使用Vue的$set确保响应式)
2090
+ if (!item.style) {
2091
+ self.$set(item, 'style', {});
2092
+ }
2093
+ var height = item.style.height ? parseInt(item.style.height, 10) : 30;
2094
+ self.$set(item.style, 'position', 'absolute');
2095
+ self.$set(item.style, 'width', elementWidth + 'px');
2096
+ self.$set(item.style, 'height', height + 'px');
2097
+ self.$set(item.style, 'left', left + 'px');
2098
+ self.$set(item.style, 'top', top + 'px');
2099
+ if (!useCustomWidth) {
2100
+ self.$set(item.style, 'span', span);
2101
+ }
2102
+
2103
+ // 更新所有被占用列的高度
2104
+ var newHeight = top + height + gap;
2105
+ for (var _i5 = startColumn; _i5 < startColumn + span; _i5++) {
2106
+ columnHeights[_i5] = newHeight;
2107
+ }
2108
+ });
2109
+
2110
+ // 设置容器高度
2111
+ var maxHeight = Math.max.apply(Math, columnHeights);
2112
+ container.style.position = 'relative';
2113
+ container.style.height = maxHeight - gap + 'px'; // 减去最后一个间隙
2114
+ return { columnWidth: columnWidth, width: containerWidth };
2115
+ };
2018
2116
  /**
2019
2117
  * loadJs
2020
2118
  * @desc 加载JS文件
@@ -2045,7 +2143,7 @@ var loadJs = function loadJs(url, callback) {
2045
2143
  var loading = function loading() {
2046
2144
  var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '请求中...';
2047
2145
 
2048
- var Loading = __webpack_require__(13).default;
2146
+ var Loading = __webpack_require__(19).default;
2049
2147
  return Loading.service({
2050
2148
  text: text,
2051
2149
  spinner: 'es-icon-jiazai',
@@ -2163,8 +2261,8 @@ var renderIcon = function renderIcon(data, node, icons) {
2163
2261
  var _ref9 = data || {},
2164
2262
  attributes = _ref9.attributes;
2165
2263
 
2166
- var orgType = attributes.orgType || data.orgType;
2167
- var layerlevel = attributes.layerlevel || data.layerlevel;
2264
+ var orgType = attributes ? attributes.orgType : data.orgType;
2265
+ var layerlevel = attributes ? attributes.layerlevel : data.layerlevel;
2168
2266
  if (!orgType) return '';
2169
2267
  var key = orgType === 'org' ? layerlevel ? 'bumen' : 'gongsi' : 'bumen';
2170
2268
  if (node.level === 1 && (data.subNode || data.isParent || data.hasChildren)) {
@@ -2243,10 +2341,10 @@ var rmbToCapital = function rmbToCapital(num) {
2243
2341
  // 处理小数部分
2244
2342
  var decimalCapital = '';
2245
2343
  if (parseInt(decimalPart, 10) > 0) {
2246
- for (var _i5 = 0; _i5 < decimalPart.length; _i5++) {
2247
- var _digit = parseInt(decimalPart[_i5], 10);
2344
+ for (var _i6 = 0; _i6 < decimalPart.length; _i6++) {
2345
+ var _digit = parseInt(decimalPart[_i6], 10);
2248
2346
  if (_digit > 0) {
2249
- decimalCapital += chineseNumbers[_digit] + decimalUnits[_i5];
2347
+ decimalCapital += chineseNumbers[_digit] + decimalUnits[_i6];
2250
2348
  } else if (decimalCapital[decimalCapital.length - 1] !== chineseNumbers[0]) {
2251
2349
  decimalCapital += chineseNumbers[_digit];
2252
2350
  }
@@ -2912,1561 +3010,6 @@ var warning = function warning(content, _callback3) {
2912
3010
  /***/ 1:
2913
3011
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2914
3012
 
2915
- "use strict";
2916
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return setStorage; });
2917
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getStorage; });
2918
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return removeStorage; });
2919
- /* unused harmony export setCookie */
2920
- /* unused harmony export getCookie */
2921
- 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; };
2922
-
2923
- /**
2924
- * setStorage
2925
- * @desc:设置本地储存数据
2926
- * @author huangbo
2927
- * @date 2022年5月7日
2928
- * @param {String|Object} [key] - 数据的名称或包含type、key、value的对象
2929
- * @param {String} [value] - 数据的值(当第一个参数为字符串时使用)
2930
- **/
2931
- var setStorage = function setStorage(key, value) {
2932
- // 解析参数,支持两种调用方式:setStorage(key, value) 和 setStorage({type, key, value})
2933
- var type = void 0,
2934
- finalKey = void 0,
2935
- finalValue = void 0;
2936
-
2937
- if ((typeof key === 'undefined' ? 'undefined' : _typeof(key)) === 'object' && key !== null) {
2938
- // 对象调用方式:setStorage({type, key, value})
2939
- type = key.type;
2940
- finalKey = key.key;
2941
- finalValue = key.value;
2942
- } else {
2943
- // 字符串调用方式:setStorage(key, value)
2944
- type = getStorage('storageType');
2945
- finalKey = key;
2946
- finalValue = value;
2947
- }
2948
-
2949
- // 使用默认存储类型如果未指定
2950
- type = type || getStorage('storageType');
2951
-
2952
- // 获取存储对象
2953
- var storage = type === 'localStorage' ? localStorage : sessionStorage;
2954
-
2955
- // 处理不同类型的key
2956
- if (typeof finalKey === 'string') {
2957
- // 单个字符串key
2958
- var storedValue = (typeof finalValue === 'undefined' ? 'undefined' : _typeof(finalValue)) === 'object' ? JSON.stringify(finalValue) : finalValue;
2959
- storage.setItem(finalKey, storedValue);
2960
- if (finalKey === 'token') {
2961
- setCookie('token', storedValue);
2962
- }
2963
- } else if (Array.isArray(finalKey)) {
2964
- // 数组key,为多个key设置同一个value
2965
- var _storedValue = (typeof finalValue === 'undefined' ? 'undefined' : _typeof(finalValue)) === 'object' ? JSON.stringify(finalValue) : finalValue;
2966
- for (var i = 0; i < finalKey.length; i++) {
2967
- storage.setItem(finalKey[i], _storedValue);
2968
- if (finalKey[i] === 'token') {
2969
- setCookie('token', _storedValue);
2970
- }
2971
- }
2972
- } else if ((typeof finalKey === 'undefined' ? 'undefined' : _typeof(finalKey)) === 'object' && finalKey !== null) {
2973
- // 对象key,对象的属性名称作为key,属性值作为value
2974
- for (var k in finalKey) {
2975
- if (Object.prototype.hasOwnProperty.call(finalKey, k)) {
2976
- var _storedValue2 = _typeof(finalKey[k]) === 'object' ? JSON.stringify(finalKey[k]) : finalKey[k];
2977
- storage.setItem(k, _storedValue2);
2978
- if (k === 'token') {
2979
- setCookie('token', _storedValue2);
2980
- }
2981
- }
2982
- }
2983
- }
2984
- };
2985
-
2986
- /**
2987
- * getStorage
2988
- * @desc:获取本地储存数据
2989
- * @author huangbo
2990
- * @date 2022年5月7日
2991
- * @param {String} [key] - 获取的名称
2992
- **/
2993
- var getStorage = function getStorage(key) {
2994
- if (key) {
2995
- var res = sessionStorage.getItem(key) || localStorage.getItem(key);
2996
- if (!res && key === 'token') {
2997
- res = getCookie('token');
2998
- }
2999
- if (key === 'host' && !res) {
3000
- res = '';
3001
- }
3002
- return res;
3003
- }
3004
- var defaults = {};
3005
- var token = sessionStorage.getItem('token') || localStorage.getItem('token') || getCookie('token');
3006
- var ssId = sessionStorage.getItem('ssId') || localStorage.getItem('ssId') || getCookie('ssId');
3007
-
3008
- var deviceUnique = sessionStorage.getItem('deviceUnique') || localStorage.getItem('deviceUnique') || getCookie('deviceUnique');
3009
- if (token) {
3010
- defaults.Authorization = token;
3011
- }
3012
- if (ssId) {
3013
- defaults.ssId = ssId;
3014
- }
3015
- if (deviceUnique) {
3016
- defaults.deviceUnique = deviceUnique;
3017
- }
3018
- return defaults;
3019
- };
3020
-
3021
- /**
3022
- * removeStorage
3023
- * @desc:删除本地储存数据
3024
- * @author huangbo
3025
- * @date 2022年5月7日
3026
- * @param {String, Array} [key] - 获取的名称
3027
- **/
3028
- var removeStorage = function removeStorage(key) {
3029
- if (Array.isArray(key)) {
3030
- for (var i = 0; i < key.length; i++) {
3031
- sessionStorage.removeItem(key[i]);
3032
- localStorage.removeItem(key[i]);
3033
- if (key[i] === 'token') {
3034
- removeCookie('token');
3035
- }
3036
- }
3037
- } else if (key) {
3038
- sessionStorage.removeItem(key);
3039
- localStorage.removeItem(key);
3040
- if (key === 'token') {
3041
- removeCookie('token');
3042
- }
3043
- } else {
3044
- sessionStorage.clear();
3045
- localStorage.clear();
3046
- removeCookie('token');
3047
- }
3048
- };
3049
-
3050
- /**
3051
- * setCookie
3052
- * @desc 设置cookie
3053
- * @author huangbo
3054
- * @param {string} [name] cookie名称
3055
- * @param {string} [value] cookie值
3056
- * @param {boolean} [isSession] 是否是会话cookie
3057
- **/
3058
- var setCookie = function setCookie(name, value) {
3059
- var isSession = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
3060
- var time = arguments[3];
3061
-
3062
- try {
3063
- var cookieParts = [encodeURIComponent(name) + '=' + encodeURIComponent(value), 'path=/' // 仅保留path设置,确保全站访问
3064
- ];
3065
- // 会话/持久Cookie设置
3066
- if (!isSession) {
3067
- if (/MSIE|Trident/.test(navigator.userAgent)) {
3068
- // IE使用expires
3069
- var date = new Date();
3070
- date.setTime(date.getTime() + (time || 7 * 24 * 60 * 60 * 1000));
3071
- cookieParts.push('expires=' + date.toUTCString());
3072
- } else {
3073
- // 其他浏览器使用max-age
3074
- cookieParts.push('max-age=' + (time || 7 * 24 * 60 * 60));
3075
- }
3076
- }
3077
- // 内核兼容处理
3078
- if (/MSIE|Trident/.test(navigator.userAgent)) {
3079
- // IE特殊处理:添加P3P协议头
3080
- cookieParts.push('P3P=CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"');
3081
- } else {
3082
- // 现代浏览器设置
3083
- cookieParts.push('samesite=lax');
3084
- if (window.location.protocol === 'https:') {
3085
- cookieParts.push('secure');
3086
- }
3087
- }
3088
-
3089
- // 设置Cookie
3090
- document.cookie = cookieParts.join('; ');
3091
- return true;
3092
- } catch (e) {
3093
- console.error('Cookie设置失败:', e);
3094
- return false;
3095
- }
3096
- };
3097
-
3098
- /**
3099
- * getCookie
3100
- * @desc 获取cookie中指定名称的值
3101
- * @author huangbo
3102
- * @param {string} [name] cookie名称
3103
- **/
3104
- var getCookie = function getCookie(name) {
3105
- var cookies = document.cookie.split(';');
3106
- for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
3107
- var _ref;
3108
-
3109
- if (_isArray) {
3110
- if (_i >= _iterator.length) break;
3111
- _ref = _iterator[_i++];
3112
- } else {
3113
- _i = _iterator.next();
3114
- if (_i.done) break;
3115
- _ref = _i.value;
3116
- }
3117
-
3118
- var cookie = _ref;
3119
-
3120
- var _cookie$trim$split = cookie.trim().split('='),
3121
- cookieName = _cookie$trim$split[0],
3122
- cookieValue = _cookie$trim$split[1];
3123
-
3124
- if (decodeURIComponent(cookieName) === name) {
3125
- return decodeURIComponent(cookieValue);
3126
- }
3127
- }
3128
- return null;
3129
- };
3130
-
3131
- /**
3132
- * removeCookie
3133
- * @desc:删除cookie
3134
- * @author huangbo
3135
- * @date 2022年5月7日
3136
- * @param {String, Array} [key] - 获取的名称
3137
- **/
3138
- var removeCookie = function removeCookie(key) {
3139
- if (Array.isArray(key)) {
3140
- for (var i = 0; i < key.length; i++) {
3141
- document.cookie = encodeURIComponent(key[i]) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
3142
- }
3143
- } else {
3144
- document.cookie = encodeURIComponent(key) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
3145
- }
3146
- };
3147
-
3148
- /***/ }),
3149
-
3150
- /***/ 12:
3151
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3152
-
3153
- "use strict";
3154
- /* unused harmony export getHue */
3155
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getColor; });
3156
- /* unused harmony export getLightness */
3157
- /* unused harmony export getSaturation */
3158
- /* unused harmony export rgbToHsv */
3159
- /* unused harmony export hsvTorgb */
3160
- /* unused harmony export mixColor */
3161
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getRgb; });
3162
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
3163
-
3164
- var $hueStep = 2;
3165
- var $saturationStep1 = 0.16;
3166
- var $saturationStep2 = 0.05;
3167
- var $brightnessStep1 = 0.05;
3168
- var $brightnessStep2 = 0.15;
3169
- var $lightColorCount = 5;
3170
- var $darkColorCount = 4;
3171
- /**
3172
- * getHue
3173
- * @desc:转换色相
3174
- * @author huangbo
3175
- * @date 2022年5月7日
3176
- **/
3177
- var getHue = function getHue($h, $i, $isLight) {
3178
- var $hue = void 0;
3179
- if ($h >= 60 && $h <= 240) {
3180
- $hue = $isLight ? $h - $hueStep * $i : $h + $hueStep * $i;
3181
- } else {
3182
- $hue = $isLight ? $h + $hueStep * $i : $h - $hueStep * $i;
3183
- }
3184
- $hue = ($hue + 360) % 360;
3185
- return Math.round($hue);
3186
- };
3187
-
3188
- /**
3189
- * getColor
3190
- * @desc:根据颜色和对应的色板位置,计算出对应的色板颜色
3191
- * @author huangbo
3192
- * @date 2022年5月7日
3193
- **/
3194
- var getColor = function getColor($color, $n) {
3195
- var $isLight = $n < 7;
3196
- var $hsv = rgbToHsv($color);
3197
- // 这里将i转换成以主色为中心,两侧的i值逐渐增大
3198
- var $i = $isLight ? $lightColorCount + 1 - $n : $n - $lightColorCount - 1;
3199
- var color = hsvTorgb(getHue($hsv[0], $i, $isLight), getSaturation($hsv[1], $i, $isLight), getLightness($hsv[2], $i, $isLight));
3200
- return color;
3201
- };
3202
-
3203
- /**
3204
- * getLightness
3205
- * @desc:转换明度
3206
- * @author huangbo
3207
- * @date 2022年5月7日
3208
- * @return {string,array} 元素类名或者id
3209
- **/
3210
- var getLightness = function getLightness($v, $i, $isLight) {
3211
- var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
3212
- $value = $value < 1 ? $value : 1;
3213
- return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "T"])($value, 2);
3214
- };
3215
-
3216
- /**
3217
- * getSaturation
3218
- * @desc:转换饱和度
3219
- * @author huangbo
3220
- * @date 2022年5月7日
3221
- **/
3222
- var getSaturation = function getSaturation($s, $i, $isLight) {
3223
- var $saturation = void 0;
3224
- if ($isLight) {
3225
- $saturation = $s - $saturationStep1 * $i;
3226
- } else if ($i === $darkColorCount) {
3227
- $saturation = $s + $saturationStep1;
3228
- } else {
3229
- $saturation = $s + $saturationStep2 * $i;
3230
- }
3231
- $saturation = $saturation < 1 ? $saturation : 1;
3232
-
3233
- if ($isLight && $i === $lightColorCount && $saturation > 0.1) {
3234
- $saturation = 0.1;
3235
- }
3236
- $saturation = $saturation > 0.06 ? $saturation : 0.06;
3237
- return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "T"])($saturation, 2);
3238
- };
3239
-
3240
- /**
3241
- * rgbToHsv
3242
- * @desc:rgb转化成hsv
3243
- * @author huangbo
3244
- * @date 2022年5月7日
3245
- * @param {string} [$color] - 颜色值
3246
- **/
3247
- var rgbToHsv = function rgbToHsv($color) {
3248
- var rgb = getRgb($color);
3249
- var $red = rgb[0];
3250
- var $green = rgb[1];
3251
- var $blue = rgb[2];
3252
- var $max = Math.max($red, $green, $blue);
3253
- var $min = Math.min($red, $green, $blue);
3254
- var $diff = $max - $min;
3255
- var $h = 0;
3256
- if ($max === $min) {
3257
- $h = 0;
3258
- } else if ($max === $red) {
3259
- $h = 60 * ($green - $blue) / $diff + ($green > $blue - 1 ? 0 : 360);
3260
- } else if ($max === $green) {
3261
- $h = 60 * ($blue - $red) / $diff + 120;
3262
- } else if ($max === $blue) {
3263
- $h = 60 * ($red - $green) / $diff + 240;
3264
- }
3265
- var $s = $max === 0 ? 0 : $diff / $max;
3266
- var $v = $max / 255;
3267
- return [$h, $s, $v];
3268
- };
3269
-
3270
- /**
3271
- * hsvTorgb
3272
- * @desc:hsv转化成rgb
3273
- * @author huangbo
3274
- * @date 2022年5月7日
3275
- * @param {string} [$color] - 颜色值
3276
- **/
3277
- var hsvTorgb = function hsvTorgb($h, $s, $v) {
3278
- var $th = Math.floor($h / 60);
3279
- var $t1 = $h / 60 - $th;
3280
- var $t2 = $v * (1 - $s);
3281
- var $t3 = $v * (1 - $t1 * $s);
3282
- var $t4 = $v * (1 - (1 - $t1) * $s);
3283
- var $r = [$v, $t3, $t2, $t2, $t4, $v][$th % 6];
3284
- var $g = [$t4, $v, $v, $t3, $t2, $t2][$th % 6];
3285
- var $b = [$t2, $t2, $t4, $v, $v, $t3][$th % 6];
3286
- // return `rgb(${Math.round($r * 255)}, ${Math.round($g * 255)}, ${Math.round($b * 255)})`;
3287
- var red = Math.round($r * 255);
3288
- var green = Math.round($g * 255);
3289
- var blue = Math.round($b * 255);
3290
- red = red.toString(16);
3291
- green = green.toString(16);
3292
- blue = blue.toString(16);
3293
- red = red.length === 1 ? '0' + red : red;
3294
- green = green.length === 1 ? '0' + green : green;
3295
- blue = blue.length === 1 ? '0' + blue : blue;
3296
- return '#' + red + green + blue;
3297
- };
3298
-
3299
- /**
3300
- * mixColor
3301
- * @desc:生成混合色
3302
- * @author huangbo
3303
- * @date 2022年5月7日
3304
- * @param {string} [$color1] - 颜色值
3305
- * @param {string} [$color2] - 颜色值
3306
- * @param {string} [$n] - 百分比 0~1
3307
- **/
3308
- var mixColor = function mixColor($color1, $color2, $n) {
3309
- var rgb1 = getRgb($color1);
3310
- var rgb2 = getRgb($color2);
3311
- var r = rgb1[0] * $n + rgb2[0] * (1 - $n);
3312
- var g = rgb1[1] * $n + rgb2[1] * (1 - $n);
3313
- var b = rgb1[2] * $n + rgb2[2] * (1 - $n);
3314
- return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
3315
- };
3316
-
3317
- /**
3318
- * getRgb
3319
- * @desc:获取颜色值的rgb值
3320
- * @author huangbo
3321
- * @date 2022年5月7日
3322
- * @param {string} [$color] - 颜色值
3323
- **/
3324
- var getRgb = function getRgb($color) {
3325
- var rgb = [];
3326
- // 16进制颜色值的正则
3327
- var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
3328
- // 把颜色值变成小写
3329
- $color = $color.toLowerCase();
3330
- if (reg.test($color)) {
3331
- // 如果只有三位的值,需变成六位,如:#fff => #ffffff
3332
- if ($color.length === 4) {
3333
- var colorNew = '#';
3334
- for (var i = 1; i < 4; i++) {
3335
- colorNew += $color.slice(i, i + 1).concat($color.slice(i, i + 1));
3336
- }
3337
- $color = colorNew;
3338
- }
3339
- // 处理六位的颜色值,转为RGB
3340
- for (var _i = 1; _i < 7; _i += 2) {
3341
- rgb.push(parseInt('0x' + $color.slice(_i, _i + 2), 16));
3342
- }
3343
- } else {
3344
- rgb = $color.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
3345
- }
3346
- return rgb;
3347
- };
3348
-
3349
- /***/ }),
3350
-
3351
- /***/ 13:
3352
- /***/ (function(module, exports) {
3353
-
3354
- module.exports = require("eoss/lib/loading");
3355
-
3356
- /***/ }),
3357
-
3358
- /***/ 14:
3359
- /***/ (function(module, exports) {
3360
-
3361
- module.exports = require("throttle-debounce");
3362
-
3363
- /***/ }),
3364
-
3365
- /***/ 15:
3366
- /***/ (function(module, exports) {
3367
-
3368
- module.exports = require("lodash/get");
3369
-
3370
- /***/ }),
3371
-
3372
- /***/ 16:
3373
- /***/ (function(module, exports) {
3374
-
3375
- module.exports = require("lodash/set");
3376
-
3377
- /***/ }),
3378
-
3379
- /***/ 17:
3380
- /***/ (function(module, exports) {
3381
-
3382
- module.exports = require("lodash/cloneDeep");
3383
-
3384
- /***/ }),
3385
-
3386
- /***/ 2:
3387
- /***/ (function(module, exports) {
3388
-
3389
- module.exports = require("vue");
3390
-
3391
- /***/ }),
3392
-
3393
- /***/ 215:
3394
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3395
-
3396
- "use strict";
3397
- // ESM COMPAT FLAG
3398
- __webpack_require__.r(__webpack_exports__);
3399
-
3400
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree-group/src/tree-group.vue?vue&type=template&id=4c2f26a9&
3401
- var render = function () {
3402
- var _vm = this
3403
- var _h = _vm.$createElement
3404
- var _c = _vm._self._c || _h
3405
- return _c("div", { staticClass: "es-tree-group" }, [
3406
- _c(
3407
- "div",
3408
- { staticClass: "es-tree-group-left" },
3409
- [
3410
- _vm.tabs.length
3411
- ? _c(
3412
- "es-tabs",
3413
- {
3414
- staticClass: "es-tabs-tree-card",
3415
- attrs: { type: "card" },
3416
- on: { "tab-click": _vm.handleSelect },
3417
- model: {
3418
- value: _vm.defaultActive,
3419
- callback: function ($$v) {
3420
- _vm.defaultActive = $$v
3421
- },
3422
- expression: "defaultActive",
3423
- },
3424
- },
3425
- _vm._l(_vm.tabs, function (item, index) {
3426
- return _c(
3427
- "es-tab-pane",
3428
- {
3429
- key: item.name,
3430
- attrs: { label: item.text, name: String(index) },
3431
- },
3432
- [
3433
- _c(
3434
- "es-tree",
3435
- _vm._g(
3436
- _vm._b(
3437
- {
3438
- ref: "groupTree" + index,
3439
- refInFor: true,
3440
- attrs: { height: "100%" },
3441
- },
3442
- "es-tree",
3443
- _vm.getTreeConfig(item.tree, index),
3444
- false
3445
- ),
3446
- _vm.getTreeEvents(item, index)
3447
- ),
3448
- [
3449
- item.enterprise
3450
- ? _c(
3451
- "template",
3452
- { slot: "filter" },
3453
- [
3454
- _c(
3455
- "es-selector",
3456
- _vm._b(
3457
- {
3458
- on: {
3459
- confirm: function (res) {
3460
- return _vm.handleConfirm(res, index)
3461
- },
3462
- },
3463
- },
3464
- "es-selector",
3465
- _vm.getProps(item.enterprise),
3466
- false
3467
- ),
3468
- [
3469
- _c("template", { slot: "button" }, [
3470
- _vm._v(
3471
- "\n 选择单位范围" +
3472
- _vm._s(
3473
- _vm.filtes[index] &&
3474
- _vm.filtes[index].length
3475
- ? "(已选择:" +
3476
- _vm.filtes[index].length +
3477
- ")"
3478
- : ""
3479
- ) +
3480
- "\n "
3481
- ),
3482
- ]),
3483
- ],
3484
- 2
3485
- ),
3486
- ],
3487
- 1
3488
- )
3489
- : _vm._e(),
3490
- ],
3491
- 2
3492
- ),
3493
- ],
3494
- 1
3495
- )
3496
- }),
3497
- 1
3498
- )
3499
- : _c(
3500
- "es-tree",
3501
- _vm._g(
3502
- _vm._b(
3503
- { ref: "groupTree", attrs: { height: "100%" } },
3504
- "es-tree",
3505
- _vm.getTreeConfig(_vm.tree),
3506
- false
3507
- ),
3508
- _vm.tree.events
3509
- ? Object.assign({}, _vm.tree.events, {
3510
- "check-change": _vm.handleCheckChange,
3511
- })
3512
- : {
3513
- "check-change": _vm.handleCheckChange,
3514
- }
3515
- ),
3516
- [
3517
- _vm.enterprise
3518
- ? _c(
3519
- "template",
3520
- { slot: "filter" },
3521
- [
3522
- _c(
3523
- "es-selector",
3524
- _vm._b(
3525
- { on: { confirm: _vm.handleConfirm } },
3526
- "es-selector",
3527
- _vm.getProps(_vm.enterprise),
3528
- false
3529
- ),
3530
- [
3531
- _c("template", { slot: "button" }, [
3532
- _vm._v(
3533
- "\n 选择单位范围" +
3534
- _vm._s(
3535
- _vm.filtes.length
3536
- ? "(已选择:" + _vm.filtes.length + ")"
3537
- : ""
3538
- ) +
3539
- "\n "
3540
- ),
3541
- ]),
3542
- ],
3543
- 2
3544
- ),
3545
- ],
3546
- 1
3547
- )
3548
- : _vm._e(),
3549
- ],
3550
- 2
3551
- ),
3552
- ],
3553
- 1
3554
- ),
3555
- _c(
3556
- "div",
3557
- { staticClass: "es-tree-group-right" },
3558
- [
3559
- _vm._t("default", function () {
3560
- return [
3561
- _vm.form
3562
- ? _c(
3563
- "es-form",
3564
- _vm._g(
3565
- _vm._b(
3566
- { attrs: { ef: "groupForm" } },
3567
- "es-form",
3568
- _vm.form,
3569
- false
3570
- ),
3571
- _vm.getFormEvents()
3572
- )
3573
- )
3574
- : _vm.table
3575
- ? _c(
3576
- "es-data-table",
3577
- _vm._g(
3578
- _vm._b(
3579
- { ref: "groupTable", attrs: { size: "mini" } },
3580
- "es-data-table",
3581
- _vm.getTableProps(),
3582
- false
3583
- ),
3584
- _vm.getTableEvents()
3585
- )
3586
- )
3587
- : _vm.iframe
3588
- ? _c("iframe", {
3589
- ref: "groupIframe",
3590
- attrs: { frameborder: "0", width: "100%", height: "100%" },
3591
- })
3592
- : _vm._e(),
3593
- ]
3594
- }),
3595
- ],
3596
- 2
3597
- ),
3598
- ])
3599
- }
3600
- var staticRenderFns = []
3601
- render._withStripped = true
3602
-
3603
-
3604
- // CONCATENATED MODULE: ./packages/tree-group/src/tree-group.vue?vue&type=template&id=4c2f26a9&
3605
-
3606
- // EXTERNAL MODULE: ./src/utils/util.js
3607
- var util = __webpack_require__(0);
3608
-
3609
- // EXTERNAL MODULE: ./src/utils/types.js
3610
- var types = __webpack_require__(3);
3611
-
3612
- // EXTERNAL MODULE: ./src/config/api.js
3613
- var api = __webpack_require__(7);
3614
-
3615
- // EXTERNAL MODULE: external "throttle-debounce"
3616
- var external_throttle_debounce_ = __webpack_require__(14);
3617
-
3618
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree-group/src/tree-group.vue?vue&type=script&lang=js&
3619
- 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; };
3620
-
3621
- //
3622
- //
3623
- //
3624
- //
3625
- //
3626
- //
3627
- //
3628
- //
3629
- //
3630
- //
3631
- //
3632
- //
3633
- //
3634
- //
3635
- //
3636
- //
3637
- //
3638
- //
3639
- //
3640
- //
3641
- //
3642
- //
3643
- //
3644
- //
3645
- //
3646
- //
3647
- //
3648
- //
3649
- //
3650
- //
3651
- //
3652
- //
3653
- //
3654
- //
3655
- //
3656
- //
3657
- //
3658
- //
3659
- //
3660
- //
3661
- //
3662
- //
3663
- //
3664
- //
3665
- //
3666
- //
3667
- //
3668
- //
3669
- //
3670
- //
3671
- //
3672
- //
3673
- //
3674
- //
3675
- //
3676
- //
3677
- //
3678
- //
3679
- //
3680
- //
3681
- //
3682
- //
3683
- //
3684
- //
3685
- //
3686
- //
3687
- //
3688
- //
3689
- //
3690
- //
3691
- //
3692
- //
3693
- //
3694
- //
3695
- //
3696
- //
3697
- //
3698
- //
3699
- //
3700
- //
3701
- //
3702
- //
3703
- //
3704
- //
3705
- //
3706
- //
3707
- //
3708
- //
3709
- //
3710
- //
3711
- //
3712
- //
3713
- //
3714
- //
3715
- //
3716
- //
3717
- //
3718
- //
3719
- //
3720
- //
3721
- //
3722
- //
3723
- //
3724
- //
3725
-
3726
-
3727
-
3728
-
3729
-
3730
-
3731
- /**
3732
- * 树组合组件
3733
- * 用于组合左树右数据表格、左树右表单、左树右窗口(iframe)
3734
- */
3735
- /* harmony default export */ var tree_groupvue_type_script_lang_js_ = ({
3736
- name: 'EsTreeGroup',
3737
- inheritAttrs: false,
3738
- props: {
3739
- /**
3740
- * 选项卡配置
3741
- */
3742
- tabs: {
3743
- type: Array,
3744
- default: function _default() {
3745
- return [];
3746
- }
3747
- },
3748
- /**
3749
- * 默认选中的选项卡
3750
- */
3751
- active: {
3752
- type: [String, Number],
3753
- default: '0'
3754
- },
3755
- /**
3756
- * 树配置
3757
- */
3758
- tree: {
3759
- type: Object,
3760
- default: function _default() {
3761
- return {};
3762
- }
3763
- },
3764
- /**
3765
- * 表格配置
3766
- */
3767
- table: Object,
3768
- /**
3769
- * 表单配置
3770
- */
3771
- form: Object,
3772
- /**
3773
- * iframe配置
3774
- */
3775
- iframe: Object,
3776
- /**
3777
- * 是否开启企业范围选择
3778
- */
3779
- enterprise: [Object, Boolean],
3780
- /**
3781
- * 选择节点作为table、iframe地址参数
3782
- */
3783
- checkesAsParams: {
3784
- type: [Object, Boolean],
3785
- default: true
3786
- }
3787
- },
3788
- data: function data() {
3789
- return {
3790
- /**
3791
- * 默认选中的选项卡
3792
- */
3793
- defaultActive: this.active,
3794
- /**
3795
- * 企业范围选择的过滤条件
3796
- */
3797
- filtes: [],
3798
- /**
3799
- * 选中的节点
3800
- */
3801
- checkeds: [],
3802
- /**
3803
- * 表格、iframe的参数
3804
- */
3805
- params: null,
3806
- /**
3807
- * 表单事件缓存
3808
- */
3809
- _formEventsCache: null,
3810
- /**
3811
- * 表格属性缓存
3812
- */
3813
- _tablePropsCache: null,
3814
- /**
3815
- * 表格事件缓存
3816
- */
3817
- _tableEventsCache: null,
3818
- /**
3819
- * iframe属性缓存
3820
- */
3821
- _iframePropsCache: null,
3822
- /**
3823
- * 树引用缓存
3824
- */
3825
- _treeRefCache: null,
3826
- /**
3827
- * 树配置缓存
3828
- */
3829
- _treeConfigCache: new Map()
3830
- };
3831
- },
3832
-
3833
- computed: {},
3834
- watch: {
3835
- defaultActive: {
3836
- immediate: true,
3837
- handler: function handler(val) {
3838
- if (val !== undefined && this.tabs.length) {
3839
- if (typeof val === 'string') {
3840
- for (var i = 0; i < this.tabs.length; i++) {
3841
- if (val === this.tabs[i].name) {
3842
- this.defaultActive = String(i);
3843
- }
3844
- }
3845
- } else {
3846
- this.defaultActive = String(val);
3847
- }
3848
- }
3849
- }
3850
- },
3851
- 'table.param': {
3852
- immediate: true,
3853
- deep: true,
3854
- handler: function handler(val, old) {
3855
- if (!Object(util["G" /* isObjectEqual */])(val, old)) {
3856
- this.params = JSON.parse(JSON.stringify(val || {}));
3857
- // 清除table属性缓存
3858
- this._tablePropsCache = null;
3859
- }
3860
- }
3861
- },
3862
- checkeds: {
3863
- deep: true,
3864
- handler: function handler() {
3865
- var params = this.setParams();
3866
- if (params) {
3867
- this.params = _extends({}, this.params, params);
3868
- // 清除table属性缓存
3869
- this._tablePropsCache = null;
3870
- // 清除iframe属性缓存
3871
- this._iframePropsCache = null;
3872
- }
3873
- }
3874
- },
3875
- // 监听form变化,清除form事件缓存
3876
- form: {
3877
- deep: true,
3878
- handler: function handler() {
3879
- this._formEventsCache = null;
3880
- }
3881
- },
3882
- // 监听table变化,清除table相关缓存
3883
- table: {
3884
- deep: true,
3885
- handler: function handler() {
3886
- this._tablePropsCache = null;
3887
- this._tableEventsCache = null;
3888
- if (this._dialogEventsCache) {
3889
- this._dialogEventsCache.clear();
3890
- }
3891
- }
3892
- },
3893
- // 监听iframe变化,清除iframe属性缓存
3894
- iframe: {
3895
- deep: true,
3896
- handler: function handler() {
3897
- this._iframePropsCache = null;
3898
- }
3899
- },
3900
- // 监听$listeners变化,清除相关事件缓存
3901
- $listeners: {
3902
- handler: function handler() {
3903
- this._formEventsCache = null;
3904
- this._tableEventsCache = null;
3905
- }
3906
- }
3907
- },
3908
- created: function created() {},
3909
- mounted: function mounted() {},
3910
-
3911
- methods: {
3912
- /**
3913
- * 获取树事件
3914
- * @param {Object} item - 选项卡项
3915
- * @param {Number} index - 索引
3916
- * @returns {Object} 树事件对象
3917
- */
3918
- getTreeEvents: function getTreeEvents(item, index) {
3919
- var _this = this;
3920
-
3921
- var baseEvents = {
3922
- 'check-change': function checkChange() {
3923
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
3924
- args[_key] = arguments[_key];
3925
- }
3926
-
3927
- return _this.handleCheckChange.apply(_this, args.concat([item]));
3928
- }
3929
- };
3930
-
3931
- if (item.tree && item.tree.events) {
3932
- return _extends({}, item.tree.events, baseEvents);
3933
- }
3934
-
3935
- return baseEvents;
3936
- },
3937
-
3938
- /**
3939
- * 获取表单事件
3940
- * @returns {Object} 表单事件对象
3941
- */
3942
- getFormEvents: function getFormEvents() {
3943
- // 缓存form组件的事件对象,避免每次创建新对象
3944
- if (!this._formEventsCache || this.$listeners !== this._formEventsCache.listeners || this.form.events !== this._formEventsCache.events) {
3945
- this._formEventsCache = {
3946
- listeners: this.$listeners,
3947
- events: this.form.events,
3948
- result: _extends({}, this.$listeners, this.form.events)
3949
- };
3950
- }
3951
- return this._formEventsCache.result;
3952
- },
3953
-
3954
- /**
3955
- * 获取表格属性
3956
- * @returns {Object} 表格属性对象
3957
- */
3958
- getTableProps: function getTableProps() {
3959
- // 缓存data-table组件的属性对象,避免每次创建新对象
3960
- // 直接使用setParams()方法的结果,确保树节点选择变化时参数更新
3961
- var currentParams = this.setParams();
3962
- if (!this._tablePropsCache || this.table !== this._tablePropsCache.table || JSON.stringify(currentParams) !== JSON.stringify(this._tablePropsCache.params) || JSON.stringify(this.checkeds) !== JSON.stringify(this._tablePropsCache.checkeds)) {
3963
- this._tablePropsCache = {
3964
- table: this.table,
3965
- params: currentParams,
3966
- checkeds: this.checkeds,
3967
- result: _extends({ close: true }, this.table, { param: currentParams })
3968
- };
3969
- }
3970
- return this._tablePropsCache.result;
3971
- },
3972
-
3973
- /**
3974
- * 获取表格事件
3975
- * @returns {Object} 表格事件对象
3976
- */
3977
- getTableEvents: function getTableEvents() {
3978
- // 缓存data-table组件的事件对象,避免每次创建新对象
3979
- if (!this._tableEventsCache || this.$listeners !== this._tableEventsCache.listeners || this.table.events !== this._tableEventsCache.events) {
3980
- this._tableEventsCache = {
3981
- listeners: this.$listeners,
3982
- events: this.table.events,
3983
- result: _extends({}, this.$listeners, this.table.events)
3984
- };
3985
- }
3986
- return this._tableEventsCache.result;
3987
- },
3988
-
3989
- /**
3990
- * 设置参数
3991
- * @returns {Object} 参数对象
3992
- */
3993
- setParams: function setParams() {
3994
- var _this2 = this;
3995
-
3996
- if (this.checkesAsParams === false) {
3997
- return null;
3998
- }
3999
- if (this.enterprise && JSON.stringify(this.enterprise) != '{}' || this.tabs && this.tabs.length && this.tabs[Number(this.defaultActive)].enterprise) {
4000
- if (this.checkeds) {
4001
- if (Array.isArray(this.checkeds)) {
4002
- var creditCodes = [];
4003
- this.checkeds.forEach(function (item) {
4004
- if (item.creditCode && item.creditCode !== 'undefined') {
4005
- creditCodes.push(item.creditCode);
4006
- } else {
4007
- var data = JSON.parse(item.data.objdata);
4008
- if (data.creditCode && data.creditCode !== 'undefined') {
4009
- creditCodes.push(data.creditCode);
4010
- }
4011
- }
4012
- });
4013
- return { creditCode: creditCodes.join(',') };
4014
- } else {
4015
- return { creditCode: this.checkeds.creditCode };
4016
- }
4017
- }
4018
- return null;
4019
- } else {
4020
- if (this.checkeds) {
4021
- var params = {};
4022
- if (Array.isArray(this.checkeds)) {
4023
- if (this.checkesAsParams && Object(types["d" /* isObject */])(this.checkesAsParams)) {
4024
- (function () {
4025
- var checkesAsParams = _this2.tabs && _this2.tabs.length ? _this2.checkesAsParams[_this2.defaultActive] || _this2.checkesAsParams : _this2.checkesAsParams;
4026
-
4027
- var _loop = function _loop(i) {
4028
- params[i] = _this2.checkeds.map(function (item) {
4029
- if (Object.prototype.hasOwnProperty.call(item, checkesAsParams[i])) {
4030
- return item[checkesAsParams[i]];
4031
- } else {
4032
- var data = JSON.parse(item.data.objdata);
4033
- return data[checkesAsParams[i]];
4034
- }
4035
- }).join(',');
4036
- };
4037
-
4038
- for (var i in checkesAsParams) {
4039
- _loop(i);
4040
- }
4041
- })();
4042
- } else {
4043
- params.id = this.checkeds.map(function (item) {
4044
- return item.id;
4045
- }).join(',');
4046
- }
4047
- } else {
4048
- if (this.checkesAsParams && Object(types["d" /* isObject */])(this.checkesAsParams)) {
4049
- for (var i in this.checkesAsParams) {
4050
- params[i] = this.checkeds[this.checkesAsParams[i]];
4051
- }
4052
- } else {
4053
- params.id = this.checkeds.id;
4054
- }
4055
- }
4056
- return params;
4057
- }
4058
- return null;
4059
- }
4060
- },
4061
-
4062
- /**
4063
- * 获取属性
4064
- * @param {Object|boolean} res - 属性配置
4065
- * @returns {Object} 属性对象
4066
- */
4067
- getProps: function getProps(res) {
4068
- // 返回空对象时使用缓存,避免每次创建新对象
4069
- if (typeof res === 'boolean') {
4070
- return {
4071
- types: ['enterprise'],
4072
- button: {}
4073
- };
4074
- }
4075
- return res;
4076
- },
4077
-
4078
- /**
4079
- * 处理选项卡切换
4080
- */
4081
- handleSelect: function handleSelect() {
4082
- this.$emit('tab-click', this.tabs[parseInt(this.defaultActive, 10)]);
4083
- },
4084
-
4085
- /**
4086
- * 处理节点选中状态变化
4087
- * @param {Object} data - 节点数据
4088
- * @param {Object} node - 节点对象
4089
- * @param {Object} item - 选项卡配置
4090
- */
4091
- handleCheckChange: Object(external_throttle_debounce_["debounce"])(100, function () {
4092
- var treeInstance = this.getRef('tree');
4093
- var checkeds = treeInstance.getCheckedNodes();
4094
- if (this.checkedAsSearch) {
4095
- this.checkeds = checkeds;
4096
- }
4097
- this.$emit.apply(this, ['check-change', checkeds].concat(Array.prototype.slice.call(arguments), [this]));
4098
- }),
4099
- /**
4100
- * 处理企业范围选择确认
4101
- * @param {Array} res - 选择结果
4102
- * @param {number} index - 选项卡索引
4103
- */
4104
- handleConfirm: function handleConfirm(res, index) {
4105
- if (index !== undefined) {
4106
- this.filtes[index] = res;
4107
- } else {
4108
- this.filtes = res;
4109
- }
4110
- this.checkeds = JSON.parse(JSON.stringify(res));
4111
- this.$emit('filter', this.checkeds);
4112
- },
4113
-
4114
- /**
4115
- * 获取树配置
4116
- * @param {Object} tree - 树配置
4117
- * @param {number} index - 选项卡索引
4118
- * @returns {Object} 树配置对象
4119
- */
4120
- getTreeConfig: function getTreeConfig() {
4121
- var tree = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
4122
- var index = arguments[1];
4123
-
4124
- // 确保缓存对象存在
4125
- if (!this._treeConfigCache) {
4126
- this._treeConfigCache = new Map();
4127
- }
4128
- // 缓存树配置,避免重复计算
4129
- var cacheKey = JSON.stringify(tree);
4130
- if (!this._treeConfigCache.has(cacheKey)) {
4131
- var config = void 0;
4132
- if (!tree.url || tree.url === api["K" /* getOrgMainTree */]) {
4133
- config = Object(util["p" /* extend */])(true, {
4134
- title: index === undefined ? '成员树' : undefined,
4135
- url: api["K" /* getOrgMainTree */],
4136
- checkOnClickNode: true,
4137
- props: {
4138
- label: 'name',
4139
- children: 'children'
4140
- },
4141
- loadKey: 'id,isentity,layerlevel',
4142
- parseData: function parseData(res, node) {
4143
- if (node) {
4144
- if (Array.isArray(res)) {
4145
- var data = node.data;
4146
-
4147
- var result = res[0];
4148
- if (data.id === result.id) {
4149
- return result.children;
4150
- }
4151
- } else if (node.data.id === res.id) {
4152
- return res.children;
4153
- }
4154
- }
4155
- return res;
4156
- },
4157
- highlightCurrent: true,
4158
- param: {
4159
- showarea: 0,
4160
- orgType: 'org',
4161
- nocheck: true,
4162
- id: 'all',
4163
- isroot: true,
4164
- synchro: true,
4165
- pvd: true,
4166
- levels: 1,
4167
- showlevelsub: true
4168
- }
4169
- }, tree);
4170
- } else {
4171
- config = _extends({
4172
- highlightCurrent: true,
4173
- title: index === undefined ? '成员树' : undefined,
4174
- checkOnClickNode: true,
4175
- props: {
4176
- label: 'name',
4177
- children: 'children'
4178
- }
4179
- }, tree);
4180
- }
4181
- this._treeConfigCache.set(cacheKey, config);
4182
- }
4183
- return this._treeConfigCache.get(cacheKey);
4184
- },
4185
-
4186
- /**
4187
- * 获取组件引用
4188
- * @param {string} type - 引用类型
4189
- * @returns {Object} 组件引用
4190
- */
4191
- getRef: function getRef(type) {
4192
- // 缓存树引用,避免重复计算
4193
- switch (type) {
4194
- case 'tree':
4195
- if (!this._treeRefCache || this.defaultActive !== this._treeRefCache.defaultActive) {
4196
- var ref = this.tabs && this.tabs.length ? 'groupTree' + this.defaultActive : 'groupTree';
4197
- this._treeRefCache = {
4198
- defaultActive: this.defaultActive,
4199
- ref: this.$refs[ref]
4200
- };
4201
- }
4202
- return this._treeRefCache.ref;
4203
- case 'table':
4204
- return this.$refs.groupTable;
4205
- case 'form':
4206
- return this.$refs.groupForm;
4207
- case 'iframe':
4208
- return this.$refs.groupIframe;
4209
- }
4210
- },
4211
-
4212
- /**
4213
- * 获取iframe组件的属性对象
4214
- * 缓存iframe组件的属性对象,避免每次创建新对象
4215
- * 当checkeds变化时,更新iframe的src属性,将选择的节点作为参数
4216
- * @returns {Object} iframe组件的属性对象
4217
- */
4218
- getIframeProps: function getIframeProps() {
4219
- // 缓存iframe组件的属性对象,避免每次创建新对象
4220
- var currentParams = this.setParams();
4221
- if (!this._iframePropsCache || this.iframe !== this._iframePropsCache.iframe || JSON.stringify(currentParams) !== JSON.stringify(this._iframePropsCache.params) || JSON.stringify(this.checkeds) !== JSON.stringify(this._iframePropsCache.checkeds)) {
4222
- // 处理iframe的src属性,添加选择节点的参数
4223
- var iframeProps = _extends({}, this.iframe);
4224
- if (iframeProps.src && currentParams) {
4225
- // 使用urlJoinParams函数处理src和参数
4226
- iframeProps.src = Object(util["W" /* urlJoinParams */])({
4227
- url: iframeProps.src,
4228
- params: currentParams
4229
- });
4230
- }
4231
- this._iframePropsCache = {
4232
- iframe: this.iframe,
4233
- params: currentParams,
4234
- checkeds: this.checkeds,
4235
- result: iframeProps
4236
- };
4237
- }
4238
- return this._iframePropsCache.result;
4239
- },
4240
-
4241
- /**
4242
- * 数据表刷新
4243
- * @param {Object} obj - 刷新参数
4244
- * @param {boolean} first - 是否首次加载
4245
- * @param {boolean|Object} reloadTree - 是否刷新树
4246
- */
4247
- reload: function reload(obj, first, reloadTree) {
4248
- if (obj) {
4249
- var tableInstance = this.getRef('table');
4250
- tableInstance && tableInstance.reload(obj, first);
4251
- }
4252
- if (reloadTree) {
4253
- var treeInstance = this.getRef('tree');
4254
- treeInstance && treeInstance.reload(Object(types["d" /* isObject */])(reloadTree) ? reloadTree : {});
4255
- }
4256
- }
4257
- }
4258
- });
4259
- // CONCATENATED MODULE: ./packages/tree-group/src/tree-group.vue?vue&type=script&lang=js&
4260
- /* harmony default export */ var src_tree_groupvue_type_script_lang_js_ = (tree_groupvue_type_script_lang_js_);
4261
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
4262
- var componentNormalizer = __webpack_require__(5);
4263
-
4264
- // CONCATENATED MODULE: ./packages/tree-group/src/tree-group.vue
4265
-
4266
-
4267
-
4268
-
4269
-
4270
- /* normalize component */
4271
-
4272
- var component = Object(componentNormalizer["a" /* default */])(
4273
- src_tree_groupvue_type_script_lang_js_,
4274
- render,
4275
- staticRenderFns,
4276
- false,
4277
- null,
4278
- null,
4279
- null
4280
-
4281
- )
4282
-
4283
- /* harmony default export */ var tree_group = (component.exports);
4284
- // CONCATENATED MODULE: ./packages/tree-group/index.js
4285
-
4286
-
4287
- tree_group.install = function (Vue) {
4288
- return Vue.component(tree_group.name, tree_group);
4289
- };
4290
-
4291
- /* harmony default export */ var packages_tree_group = __webpack_exports__["default"] = (tree_group);
4292
-
4293
- /***/ }),
4294
-
4295
- /***/ 3:
4296
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
4297
-
4298
- "use strict";
4299
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
4300
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
4301
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
4302
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
4303
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
4304
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
4305
- /**
4306
- * 检查一个值是否为字符串类型
4307
- * @param {*} obj 要检查的值
4308
- * @returns {boolean} 如果值为字符串则返回true,否则返回false
4309
- */
4310
- function isString(obj) {
4311
- return Object.prototype.toString.call(obj) === '[object String]';
4312
- }
4313
-
4314
- /**
4315
- * 检查一个值是否为对象类型
4316
- * @param {*} obj 要检查的值
4317
- * @returns {boolean} 如果值为对象则返回true,否则返回false
4318
- */
4319
- function isObject(obj) {
4320
- return Object.prototype.toString.call(obj) === '[object Object]';
4321
- }
4322
-
4323
- /**
4324
- * 检查一个节点是否为HTML元素
4325
- * @param {Node} node 要检查的节点
4326
- * @returns {boolean} 如果节点为HTML元素则返回true,否则返回false
4327
- */
4328
- function isHtmlElement(node) {
4329
- return node && node.nodeType === Node.ELEMENT_NODE;
4330
- }
4331
-
4332
- /**
4333
- * 检查一个值是否为函数类型
4334
- * @param {*} functionToCheck 要检查的值
4335
- * @returns {boolean} 如果值为函数则返回true,否则返回false
4336
- */
4337
- function isFunction(functionToCheck) {
4338
- var getType = {};
4339
- return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
4340
- }
4341
-
4342
- /**
4343
- * 检查一个值是否为undefined
4344
- * @param {*} val 要检查的值
4345
- * @returns {boolean} 如果值为undefined则返回true,否则返回false
4346
- */
4347
- function isUndefined(val) {
4348
- return val === void 0;
4349
- }
4350
-
4351
- /**
4352
- * 检查一个值是否已定义(不是undefined或null)
4353
- * @param {*} val 要检查的值
4354
- * @returns {boolean} 如果值已定义则返回true,否则返回false
4355
- */
4356
- function isDefined(val) {
4357
- return val !== undefined && val !== null;
4358
- }
4359
-
4360
- /***/ }),
4361
-
4362
- /***/ 5:
4363
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
4364
-
4365
- "use strict";
4366
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
4367
- /* globals __VUE_SSR_CONTEXT__ */
4368
-
4369
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
4370
- // This module is a runtime utility for cleaner component module output and will
4371
- // be included in the final webpack user bundle.
4372
-
4373
- function normalizeComponent(
4374
- scriptExports,
4375
- render,
4376
- staticRenderFns,
4377
- functionalTemplate,
4378
- injectStyles,
4379
- scopeId,
4380
- moduleIdentifier /* server only */,
4381
- shadowMode /* vue-cli only */
4382
- ) {
4383
- // Vue.extend constructor export interop
4384
- var options =
4385
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
4386
-
4387
- // render functions
4388
- if (render) {
4389
- options.render = render
4390
- options.staticRenderFns = staticRenderFns
4391
- options._compiled = true
4392
- }
4393
-
4394
- // functional template
4395
- if (functionalTemplate) {
4396
- options.functional = true
4397
- }
4398
-
4399
- // scopedId
4400
- if (scopeId) {
4401
- options._scopeId = 'data-v-' + scopeId
4402
- }
4403
-
4404
- var hook
4405
- if (moduleIdentifier) {
4406
- // server build
4407
- hook = function (context) {
4408
- // 2.3 injection
4409
- context =
4410
- context || // cached call
4411
- (this.$vnode && this.$vnode.ssrContext) || // stateful
4412
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
4413
- // 2.2 with runInNewContext: true
4414
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
4415
- context = __VUE_SSR_CONTEXT__
4416
- }
4417
- // inject component styles
4418
- if (injectStyles) {
4419
- injectStyles.call(this, context)
4420
- }
4421
- // register component module identifier for async chunk inferrence
4422
- if (context && context._registeredComponents) {
4423
- context._registeredComponents.add(moduleIdentifier)
4424
- }
4425
- }
4426
- // used by ssr in case component is cached and beforeCreate
4427
- // never gets called
4428
- options._ssrRegister = hook
4429
- } else if (injectStyles) {
4430
- hook = shadowMode
4431
- ? function () {
4432
- injectStyles.call(
4433
- this,
4434
- (options.functional ? this.parent : this).$root.$options.shadowRoot
4435
- )
4436
- }
4437
- : injectStyles
4438
- }
4439
-
4440
- if (hook) {
4441
- if (options.functional) {
4442
- // for template-only hot-reload because in that case the render fn doesn't
4443
- // go through the normalizer
4444
- options._injectStyles = hook
4445
- // register for functional component in vue file
4446
- var originalRender = options.render
4447
- options.render = function renderWithStyleInjection(h, context) {
4448
- hook.call(context)
4449
- return originalRender(h, context)
4450
- }
4451
- } else {
4452
- // inject component registration as beforeCreate hook
4453
- var existing = options.beforeCreate
4454
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
4455
- }
4456
- }
4457
-
4458
- return {
4459
- exports: scriptExports,
4460
- options: options
4461
- }
4462
- }
4463
-
4464
-
4465
- /***/ }),
4466
-
4467
- /***/ 6:
4468
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
4469
-
4470
3013
  "use strict";
4471
3014
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return fecha; });
4472
3015
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return getSettings; });
@@ -5333,124 +3876,1679 @@ const getCurrentDate = function (format = 'YYYY-MM-DD') {
5333
3876
  };
5334
3877
 
5335
3878
  /**
5336
- * 获取当前日期时间
5337
- * @date 2022年5月7日
5338
- * @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
5339
- * @returns {string} 当前日期时间的格式化字符串
5340
- */
5341
- const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
5342
- return formatDate(new Date(), format);
5343
- };
5344
-
3879
+ * 获取当前日期时间
3880
+ * @date 2022年5月7日
3881
+ * @param {string} format - 日期时间格式,默认为'YYYY-MM-DD HH:mm:ss'
3882
+ * @returns {string} 当前日期时间的格式化字符串
3883
+ */
3884
+ const getCurrentDateTime = function (format = 'YYYY-MM-DD HH:mm:ss') {
3885
+ return formatDate(new Date(), format);
3886
+ };
3887
+
3888
+ /**
3889
+ * 获取小时
3890
+ * @date 2022年5月7日
3891
+ * @param {Date|string} [date] - 日期对象或日期字符串
3892
+ * @returns {number} 小时数(0-23)
3893
+ */
3894
+ const getHour = function (date) {
3895
+ if (!date) {
3896
+ return new Date().getHours();
3897
+ }
3898
+ if (typeof date === 'string') {
3899
+ date = new Date(date);
3900
+ }
3901
+ return date.getHours();
3902
+ };
3903
+
3904
+ /**
3905
+ * 获取分钟
3906
+ * @date 2022年5月7日
3907
+ * @param {Date|string} [date] - 日期对象或日期字符串
3908
+ * @returns {number} 分钟数(0-59)
3909
+ */
3910
+ const getMinute = function (date) {
3911
+ if (!date) {
3912
+ return new Date().getMinutes();
3913
+ }
3914
+ if (typeof date === 'string') {
3915
+ date = new Date(date);
3916
+ }
3917
+ return date.getMinutes();
3918
+ };
3919
+
3920
+ /**
3921
+ * 获取月份
3922
+ * @date 2022年5月7日
3923
+ * @param {Date|string} [date] - 日期对象或日期字符串
3924
+ * @returns {number} 月份数(1-12)
3925
+ */
3926
+ const getMonth = function (date) {
3927
+ if (!date) {
3928
+ return new Date().getMonth() + 1;
3929
+ }
3930
+ if (typeof date === 'string') {
3931
+ date = new Date(date);
3932
+ }
3933
+ return date.getMonth() + 1;
3934
+ };
3935
+
3936
+ /**
3937
+ * 获取秒
3938
+ * @date 2022年5月7日
3939
+ * @param {Date|string} [date] - 日期对象或日期字符串
3940
+ * @returns {number} 秒数(0-59)
3941
+ */
3942
+ const getSecond = function (date) {
3943
+ if (!date) {
3944
+ return new Date().getSeconds();
3945
+ }
3946
+ if (typeof date === 'string') {
3947
+ date = new Date(date);
3948
+ }
3949
+ return date.getSeconds();
3950
+ };
3951
+
3952
+ /**
3953
+ * 获取星期几
3954
+ * @date 2022年5月7日
3955
+ * @param {Date|string} [date] - 日期对象或日期字符串
3956
+ * @returns {number} 星期几(0-6,0表示星期日)
3957
+ */
3958
+ const getWeekday = function (date) {
3959
+ if (!date) {
3960
+ return new Date().getDay();
3961
+ }
3962
+ if (typeof date === 'string') {
3963
+ date = new Date(date);
3964
+ }
3965
+ return date.getDay();
3966
+ };
3967
+
3968
+
3969
+ /**
3970
+ * @desc 获取上午/下午/晚上
3971
+ * @author huangbo
3972
+ * @date 2022年5月7日
3973
+ * @param {String} [time] - 时间
3974
+ **/
3975
+ const timeCycle = function (time) {
3976
+ let hour = 0;
3977
+ if (!time) {
3978
+ hour = new Date().getHours();
3979
+ } else if (typeof time === 'string') {
3980
+ // 从时间字符串中提取小时
3981
+ const match = time.match(/^(\d{1,2})/);
3982
+ if (match) {
3983
+ hour = parseInt(match[1], 10);
3984
+ }
3985
+ } else if (typeof time === 'number') {
3986
+ hour = time;
3987
+ }
3988
+ // 判断时间段
3989
+ if (hour >= 5 && hour < 12) {
3990
+ return '上午';
3991
+ } else if (hour >= 12 && hour < 18) {
3992
+ return '下午';
3993
+ } else {
3994
+ return '晚上';
3995
+ }
3996
+ };
3997
+
3998
+ /***/ }),
3999
+
4000
+ /***/ 13:
4001
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4002
+
4003
+ "use strict";
4004
+ /* unused harmony export getHue */
4005
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getColor; });
4006
+ /* unused harmony export getLightness */
4007
+ /* unused harmony export getSaturation */
4008
+ /* unused harmony export rgbToHsv */
4009
+ /* unused harmony export hsvTorgb */
4010
+ /* unused harmony export mixColor */
4011
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getRgb; });
4012
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
4013
+
4014
+ var $hueStep = 2;
4015
+ var $saturationStep1 = 0.16;
4016
+ var $saturationStep2 = 0.05;
4017
+ var $brightnessStep1 = 0.05;
4018
+ var $brightnessStep2 = 0.15;
4019
+ var $lightColorCount = 5;
4020
+ var $darkColorCount = 4;
4021
+ /**
4022
+ * getHue
4023
+ * @desc:转换色相
4024
+ * @author huangbo
4025
+ * @date 2022年5月7日
4026
+ **/
4027
+ var getHue = function getHue($h, $i, $isLight) {
4028
+ var $hue = void 0;
4029
+ if ($h >= 60 && $h <= 240) {
4030
+ $hue = $isLight ? $h - $hueStep * $i : $h + $hueStep * $i;
4031
+ } else {
4032
+ $hue = $isLight ? $h + $hueStep * $i : $h - $hueStep * $i;
4033
+ }
4034
+ $hue = ($hue + 360) % 360;
4035
+ return Math.round($hue);
4036
+ };
4037
+
4038
+ /**
4039
+ * getColor
4040
+ * @desc:根据颜色和对应的色板位置,计算出对应的色板颜色
4041
+ * @author huangbo
4042
+ * @date 2022年5月7日
4043
+ **/
4044
+ var getColor = function getColor($color, $n) {
4045
+ var $isLight = $n < 7;
4046
+ var $hsv = rgbToHsv($color);
4047
+ // 这里将i转换成以主色为中心,两侧的i值逐渐增大
4048
+ var $i = $isLight ? $lightColorCount + 1 - $n : $n - $lightColorCount - 1;
4049
+ var color = hsvTorgb(getHue($hsv[0], $i, $isLight), getSaturation($hsv[1], $i, $isLight), getLightness($hsv[2], $i, $isLight));
4050
+ return color;
4051
+ };
4052
+
4053
+ /**
4054
+ * getLightness
4055
+ * @desc:转换明度
4056
+ * @author huangbo
4057
+ * @date 2022年5月7日
4058
+ * @return {string,array} 元素类名或者id
4059
+ **/
4060
+ var getLightness = function getLightness($v, $i, $isLight) {
4061
+ var $value = $isLight ? $v + $brightnessStep1 * $i : $v - $brightnessStep2 * $i;
4062
+ $value = $value < 1 ? $value : 1;
4063
+ return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($value, 2);
4064
+ };
4065
+
4066
+ /**
4067
+ * getSaturation
4068
+ * @desc:转换饱和度
4069
+ * @author huangbo
4070
+ * @date 2022年5月7日
4071
+ **/
4072
+ var getSaturation = function getSaturation($s, $i, $isLight) {
4073
+ var $saturation = void 0;
4074
+ if ($isLight) {
4075
+ $saturation = $s - $saturationStep1 * $i;
4076
+ } else if ($i === $darkColorCount) {
4077
+ $saturation = $s + $saturationStep1;
4078
+ } else {
4079
+ $saturation = $s + $saturationStep2 * $i;
4080
+ }
4081
+ $saturation = $saturation < 1 ? $saturation : 1;
4082
+
4083
+ if ($isLight && $i === $lightColorCount && $saturation > 0.1) {
4084
+ $saturation = 0.1;
4085
+ }
4086
+ $saturation = $saturation > 0.06 ? $saturation : 0.06;
4087
+ return Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* toFixed */ "U"])($saturation, 2);
4088
+ };
4089
+
4090
+ /**
4091
+ * rgbToHsv
4092
+ * @desc:rgb转化成hsv
4093
+ * @author huangbo
4094
+ * @date 2022年5月7日
4095
+ * @param {string} [$color] - 颜色值
4096
+ **/
4097
+ var rgbToHsv = function rgbToHsv($color) {
4098
+ var rgb = getRgb($color);
4099
+ var $red = rgb[0];
4100
+ var $green = rgb[1];
4101
+ var $blue = rgb[2];
4102
+ var $max = Math.max($red, $green, $blue);
4103
+ var $min = Math.min($red, $green, $blue);
4104
+ var $diff = $max - $min;
4105
+ var $h = 0;
4106
+ if ($max === $min) {
4107
+ $h = 0;
4108
+ } else if ($max === $red) {
4109
+ $h = 60 * ($green - $blue) / $diff + ($green > $blue - 1 ? 0 : 360);
4110
+ } else if ($max === $green) {
4111
+ $h = 60 * ($blue - $red) / $diff + 120;
4112
+ } else if ($max === $blue) {
4113
+ $h = 60 * ($red - $green) / $diff + 240;
4114
+ }
4115
+ var $s = $max === 0 ? 0 : $diff / $max;
4116
+ var $v = $max / 255;
4117
+ return [$h, $s, $v];
4118
+ };
4119
+
4120
+ /**
4121
+ * hsvTorgb
4122
+ * @desc:hsv转化成rgb
4123
+ * @author huangbo
4124
+ * @date 2022年5月7日
4125
+ * @param {string} [$color] - 颜色值
4126
+ **/
4127
+ var hsvTorgb = function hsvTorgb($h, $s, $v) {
4128
+ var $th = Math.floor($h / 60);
4129
+ var $t1 = $h / 60 - $th;
4130
+ var $t2 = $v * (1 - $s);
4131
+ var $t3 = $v * (1 - $t1 * $s);
4132
+ var $t4 = $v * (1 - (1 - $t1) * $s);
4133
+ var $r = [$v, $t3, $t2, $t2, $t4, $v][$th % 6];
4134
+ var $g = [$t4, $v, $v, $t3, $t2, $t2][$th % 6];
4135
+ var $b = [$t2, $t2, $t4, $v, $v, $t3][$th % 6];
4136
+ // return `rgb(${Math.round($r * 255)}, ${Math.round($g * 255)}, ${Math.round($b * 255)})`;
4137
+ var red = Math.round($r * 255);
4138
+ var green = Math.round($g * 255);
4139
+ var blue = Math.round($b * 255);
4140
+ red = red.toString(16);
4141
+ green = green.toString(16);
4142
+ blue = blue.toString(16);
4143
+ red = red.length === 1 ? '0' + red : red;
4144
+ green = green.length === 1 ? '0' + green : green;
4145
+ blue = blue.length === 1 ? '0' + blue : blue;
4146
+ return '#' + red + green + blue;
4147
+ };
4148
+
4149
+ /**
4150
+ * mixColor
4151
+ * @desc:生成混合色
4152
+ * @author huangbo
4153
+ * @date 2022年5月7日
4154
+ * @param {string} [$color1] - 颜色值
4155
+ * @param {string} [$color2] - 颜色值
4156
+ * @param {string} [$n] - 百分比 0~1
4157
+ **/
4158
+ var mixColor = function mixColor($color1, $color2, $n) {
4159
+ var rgb1 = getRgb($color1);
4160
+ var rgb2 = getRgb($color2);
4161
+ var r = rgb1[0] * $n + rgb2[0] * (1 - $n);
4162
+ var g = rgb1[1] * $n + rgb2[1] * (1 - $n);
4163
+ var b = rgb1[2] * $n + rgb2[2] * (1 - $n);
4164
+ return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
4165
+ };
4166
+
4167
+ /**
4168
+ * getRgb
4169
+ * @desc:获取颜色值的rgb值
4170
+ * @author huangbo
4171
+ * @date 2022年5月7日
4172
+ * @param {string} [$color] - 颜色值
4173
+ **/
4174
+ var getRgb = function getRgb($color) {
4175
+ var rgb = [];
4176
+ // 16进制颜色值的正则
4177
+ var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
4178
+ // 把颜色值变成小写
4179
+ $color = $color.toLowerCase();
4180
+ if (reg.test($color)) {
4181
+ // 如果只有三位的值,需变成六位,如:#fff => #ffffff
4182
+ if ($color.length === 4) {
4183
+ var colorNew = '#';
4184
+ for (var i = 1; i < 4; i++) {
4185
+ colorNew += $color.slice(i, i + 1).concat($color.slice(i, i + 1));
4186
+ }
4187
+ $color = colorNew;
4188
+ }
4189
+ // 处理六位的颜色值,转为RGB
4190
+ for (var _i = 1; _i < 7; _i += 2) {
4191
+ rgb.push(parseInt('0x' + $color.slice(_i, _i + 2), 16));
4192
+ }
4193
+ } else {
4194
+ rgb = $color.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
4195
+ }
4196
+ return rgb;
4197
+ };
4198
+
4199
+ /***/ }),
4200
+
4201
+ /***/ 14:
4202
+ /***/ (function(module, exports) {
4203
+
4204
+ module.exports = require("throttle-debounce");
4205
+
4206
+ /***/ }),
4207
+
4208
+ /***/ 19:
4209
+ /***/ (function(module, exports) {
4210
+
4211
+ module.exports = require("eoss/lib/loading");
4212
+
4213
+ /***/ }),
4214
+
4215
+ /***/ 2:
4216
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4217
+
4218
+ "use strict";
4219
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return setStorage; });
4220
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getStorage; });
4221
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return removeStorage; });
4222
+ /* unused harmony export setCookie */
4223
+ /* unused harmony export getCookie */
4224
+ 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; };
4225
+
4226
+ /**
4227
+ * setStorage
4228
+ * @desc:设置本地储存数据
4229
+ * @author huangbo
4230
+ * @date 2022年5月7日
4231
+ * @param {String|Object} [key] - 数据的名称或包含type、key、value的对象
4232
+ * @param {String} [value] - 数据的值(当第一个参数为字符串时使用)
4233
+ **/
4234
+ var setStorage = function setStorage(key, value) {
4235
+ // 解析参数,支持两种调用方式:setStorage(key, value) 和 setStorage({type, key, value})
4236
+ var type = void 0,
4237
+ finalKey = void 0,
4238
+ finalValue = void 0;
4239
+
4240
+ if ((typeof key === 'undefined' ? 'undefined' : _typeof(key)) === 'object' && key !== null) {
4241
+ // 对象调用方式:setStorage({type, key, value})
4242
+ type = key.type;
4243
+ finalKey = key.key;
4244
+ finalValue = key.value;
4245
+ } else {
4246
+ // 字符串调用方式:setStorage(key, value)
4247
+ type = getStorage('storageType');
4248
+ finalKey = key;
4249
+ finalValue = value;
4250
+ }
4251
+
4252
+ // 使用默认存储类型如果未指定
4253
+ type = type || getStorage('storageType');
4254
+
4255
+ // 获取存储对象
4256
+ var storage = type === 'localStorage' ? localStorage : sessionStorage;
4257
+
4258
+ // 处理不同类型的key
4259
+ if (typeof finalKey === 'string') {
4260
+ // 单个字符串key
4261
+ var storedValue = (typeof finalValue === 'undefined' ? 'undefined' : _typeof(finalValue)) === 'object' ? JSON.stringify(finalValue) : finalValue;
4262
+ storage.setItem(finalKey, storedValue);
4263
+ if (finalKey === 'token') {
4264
+ setCookie('token', storedValue);
4265
+ }
4266
+ } else if (Array.isArray(finalKey)) {
4267
+ // 数组key,为多个key设置同一个value
4268
+ var _storedValue = (typeof finalValue === 'undefined' ? 'undefined' : _typeof(finalValue)) === 'object' ? JSON.stringify(finalValue) : finalValue;
4269
+ for (var i = 0; i < finalKey.length; i++) {
4270
+ storage.setItem(finalKey[i], _storedValue);
4271
+ if (finalKey[i] === 'token') {
4272
+ setCookie('token', _storedValue);
4273
+ }
4274
+ }
4275
+ } else if ((typeof finalKey === 'undefined' ? 'undefined' : _typeof(finalKey)) === 'object' && finalKey !== null) {
4276
+ // 对象key,对象的属性名称作为key,属性值作为value
4277
+ for (var k in finalKey) {
4278
+ if (Object.prototype.hasOwnProperty.call(finalKey, k)) {
4279
+ var _storedValue2 = _typeof(finalKey[k]) === 'object' ? JSON.stringify(finalKey[k]) : finalKey[k];
4280
+ storage.setItem(k, _storedValue2);
4281
+ if (k === 'token') {
4282
+ setCookie('token', _storedValue2);
4283
+ }
4284
+ }
4285
+ }
4286
+ }
4287
+ };
4288
+
4289
+ /**
4290
+ * getStorage
4291
+ * @desc:获取本地储存数据
4292
+ * @author huangbo
4293
+ * @date 2022年5月7日
4294
+ * @param {String} [key] - 获取的名称
4295
+ **/
4296
+ var getStorage = function getStorage(key) {
4297
+ if (key) {
4298
+ var res = sessionStorage.getItem(key) || localStorage.getItem(key);
4299
+ if (!res && key === 'token') {
4300
+ res = getCookie('token');
4301
+ }
4302
+ if (key === 'host' && !res) {
4303
+ res = '';
4304
+ }
4305
+ return res;
4306
+ }
4307
+ var defaults = {};
4308
+ var token = sessionStorage.getItem('token') || localStorage.getItem('token') || getCookie('token');
4309
+ var ssId = sessionStorage.getItem('ssId') || localStorage.getItem('ssId') || getCookie('ssId');
4310
+
4311
+ var deviceUnique = sessionStorage.getItem('deviceUnique') || localStorage.getItem('deviceUnique') || getCookie('deviceUnique');
4312
+ if (token) {
4313
+ defaults.Authorization = token;
4314
+ }
4315
+ if (ssId) {
4316
+ defaults.ssId = ssId;
4317
+ }
4318
+ if (deviceUnique) {
4319
+ defaults.deviceUnique = deviceUnique;
4320
+ }
4321
+ return defaults;
4322
+ };
4323
+
4324
+ /**
4325
+ * removeStorage
4326
+ * @desc:删除本地储存数据
4327
+ * @author huangbo
4328
+ * @date 2022年5月7日
4329
+ * @param {String, Array} [key] - 获取的名称
4330
+ **/
4331
+ var removeStorage = function removeStorage(key) {
4332
+ if (Array.isArray(key)) {
4333
+ for (var i = 0; i < key.length; i++) {
4334
+ sessionStorage.removeItem(key[i]);
4335
+ localStorage.removeItem(key[i]);
4336
+ if (key[i] === 'token') {
4337
+ removeCookie('token');
4338
+ }
4339
+ }
4340
+ } else if (key) {
4341
+ sessionStorage.removeItem(key);
4342
+ localStorage.removeItem(key);
4343
+ if (key === 'token') {
4344
+ removeCookie('token');
4345
+ }
4346
+ } else {
4347
+ sessionStorage.clear();
4348
+ localStorage.clear();
4349
+ removeCookie('token');
4350
+ }
4351
+ };
4352
+
4353
+ /**
4354
+ * setCookie
4355
+ * @desc 设置cookie
4356
+ * @author huangbo
4357
+ * @param {string} [name] cookie名称
4358
+ * @param {string} [value] cookie值
4359
+ * @param {boolean} [isSession] 是否是会话cookie
4360
+ **/
4361
+ var setCookie = function setCookie(name, value) {
4362
+ var isSession = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
4363
+ var time = arguments[3];
4364
+
4365
+ try {
4366
+ var cookieParts = [encodeURIComponent(name) + '=' + encodeURIComponent(value), 'path=/' // 仅保留path设置,确保全站访问
4367
+ ];
4368
+ // 会话/持久Cookie设置
4369
+ if (!isSession) {
4370
+ if (/MSIE|Trident/.test(navigator.userAgent)) {
4371
+ // IE使用expires
4372
+ var date = new Date();
4373
+ date.setTime(date.getTime() + (time || 7 * 24 * 60 * 60 * 1000));
4374
+ cookieParts.push('expires=' + date.toUTCString());
4375
+ } else {
4376
+ // 其他浏览器使用max-age
4377
+ cookieParts.push('max-age=' + (time || 7 * 24 * 60 * 60));
4378
+ }
4379
+ }
4380
+ // 内核兼容处理
4381
+ if (/MSIE|Trident/.test(navigator.userAgent)) {
4382
+ // IE特殊处理:添加P3P协议头
4383
+ cookieParts.push('P3P=CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"');
4384
+ } else {
4385
+ // 现代浏览器设置
4386
+ cookieParts.push('samesite=lax');
4387
+ if (window.location.protocol === 'https:') {
4388
+ cookieParts.push('secure');
4389
+ }
4390
+ }
4391
+
4392
+ // 设置Cookie
4393
+ document.cookie = cookieParts.join('; ');
4394
+ return true;
4395
+ } catch (e) {
4396
+ console.error('Cookie设置失败:', e);
4397
+ return false;
4398
+ }
4399
+ };
4400
+
4401
+ /**
4402
+ * getCookie
4403
+ * @desc 获取cookie中指定名称的值
4404
+ * @author huangbo
4405
+ * @param {string} [name] cookie名称
4406
+ **/
4407
+ var getCookie = function getCookie(name) {
4408
+ var cookies = document.cookie.split(';');
4409
+ for (var _iterator = cookies, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
4410
+ var _ref;
4411
+
4412
+ if (_isArray) {
4413
+ if (_i >= _iterator.length) break;
4414
+ _ref = _iterator[_i++];
4415
+ } else {
4416
+ _i = _iterator.next();
4417
+ if (_i.done) break;
4418
+ _ref = _i.value;
4419
+ }
4420
+
4421
+ var cookie = _ref;
4422
+
4423
+ var _cookie$trim$split = cookie.trim().split('='),
4424
+ cookieName = _cookie$trim$split[0],
4425
+ cookieValue = _cookie$trim$split[1];
4426
+
4427
+ if (decodeURIComponent(cookieName) === name) {
4428
+ return decodeURIComponent(cookieValue);
4429
+ }
4430
+ }
4431
+ return null;
4432
+ };
4433
+
4434
+ /**
4435
+ * removeCookie
4436
+ * @desc:删除cookie
4437
+ * @author huangbo
4438
+ * @date 2022年5月7日
4439
+ * @param {String, Array} [key] - 获取的名称
4440
+ **/
4441
+ var removeCookie = function removeCookie(key) {
4442
+ if (Array.isArray(key)) {
4443
+ for (var i = 0; i < key.length; i++) {
4444
+ document.cookie = encodeURIComponent(key[i]) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
4445
+ }
4446
+ } else {
4447
+ document.cookie = encodeURIComponent(key) + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
4448
+ }
4449
+ };
4450
+
4451
+ /***/ }),
4452
+
4453
+ /***/ 20:
4454
+ /***/ (function(module, exports) {
4455
+
4456
+ module.exports = require("lodash/get");
4457
+
4458
+ /***/ }),
4459
+
4460
+ /***/ 21:
4461
+ /***/ (function(module, exports) {
4462
+
4463
+ module.exports = require("lodash/set");
4464
+
4465
+ /***/ }),
4466
+
4467
+ /***/ 219:
4468
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4469
+
4470
+ "use strict";
4471
+ // ESM COMPAT FLAG
4472
+ __webpack_require__.r(__webpack_exports__);
4473
+
4474
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree-group/src/tree-group.vue?vue&type=template&id=4c2f26a9&
4475
+ var render = function () {
4476
+ var _vm = this
4477
+ var _h = _vm.$createElement
4478
+ var _c = _vm._self._c || _h
4479
+ return _c("div", { staticClass: "es-tree-group" }, [
4480
+ _c(
4481
+ "div",
4482
+ { staticClass: "es-tree-group-left" },
4483
+ [
4484
+ _vm.tabs.length
4485
+ ? _c(
4486
+ "es-tabs",
4487
+ {
4488
+ staticClass: "es-tabs-tree-card",
4489
+ attrs: { type: "card" },
4490
+ on: { "tab-click": _vm.handleSelect },
4491
+ model: {
4492
+ value: _vm.defaultActive,
4493
+ callback: function ($$v) {
4494
+ _vm.defaultActive = $$v
4495
+ },
4496
+ expression: "defaultActive",
4497
+ },
4498
+ },
4499
+ _vm._l(_vm.tabs, function (item, index) {
4500
+ return _c(
4501
+ "es-tab-pane",
4502
+ {
4503
+ key: item.name,
4504
+ attrs: { label: item.text, name: String(index) },
4505
+ },
4506
+ [
4507
+ _c(
4508
+ "es-tree",
4509
+ _vm._g(
4510
+ _vm._b(
4511
+ {
4512
+ ref: "groupTree" + index,
4513
+ refInFor: true,
4514
+ attrs: { height: "100%" },
4515
+ },
4516
+ "es-tree",
4517
+ _vm.getTreeConfig(item.tree, index),
4518
+ false
4519
+ ),
4520
+ _vm.getTreeEvents(item, index)
4521
+ ),
4522
+ [
4523
+ item.enterprise
4524
+ ? _c(
4525
+ "template",
4526
+ { slot: "filter" },
4527
+ [
4528
+ _c(
4529
+ "es-selector",
4530
+ _vm._b(
4531
+ {
4532
+ on: {
4533
+ confirm: function (res) {
4534
+ return _vm.handleConfirm(res, index)
4535
+ },
4536
+ },
4537
+ },
4538
+ "es-selector",
4539
+ _vm.getProps(item.enterprise),
4540
+ false
4541
+ ),
4542
+ [
4543
+ _c("template", { slot: "button" }, [
4544
+ _vm._v(
4545
+ "\n 选择单位范围" +
4546
+ _vm._s(
4547
+ _vm.filtes[index] &&
4548
+ _vm.filtes[index].length
4549
+ ? "(已选择:" +
4550
+ _vm.filtes[index].length +
4551
+ ")"
4552
+ : ""
4553
+ ) +
4554
+ "\n "
4555
+ ),
4556
+ ]),
4557
+ ],
4558
+ 2
4559
+ ),
4560
+ ],
4561
+ 1
4562
+ )
4563
+ : _vm._e(),
4564
+ ],
4565
+ 2
4566
+ ),
4567
+ ],
4568
+ 1
4569
+ )
4570
+ }),
4571
+ 1
4572
+ )
4573
+ : _c(
4574
+ "es-tree",
4575
+ _vm._g(
4576
+ _vm._b(
4577
+ { ref: "groupTree", attrs: { height: "100%" } },
4578
+ "es-tree",
4579
+ _vm.getTreeConfig(_vm.tree),
4580
+ false
4581
+ ),
4582
+ _vm.tree.events
4583
+ ? Object.assign({}, _vm.tree.events, {
4584
+ "check-change": _vm.handleCheckChange,
4585
+ })
4586
+ : {
4587
+ "check-change": _vm.handleCheckChange,
4588
+ }
4589
+ ),
4590
+ [
4591
+ _vm.enterprise
4592
+ ? _c(
4593
+ "template",
4594
+ { slot: "filter" },
4595
+ [
4596
+ _c(
4597
+ "es-selector",
4598
+ _vm._b(
4599
+ { on: { confirm: _vm.handleConfirm } },
4600
+ "es-selector",
4601
+ _vm.getProps(_vm.enterprise),
4602
+ false
4603
+ ),
4604
+ [
4605
+ _c("template", { slot: "button" }, [
4606
+ _vm._v(
4607
+ "\n 选择单位范围" +
4608
+ _vm._s(
4609
+ _vm.filtes.length
4610
+ ? "(已选择:" + _vm.filtes.length + ")"
4611
+ : ""
4612
+ ) +
4613
+ "\n "
4614
+ ),
4615
+ ]),
4616
+ ],
4617
+ 2
4618
+ ),
4619
+ ],
4620
+ 1
4621
+ )
4622
+ : _vm._e(),
4623
+ ],
4624
+ 2
4625
+ ),
4626
+ ],
4627
+ 1
4628
+ ),
4629
+ _c(
4630
+ "div",
4631
+ { staticClass: "es-tree-group-right" },
4632
+ [
4633
+ _vm._t("default", function () {
4634
+ return [
4635
+ _vm.form
4636
+ ? _c(
4637
+ "es-form",
4638
+ _vm._g(
4639
+ _vm._b(
4640
+ { attrs: { ef: "groupForm" } },
4641
+ "es-form",
4642
+ _vm.form,
4643
+ false
4644
+ ),
4645
+ _vm.getFormEvents()
4646
+ )
4647
+ )
4648
+ : _vm.table
4649
+ ? _c(
4650
+ "es-data-table",
4651
+ _vm._g(
4652
+ _vm._b(
4653
+ { ref: "groupTable", attrs: { size: "mini" } },
4654
+ "es-data-table",
4655
+ _vm.getTableProps(),
4656
+ false
4657
+ ),
4658
+ _vm.getTableEvents()
4659
+ )
4660
+ )
4661
+ : _vm.iframe
4662
+ ? _c("iframe", {
4663
+ ref: "groupIframe",
4664
+ attrs: { frameborder: "0", width: "100%", height: "100%" },
4665
+ })
4666
+ : _vm._e(),
4667
+ ]
4668
+ }),
4669
+ ],
4670
+ 2
4671
+ ),
4672
+ ])
4673
+ }
4674
+ var staticRenderFns = []
4675
+ render._withStripped = true
4676
+
4677
+
4678
+ // CONCATENATED MODULE: ./packages/tree-group/src/tree-group.vue?vue&type=template&id=4c2f26a9&
4679
+
4680
+ // EXTERNAL MODULE: ./src/utils/util.js
4681
+ var util = __webpack_require__(0);
4682
+
4683
+ // EXTERNAL MODULE: ./src/utils/types.js
4684
+ var types = __webpack_require__(6);
4685
+
4686
+ // EXTERNAL MODULE: ./src/config/api.js
4687
+ var api = __webpack_require__(7);
4688
+
4689
+ // EXTERNAL MODULE: external "throttle-debounce"
4690
+ var external_throttle_debounce_ = __webpack_require__(14);
4691
+
4692
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree-group/src/tree-group.vue?vue&type=script&lang=js&
4693
+ 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; };
4694
+
4695
+ //
4696
+ //
4697
+ //
4698
+ //
4699
+ //
4700
+ //
4701
+ //
4702
+ //
4703
+ //
4704
+ //
4705
+ //
4706
+ //
4707
+ //
4708
+ //
4709
+ //
4710
+ //
4711
+ //
4712
+ //
4713
+ //
4714
+ //
4715
+ //
4716
+ //
4717
+ //
4718
+ //
4719
+ //
4720
+ //
4721
+ //
4722
+ //
4723
+ //
4724
+ //
4725
+ //
4726
+ //
4727
+ //
4728
+ //
4729
+ //
4730
+ //
4731
+ //
4732
+ //
4733
+ //
4734
+ //
4735
+ //
4736
+ //
4737
+ //
4738
+ //
4739
+ //
4740
+ //
4741
+ //
4742
+ //
4743
+ //
4744
+ //
4745
+ //
4746
+ //
4747
+ //
4748
+ //
4749
+ //
4750
+ //
4751
+ //
4752
+ //
4753
+ //
4754
+ //
4755
+ //
4756
+ //
4757
+ //
4758
+ //
4759
+ //
4760
+ //
4761
+ //
4762
+ //
4763
+ //
4764
+ //
4765
+ //
4766
+ //
4767
+ //
4768
+ //
4769
+ //
4770
+ //
4771
+ //
4772
+ //
4773
+ //
4774
+ //
4775
+ //
4776
+ //
4777
+ //
4778
+ //
4779
+ //
4780
+ //
4781
+ //
4782
+ //
4783
+ //
4784
+ //
4785
+ //
4786
+ //
4787
+ //
4788
+ //
4789
+ //
4790
+ //
4791
+ //
4792
+ //
4793
+ //
4794
+ //
4795
+ //
4796
+ //
4797
+ //
4798
+ //
4799
+
4800
+
4801
+
4802
+
4803
+
4804
+
4805
+ /**
4806
+ * 树组合组件
4807
+ * 用于组合左树右数据表格、左树右表单、左树右窗口(iframe)
4808
+ */
4809
+ /* harmony default export */ var tree_groupvue_type_script_lang_js_ = ({
4810
+ name: 'EsTreeGroup',
4811
+ inheritAttrs: false,
4812
+ props: {
4813
+ /**
4814
+ * 选项卡配置
4815
+ */
4816
+ tabs: {
4817
+ type: Array,
4818
+ default: function _default() {
4819
+ return [];
4820
+ }
4821
+ },
4822
+ /**
4823
+ * 默认选中的选项卡
4824
+ */
4825
+ active: {
4826
+ type: [String, Number],
4827
+ default: '0'
4828
+ },
4829
+ /**
4830
+ * 树配置
4831
+ */
4832
+ tree: {
4833
+ type: Object,
4834
+ default: function _default() {
4835
+ return {};
4836
+ }
4837
+ },
4838
+ /**
4839
+ * 表格配置
4840
+ */
4841
+ table: Object,
4842
+ /**
4843
+ * 表单配置
4844
+ */
4845
+ form: Object,
4846
+ /**
4847
+ * iframe配置
4848
+ */
4849
+ iframe: Object,
4850
+ /**
4851
+ * 是否开启企业范围选择
4852
+ */
4853
+ enterprise: [Object, Boolean],
4854
+ /**
4855
+ * 选择节点作为table、iframe地址参数
4856
+ */
4857
+ checkesAsParams: {
4858
+ type: [Object, Boolean],
4859
+ default: true
4860
+ }
4861
+ },
4862
+ data: function data() {
4863
+ return {
4864
+ /**
4865
+ * 默认选中的选项卡
4866
+ */
4867
+ defaultActive: this.active,
4868
+ /**
4869
+ * 企业范围选择的过滤条件
4870
+ */
4871
+ filtes: [],
4872
+ /**
4873
+ * 选中的节点
4874
+ */
4875
+ checkeds: [],
4876
+ /**
4877
+ * 表格、iframe的参数
4878
+ */
4879
+ params: null,
4880
+ /**
4881
+ * 表单事件缓存
4882
+ */
4883
+ _formEventsCache: null,
4884
+ /**
4885
+ * 表格属性缓存
4886
+ */
4887
+ _tablePropsCache: null,
4888
+ /**
4889
+ * 表格事件缓存
4890
+ */
4891
+ _tableEventsCache: null,
4892
+ /**
4893
+ * iframe属性缓存
4894
+ */
4895
+ _iframePropsCache: null,
4896
+ /**
4897
+ * 树引用缓存
4898
+ */
4899
+ _treeRefCache: null,
4900
+ /**
4901
+ * 树配置缓存
4902
+ */
4903
+ _treeConfigCache: new Map()
4904
+ };
4905
+ },
4906
+
4907
+ computed: {},
4908
+ watch: {
4909
+ defaultActive: {
4910
+ immediate: true,
4911
+ handler: function handler(val) {
4912
+ if (val !== undefined && this.tabs.length) {
4913
+ if (typeof val === 'string') {
4914
+ for (var i = 0; i < this.tabs.length; i++) {
4915
+ if (val === this.tabs[i].name) {
4916
+ this.defaultActive = String(i);
4917
+ }
4918
+ }
4919
+ } else {
4920
+ this.defaultActive = String(val);
4921
+ }
4922
+ }
4923
+ }
4924
+ },
4925
+ 'table.param': {
4926
+ immediate: true,
4927
+ deep: true,
4928
+ handler: function handler(val, old) {
4929
+ if (!Object(util["G" /* isObjectEqual */])(val, old)) {
4930
+ this.params = JSON.parse(JSON.stringify(val || {}));
4931
+ // 清除table属性缓存
4932
+ this._tablePropsCache = null;
4933
+ }
4934
+ }
4935
+ },
4936
+ checkeds: {
4937
+ deep: true,
4938
+ handler: function handler() {
4939
+ var params = this.setParams();
4940
+ if (params) {
4941
+ this.params = _extends({}, this.params, params);
4942
+ // 清除table属性缓存
4943
+ this._tablePropsCache = null;
4944
+ // 清除iframe属性缓存
4945
+ this._iframePropsCache = null;
4946
+ }
4947
+ }
4948
+ },
4949
+ // 监听form变化,清除form事件缓存
4950
+ form: {
4951
+ deep: true,
4952
+ handler: function handler() {
4953
+ this._formEventsCache = null;
4954
+ }
4955
+ },
4956
+ // 监听table变化,清除table相关缓存
4957
+ table: {
4958
+ deep: true,
4959
+ handler: function handler() {
4960
+ this._tablePropsCache = null;
4961
+ this._tableEventsCache = null;
4962
+ if (this._dialogEventsCache) {
4963
+ this._dialogEventsCache.clear();
4964
+ }
4965
+ }
4966
+ },
4967
+ // 监听iframe变化,清除iframe属性缓存
4968
+ iframe: {
4969
+ deep: true,
4970
+ handler: function handler() {
4971
+ this._iframePropsCache = null;
4972
+ }
4973
+ },
4974
+ // 监听$listeners变化,清除相关事件缓存
4975
+ $listeners: {
4976
+ handler: function handler() {
4977
+ this._formEventsCache = null;
4978
+ this._tableEventsCache = null;
4979
+ }
4980
+ }
4981
+ },
4982
+ created: function created() {},
4983
+ mounted: function mounted() {},
4984
+
4985
+ methods: {
4986
+ /**
4987
+ * 获取树事件
4988
+ * @param {Object} item - 选项卡项
4989
+ * @param {Number} index - 索引
4990
+ * @returns {Object} 树事件对象
4991
+ */
4992
+ getTreeEvents: function getTreeEvents(item, index) {
4993
+ var _this = this;
4994
+
4995
+ var baseEvents = {
4996
+ 'check-change': function checkChange() {
4997
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
4998
+ args[_key] = arguments[_key];
4999
+ }
5000
+
5001
+ return _this.handleCheckChange.apply(_this, args.concat([item]));
5002
+ }
5003
+ };
5004
+
5005
+ if (item.tree && item.tree.events) {
5006
+ return _extends({}, item.tree.events, baseEvents);
5007
+ }
5008
+
5009
+ return baseEvents;
5010
+ },
5011
+
5012
+ /**
5013
+ * 获取表单事件
5014
+ * @returns {Object} 表单事件对象
5015
+ */
5016
+ getFormEvents: function getFormEvents() {
5017
+ // 缓存form组件的事件对象,避免每次创建新对象
5018
+ if (!this._formEventsCache || this.$listeners !== this._formEventsCache.listeners || this.form.events !== this._formEventsCache.events) {
5019
+ this._formEventsCache = {
5020
+ listeners: this.$listeners,
5021
+ events: this.form.events,
5022
+ result: _extends({}, this.$listeners, this.form.events)
5023
+ };
5024
+ }
5025
+ return this._formEventsCache.result;
5026
+ },
5027
+
5028
+ /**
5029
+ * 获取表格属性
5030
+ * @returns {Object} 表格属性对象
5031
+ */
5032
+ getTableProps: function getTableProps() {
5033
+ // 缓存data-table组件的属性对象,避免每次创建新对象
5034
+ // 直接使用setParams()方法的结果,确保树节点选择变化时参数更新
5035
+ var currentParams = this.setParams();
5036
+ if (!this._tablePropsCache || this.table !== this._tablePropsCache.table || JSON.stringify(currentParams) !== JSON.stringify(this._tablePropsCache.params) || JSON.stringify(this.checkeds) !== JSON.stringify(this._tablePropsCache.checkeds)) {
5037
+ this._tablePropsCache = {
5038
+ table: this.table,
5039
+ params: currentParams,
5040
+ checkeds: this.checkeds,
5041
+ result: _extends({ close: true }, this.table, { param: currentParams })
5042
+ };
5043
+ }
5044
+ return this._tablePropsCache.result;
5045
+ },
5046
+
5047
+ /**
5048
+ * 获取表格事件
5049
+ * @returns {Object} 表格事件对象
5050
+ */
5051
+ getTableEvents: function getTableEvents() {
5052
+ // 缓存data-table组件的事件对象,避免每次创建新对象
5053
+ if (!this._tableEventsCache || this.$listeners !== this._tableEventsCache.listeners || this.table.events !== this._tableEventsCache.events) {
5054
+ this._tableEventsCache = {
5055
+ listeners: this.$listeners,
5056
+ events: this.table.events,
5057
+ result: _extends({}, this.$listeners, this.table.events)
5058
+ };
5059
+ }
5060
+ return this._tableEventsCache.result;
5061
+ },
5062
+
5063
+ /**
5064
+ * 设置参数
5065
+ * @returns {Object} 参数对象
5066
+ */
5067
+ setParams: function setParams() {
5068
+ var _this2 = this;
5069
+
5070
+ if (this.checkesAsParams === false) {
5071
+ return null;
5072
+ }
5073
+ if (this.enterprise && JSON.stringify(this.enterprise) != '{}' || this.tabs && this.tabs.length && this.tabs[Number(this.defaultActive)].enterprise) {
5074
+ if (this.checkeds) {
5075
+ if (Array.isArray(this.checkeds)) {
5076
+ var creditCodes = [];
5077
+ this.checkeds.forEach(function (item) {
5078
+ if (item.creditCode && item.creditCode !== 'undefined') {
5079
+ creditCodes.push(item.creditCode);
5080
+ } else {
5081
+ var data = JSON.parse(item.data.objdata);
5082
+ if (data.creditCode && data.creditCode !== 'undefined') {
5083
+ creditCodes.push(data.creditCode);
5084
+ }
5085
+ }
5086
+ });
5087
+ return { creditCode: creditCodes.join(',') };
5088
+ } else {
5089
+ return { creditCode: this.checkeds.creditCode };
5090
+ }
5091
+ }
5092
+ return null;
5093
+ } else {
5094
+ if (this.checkeds) {
5095
+ var params = {};
5096
+ if (Array.isArray(this.checkeds)) {
5097
+ if (this.checkesAsParams && Object(types["d" /* isObject */])(this.checkesAsParams)) {
5098
+ (function () {
5099
+ var checkesAsParams = _this2.tabs && _this2.tabs.length ? _this2.checkesAsParams[_this2.defaultActive] || _this2.checkesAsParams : _this2.checkesAsParams;
5100
+
5101
+ var _loop = function _loop(i) {
5102
+ params[i] = _this2.checkeds.map(function (item) {
5103
+ if (Object.prototype.hasOwnProperty.call(item, checkesAsParams[i])) {
5104
+ return item[checkesAsParams[i]];
5105
+ } else {
5106
+ var data = JSON.parse(item.data.objdata);
5107
+ return data[checkesAsParams[i]];
5108
+ }
5109
+ }).join(',');
5110
+ };
5111
+
5112
+ for (var i in checkesAsParams) {
5113
+ _loop(i);
5114
+ }
5115
+ })();
5116
+ } else {
5117
+ params.id = this.checkeds.map(function (item) {
5118
+ return item.id;
5119
+ }).join(',');
5120
+ }
5121
+ } else {
5122
+ if (this.checkesAsParams && Object(types["d" /* isObject */])(this.checkesAsParams)) {
5123
+ for (var i in this.checkesAsParams) {
5124
+ params[i] = this.checkeds[this.checkesAsParams[i]];
5125
+ }
5126
+ } else {
5127
+ params.id = this.checkeds.id;
5128
+ }
5129
+ }
5130
+ return params;
5131
+ }
5132
+ return null;
5133
+ }
5134
+ },
5135
+
5136
+ /**
5137
+ * 获取属性
5138
+ * @param {Object|boolean} res - 属性配置
5139
+ * @returns {Object} 属性对象
5140
+ */
5141
+ getProps: function getProps(res) {
5142
+ // 返回空对象时使用缓存,避免每次创建新对象
5143
+ if (typeof res === 'boolean') {
5144
+ return {
5145
+ types: ['enterprise'],
5146
+ button: {}
5147
+ };
5148
+ }
5149
+ return res;
5150
+ },
5151
+
5152
+ /**
5153
+ * 处理选项卡切换
5154
+ */
5155
+ handleSelect: function handleSelect() {
5156
+ this.$emit('tab-click', this.tabs[parseInt(this.defaultActive, 10)]);
5157
+ },
5158
+
5159
+ /**
5160
+ * 处理节点选中状态变化
5161
+ * @param {Object} data - 节点数据
5162
+ * @param {Object} node - 节点对象
5163
+ * @param {Object} item - 选项卡配置
5164
+ */
5165
+ handleCheckChange: Object(external_throttle_debounce_["debounce"])(100, function () {
5166
+ var treeInstance = this.getRef('tree');
5167
+ var checkeds = treeInstance.getCheckedNodes();
5168
+ if (this.checkedAsSearch) {
5169
+ this.checkeds = checkeds;
5170
+ }
5171
+ this.$emit.apply(this, ['check-change', checkeds].concat(Array.prototype.slice.call(arguments), [this]));
5172
+ }),
5173
+ /**
5174
+ * 处理企业范围选择确认
5175
+ * @param {Array} res - 选择结果
5176
+ * @param {number} index - 选项卡索引
5177
+ */
5178
+ handleConfirm: function handleConfirm(res, index) {
5179
+ if (index !== undefined) {
5180
+ this.filtes[index] = res;
5181
+ } else {
5182
+ this.filtes = res;
5183
+ }
5184
+ this.checkeds = JSON.parse(JSON.stringify(res));
5185
+ this.$emit('filter', this.checkeds);
5186
+ },
5187
+
5188
+ /**
5189
+ * 获取树配置
5190
+ * @param {Object} tree - 树配置
5191
+ * @param {number} index - 选项卡索引
5192
+ * @returns {Object} 树配置对象
5193
+ */
5194
+ getTreeConfig: function getTreeConfig() {
5195
+ var tree = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
5196
+ var index = arguments[1];
5197
+
5198
+ // 确保缓存对象存在
5199
+ if (!this._treeConfigCache) {
5200
+ this._treeConfigCache = new Map();
5201
+ }
5202
+ // 缓存树配置,避免重复计算
5203
+ var cacheKey = JSON.stringify(tree);
5204
+ if (!this._treeConfigCache.has(cacheKey)) {
5205
+ var config = void 0;
5206
+ if (!tree.url || tree.url === api["K" /* getOrgMainTree */]) {
5207
+ config = Object(util["p" /* extend */])(true, {
5208
+ title: index === undefined ? '成员树' : undefined,
5209
+ url: api["K" /* getOrgMainTree */],
5210
+ checkOnClickNode: true,
5211
+ props: {
5212
+ label: 'name',
5213
+ children: 'children'
5214
+ },
5215
+ loadKey: 'id,isentity,layerlevel',
5216
+ parseData: function parseData(res, node) {
5217
+ if (node) {
5218
+ if (Array.isArray(res)) {
5219
+ var data = node.data;
5220
+
5221
+ var result = res[0];
5222
+ if (data.id === result.id) {
5223
+ return result.children;
5224
+ }
5225
+ } else if (node.data.id === res.id) {
5226
+ return res.children;
5227
+ }
5228
+ }
5229
+ return res;
5230
+ },
5231
+ highlightCurrent: true,
5232
+ param: {
5233
+ showarea: 0,
5234
+ orgType: 'org',
5235
+ nocheck: true,
5236
+ id: 'all',
5237
+ isroot: true,
5238
+ synchro: true,
5239
+ pvd: true,
5240
+ levels: 1,
5241
+ showlevelsub: true
5242
+ }
5243
+ }, tree);
5244
+ } else {
5245
+ config = _extends({
5246
+ highlightCurrent: true,
5247
+ title: index === undefined ? '成员树' : undefined,
5248
+ checkOnClickNode: true,
5249
+ props: {
5250
+ label: 'name',
5251
+ children: 'children'
5252
+ }
5253
+ }, tree);
5254
+ }
5255
+ this._treeConfigCache.set(cacheKey, config);
5256
+ }
5257
+ return this._treeConfigCache.get(cacheKey);
5258
+ },
5259
+
5260
+ /**
5261
+ * 获取组件引用
5262
+ * @param {string} type - 引用类型
5263
+ * @returns {Object} 组件引用
5264
+ */
5265
+ getRef: function getRef(type) {
5266
+ // 缓存树引用,避免重复计算
5267
+ switch (type) {
5268
+ case 'tree':
5269
+ if (!this._treeRefCache || this.defaultActive !== this._treeRefCache.defaultActive) {
5270
+ var ref = this.tabs && this.tabs.length ? 'groupTree' + this.defaultActive : 'groupTree';
5271
+ this._treeRefCache = {
5272
+ defaultActive: this.defaultActive,
5273
+ ref: this.$refs[ref]
5274
+ };
5275
+ }
5276
+ return this._treeRefCache.ref;
5277
+ case 'table':
5278
+ return this.$refs.groupTable;
5279
+ case 'form':
5280
+ return this.$refs.groupForm;
5281
+ case 'iframe':
5282
+ return this.$refs.groupIframe;
5283
+ }
5284
+ },
5285
+
5286
+ /**
5287
+ * 获取iframe组件的属性对象
5288
+ * 缓存iframe组件的属性对象,避免每次创建新对象
5289
+ * 当checkeds变化时,更新iframe的src属性,将选择的节点作为参数
5290
+ * @returns {Object} iframe组件的属性对象
5291
+ */
5292
+ getIframeProps: function getIframeProps() {
5293
+ // 缓存iframe组件的属性对象,避免每次创建新对象
5294
+ var currentParams = this.setParams();
5295
+ if (!this._iframePropsCache || this.iframe !== this._iframePropsCache.iframe || JSON.stringify(currentParams) !== JSON.stringify(this._iframePropsCache.params) || JSON.stringify(this.checkeds) !== JSON.stringify(this._iframePropsCache.checkeds)) {
5296
+ // 处理iframe的src属性,添加选择节点的参数
5297
+ var iframeProps = _extends({}, this.iframe);
5298
+ if (iframeProps.src && currentParams) {
5299
+ // 使用urlJoinParams函数处理src和参数
5300
+ iframeProps.src = Object(util["X" /* urlJoinParams */])({
5301
+ url: iframeProps.src,
5302
+ params: currentParams
5303
+ });
5304
+ }
5305
+ this._iframePropsCache = {
5306
+ iframe: this.iframe,
5307
+ params: currentParams,
5308
+ checkeds: this.checkeds,
5309
+ result: iframeProps
5310
+ };
5311
+ }
5312
+ return this._iframePropsCache.result;
5313
+ },
5314
+
5315
+ /**
5316
+ * 数据表刷新
5317
+ * @param {Object} obj - 刷新参数
5318
+ * @param {boolean} first - 是否首次加载
5319
+ * @param {boolean|Object} reloadTree - 是否刷新树
5320
+ */
5321
+ reload: function reload(obj, first, reloadTree) {
5322
+ if (obj) {
5323
+ var tableInstance = this.getRef('table');
5324
+ tableInstance && tableInstance.reload(obj, first);
5325
+ }
5326
+ if (reloadTree) {
5327
+ var treeInstance = this.getRef('tree');
5328
+ treeInstance && treeInstance.reload(Object(types["d" /* isObject */])(reloadTree) ? reloadTree : {});
5329
+ }
5330
+ }
5331
+ }
5332
+ });
5333
+ // CONCATENATED MODULE: ./packages/tree-group/src/tree-group.vue?vue&type=script&lang=js&
5334
+ /* harmony default export */ var src_tree_groupvue_type_script_lang_js_ = (tree_groupvue_type_script_lang_js_);
5335
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
5336
+ var componentNormalizer = __webpack_require__(3);
5337
+
5338
+ // CONCATENATED MODULE: ./packages/tree-group/src/tree-group.vue
5339
+
5340
+
5341
+
5342
+
5343
+
5344
+ /* normalize component */
5345
+
5346
+ var component = Object(componentNormalizer["a" /* default */])(
5347
+ src_tree_groupvue_type_script_lang_js_,
5348
+ render,
5349
+ staticRenderFns,
5350
+ false,
5351
+ null,
5352
+ null,
5353
+ null
5354
+
5355
+ )
5356
+
5357
+ /* harmony default export */ var tree_group = (component.exports);
5358
+ // CONCATENATED MODULE: ./packages/tree-group/index.js
5359
+
5360
+
5361
+ tree_group.install = function (Vue) {
5362
+ return Vue.component(tree_group.name, tree_group);
5363
+ };
5364
+
5365
+ /* harmony default export */ var packages_tree_group = __webpack_exports__["default"] = (tree_group);
5366
+
5367
+ /***/ }),
5368
+
5369
+ /***/ 22:
5370
+ /***/ (function(module, exports) {
5371
+
5372
+ module.exports = require("lodash/cloneDeep");
5373
+
5374
+ /***/ }),
5375
+
5376
+ /***/ 3:
5377
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5378
+
5379
+ "use strict";
5380
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
5381
+ /* globals __VUE_SSR_CONTEXT__ */
5382
+
5383
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
5384
+ // This module is a runtime utility for cleaner component module output and will
5385
+ // be included in the final webpack user bundle.
5386
+
5387
+ function normalizeComponent(
5388
+ scriptExports,
5389
+ render,
5390
+ staticRenderFns,
5391
+ functionalTemplate,
5392
+ injectStyles,
5393
+ scopeId,
5394
+ moduleIdentifier /* server only */,
5395
+ shadowMode /* vue-cli only */
5396
+ ) {
5397
+ // Vue.extend constructor export interop
5398
+ var options =
5399
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
5400
+
5401
+ // render functions
5402
+ if (render) {
5403
+ options.render = render
5404
+ options.staticRenderFns = staticRenderFns
5405
+ options._compiled = true
5406
+ }
5407
+
5408
+ // functional template
5409
+ if (functionalTemplate) {
5410
+ options.functional = true
5411
+ }
5412
+
5413
+ // scopedId
5414
+ if (scopeId) {
5415
+ options._scopeId = 'data-v-' + scopeId
5416
+ }
5417
+
5418
+ var hook
5419
+ if (moduleIdentifier) {
5420
+ // server build
5421
+ hook = function (context) {
5422
+ // 2.3 injection
5423
+ context =
5424
+ context || // cached call
5425
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
5426
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
5427
+ // 2.2 with runInNewContext: true
5428
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
5429
+ context = __VUE_SSR_CONTEXT__
5430
+ }
5431
+ // inject component styles
5432
+ if (injectStyles) {
5433
+ injectStyles.call(this, context)
5434
+ }
5435
+ // register component module identifier for async chunk inferrence
5436
+ if (context && context._registeredComponents) {
5437
+ context._registeredComponents.add(moduleIdentifier)
5438
+ }
5439
+ }
5440
+ // used by ssr in case component is cached and beforeCreate
5441
+ // never gets called
5442
+ options._ssrRegister = hook
5443
+ } else if (injectStyles) {
5444
+ hook = shadowMode
5445
+ ? function () {
5446
+ injectStyles.call(
5447
+ this,
5448
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
5449
+ )
5450
+ }
5451
+ : injectStyles
5452
+ }
5453
+
5454
+ if (hook) {
5455
+ if (options.functional) {
5456
+ // for template-only hot-reload because in that case the render fn doesn't
5457
+ // go through the normalizer
5458
+ options._injectStyles = hook
5459
+ // register for functional component in vue file
5460
+ var originalRender = options.render
5461
+ options.render = function renderWithStyleInjection(h, context) {
5462
+ hook.call(context)
5463
+ return originalRender(h, context)
5464
+ }
5465
+ } else {
5466
+ // inject component registration as beforeCreate hook
5467
+ var existing = options.beforeCreate
5468
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
5469
+ }
5470
+ }
5471
+
5472
+ return {
5473
+ exports: scriptExports,
5474
+ options: options
5475
+ }
5476
+ }
5477
+
5478
+
5479
+ /***/ }),
5480
+
5481
+ /***/ 4:
5482
+ /***/ (function(module, exports) {
5483
+
5484
+ module.exports = require("vue");
5485
+
5486
+ /***/ }),
5487
+
5488
+ /***/ 6:
5489
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5490
+
5491
+ "use strict";
5492
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
5493
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
5494
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
5495
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
5496
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
5497
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
5345
5498
  /**
5346
- * 获取小时
5347
- * @date 2022年5月7日
5348
- * @param {Date|string} [date] - 日期对象或日期字符串
5349
- * @returns {number} 小时数(0-23)
5350
- */
5351
- const getHour = function (date) {
5352
- if (!date) {
5353
- return new Date().getHours();
5354
- }
5355
- if (typeof date === 'string') {
5356
- date = new Date(date);
5357
- }
5358
- return date.getHours();
5359
- };
5360
-
5499
+ * 检查一个值是否为字符串类型
5500
+ * @param {*} obj 要检查的值
5501
+ * @returns {boolean} 如果值为字符串则返回true,否则返回false
5502
+ */
5503
+ function isString(obj) {
5504
+ return Object.prototype.toString.call(obj) === '[object String]';
5505
+ }
5506
+
5361
5507
  /**
5362
- * 获取分钟
5363
- * @date 2022年5月7日
5364
- * @param {Date|string} [date] - 日期对象或日期字符串
5365
- * @returns {number} 分钟数(0-59)
5366
- */
5367
- const getMinute = function (date) {
5368
- if (!date) {
5369
- return new Date().getMinutes();
5370
- }
5371
- if (typeof date === 'string') {
5372
- date = new Date(date);
5373
- }
5374
- return date.getMinutes();
5375
- };
5376
-
5508
+ * 检查一个值是否为对象类型
5509
+ * @param {*} obj 要检查的值
5510
+ * @returns {boolean} 如果值为对象则返回true,否则返回false
5511
+ */
5512
+ function isObject(obj) {
5513
+ return Object.prototype.toString.call(obj) === '[object Object]';
5514
+ }
5515
+
5377
5516
  /**
5378
- * 获取月份
5379
- * @date 2022年5月7日
5380
- * @param {Date|string} [date] - 日期对象或日期字符串
5381
- * @returns {number} 月份数(1-12)
5382
- */
5383
- const getMonth = function (date) {
5384
- if (!date) {
5385
- return new Date().getMonth() + 1;
5386
- }
5387
- if (typeof date === 'string') {
5388
- date = new Date(date);
5389
- }
5390
- return date.getMonth() + 1;
5391
- };
5392
-
5517
+ * 检查一个节点是否为HTML元素
5518
+ * @param {Node} node 要检查的节点
5519
+ * @returns {boolean} 如果节点为HTML元素则返回true,否则返回false
5520
+ */
5521
+ function isHtmlElement(node) {
5522
+ return node && node.nodeType === Node.ELEMENT_NODE;
5523
+ }
5524
+
5393
5525
  /**
5394
- * 获取秒
5395
- * @date 2022年5月7日
5396
- * @param {Date|string} [date] - 日期对象或日期字符串
5397
- * @returns {number} 秒数(0-59)
5398
- */
5399
- const getSecond = function (date) {
5400
- if (!date) {
5401
- return new Date().getSeconds();
5402
- }
5403
- if (typeof date === 'string') {
5404
- date = new Date(date);
5405
- }
5406
- return date.getSeconds();
5407
- };
5408
-
5526
+ * 检查一个值是否为函数类型
5527
+ * @param {*} functionToCheck 要检查的值
5528
+ * @returns {boolean} 如果值为函数则返回true,否则返回false
5529
+ */
5530
+ function isFunction(functionToCheck) {
5531
+ var getType = {};
5532
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
5533
+ }
5534
+
5409
5535
  /**
5410
- * 获取星期几
5411
- * @date 2022年5月7日
5412
- * @param {Date|string} [date] - 日期对象或日期字符串
5413
- * @returns {number} 星期几(0-6,0表示星期日)
5414
- */
5415
- const getWeekday = function (date) {
5416
- if (!date) {
5417
- return new Date().getDay();
5418
- }
5419
- if (typeof date === 'string') {
5420
- date = new Date(date);
5421
- }
5422
- return date.getDay();
5423
- };
5424
-
5425
-
5536
+ * 检查一个值是否为undefined
5537
+ * @param {*} val 要检查的值
5538
+ * @returns {boolean} 如果值为undefined则返回true,否则返回false
5539
+ */
5540
+ function isUndefined(val) {
5541
+ return val === void 0;
5542
+ }
5543
+
5426
5544
  /**
5427
- * @desc 获取上午/下午/晚上
5428
- * @author huangbo
5429
- * @date 2022年5月7日
5430
- * @param {String} [time] - 时间
5431
- **/
5432
- const timeCycle = function (time) {
5433
- let hour = 0;
5434
- if (!time) {
5435
- hour = new Date().getHours();
5436
- } else if (typeof time === 'string') {
5437
- // 从时间字符串中提取小时
5438
- const match = time.match(/^(\d{1,2})/);
5439
- if (match) {
5440
- hour = parseInt(match[1], 10);
5441
- }
5442
- } else if (typeof time === 'number') {
5443
- hour = time;
5444
- }
5445
- // 判断时间段
5446
- if (hour >= 5 && hour < 12) {
5447
- return '上午';
5448
- } else if (hour >= 12 && hour < 18) {
5449
- return '下午';
5450
- } else {
5451
- return '晚上';
5452
- }
5453
- };
5545
+ * 检查一个值是否已定义(不是undefined或null)
5546
+ * @param {*} val 要检查的值
5547
+ * @returns {boolean} 如果值已定义则返回true,否则返回false
5548
+ */
5549
+ function isDefined(val) {
5550
+ return val !== undefined && val !== null;
5551
+ }
5454
5552
 
5455
5553
  /***/ }),
5456
5554
 
@@ -5463,7 +5561,7 @@ const timeCycle = function (time) {
5463
5561
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return doQrLogin; });
5464
5562
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return logout; });
5465
5563
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return initLogin; });
5466
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return switchUserTo; });
5564
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return switchUserTo; });
5467
5565
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return changeImg; });
5468
5566
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return getLoginCode; });
5469
5567
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return doCodeLogin; });
@@ -5481,13 +5579,13 @@ const timeCycle = function (time) {
5481
5579
  /* unused harmony export scanCodeRetrialAuth */
5482
5580
  /* unused harmony export codeRetrialAuth */
5483
5581
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return doAssistanceQrLogin; });
5484
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return userOnline; });
5582
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hc", function() { return userOnline; });
5485
5583
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return getUserAppWithTag; });
5486
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return recordUserApp; });
5584
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return recordUserApp; });
5487
5585
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "U", function() { return getUserRecordApp; });
5488
5586
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return mainConfig; });
5489
5587
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return initUserSet; });
5490
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return updateUserInfo; });
5588
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dc", function() { return updateUserInfo; });
5491
5589
  /* unused harmony export getUserImgUrl */
5492
5590
  /* unused harmony export getDoorIndex */
5493
5591
  /* unused harmony export refreshOnlineUsers */
@@ -5499,22 +5597,22 @@ const timeCycle = function (time) {
5499
5597
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return getByType; });
5500
5598
  /* unused harmony export getUserCustomInfo */
5501
5599
  /* unused harmony export updateUserCustomInfo */
5502
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return saveOrUpdate; });
5503
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return sysMsgPage; });
5600
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return saveOrUpdate; });
5601
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return sysMsgPage; });
5504
5602
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return ignoreSysMsg; });
5505
5603
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return ignoreAllSysMsg; });
5506
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return searchType; });
5604
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return searchType; });
5507
5605
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Q", function() { return getSysParam; });
5508
5606
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return getAdjunctProperties; });
5509
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return uploads; });
5510
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return uploadOnlyOne; });
5607
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gc", function() { return uploads; });
5608
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fc", function() { return uploadOnlyOne; });
5511
5609
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return getAdjunctFileInfos; });
5512
5610
  /* unused harmony export uploadSort */
5513
5611
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return downloadByAdjunctId; });
5514
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return uploadDownloads; });
5515
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return previewAdjunct; });
5516
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return previewAdjunct2; });
5517
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return previewAdjunctOffice; });
5612
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return uploadDownloads; });
5613
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return previewAdjunct; });
5614
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return previewAdjunct2; });
5615
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return previewAdjunctOffice; });
5518
5616
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return delAdjunct; });
5519
5617
  /* unused harmony export upload_updateClassify */
5520
5618
  /* unused harmony export getDeleteAdjunctFileInfos */
@@ -5529,13 +5627,13 @@ const timeCycle = function (time) {
5529
5627
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return gethelpdoc; });
5530
5628
  /* unused harmony export getCurrentuser */
5531
5629
  /* unused harmony export mainDetail */
5532
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return toStartFlow; });
5533
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return tempSave; });
5630
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return toStartFlow; });
5631
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return tempSave; });
5534
5632
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return commonOpion; });
5535
5633
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
5536
5634
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return editCommonOpion; });
5537
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return saveCommonOpinion; });
5538
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return updateCommonOpinion; });
5635
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return saveCommonOpinion; });
5636
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cc", function() { return updateCommonOpinion; });
5539
5637
  /* unused harmony export deleteCommonOpion */
5540
5638
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return getProcessDefList; });
5541
5639
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getNodeInfo; });
@@ -5544,27 +5642,27 @@ const timeCycle = function (time) {
5544
5642
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return findSysCodes; });
5545
5643
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "J", function() { return getNotificationMsg; });
5546
5644
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return getHandleInfoHtml; });
5547
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return taskHandleHtml; });
5645
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return taskHandleHtml; });
5548
5646
  /* unused harmony export getView */
5549
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "kb", function() { return register; });
5550
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return pendedhistoryList; });
5551
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return toTaskRejectHtml; });
5552
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return taskRejectHtml; });
5553
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return toStartTaskRead; });
5554
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return toStartTaskReadIndex; });
5555
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return taskReadHtml; });
5556
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return rejectAndEnd; });
5557
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return toSendMsg; });
5558
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return sendMsg; });
5647
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return register; });
5648
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return pendedhistoryList; });
5649
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return toTaskRejectHtml; });
5650
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return taskRejectHtml; });
5651
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return toStartTaskRead; });
5652
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return toStartTaskReadIndex; });
5653
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return taskReadHtml; });
5654
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return rejectAndEnd; });
5655
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return toSendMsg; });
5656
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return sendMsg; });
5559
5657
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return endFlowHtml; });
5560
5658
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return handleInfo; });
5561
5659
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return loginUserInfo; });
5562
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ec", function() { return wss; });
5563
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return topic; });
5660
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ic", function() { return wss; });
5661
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ac", function() { return topic; });
5564
5662
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return getPresetCustomInfo; });
5565
5663
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return getPresetNodeInfo; });
5566
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return toTaskTransferIndex; });
5567
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return taskTransfer; });
5664
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Wb", function() { return toTaskTransferIndex; });
5665
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return taskTransfer; });
5568
5666
  /* unused harmony export toPresetInfoListIndex */
5569
5667
  /* unused harmony export deletePresetInfo */
5570
5668
  /* unused harmony export historyListJson */
@@ -5572,24 +5670,24 @@ const timeCycle = function (time) {
5572
5670
  /* unused harmony export pressListJson */
5573
5671
  /* unused harmony export deleteFlow */
5574
5672
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return isCanStartSubFlow; });
5575
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return toTaskUnionExamine; });
5576
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return taskUnionExamine; });
5577
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return toTaskTakeAdvice; });
5578
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return taskTakeAdvice; });
5579
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return toTaskStartDraft; });
5580
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return toTaskSupervise; });
5581
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return toTaskSuperviseSub; });
5582
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return taskStartDraft; });
5583
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return toTaskReview; });
5584
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return taskReview; });
5585
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return toTaskUnionSeal; });
5586
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return taskUnionSeal; });
5587
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return toTwoOfficesDispatch; });
5588
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return twoOfficesDispatch; });
5589
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return toResetProcessIndex; });
5590
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return resetProcess; });
5591
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return toTaskContinuationIndex; });
5592
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return taskContinuation; });
5673
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Xb", function() { return toTaskUnionExamine; });
5674
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return taskUnionExamine; });
5675
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vb", function() { return toTaskTakeAdvice; });
5676
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return taskTakeAdvice; });
5677
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return toTaskStartDraft; });
5678
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tb", function() { return toTaskSupervise; });
5679
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ub", function() { return toTaskSuperviseSub; });
5680
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return taskStartDraft; });
5681
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return toTaskReview; });
5682
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return taskReview; });
5683
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Yb", function() { return toTaskUnionSeal; });
5684
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return taskUnionSeal; });
5685
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Zb", function() { return toTwoOfficesDispatch; });
5686
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bc", function() { return twoOfficesDispatch; });
5687
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return toResetProcessIndex; });
5688
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return resetProcess; });
5689
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return toTaskContinuationIndex; });
5690
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return taskContinuation; });
5593
5691
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return getFreeStartFlowParams; });
5594
5692
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return freeStartFlowWithSubmitTask; });
5595
5693
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return checkForeignOrgStartedCircularRead; });
@@ -5597,7 +5695,7 @@ const timeCycle = function (time) {
5597
5695
  /* unused harmony export fyListJson */
5598
5696
  /* unused harmony export circularReadWithdraw */
5599
5697
  /* unused harmony export taskReadWithDraw */
5600
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
5698
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return startReadTransferHandleFlowWithTaskReadEnd; });
5601
5699
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return checkBusinessIdStartedReadTransferHandle; });
5602
5700
  /* unused harmony export sendList */
5603
5701
  /* unused harmony export sendInfo */
@@ -5611,8 +5709,14 @@ const timeCycle = function (time) {
5611
5709
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return getNodeInfoForStart; });
5612
5710
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return freeStartFlow; });
5613
5711
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return getUrgencyLevelChangedNotificationType; });
5614
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return toFreeTaskCircularRead; });
5712
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return toFreeTaskCircularRead; });
5615
5713
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return freeTaskCircularRead; });
5714
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "gb", function() { return pageLists; });
5715
+ /* unused harmony export publishedLists */
5716
+ /* unused harmony export pageInfo */
5717
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return pageSave; });
5718
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return pageUpdate; });
5719
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return pageDelete; });
5616
5720
  var flowPendingPrefix = window.flowPendingPrefix || localStorage.getItem('flowPendingPrefix') || '/bpm';
5617
5721
  // 登录
5618
5722
  var doCaLogin = '/sso2/signIn/auth/doCaLogin'; // ca登录认证
@@ -5885,6 +5989,20 @@ var toFreeTaskCircularRead = '/bpm/bpmBackend/toFreeTaskCircularRead';
5885
5989
  // 自由发起传阅提交
5886
5990
  var freeTaskCircularRead = '/bpm/bpmBackend/freeTaskCircularRead';
5887
5991
 
5992
+ /** 自定义配置 */
5993
+ // 获取自定义配置列表
5994
+ var pageLists = '/main2/pageComponentConfig/listJson';
5995
+ // 获取已发布自定义配置列表
5996
+ var publishedLists = '/main2/pageComponentConfig/listPublished';
5997
+ // 获取自定义配置详情
5998
+ var pageInfo = '/main2/pageComponentConfig/info';
5999
+ // 保存自定义配置,发布也调这个接口但要加上字段status=1
6000
+ var pageSave = '/main2/pageComponentConfig/save';
6001
+ // 更新自定义配置
6002
+ var pageUpdate = '/main2/pageComponentConfig/update';
6003
+ // 删除自定义配置
6004
+ var pageDelete = '/main2/pageComponentConfig/deleteById';
6005
+
5888
6006
  /***/ }),
5889
6007
 
5890
6008
  /***/ 8: