@jeecg/online 3.4.3 → 3.4.4-beta2

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 (75) hide show
  1. package/AuthButtonConfig.js +2 -1
  2. package/AuthButtonTree.js +2 -1
  3. package/AuthDataConfig.js +2 -1
  4. package/AuthDataTree.js +2 -1
  5. package/AuthFieldConfig.js +3 -2
  6. package/AuthFieldTree.js +2 -1
  7. package/AuthManagerDrawer.js +2 -1
  8. package/AuthSetterModal.js +2 -1
  9. package/CgformCopyList.js +5 -1
  10. package/CgformModal.js +19 -2
  11. package/CgreportModal.js +1 -0
  12. package/CheckDictTable.js +2 -2
  13. package/CodeFileListModal.js +2 -1
  14. package/CodeFileViewModal.js +2 -1
  15. package/CodeGeneratorModal.js +2 -1
  16. package/CustomButtonList.js +2 -1
  17. package/DBAttributeTable.js +2 -2
  18. package/DbToOnlineModal.js +2 -1
  19. package/DetailForm.js +4 -2
  20. package/EnhanceJavaModal.js +2 -1
  21. package/EnhanceJsHistory.js +1 -1
  22. package/EnhanceJsModal.js +2 -1
  23. package/EnhanceSqlModal.js +2 -1
  24. package/ExtendConfigModal.js +3 -3
  25. package/FieldExtendJsonModal.js +270 -0
  26. package/FileSelectModal.js +2 -1
  27. package/ForeignKeyTable.js +2 -2
  28. package/FormSchemaFactory.js +150 -10
  29. package/IndexTable.js +2 -2
  30. package/JModalTip.js +2 -2
  31. package/JOnlineSearchSelect.js +115 -0
  32. package/LICENSE +7 -0
  33. package/LeftDepart.js +2 -2
  34. package/LeftRole.js +2 -1
  35. package/LeftUser.js +2 -1
  36. package/LinkTableConfigModal.js +2 -1
  37. package/LinkTableFieldConfigModal.js +2 -1
  38. package/LinkTableListPiece.js +2 -2
  39. package/ModalFormDemo.js +2 -1
  40. package/OnlineAutoList.js +7 -4
  41. package/OnlineAutoModal.js +4 -2
  42. package/OnlineAutoTreeList.js +7 -4
  43. package/OnlineCustomModal.js +5 -3
  44. package/OnlineDetailModal.js +5 -3
  45. package/OnlineForm.js +49 -39
  46. package/OnlineFormDetail.js +4 -2
  47. package/OnlineQueryForm.js +12 -6
  48. package/OnlineSearchFormItem.js +8 -5
  49. package/OnlineSelectCascade.js +228 -0
  50. package/OnlineSubFormDetail.js +4 -2
  51. package/PageAttributeTable.js +70 -28
  52. package/ProcessOnlineForm.js +4 -2
  53. package/QueryTable.js +2 -2
  54. package/README.md +6 -1
  55. package/{OnlineSuperQuery.js → SuperQuery.js} +216 -128
  56. package/{OnlineSuperQueryValComponent.js → SuperQueryValComponent.js} +2 -2
  57. package/{OnlineSuperQueryValComponent.vue_vue_type_script_lang.js → SuperQueryValComponent.vue_vue_type_script_lang.js} +8 -2
  58. package/_arrayPush.js +1 -1
  59. package/_baseClone.js +1 -1
  60. package/_flatRest.js +1 -1
  61. package/cgform.data.js +8 -8
  62. package/clipboard.js +565 -0
  63. package/index.js +37 -340
  64. package/index2.js +8 -4
  65. package/index3.js +33 -571
  66. package/isArray.js +1 -1
  67. package/main.index.js +3 -3
  68. package/omit.js +1 -1
  69. package/package.json +1 -1
  70. package/pick.js +1 -1
  71. package/style.css +1 -1
  72. package/toString.js +1 -1
  73. package/useAutoForm.js +22 -5
  74. package/useCgformList.js +97 -5
  75. package/OnlCgReportList.js +0 -34
package/index3.js CHANGED
@@ -23,577 +23,16 @@ import { BasicTable, TableAction } from "/@/components/Table";
23
23
  import { useListPage } from "/@/hooks/system/useListPage";
24
24
  import { l as list, c as columns, s as searchFormSchema, _ as _sfc_main$1, b as batchDelete, g as getReportParam, d as deleteOne } from "./CgreportModal.js";
25
25
  import { useModal } from "/@/components/Modal";
26
- import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./_commonjsHelpers.js";
26
+ import { C as Clipboard } from "./clipboard.js";
27
27
  import { useRouter } from "vue-router";
28
+ import { buildUUID } from "/@/utils/uuid";
28
29
  import "/@/components/Form/index";
29
30
  import "/@/hooks/system/useJvxeMethods.ts";
30
31
  import "/@/components/jeecg/JVxeTable/types";
31
32
  import "/@/views/system/user/user.api";
32
33
  import "/@/utils/http/axios";
33
34
  import "/@/hooks/web/useMessage";
34
- var clipboard = { exports: {} };
35
- /*!
36
- * clipboard.js v2.0.11
37
- * https://clipboardjs.com/
38
- *
39
- * Licensed MIT © Zeno Rocha
40
- */
41
- (function(module, exports) {
42
- (function webpackUniversalModuleDefinition(root, factory) {
43
- module.exports = factory();
44
- })(commonjsGlobal, function() {
45
- return function() {
46
- var __webpack_modules__ = {
47
- 686: function(__unused_webpack_module, __webpack_exports__, __webpack_require__2) {
48
- __webpack_require__2.d(__webpack_exports__, {
49
- "default": function() {
50
- return clipboard2;
51
- }
52
- });
53
- var tiny_emitter = __webpack_require__2(279);
54
- var tiny_emitter_default = /* @__PURE__ */ __webpack_require__2.n(tiny_emitter);
55
- var listen = __webpack_require__2(370);
56
- var listen_default = /* @__PURE__ */ __webpack_require__2.n(listen);
57
- var src_select = __webpack_require__2(817);
58
- var select_default = /* @__PURE__ */ __webpack_require__2.n(src_select);
59
- function command(type) {
60
- try {
61
- return document.execCommand(type);
62
- } catch (err) {
63
- return false;
64
- }
65
- }
66
- var ClipboardActionCut = function ClipboardActionCut2(target) {
67
- var selectedText = select_default()(target);
68
- command("cut");
69
- return selectedText;
70
- };
71
- var actions_cut = ClipboardActionCut;
72
- function createFakeElement(value) {
73
- var isRTL = document.documentElement.getAttribute("dir") === "rtl";
74
- var fakeElement = document.createElement("textarea");
75
- fakeElement.style.fontSize = "12pt";
76
- fakeElement.style.border = "0";
77
- fakeElement.style.padding = "0";
78
- fakeElement.style.margin = "0";
79
- fakeElement.style.position = "absolute";
80
- fakeElement.style[isRTL ? "right" : "left"] = "-9999px";
81
- var yPosition = window.pageYOffset || document.documentElement.scrollTop;
82
- fakeElement.style.top = "".concat(yPosition, "px");
83
- fakeElement.setAttribute("readonly", "");
84
- fakeElement.value = value;
85
- return fakeElement;
86
- }
87
- var fakeCopyAction = function fakeCopyAction2(value, options) {
88
- var fakeElement = createFakeElement(value);
89
- options.container.appendChild(fakeElement);
90
- var selectedText = select_default()(fakeElement);
91
- command("copy");
92
- fakeElement.remove();
93
- return selectedText;
94
- };
95
- var ClipboardActionCopy = function ClipboardActionCopy2(target) {
96
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
97
- container: document.body
98
- };
99
- var selectedText = "";
100
- if (typeof target === "string") {
101
- selectedText = fakeCopyAction(target, options);
102
- } else if (target instanceof HTMLInputElement && !["text", "search", "url", "tel", "password"].includes(target === null || target === void 0 ? void 0 : target.type)) {
103
- selectedText = fakeCopyAction(target.value, options);
104
- } else {
105
- selectedText = select_default()(target);
106
- command("copy");
107
- }
108
- return selectedText;
109
- };
110
- var actions_copy = ClipboardActionCopy;
111
- function _typeof(obj) {
112
- "@babel/helpers - typeof";
113
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
114
- _typeof = function _typeof2(obj2) {
115
- return typeof obj2;
116
- };
117
- } else {
118
- _typeof = function _typeof2(obj2) {
119
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
120
- };
121
- }
122
- return _typeof(obj);
123
- }
124
- var ClipboardActionDefault = function ClipboardActionDefault2() {
125
- var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
126
- var _options$action = options.action, action = _options$action === void 0 ? "copy" : _options$action, container = options.container, target = options.target, text = options.text;
127
- if (action !== "copy" && action !== "cut") {
128
- throw new Error('Invalid "action" value, use either "copy" or "cut"');
129
- }
130
- if (target !== void 0) {
131
- if (target && _typeof(target) === "object" && target.nodeType === 1) {
132
- if (action === "copy" && target.hasAttribute("disabled")) {
133
- throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
134
- }
135
- if (action === "cut" && (target.hasAttribute("readonly") || target.hasAttribute("disabled"))) {
136
- throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);
137
- }
138
- } else {
139
- throw new Error('Invalid "target" value, use a valid Element');
140
- }
141
- }
142
- if (text) {
143
- return actions_copy(text, {
144
- container
145
- });
146
- }
147
- if (target) {
148
- return action === "cut" ? actions_cut(target) : actions_copy(target, {
149
- container
150
- });
151
- }
152
- };
153
- var actions_default = ClipboardActionDefault;
154
- function clipboard_typeof(obj) {
155
- "@babel/helpers - typeof";
156
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
157
- clipboard_typeof = function _typeof2(obj2) {
158
- return typeof obj2;
159
- };
160
- } else {
161
- clipboard_typeof = function _typeof2(obj2) {
162
- return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
163
- };
164
- }
165
- return clipboard_typeof(obj);
166
- }
167
- function _classCallCheck(instance, Constructor) {
168
- if (!(instance instanceof Constructor)) {
169
- throw new TypeError("Cannot call a class as a function");
170
- }
171
- }
172
- function _defineProperties(target, props) {
173
- for (var i = 0; i < props.length; i++) {
174
- var descriptor = props[i];
175
- descriptor.enumerable = descriptor.enumerable || false;
176
- descriptor.configurable = true;
177
- if ("value" in descriptor)
178
- descriptor.writable = true;
179
- Object.defineProperty(target, descriptor.key, descriptor);
180
- }
181
- }
182
- function _createClass(Constructor, protoProps, staticProps) {
183
- if (protoProps)
184
- _defineProperties(Constructor.prototype, protoProps);
185
- if (staticProps)
186
- _defineProperties(Constructor, staticProps);
187
- return Constructor;
188
- }
189
- function _inherits(subClass, superClass) {
190
- if (typeof superClass !== "function" && superClass !== null) {
191
- throw new TypeError("Super expression must either be null or a function");
192
- }
193
- subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
194
- if (superClass)
195
- _setPrototypeOf(subClass, superClass);
196
- }
197
- function _setPrototypeOf(o, p) {
198
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) {
199
- o2.__proto__ = p2;
200
- return o2;
201
- };
202
- return _setPrototypeOf(o, p);
203
- }
204
- function _createSuper(Derived) {
205
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
206
- return function _createSuperInternal() {
207
- var Super = _getPrototypeOf(Derived), result;
208
- if (hasNativeReflectConstruct) {
209
- var NewTarget = _getPrototypeOf(this).constructor;
210
- result = Reflect.construct(Super, arguments, NewTarget);
211
- } else {
212
- result = Super.apply(this, arguments);
213
- }
214
- return _possibleConstructorReturn(this, result);
215
- };
216
- }
217
- function _possibleConstructorReturn(self, call) {
218
- if (call && (clipboard_typeof(call) === "object" || typeof call === "function")) {
219
- return call;
220
- }
221
- return _assertThisInitialized(self);
222
- }
223
- function _assertThisInitialized(self) {
224
- if (self === void 0) {
225
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
226
- }
227
- return self;
228
- }
229
- function _isNativeReflectConstruct() {
230
- if (typeof Reflect === "undefined" || !Reflect.construct)
231
- return false;
232
- if (Reflect.construct.sham)
233
- return false;
234
- if (typeof Proxy === "function")
235
- return true;
236
- try {
237
- Date.prototype.toString.call(Reflect.construct(Date, [], function() {
238
- }));
239
- return true;
240
- } catch (e) {
241
- return false;
242
- }
243
- }
244
- function _getPrototypeOf(o) {
245
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
246
- return o2.__proto__ || Object.getPrototypeOf(o2);
247
- };
248
- return _getPrototypeOf(o);
249
- }
250
- function getAttributeValue(suffix, element) {
251
- var attribute = "data-clipboard-".concat(suffix);
252
- if (!element.hasAttribute(attribute)) {
253
- return;
254
- }
255
- return element.getAttribute(attribute);
256
- }
257
- var Clipboard2 = /* @__PURE__ */ function(_Emitter) {
258
- _inherits(Clipboard3, _Emitter);
259
- var _super = _createSuper(Clipboard3);
260
- function Clipboard3(trigger, options) {
261
- var _this;
262
- _classCallCheck(this, Clipboard3);
263
- _this = _super.call(this);
264
- _this.resolveOptions(options);
265
- _this.listenClick(trigger);
266
- return _this;
267
- }
268
- _createClass(Clipboard3, [{
269
- key: "resolveOptions",
270
- value: function resolveOptions() {
271
- var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
272
- this.action = typeof options.action === "function" ? options.action : this.defaultAction;
273
- this.target = typeof options.target === "function" ? options.target : this.defaultTarget;
274
- this.text = typeof options.text === "function" ? options.text : this.defaultText;
275
- this.container = clipboard_typeof(options.container) === "object" ? options.container : document.body;
276
- }
277
- }, {
278
- key: "listenClick",
279
- value: function listenClick(trigger) {
280
- var _this2 = this;
281
- this.listener = listen_default()(trigger, "click", function(e) {
282
- return _this2.onClick(e);
283
- });
284
- }
285
- }, {
286
- key: "onClick",
287
- value: function onClick(e) {
288
- var trigger = e.delegateTarget || e.currentTarget;
289
- var action = this.action(trigger) || "copy";
290
- var text = actions_default({
291
- action,
292
- container: this.container,
293
- target: this.target(trigger),
294
- text: this.text(trigger)
295
- });
296
- this.emit(text ? "success" : "error", {
297
- action,
298
- text,
299
- trigger,
300
- clearSelection: function clearSelection() {
301
- if (trigger) {
302
- trigger.focus();
303
- }
304
- window.getSelection().removeAllRanges();
305
- }
306
- });
307
- }
308
- }, {
309
- key: "defaultAction",
310
- value: function defaultAction(trigger) {
311
- return getAttributeValue("action", trigger);
312
- }
313
- }, {
314
- key: "defaultTarget",
315
- value: function defaultTarget(trigger) {
316
- var selector = getAttributeValue("target", trigger);
317
- if (selector) {
318
- return document.querySelector(selector);
319
- }
320
- }
321
- }, {
322
- key: "defaultText",
323
- value: function defaultText(trigger) {
324
- return getAttributeValue("text", trigger);
325
- }
326
- }, {
327
- key: "destroy",
328
- value: function destroy() {
329
- this.listener.destroy();
330
- }
331
- }], [{
332
- key: "copy",
333
- value: function copy(target) {
334
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
335
- container: document.body
336
- };
337
- return actions_copy(target, options);
338
- }
339
- }, {
340
- key: "cut",
341
- value: function cut(target) {
342
- return actions_cut(target);
343
- }
344
- }, {
345
- key: "isSupported",
346
- value: function isSupported() {
347
- var action = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"];
348
- var actions = typeof action === "string" ? [action] : action;
349
- var support = !!document.queryCommandSupported;
350
- actions.forEach(function(action2) {
351
- support = support && !!document.queryCommandSupported(action2);
352
- });
353
- return support;
354
- }
355
- }]);
356
- return Clipboard3;
357
- }(tiny_emitter_default());
358
- var clipboard2 = Clipboard2;
359
- },
360
- 828: function(module2) {
361
- var DOCUMENT_NODE_TYPE = 9;
362
- if (typeof Element !== "undefined" && !Element.prototype.matches) {
363
- var proto = Element.prototype;
364
- proto.matches = proto.matchesSelector || proto.mozMatchesSelector || proto.msMatchesSelector || proto.oMatchesSelector || proto.webkitMatchesSelector;
365
- }
366
- function closest(element, selector) {
367
- while (element && element.nodeType !== DOCUMENT_NODE_TYPE) {
368
- if (typeof element.matches === "function" && element.matches(selector)) {
369
- return element;
370
- }
371
- element = element.parentNode;
372
- }
373
- }
374
- module2.exports = closest;
375
- },
376
- 438: function(module2, __unused_webpack_exports, __webpack_require__2) {
377
- var closest = __webpack_require__2(828);
378
- function _delegate(element, selector, type, callback, useCapture) {
379
- var listenerFn = listener.apply(this, arguments);
380
- element.addEventListener(type, listenerFn, useCapture);
381
- return {
382
- destroy: function() {
383
- element.removeEventListener(type, listenerFn, useCapture);
384
- }
385
- };
386
- }
387
- function delegate(elements, selector, type, callback, useCapture) {
388
- if (typeof elements.addEventListener === "function") {
389
- return _delegate.apply(null, arguments);
390
- }
391
- if (typeof type === "function") {
392
- return _delegate.bind(null, document).apply(null, arguments);
393
- }
394
- if (typeof elements === "string") {
395
- elements = document.querySelectorAll(elements);
396
- }
397
- return Array.prototype.map.call(elements, function(element) {
398
- return _delegate(element, selector, type, callback, useCapture);
399
- });
400
- }
401
- function listener(element, selector, type, callback) {
402
- return function(e) {
403
- e.delegateTarget = closest(e.target, selector);
404
- if (e.delegateTarget) {
405
- callback.call(element, e);
406
- }
407
- };
408
- }
409
- module2.exports = delegate;
410
- },
411
- 879: function(__unused_webpack_module, exports2) {
412
- exports2.node = function(value) {
413
- return value !== void 0 && value instanceof HTMLElement && value.nodeType === 1;
414
- };
415
- exports2.nodeList = function(value) {
416
- var type = Object.prototype.toString.call(value);
417
- return value !== void 0 && (type === "[object NodeList]" || type === "[object HTMLCollection]") && "length" in value && (value.length === 0 || exports2.node(value[0]));
418
- };
419
- exports2.string = function(value) {
420
- return typeof value === "string" || value instanceof String;
421
- };
422
- exports2.fn = function(value) {
423
- var type = Object.prototype.toString.call(value);
424
- return type === "[object Function]";
425
- };
426
- },
427
- 370: function(module2, __unused_webpack_exports, __webpack_require__2) {
428
- var is = __webpack_require__2(879);
429
- var delegate = __webpack_require__2(438);
430
- function listen(target, type, callback) {
431
- if (!target && !type && !callback) {
432
- throw new Error("Missing required arguments");
433
- }
434
- if (!is.string(type)) {
435
- throw new TypeError("Second argument must be a String");
436
- }
437
- if (!is.fn(callback)) {
438
- throw new TypeError("Third argument must be a Function");
439
- }
440
- if (is.node(target)) {
441
- return listenNode(target, type, callback);
442
- } else if (is.nodeList(target)) {
443
- return listenNodeList(target, type, callback);
444
- } else if (is.string(target)) {
445
- return listenSelector(target, type, callback);
446
- } else {
447
- throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
448
- }
449
- }
450
- function listenNode(node, type, callback) {
451
- node.addEventListener(type, callback);
452
- return {
453
- destroy: function() {
454
- node.removeEventListener(type, callback);
455
- }
456
- };
457
- }
458
- function listenNodeList(nodeList, type, callback) {
459
- Array.prototype.forEach.call(nodeList, function(node) {
460
- node.addEventListener(type, callback);
461
- });
462
- return {
463
- destroy: function() {
464
- Array.prototype.forEach.call(nodeList, function(node) {
465
- node.removeEventListener(type, callback);
466
- });
467
- }
468
- };
469
- }
470
- function listenSelector(selector, type, callback) {
471
- return delegate(document.body, selector, type, callback);
472
- }
473
- module2.exports = listen;
474
- },
475
- 817: function(module2) {
476
- function select(element) {
477
- var selectedText;
478
- if (element.nodeName === "SELECT") {
479
- element.focus();
480
- selectedText = element.value;
481
- } else if (element.nodeName === "INPUT" || element.nodeName === "TEXTAREA") {
482
- var isReadOnly = element.hasAttribute("readonly");
483
- if (!isReadOnly) {
484
- element.setAttribute("readonly", "");
485
- }
486
- element.select();
487
- element.setSelectionRange(0, element.value.length);
488
- if (!isReadOnly) {
489
- element.removeAttribute("readonly");
490
- }
491
- selectedText = element.value;
492
- } else {
493
- if (element.hasAttribute("contenteditable")) {
494
- element.focus();
495
- }
496
- var selection = window.getSelection();
497
- var range = document.createRange();
498
- range.selectNodeContents(element);
499
- selection.removeAllRanges();
500
- selection.addRange(range);
501
- selectedText = selection.toString();
502
- }
503
- return selectedText;
504
- }
505
- module2.exports = select;
506
- },
507
- 279: function(module2) {
508
- function E() {
509
- }
510
- E.prototype = {
511
- on: function(name, callback, ctx) {
512
- var e = this.e || (this.e = {});
513
- (e[name] || (e[name] = [])).push({
514
- fn: callback,
515
- ctx
516
- });
517
- return this;
518
- },
519
- once: function(name, callback, ctx) {
520
- var self = this;
521
- function listener() {
522
- self.off(name, listener);
523
- callback.apply(ctx, arguments);
524
- }
525
- listener._ = callback;
526
- return this.on(name, listener, ctx);
527
- },
528
- emit: function(name) {
529
- var data = [].slice.call(arguments, 1);
530
- var evtArr = ((this.e || (this.e = {}))[name] || []).slice();
531
- var i = 0;
532
- var len = evtArr.length;
533
- for (i; i < len; i++) {
534
- evtArr[i].fn.apply(evtArr[i].ctx, data);
535
- }
536
- return this;
537
- },
538
- off: function(name, callback) {
539
- var e = this.e || (this.e = {});
540
- var evts = e[name];
541
- var liveEvents = [];
542
- if (evts && callback) {
543
- for (var i = 0, len = evts.length; i < len; i++) {
544
- if (evts[i].fn !== callback && evts[i].fn._ !== callback)
545
- liveEvents.push(evts[i]);
546
- }
547
- }
548
- liveEvents.length ? e[name] = liveEvents : delete e[name];
549
- return this;
550
- }
551
- };
552
- module2.exports = E;
553
- module2.exports.TinyEmitter = E;
554
- }
555
- };
556
- var __webpack_module_cache__ = {};
557
- function __webpack_require__(moduleId) {
558
- if (__webpack_module_cache__[moduleId]) {
559
- return __webpack_module_cache__[moduleId].exports;
560
- }
561
- var module2 = __webpack_module_cache__[moduleId] = {
562
- exports: {}
563
- };
564
- __webpack_modules__[moduleId](module2, module2.exports, __webpack_require__);
565
- return module2.exports;
566
- }
567
- !function() {
568
- __webpack_require__.n = function(module2) {
569
- var getter = module2 && module2.__esModule ? function() {
570
- return module2["default"];
571
- } : function() {
572
- return module2;
573
- };
574
- __webpack_require__.d(getter, { a: getter });
575
- return getter;
576
- };
577
- }();
578
- !function() {
579
- __webpack_require__.d = function(exports2, definition) {
580
- for (var key in definition) {
581
- if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports2, key)) {
582
- Object.defineProperty(exports2, key, { enumerable: true, get: definition[key] });
583
- }
584
- }
585
- };
586
- }();
587
- !function() {
588
- __webpack_require__.o = function(obj, prop) {
589
- return Object.prototype.hasOwnProperty.call(obj, prop);
590
- };
591
- }();
592
- return __webpack_require__(686);
593
- }().default;
594
- });
595
- })(clipboard);
596
- var Clipboard = /* @__PURE__ */ getDefaultExportFromCjs(clipboard.exports);
35
+ import "./_commonjsHelpers.js";
597
36
  const _sfc_main = /* @__PURE__ */ defineComponent({
598
37
  __name: "index",
599
38
  setup(__props, { expose }) {
@@ -684,6 +123,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
684
123
  function onShowOnlineUrl(record) {
685
124
  let id = record.id;
686
125
  let baseUrl = `/online/cgreport/${id}`;
126
+ let insertMenuSql = `INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
127
+ VALUES ('${buildUUID()}', NULL, '${record.name}', '${baseUrl}', '1', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 0, 1, 0, 0, 0, NULL, '1', 0, 0, 'admin', null, NULL, NULL, 0)`;
687
128
  getReportParam(id).then((arr) => {
688
129
  let urlParam = "";
689
130
  if (arr && arr.length > 0) {
@@ -703,23 +144,44 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
703
144
  width: 500,
704
145
  title: `\u83DC\u5355\u94FE\u63A5\u3010${record.name}\u3011`,
705
146
  content: baseUrl,
147
+ closable: true,
706
148
  maskClosable: true,
707
- okText: "\u590D\u5236",
149
+ cancelText: "\u590D\u5236SQL",
150
+ okText: "\u590D\u5236URL",
151
+ cancelButtonProps: {
152
+ class: "copy-this-sql",
153
+ "data-clipboard-text": insertMenuSql
154
+ },
708
155
  okButtonProps: {
709
156
  class: "copy-this-text",
710
157
  "data-clipboard-text": baseUrl
711
158
  },
712
159
  onOk() {
713
160
  return new Promise((resolve) => {
714
- const clipboard2 = new Clipboard(".copy-this-text");
715
- clipboard2.on("success", () => {
716
- clipboard2.destroy();
717
- $message.success("\u590D\u5236\u6210\u529F");
161
+ const clipboard = new Clipboard(".copy-this-text");
162
+ clipboard.on("success", () => {
163
+ clipboard.destroy();
164
+ $message.success("\u590D\u5236URL\u6210\u529F");
165
+ resolve();
166
+ });
167
+ clipboard.on("error", () => {
168
+ $message.error("\u8BE5\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u81EA\u52A8\u590D\u5236");
169
+ clipboard.destroy();
170
+ resolve();
171
+ });
172
+ });
173
+ },
174
+ onCancel() {
175
+ return new Promise((resolve) => {
176
+ const clipboard = new Clipboard(".copy-this-sql");
177
+ clipboard.on("success", () => {
178
+ clipboard.destroy();
179
+ $message.success("\u590D\u5236\u63D2\u5165\u83DC\u5355SQL\u6210\u529F");
718
180
  resolve();
719
181
  });
720
- clipboard2.on("error", () => {
182
+ clipboard.on("error", () => {
721
183
  $message.error("\u8BE5\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u81EA\u52A8\u590D\u5236");
722
- clipboard2.destroy();
184
+ clipboard.destroy();
723
185
  resolve();
724
186
  });
725
187
  });
package/isArray.js CHANGED
@@ -44,4 +44,4 @@ function isObjectLike(value) {
44
44
  }
45
45
  var isArray = Array.isArray;
46
46
  var isArray$1 = isArray;
47
- export { Symbol$2 as S, isObjectLike as a, baseGetTag as b, freeGlobal$1 as f, isArray$1 as i, root$1 as r };
47
+ export { Symbol$2 as S, isArray$1 as a, baseGetTag as b, freeGlobal$1 as f, isObjectLike as i, root$1 as r };
package/main.index.js CHANGED
@@ -1,6 +1,6 @@
1
- import "vue";
2
1
  export { L as LinkTableCard, a as LinkTableSelect, O as OnlineSelectCascade, i as default } from "./index.js";
3
- import "/@/utils/http/axios";
2
+ import "vue";
3
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
4
4
  import "/@/hooks/web/useMessage";
5
- import "@vueuse/core";
5
+ import "vue-router";
6
6
  import "./style.css";
package/omit.js CHANGED
@@ -2,7 +2,7 @@ import { a as arrayMap } from "./toString.js";
2
2
  import { g as getPrototype, c as copyObject, a as getAllKeysIn, b as baseClone } from "./_baseClone.js";
3
3
  import { b as baseGet, c as castPath, t as toKey, f as flatRest } from "./_flatRest.js";
4
4
  import { b as baseSlice } from "./_baseSlice.js";
5
- import { a as isObjectLike, b as baseGetTag } from "./isArray.js";
5
+ import { i as isObjectLike, b as baseGetTag } from "./isArray.js";
6
6
  var objectTag = "[object Object]";
7
7
  var funcProto = Function.prototype, objectProto = Object.prototype;
8
8
  var funcToString = funcProto.toString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jeecg/online",
3
- "version": "3.4.3",
3
+ "version": "3.4.4-beta2",
4
4
  "main": "./main.index.js",
5
5
  "module": "./main.index.js"
6
6
  }
package/pick.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { c as castPath, t as toKey, b as baseGet, f as flatRest } from "./_flatRest.js";
2
2
  import { i as isLength, a as isIndex, b as isArguments, c as isObject, d as assignValue } from "./_arrayPush.js";
3
- import { i as isArray } from "./isArray.js";
3
+ import { a as isArray } from "./isArray.js";
4
4
  function baseHasIn(object, key) {
5
5
  return object != null && key in Object(object);
6
6
  }