element-less 0.0.16 → 0.0.18

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.
@@ -5,11 +5,11 @@ import pkg from "file-saver";
5
5
  import * as XLSX from "xlsx";
6
6
  import { ElMessage, formItemProps as formItemProps$2, formProps as formProps$2, inputProps as inputProps$1, ElSpace, inputEmits, radioProps as radioProps$1, checkboxProps as checkboxProps$1, rowProps, useNamespace, rowContextKey, colProps, ElForm, ElButton, paginationProps, ElLoading, menuProps as menuProps$1, ElMenu, menuItemProps as menuItemProps$1, menuItemEmits, ElMenuItem, subMenuProps as subMenuProps$1, ElSubMenu, switchProps as switchProps$1, imageProps as imageProps$1, imageViewerProps as imageViewerProps$1, autocompleteProps as autocompleteProps$1, cascaderProps as cascaderProps$1, dialogProps as dialogProps$1, drawerProps as drawerProps$1, dropdownProps as dropdownProps$1, sliderProps as sliderProps$1, inputNumberProps as inputNumberProps$1, uploadProps as uploadProps$1, ElNotification, timePickerDefaultProps, datePickerProps as datePickerProps$1, tabsProps as tabsProps$1, colorPickerProps as colorPickerProps$1, segmentedProps as segmentedProps$1, ElContainer, ElMessageBox, useSizeProp as useSizeProp$1 } from "element-plus";
7
7
  import { onUnmounted, onDeactivated, isRef, watch, onMounted, nextTick, onActivated, unref, ref, reactive, getCurrentInstance, defineComponent, computed, createVNode, onBeforeUnmount, provide, watchEffect, inject, mergeProps, Transition, withDirectives, vShow, Teleport, Fragment, createApp, openBlock, createElementBlock, createElementVNode, warn, useAttrs, useSlots, resolveComponent, renderSlot, withCtx, createBlock, normalizeProps, guardReactiveProps, createSlots, createCommentVNode, createTextVNode, toDisplayString, renderList, resolveDynamicComponent, normalizeClass, normalizeStyle, mergeModels, useModel as useModel$1, onErrorCaptured, h, resolveDirective, withModifiers, pushScopeId, popScopeId, defineAsyncComponent, Suspense, createStaticVNode, shallowRef } from "vue";
8
+ import { useClipboard, onClickOutside } from "@vueuse/core";
8
9
  import axios from "axios";
9
10
  import lodash from "lodash";
10
11
  import draggable from "vuedraggable";
11
12
  import Sortable from "sortablejs";
12
- import { onClickOutside } from "@vueuse/core";
13
13
  import { MdPreview, MdEditor } from "md-editor-v3";
14
14
  import { defineStore } from "pinia";
15
15
  import prism from "prismjs";
@@ -215,252 +215,6 @@ function exportJsonToExcel(data) {
215
215
  type: "application/octet-stream"
216
216
  }), a + "." + u);
217
217
  }
218
- function getDefaultExportFromCjs(x) {
219
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
220
- }
221
- /*! clipboard-copy. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
222
- var clipboardCopy_1 = clipboardCopy;
223
- function makeError() {
224
- return new DOMException("The request is not allowed", "NotAllowedError");
225
- }
226
- async function copyClipboardApi(text) {
227
- if (!navigator.clipboard) {
228
- throw makeError();
229
- }
230
- return navigator.clipboard.writeText(text);
231
- }
232
- async function copyExecCommand(text) {
233
- const span = document.createElement("span");
234
- span.textContent = text;
235
- span.style.whiteSpace = "pre";
236
- span.style.webkitUserSelect = "auto";
237
- span.style.userSelect = "all";
238
- document.body.appendChild(span);
239
- const selection = window.getSelection();
240
- const range = window.document.createRange();
241
- selection.removeAllRanges();
242
- range.selectNode(span);
243
- selection.addRange(range);
244
- let success = false;
245
- try {
246
- success = window.document.execCommand("copy");
247
- } finally {
248
- selection.removeAllRanges();
249
- window.document.body.removeChild(span);
250
- }
251
- if (!success) throw makeError();
252
- }
253
- async function clipboardCopy(text) {
254
- try {
255
- await copyClipboardApi(text);
256
- } catch (err) {
257
- try {
258
- await copyExecCommand(text);
259
- } catch (err2) {
260
- throw err2 || err || makeError();
261
- }
262
- }
263
- }
264
- const useCopy = /* @__PURE__ */ getDefaultExportFromCjs(clipboardCopy_1);
265
- var lib = { exports: {} };
266
- var seed = 1;
267
- function getNextValue() {
268
- seed = (seed * 9301 + 49297) % 233280;
269
- return seed / 233280;
270
- }
271
- function setSeed$1(_seed_) {
272
- seed = _seed_;
273
- }
274
- var randomFromSeed$1 = {
275
- nextValue: getNextValue,
276
- seed: setSeed$1
277
- };
278
- var randomFromSeed = randomFromSeed$1;
279
- var ORIGINAL = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";
280
- var alphabet$2;
281
- var previousSeed;
282
- var shuffled;
283
- function reset() {
284
- shuffled = false;
285
- }
286
- function setCharacters(_alphabet_) {
287
- if (!_alphabet_) {
288
- if (alphabet$2 !== ORIGINAL) {
289
- alphabet$2 = ORIGINAL;
290
- reset();
291
- }
292
- return;
293
- }
294
- if (_alphabet_ === alphabet$2) {
295
- return;
296
- }
297
- if (_alphabet_.length !== ORIGINAL.length) {
298
- throw new Error("Custom alphabet for shortid must be " + ORIGINAL.length + " unique characters. You submitted " + _alphabet_.length + " characters: " + _alphabet_);
299
- }
300
- var unique = _alphabet_.split("").filter(function(item, ind, arr) {
301
- return ind !== arr.lastIndexOf(item);
302
- });
303
- if (unique.length) {
304
- throw new Error("Custom alphabet for shortid must be " + ORIGINAL.length + " unique characters. These characters were not unique: " + unique.join(", "));
305
- }
306
- alphabet$2 = _alphabet_;
307
- reset();
308
- }
309
- function characters(_alphabet_) {
310
- setCharacters(_alphabet_);
311
- return alphabet$2;
312
- }
313
- function setSeed(seed2) {
314
- randomFromSeed.seed(seed2);
315
- if (previousSeed !== seed2) {
316
- reset();
317
- previousSeed = seed2;
318
- }
319
- }
320
- function shuffle() {
321
- if (!alphabet$2) {
322
- setCharacters(ORIGINAL);
323
- }
324
- var sourceArray = alphabet$2.split("");
325
- var targetArray = [];
326
- var r = randomFromSeed.nextValue();
327
- var characterIndex;
328
- while (sourceArray.length > 0) {
329
- r = randomFromSeed.nextValue();
330
- characterIndex = Math.floor(r * sourceArray.length);
331
- targetArray.push(sourceArray.splice(characterIndex, 1)[0]);
332
- }
333
- return targetArray.join("");
334
- }
335
- function getShuffled() {
336
- if (shuffled) {
337
- return shuffled;
338
- }
339
- shuffled = shuffle();
340
- return shuffled;
341
- }
342
- function lookup(index) {
343
- var alphabetShuffled = getShuffled();
344
- return alphabetShuffled[index];
345
- }
346
- function get$1() {
347
- return alphabet$2 || ORIGINAL;
348
- }
349
- var alphabet_1 = {
350
- get: get$1,
351
- characters,
352
- seed: setSeed,
353
- lookup,
354
- shuffled: getShuffled
355
- };
356
- var crypto = typeof window === "object" && (window.crypto || window.msCrypto);
357
- var randomByte;
358
- if (!crypto || !crypto.getRandomValues) {
359
- randomByte = function(size) {
360
- var bytes = [];
361
- for (var i = 0; i < size; i++) {
362
- bytes.push(Math.floor(Math.random() * 256));
363
- }
364
- return bytes;
365
- };
366
- } else {
367
- randomByte = function(size) {
368
- return crypto.getRandomValues(new Uint8Array(size));
369
- };
370
- }
371
- var randomByteBrowser = randomByte;
372
- var format_browser = function(random2, alphabet2, size) {
373
- var mask = (2 << Math.log(alphabet2.length - 1) / Math.LN2) - 1;
374
- var step = -~(1.6 * mask * size / alphabet2.length);
375
- var id = "";
376
- while (true) {
377
- var bytes = random2(step);
378
- var i = step;
379
- while (i--) {
380
- id += alphabet2[bytes[i] & mask] || "";
381
- if (id.length === +size) return id;
382
- }
383
- }
384
- };
385
- var alphabet$1 = alphabet_1;
386
- var random = randomByteBrowser;
387
- var format = format_browser;
388
- function generate$1(number) {
389
- var loopCounter = 0;
390
- var done;
391
- var str = "";
392
- while (!done) {
393
- str = str + format(random, alphabet$1.get(), 1);
394
- done = number < Math.pow(16, loopCounter + 1);
395
- loopCounter++;
396
- }
397
- return str;
398
- }
399
- var generate_1 = generate$1;
400
- var generate = generate_1;
401
- var REDUCE_TIME = 1567752802062;
402
- var version = 7;
403
- var counter;
404
- var previousSeconds;
405
- function build(clusterWorkerId) {
406
- var str = "";
407
- var seconds = Math.floor((Date.now() - REDUCE_TIME) * 1e-3);
408
- if (seconds === previousSeconds) {
409
- counter++;
410
- } else {
411
- counter = 0;
412
- previousSeconds = seconds;
413
- }
414
- str = str + generate(version);
415
- str = str + generate(clusterWorkerId);
416
- if (counter > 0) {
417
- str = str + generate(counter);
418
- }
419
- str = str + generate(seconds);
420
- return str;
421
- }
422
- var build_1 = build;
423
- var alphabet = alphabet_1;
424
- function isShortId(id) {
425
- if (!id || typeof id !== "string" || id.length < 6) {
426
- return false;
427
- }
428
- var nonAlphabetic = new RegExp("[^" + alphabet.get().replace(/[|\\{}()[\]^$+*?.-]/g, "\\$&") + "]");
429
- return !nonAlphabetic.test(id);
430
- }
431
- var isValid = isShortId;
432
- (function(module) {
433
- var alphabet2 = alphabet_1;
434
- var build2 = build_1;
435
- var isValid$1 = isValid;
436
- var clusterWorkerId = 0;
437
- function seed2(seedValue) {
438
- alphabet2.seed(seedValue);
439
- return module.exports;
440
- }
441
- function worker(workerId) {
442
- clusterWorkerId = workerId;
443
- return module.exports;
444
- }
445
- function characters2(newCharacters) {
446
- if (newCharacters !== void 0) {
447
- alphabet2.characters(newCharacters);
448
- }
449
- return alphabet2.shuffled();
450
- }
451
- function generate2() {
452
- return build2(clusterWorkerId);
453
- }
454
- module.exports = generate2;
455
- module.exports.generate = generate2;
456
- module.exports.seed = seed2;
457
- module.exports.worker = worker;
458
- module.exports.characters = characters2;
459
- module.exports.isValid = isValid$1;
460
- })(lib);
461
- var libExports = lib.exports;
462
- var shortid = libExports;
463
- const shortid$1 = /* @__PURE__ */ getDefaultExportFromCjs(shortid);
464
218
  function noop() {
465
219
  }
466
220
  const extend = Object.assign;
@@ -471,7 +225,7 @@ const isFunction$2 = (val) => typeof val === "function";
471
225
  const isPromise = (val) => isObject$2(val) && isFunction$2(val.then) && isFunction$2(val.catch);
472
226
  const isNumeric = (val) => typeof val === "number" || /^\d+(\.\d+)?$/.test(val);
473
227
  const isIOS = () => inBrowser$1 ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
474
- function get(object, path) {
228
+ function get$1(object, path) {
475
229
  const keys = path.split(".");
476
230
  let result = object;
477
231
  keys.forEach((key) => {
@@ -725,7 +479,7 @@ function createTranslate(name2) {
725
479
  const prefix = camelize(name2) + ".";
726
480
  return (path, ...args) => {
727
481
  const messages2 = stdin_default$5.messages();
728
- const message = get(messages2, prefix + path) || get(messages2, path);
482
+ const message = get$1(messages2, prefix + path) || get$1(messages2, path);
729
483
  return isFunction$2(message) ? message(...args) : message;
730
484
  };
731
485
  }
@@ -1644,6 +1398,208 @@ const handler = {
1644
1398
  }
1645
1399
  };
1646
1400
  const ProxyElsMessage = new Proxy(ElsMessage, handler);
1401
+ function getDefaultExportFromCjs(x) {
1402
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
1403
+ }
1404
+ var lib = { exports: {} };
1405
+ var seed = 1;
1406
+ function getNextValue() {
1407
+ seed = (seed * 9301 + 49297) % 233280;
1408
+ return seed / 233280;
1409
+ }
1410
+ function setSeed$1(_seed_) {
1411
+ seed = _seed_;
1412
+ }
1413
+ var randomFromSeed$1 = {
1414
+ nextValue: getNextValue,
1415
+ seed: setSeed$1
1416
+ };
1417
+ var randomFromSeed = randomFromSeed$1;
1418
+ var ORIGINAL = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";
1419
+ var alphabet$2;
1420
+ var previousSeed;
1421
+ var shuffled;
1422
+ function reset() {
1423
+ shuffled = false;
1424
+ }
1425
+ function setCharacters(_alphabet_) {
1426
+ if (!_alphabet_) {
1427
+ if (alphabet$2 !== ORIGINAL) {
1428
+ alphabet$2 = ORIGINAL;
1429
+ reset();
1430
+ }
1431
+ return;
1432
+ }
1433
+ if (_alphabet_ === alphabet$2) {
1434
+ return;
1435
+ }
1436
+ if (_alphabet_.length !== ORIGINAL.length) {
1437
+ throw new Error("Custom alphabet for shortid must be " + ORIGINAL.length + " unique characters. You submitted " + _alphabet_.length + " characters: " + _alphabet_);
1438
+ }
1439
+ var unique = _alphabet_.split("").filter(function(item, ind, arr) {
1440
+ return ind !== arr.lastIndexOf(item);
1441
+ });
1442
+ if (unique.length) {
1443
+ throw new Error("Custom alphabet for shortid must be " + ORIGINAL.length + " unique characters. These characters were not unique: " + unique.join(", "));
1444
+ }
1445
+ alphabet$2 = _alphabet_;
1446
+ reset();
1447
+ }
1448
+ function characters(_alphabet_) {
1449
+ setCharacters(_alphabet_);
1450
+ return alphabet$2;
1451
+ }
1452
+ function setSeed(seed2) {
1453
+ randomFromSeed.seed(seed2);
1454
+ if (previousSeed !== seed2) {
1455
+ reset();
1456
+ previousSeed = seed2;
1457
+ }
1458
+ }
1459
+ function shuffle() {
1460
+ if (!alphabet$2) {
1461
+ setCharacters(ORIGINAL);
1462
+ }
1463
+ var sourceArray = alphabet$2.split("");
1464
+ var targetArray = [];
1465
+ var r = randomFromSeed.nextValue();
1466
+ var characterIndex;
1467
+ while (sourceArray.length > 0) {
1468
+ r = randomFromSeed.nextValue();
1469
+ characterIndex = Math.floor(r * sourceArray.length);
1470
+ targetArray.push(sourceArray.splice(characterIndex, 1)[0]);
1471
+ }
1472
+ return targetArray.join("");
1473
+ }
1474
+ function getShuffled() {
1475
+ if (shuffled) {
1476
+ return shuffled;
1477
+ }
1478
+ shuffled = shuffle();
1479
+ return shuffled;
1480
+ }
1481
+ function lookup(index) {
1482
+ var alphabetShuffled = getShuffled();
1483
+ return alphabetShuffled[index];
1484
+ }
1485
+ function get() {
1486
+ return alphabet$2 || ORIGINAL;
1487
+ }
1488
+ var alphabet_1 = {
1489
+ get,
1490
+ characters,
1491
+ seed: setSeed,
1492
+ lookup,
1493
+ shuffled: getShuffled
1494
+ };
1495
+ var crypto = typeof window === "object" && (window.crypto || window.msCrypto);
1496
+ var randomByte;
1497
+ if (!crypto || !crypto.getRandomValues) {
1498
+ randomByte = function(size) {
1499
+ var bytes = [];
1500
+ for (var i = 0; i < size; i++) {
1501
+ bytes.push(Math.floor(Math.random() * 256));
1502
+ }
1503
+ return bytes;
1504
+ };
1505
+ } else {
1506
+ randomByte = function(size) {
1507
+ return crypto.getRandomValues(new Uint8Array(size));
1508
+ };
1509
+ }
1510
+ var randomByteBrowser = randomByte;
1511
+ var format_browser = function(random2, alphabet2, size) {
1512
+ var mask = (2 << Math.log(alphabet2.length - 1) / Math.LN2) - 1;
1513
+ var step = -~(1.6 * mask * size / alphabet2.length);
1514
+ var id = "";
1515
+ while (true) {
1516
+ var bytes = random2(step);
1517
+ var i = step;
1518
+ while (i--) {
1519
+ id += alphabet2[bytes[i] & mask] || "";
1520
+ if (id.length === +size) return id;
1521
+ }
1522
+ }
1523
+ };
1524
+ var alphabet$1 = alphabet_1;
1525
+ var random = randomByteBrowser;
1526
+ var format = format_browser;
1527
+ function generate$1(number) {
1528
+ var loopCounter = 0;
1529
+ var done;
1530
+ var str = "";
1531
+ while (!done) {
1532
+ str = str + format(random, alphabet$1.get(), 1);
1533
+ done = number < Math.pow(16, loopCounter + 1);
1534
+ loopCounter++;
1535
+ }
1536
+ return str;
1537
+ }
1538
+ var generate_1 = generate$1;
1539
+ var generate = generate_1;
1540
+ var REDUCE_TIME = 1567752802062;
1541
+ var version = 7;
1542
+ var counter;
1543
+ var previousSeconds;
1544
+ function build(clusterWorkerId) {
1545
+ var str = "";
1546
+ var seconds = Math.floor((Date.now() - REDUCE_TIME) * 1e-3);
1547
+ if (seconds === previousSeconds) {
1548
+ counter++;
1549
+ } else {
1550
+ counter = 0;
1551
+ previousSeconds = seconds;
1552
+ }
1553
+ str = str + generate(version);
1554
+ str = str + generate(clusterWorkerId);
1555
+ if (counter > 0) {
1556
+ str = str + generate(counter);
1557
+ }
1558
+ str = str + generate(seconds);
1559
+ return str;
1560
+ }
1561
+ var build_1 = build;
1562
+ var alphabet = alphabet_1;
1563
+ function isShortId(id) {
1564
+ if (!id || typeof id !== "string" || id.length < 6) {
1565
+ return false;
1566
+ }
1567
+ var nonAlphabetic = new RegExp("[^" + alphabet.get().replace(/[|\\{}()[\]^$+*?.-]/g, "\\$&") + "]");
1568
+ return !nonAlphabetic.test(id);
1569
+ }
1570
+ var isValid = isShortId;
1571
+ (function(module) {
1572
+ var alphabet2 = alphabet_1;
1573
+ var build2 = build_1;
1574
+ var isValid$1 = isValid;
1575
+ var clusterWorkerId = 0;
1576
+ function seed2(seedValue) {
1577
+ alphabet2.seed(seedValue);
1578
+ return module.exports;
1579
+ }
1580
+ function worker(workerId) {
1581
+ clusterWorkerId = workerId;
1582
+ return module.exports;
1583
+ }
1584
+ function characters2(newCharacters) {
1585
+ if (newCharacters !== void 0) {
1586
+ alphabet2.characters(newCharacters);
1587
+ }
1588
+ return alphabet2.shuffled();
1589
+ }
1590
+ function generate2() {
1591
+ return build2(clusterWorkerId);
1592
+ }
1593
+ module.exports = generate2;
1594
+ module.exports.generate = generate2;
1595
+ module.exports.seed = seed2;
1596
+ module.exports.worker = worker;
1597
+ module.exports.characters = characters2;
1598
+ module.exports.isValid = isValid$1;
1599
+ })(lib);
1600
+ var libExports = lib.exports;
1601
+ var shortid = libExports;
1602
+ const shortid$1 = /* @__PURE__ */ getDefaultExportFromCjs(shortid);
1647
1603
  const defaultConfig = {
1648
1604
  api: {
1649
1605
  code: "ResultCode",
@@ -1724,6 +1680,24 @@ function setJwtToken(token) {
1724
1680
  const axiosInstance2 = getAxiosInstance();
1725
1681
  axiosInstance2.defaults.headers.common["Authorization"] = `Bearer ${token}`;
1726
1682
  }
1683
+ function setRequestInterceptors(config, error) {
1684
+ const axiosInstance2 = getAxiosInstance();
1685
+ if (!error) {
1686
+ error = (err) => {
1687
+ return Promise.reject(err);
1688
+ };
1689
+ }
1690
+ axiosInstance2.interceptors.request.use(config, error);
1691
+ }
1692
+ function setResponseInterceptors(response, error) {
1693
+ const axiosInstance2 = getAxiosInstance();
1694
+ if (!error) {
1695
+ error = (err) => {
1696
+ return Promise.reject(err);
1697
+ };
1698
+ }
1699
+ axiosInstance2.interceptors.response.use(response, error);
1700
+ }
1727
1701
  const utils = {
1728
1702
  jsonFormatter(obj) {
1729
1703
  if (!obj) {
@@ -2318,7 +2292,7 @@ const utils = {
2318
2292
  },
2319
2293
  upload(url, formData) {
2320
2294
  if (!formData) {
2321
- ElMessage.warning("请选择要上传的文件");
2295
+ ProxyElsMessage.warning("请选择要上传的文件");
2322
2296
  return;
2323
2297
  }
2324
2298
  const axiosInstance2 = getAxiosInstance();
@@ -2382,10 +2356,10 @@ const utils = {
2382
2356
  }, {});
2383
2357
  },
2384
2358
  clip(text) {
2385
- useCopy(text).then((res) => {
2386
- ElMessage.success("复制成功");
2359
+ useClipboard().copy(text).then((res) => {
2360
+ ProxyElsMessage.success("复制成功");
2387
2361
  }).catch((err) => {
2388
- ElMessage.error("复制失败");
2362
+ ProxyElsMessage.error("复制失败");
2389
2363
  });
2390
2364
  },
2391
2365
  isEmptyObject(obj) {
@@ -2426,6 +2400,12 @@ Number.prototype.appendPx = function() {
2426
2400
  }
2427
2401
  return "";
2428
2402
  };
2403
+ Number.prototype.formatDate = function(format2) {
2404
+ if (!this) {
2405
+ return "";
2406
+ }
2407
+ return utils.formatDate(this, format2);
2408
+ };
2429
2409
  String.prototype.setPowerPublicQuery = function() {
2430
2410
  if (!this) {
2431
2411
  return "";
@@ -2506,9 +2486,25 @@ String.prototype.cutWord = function(len) {
2506
2486
  };
2507
2487
  String.prototype.replacePowerUrl = function replacePowerUrl() {
2508
2488
  try {
2489
+ let currUrl = this;
2509
2490
  if (this && this.indexOf("{Power_CoteID}") > -1 && location.host) {
2510
- return this.replace("{Power_CoteID}", location.host.split(".")[0]);
2491
+ currUrl = this.replace("{Power_CoteID}", location.host.split(".")[0]);
2511
2492
  }
2493
+ if (this && this.indexOf("{Power_Environment}") > -1 && location.host) {
2494
+ if (location.host.split(".").length == 5) {
2495
+ currUrl = currUrl.replace("{Power_Environment}", location.host.split(".")[2]);
2496
+ } else if (location.host.split(".").length == 4) {
2497
+ currUrl = currUrl.replace("{Power_Environment}", location.host.split(".")[1]);
2498
+ }
2499
+ }
2500
+ if (this && this.indexOf("{Power_CoteDeptID}") > -1) {
2501
+ let currCoteDeptID = utils.getUrlParms("Power_CoteDeptID");
2502
+ if (!currCoteDeptID) {
2503
+ currCoteDeptID = "0";
2504
+ }
2505
+ currUrl = currUrl.replace("{Power_CoteDeptID}", currCoteDeptID);
2506
+ }
2507
+ return currUrl.toString();
2512
2508
  } catch (err) {
2513
2509
  console.log(err);
2514
2510
  }
@@ -2543,6 +2539,25 @@ String.prototype.trimComma = function trimComma() {
2543
2539
  String.prototype.md5 = function md5() {
2544
2540
  return utils.md5(this.toString());
2545
2541
  };
2542
+ String.prototype.formatDate = function(format2) {
2543
+ if (!this) {
2544
+ return "";
2545
+ }
2546
+ return utils.formatDate(this.toString(), format2);
2547
+ };
2548
+ String.prototype.getUrlParms = function(paramName) {
2549
+ let vars = this.split("&");
2550
+ if (this.indexOf("?") > -1) {
2551
+ vars = this.split("?")[1].split("&");
2552
+ }
2553
+ for (var i = 0; i < vars.length; i++) {
2554
+ var pair = vars[i].split("=");
2555
+ if (pair[0] === paramName) {
2556
+ return pair[1];
2557
+ }
2558
+ }
2559
+ return "";
2560
+ };
2546
2561
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
2547
2562
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
2548
2563
  var root = freeGlobal || freeSelf || Function("return this")();
@@ -38678,7 +38693,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
38678
38693
  emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
38679
38694
  setup(__props, { emit: __emit }) {
38680
38695
  const DynamicDesignerInnerItem = defineAsyncComponent(() => {
38681
- return import("./innerItem-D8wERBXE.js");
38696
+ return import("./innerItem-DXsyRepl.js");
38682
38697
  });
38683
38698
  const { getValue: getValue2 } = useProps();
38684
38699
  const tagID = getValue2("tagID");
@@ -39521,10 +39536,10 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
39521
39536
  emits: ["update:modelValue"],
39522
39537
  setup(__props, { expose: __expose, emit: __emit }) {
39523
39538
  const DynamicRenderInner = defineAsyncComponent(() => {
39524
- return import("./inner-Cx2v2EWb.js").then((n) => n.i);
39539
+ return import("./inner-Bthjv0kV.js").then((n) => n.i);
39525
39540
  });
39526
39541
  const DynamicRenderForm = defineAsyncComponent(() => {
39527
- return import("./inner-Cx2v2EWb.js").then((n) => n.f);
39542
+ return import("./inner-Bthjv0kV.js").then((n) => n.f);
39528
39543
  });
39529
39544
  const props = __props;
39530
39545
  const { getValue: getValue2, setValue, formNodeProps } = useProps(props);
@@ -39754,10 +39769,10 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
39754
39769
  emits: ["update:modelValue"],
39755
39770
  setup(__props, { expose: __expose, emit: __emit }) {
39756
39771
  const DynamicRenderInnerAsync = defineAsyncComponent(() => {
39757
- return import("./inner-Cx2v2EWb.js").then((n) => n.i);
39772
+ return import("./inner-Bthjv0kV.js").then((n) => n.i);
39758
39773
  });
39759
39774
  const DynamicRenderFormAsync = defineAsyncComponent(() => {
39760
- return import("./inner-Cx2v2EWb.js").then((n) => n.f);
39775
+ return import("./inner-Bthjv0kV.js").then((n) => n.f);
39761
39776
  });
39762
39777
  const props = __props;
39763
39778
  const { getValue: getValue2, setValue, formNodeProps } = useProps(props);
@@ -44532,31 +44547,31 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
44532
44547
  }
44533
44548
  onMounted(() => {
44534
44549
  if (props.language === "json") {
44535
- const currModule = import("./mode-json-Ct8Eu5az.js").then((n) => n.m);
44550
+ const currModule = import("./mode-json-BUaER4p9.js").then((n) => n.m);
44536
44551
  currModule.then((res) => {
44537
44552
  ace.config.setModuleUrl("ace/mode/json", res);
44538
44553
  init();
44539
44554
  });
44540
44555
  } else if (props.language === "javascript") {
44541
- const currModule = import("./mode-javascript-41ZvAW4Y.js").then((n) => n.m);
44556
+ const currModule = import("./mode-javascript-I_LVVCY0.js").then((n) => n.m);
44542
44557
  currModule.then((res) => {
44543
44558
  ace.config.setModuleUrl("ace/mode/javascript", res);
44544
44559
  init();
44545
44560
  });
44546
44561
  } else if (props.language === "csharp") {
44547
- const currModule = import("./mode-csharp-Bk8ol4gy.js").then((n) => n.m);
44562
+ const currModule = import("./mode-csharp-DG8tcbww.js").then((n) => n.m);
44548
44563
  currModule.then((res) => {
44549
44564
  ace.config.setModuleUrl("ace/mode/csharp", res);
44550
44565
  init();
44551
44566
  });
44552
44567
  } else if (props.language === "mysql") {
44553
- const currModule = import("./mode-mysql-Dx_k_VzI.js").then((n) => n.m);
44568
+ const currModule = import("./mode-mysql-dy6FGw55.js").then((n) => n.m);
44554
44569
  currModule.then((res) => {
44555
44570
  ace.config.setModuleUrl("ace/mode/mysql", res);
44556
44571
  init();
44557
44572
  });
44558
44573
  } else if (props.language === "css") {
44559
- const currModule = import("./mode-css-CAHCLueE.js").then((n) => n.m);
44574
+ const currModule = import("./mode-css-Bv57CStB.js").then((n) => n.m);
44560
44575
  currModule.then((res) => {
44561
44576
  ace.config.setModuleUrl("ace/mode/css", res);
44562
44577
  init();
@@ -48089,6 +48104,7 @@ export {
48089
48104
  containerProps as b7,
48090
48105
  ElsDesignerView as b8,
48091
48106
  designerViewProps as b9,
48107
+ loadSkeletonAsyncComponent as bA,
48092
48108
  ElsHighlight as ba,
48093
48109
  ElsUEditor as bb,
48094
48110
  uEditorProps as bc,
@@ -48108,11 +48124,13 @@ export {
48108
48124
  workFlowProps as bq,
48109
48125
  ElsStampBadge as br,
48110
48126
  stampBadgeProps as bs,
48111
- createAxiosInstance as bt,
48112
- getAxiosInstance as bu,
48113
- setJwtToken as bv,
48114
- loadAsyncComponent as bw,
48115
- loadSkeletonAsyncComponent as bx,
48127
+ getAxiosConfig as bt,
48128
+ createAxiosInstance as bu,
48129
+ getAxiosInstance as bv,
48130
+ setJwtToken as bw,
48131
+ setRequestInterceptors as bx,
48132
+ setResponseInterceptors as by,
48133
+ loadAsyncComponent as bz,
48116
48134
  useComponentRef as c,
48117
48135
  DynamicDesignerInner as d,
48118
48136
  property_array as e,