zsysview 0.0.49 → 0.0.52

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 (23) hide show
  1. package/dist/{backup-DYT6WOhb.js → backup-BxTAzQVt.js} +4 -4
  2. package/dist/{breadcrumb.vue_vue_type_script_setup_true_lang-nfrW6-5D.js → breadcrumb.vue_vue_type_script_setup_true_lang-5UBfmoo2.js} +1 -1
  3. package/dist/{change_password-C1TSXbkT.js → change_password-Bf4S43q6.js} +4 -4
  4. package/dist/{department-Cy3bZi0Z.js → department-I8vGHYsT.js} +10 -8
  5. package/dist/{desktop-D8NO-31I.js → desktop-Wnbav0aM.js} +1 -1
  6. package/dist/{http_api_v1-BOkofMrH.js → http_api_v1-DHwVdcKj.js} +56 -38
  7. package/dist/{index-D0WjiJFA.js → index-D-0ot3cL.js} +5195 -5510
  8. package/dist/{log-BNz3HXTx.js → log-BqNPjOC0.js} +4 -4
  9. package/dist/{login-CRBF4af6.js → login-BRPVcEyz.js} +3 -3
  10. package/dist/{main-D1Qc1usP.js → main-DYAhM46f.js} +3 -3
  11. package/dist/{message-CxCkznRZ.js → message-CVoJib9k.js} +1 -1
  12. package/dist/{notification-CFdEb99z.js → notification-D_H2Nd3k.js} +3 -3
  13. package/dist/{position-BsXmxfyE.js → position-DpP0qYpu.js} +6 -6
  14. package/dist/{role-DfMFK4Sf.js → role-DN1TAInU.js} +7 -7
  15. package/dist/{self-Twg1O-V2.js → self-DI1m7co3.js} +2 -2
  16. package/dist/{systemsetting-DY_aaCMb.js → systemsetting-Br-d3tkN.js} +3 -3
  17. package/dist/{user-BNfLS3hP.js → user-BdazS5zP.js} +6 -6
  18. package/dist/{zsys_delbutton.vue_vue_type_script_setup_true_lang-CdVC6Qlu.js → zsys_delbutton.vue_vue_type_script_setup_true_lang-DC2sHf8I.js} +2 -2
  19. package/dist/{zsyslist.vue_vue_type_script_setup_true_lang-Bwtl9i35.js → zsyslist.vue_vue_type_script_setup_true_lang-D9ljsvUh.js} +11 -10
  20. package/dist/zsysview.css +1 -1
  21. package/dist/zsysview.es.d.ts +5 -0
  22. package/dist/zsysview.es.js +1 -1
  23. package/package.json +15 -8
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, ref, reactive, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode, createCommentVNode } from "vue";
2
- import { _ as _sfc_main$1 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-nfrW6-5D.js";
3
- import { H as HttpApiV1 } from "./http_api_v1-BOkofMrH.js";
4
- import { _ as _sfc_main$2 } from "./zsyslist.vue_vue_type_script_setup_true_lang-Bwtl9i35.js";
5
- import { Z as ZSYSMessage } from "./message-CxCkznRZ.js";
2
+ import { _ as _sfc_main$1 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-5UBfmoo2.js";
3
+ import { H as HttpApiV1 } from "./http_api_v1-DHwVdcKj.js";
4
+ import { _ as _sfc_main$2 } from "./zsyslist.vue_vue_type_script_setup_true_lang-D9ljsvUh.js";
5
+ import { Z as ZSYSMessage } from "./message-CVoJib9k.js";
6
6
  const _hoisted_1 = { style: { padding: "0px 20px" } }, _hoisted_2 = { key: 0 }, _hoisted_3 = { key: 0 }, _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "backup",
8
8
  setup(__props) {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, watch, onMounted, resolveComponent, createBlock, openBlock, unref, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
2
- import { e as useRouter, k as arrow_right_default } from "./index-D0WjiJFA.js";
2
+ import { e as useRouter, k as arrow_right_default } from "./index-D-0ot3cL.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "breadcrumb",
5
5
  setup(__props) {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, ref, reactive, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode } from "vue";
2
- import { _ as _sfc_main$1 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-nfrW6-5D.js";
3
- import { H as HttpApiV1 } from "./http_api_v1-BOkofMrH.js";
4
- import { e as useRouter } from "./index-D0WjiJFA.js";
5
- import { Z as ZSYSMessage } from "./message-CxCkznRZ.js";
2
+ import { _ as _sfc_main$1 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-5UBfmoo2.js";
3
+ import { H as HttpApiV1 } from "./http_api_v1-DHwVdcKj.js";
4
+ import { e as useRouter } from "./index-D-0ot3cL.js";
5
+ import { Z as ZSYSMessage } from "./message-CVoJib9k.js";
6
6
  import { h } from "./index.es-DrN1BLo5.js";
7
7
  const _hoisted_1 = { style: { padding: "0px 20px", "margin-top": "20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  __name: "change_password",
@@ -1,10 +1,10 @@
1
1
  import { defineComponent, ref, watch, reactive, resolveComponent, resolveDirective, createBlock, openBlock, withCtx, withDirectives, withModifiers, createVNode, createElementVNode, createCommentVNode, createTextVNode, onMounted, onUnmounted, createElementBlock, Fragment, unref } from "vue";
2
- import { _ as _sfc_main$2 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-nfrW6-5D.js";
3
- import { H as HttpApiV1 } from "./http_api_v1-BOkofMrH.js";
4
- import { h as useMagicKeys, w as whenever, i as refresh_default } from "./index-D0WjiJFA.js";
5
- import { _ as _sfc_main$3 } from "./zsys_delbutton.vue_vue_type_script_setup_true_lang-CdVC6Qlu.js";
2
+ import { _ as _sfc_main$2 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-5UBfmoo2.js";
3
+ import { H as HttpApiV1 } from "./http_api_v1-DHwVdcKj.js";
4
+ import { h as useMagicKeys, w as whenever, i as refresh_default } from "./index-D-0ot3cL.js";
5
+ import { _ as _sfc_main$3 } from "./zsys_delbutton.vue_vue_type_script_setup_true_lang-DC2sHf8I.js";
6
6
  import { z as zsysEventBus } from "./zsys_eventBus-NYpVNvQ4.js";
7
- import { Z as ZSYSMessage } from "./message-CxCkznRZ.js";
7
+ import { Z as ZSYSMessage } from "./message-CVoJib9k.js";
8
8
  const _hoisted_1$1 = { style: { display: "flex", "justify-content": "right" } }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
9
9
  __name: "department_edit_dialog",
10
10
  props: {
@@ -41,11 +41,13 @@ const _hoisted_1$1 = { style: { display: "flex", "justify-content": "right" } },
41
41
  let re = [];
42
42
  try {
43
43
  for (let i = 0; i < alldept.length; i++) {
44
+ const dept = alldept[i];
45
+ if (!dept) continue;
44
46
  const result = {
45
- value: alldept[i].department_id.toString(),
46
- label: alldept[i].department_title
47
+ value: dept.department_id.toString(),
48
+ label: dept.department_title
47
49
  };
48
- alldept[i].children && alldept[i]?.children.length > 0 && (result.children = convertDepartmentToParentOption(alldept[i].children)), re.push(result);
50
+ dept.children && dept.children.length > 0 && (result.children = convertDepartmentToParentOption(dept.children)), re.push(result);
49
51
  }
50
52
  } catch {
51
53
  } finally {
@@ -1,4 +1,4 @@
1
- import { _ as _export_sfc } from "./index-D0WjiJFA.js";
1
+ import { _ as _export_sfc } from "./index-D-0ot3cL.js";
2
2
  const _sfc_main = {};
3
3
  function _sfc_render(_ctx, _cache) {
4
4
  return " 欢迎使用 ";
@@ -1,4 +1,4 @@
1
- import { m as getDefaultExportFromCjs, g as useTokenStore, H as HttpApiReturnData } from "./index-D0WjiJFA.js";
1
+ import { m as getDefaultExportFromCjs, g as useTokenStore, H as HttpApiReturnData } from "./index-D-0ot3cL.js";
2
2
  function bind(fn, thisArg) {
3
3
  return function() {
4
4
  return fn.apply(thisArg, arguments);
@@ -442,7 +442,7 @@ class InterceptorManager {
442
442
  *
443
443
  * @param {Number} id The ID that was returned by `use`
444
444
  *
445
- * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
445
+ * @returns {void}
446
446
  */
447
447
  eject(id) {
448
448
  this.handlers[id] && (this.handlers[id] = null);
@@ -900,16 +900,18 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
900
900
  ) : () => !0, cookies = platform.hasStandardBrowserEnv ? (
901
901
  // Standard browser envs support document.cookie
902
902
  {
903
- write(name, value, expires, path, domain, secure) {
904
- const cookie = [name + "=" + encodeURIComponent(value)];
905
- utils$1.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString()), utils$1.isString(path) && cookie.push("path=" + path), utils$1.isString(domain) && cookie.push("domain=" + domain), secure === !0 && cookie.push("secure"), document.cookie = cookie.join("; ");
903
+ write(name, value, expires, path, domain, secure, sameSite) {
904
+ if (typeof document > "u") return;
905
+ const cookie = [`${name}=${encodeURIComponent(value)}`];
906
+ utils$1.isNumber(expires) && cookie.push(`expires=${new Date(expires).toUTCString()}`), utils$1.isString(path) && cookie.push(`path=${path}`), utils$1.isString(domain) && cookie.push(`domain=${domain}`), secure === !0 && cookie.push("secure"), utils$1.isString(sameSite) && cookie.push(`SameSite=${sameSite}`), document.cookie = cookie.join("; ");
906
907
  },
907
908
  read(name) {
908
- const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
909
- return match ? decodeURIComponent(match[3]) : null;
909
+ if (typeof document > "u") return null;
910
+ const match = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)"));
911
+ return match ? decodeURIComponent(match[1]) : null;
910
912
  },
911
913
  remove(name) {
912
- this.write(name, "", Date.now() - 864e5);
914
+ this.write(name, "", Date.now() - 864e5, "/");
913
915
  }
914
916
  }
915
917
  ) : (
@@ -1303,7 +1305,7 @@ const resolveConfig = (config) => {
1303
1305
  }
1304
1306
  };
1305
1307
  }, seedCache = /* @__PURE__ */ new Map(), getFetch = (config) => {
1306
- let env = config ? config.env : {};
1308
+ let env = config && config.env || {};
1307
1309
  const { fetch: fetch2, Request, Response } = env, seeds = [
1308
1310
  Request,
1309
1311
  Response,
@@ -1331,35 +1333,45 @@ utils$1.forEach(knownAdapters, (fn, value) => {
1331
1333
  Object.defineProperty(fn, "adapterName", { value });
1332
1334
  }
1333
1335
  });
1334
- const renderReason = (reason) => `- ${reason}`, isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === !1, adapters = {
1335
- getAdapter: (adapters2, config) => {
1336
- adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2];
1337
- const { length } = adapters2;
1338
- let nameOrAdapter, adapter;
1339
- const rejectedReasons = {};
1340
- for (let i = 0; i < length; i++) {
1341
- nameOrAdapter = adapters2[i];
1342
- let id;
1343
- if (adapter = nameOrAdapter, !isResolvedHandle(nameOrAdapter) && (adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()], adapter === void 0))
1344
- throw new AxiosError$1(`Unknown adapter '${id}'`);
1345
- if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config))))
1346
- break;
1347
- rejectedReasons[id || "#" + i] = adapter;
1348
- }
1349
- if (!adapter) {
1350
- const reasons = Object.entries(rejectedReasons).map(
1351
- ([id, state]) => `adapter ${id} ` + (state === !1 ? "is not supported by the environment" : "is not available in the build")
1352
- );
1353
- let s = length ? reasons.length > 1 ? `since :
1336
+ const renderReason = (reason) => `- ${reason}`, isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === !1;
1337
+ function getAdapter$1(adapters2, config) {
1338
+ adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2];
1339
+ const { length } = adapters2;
1340
+ let nameOrAdapter, adapter;
1341
+ const rejectedReasons = {};
1342
+ for (let i = 0; i < length; i++) {
1343
+ nameOrAdapter = adapters2[i];
1344
+ let id;
1345
+ if (adapter = nameOrAdapter, !isResolvedHandle(nameOrAdapter) && (adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()], adapter === void 0))
1346
+ throw new AxiosError$1(`Unknown adapter '${id}'`);
1347
+ if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config))))
1348
+ break;
1349
+ rejectedReasons[id || "#" + i] = adapter;
1350
+ }
1351
+ if (!adapter) {
1352
+ const reasons = Object.entries(rejectedReasons).map(
1353
+ ([id, state]) => `adapter ${id} ` + (state === !1 ? "is not supported by the environment" : "is not available in the build")
1354
+ );
1355
+ let s = length ? reasons.length > 1 ? `since :
1354
1356
  ` + reasons.map(renderReason).join(`
1355
1357
  `) : " " + renderReason(reasons[0]) : "as no adapter specified";
1356
- throw new AxiosError$1(
1357
- "There is no suitable adapter to dispatch the request " + s,
1358
- "ERR_NOT_SUPPORT"
1359
- );
1360
- }
1361
- return adapter;
1362
- },
1358
+ throw new AxiosError$1(
1359
+ "There is no suitable adapter to dispatch the request " + s,
1360
+ "ERR_NOT_SUPPORT"
1361
+ );
1362
+ }
1363
+ return adapter;
1364
+ }
1365
+ const adapters = {
1366
+ /**
1367
+ * Resolve an adapter from a list of adapter names or functions.
1368
+ * @type {Function}
1369
+ */
1370
+ getAdapter: getAdapter$1,
1371
+ /**
1372
+ * Exposes all known adapters
1373
+ * @type {Object<string, Function|Object>}
1374
+ */
1363
1375
  adapters: knownAdapters
1364
1376
  };
1365
1377
  function throwIfCancellationRequested(config) {
@@ -1384,7 +1396,7 @@ function dispatchRequest(config) {
1384
1396
  ), reason.response.headers = AxiosHeaders$1.from(reason.response.headers))), Promise.reject(reason);
1385
1397
  });
1386
1398
  }
1387
- const VERSION$1 = "1.12.2", validators$1 = {};
1399
+ const VERSION$1 = "1.13.2", validators$1 = {};
1388
1400
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
1389
1401
  validators$1[type] = function(thing) {
1390
1402
  return typeof thing === type || "a" + (i < 1 ? "n " : " ") + type;
@@ -1701,7 +1713,13 @@ const HttpStatusCode$1 = {
1701
1713
  InsufficientStorage: 507,
1702
1714
  LoopDetected: 508,
1703
1715
  NotExtended: 510,
1704
- NetworkAuthenticationRequired: 511
1716
+ NetworkAuthenticationRequired: 511,
1717
+ WebServerIsDown: 521,
1718
+ ConnectionTimedOut: 522,
1719
+ OriginIsUnreachable: 523,
1720
+ TimeoutOccurred: 524,
1721
+ SslHandshakeFailed: 525,
1722
+ InvalidSslCertificate: 526
1705
1723
  };
1706
1724
  Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
1707
1725
  HttpStatusCode$1[value] = key;