zsysview 0.0.36 → 0.0.38

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 (27) hide show
  1. package/dist/{backup-CzH2TVgw.js → backup-DYT6WOhb.js} +4 -4
  2. package/dist/{breadcrumb.vue_vue_type_script_setup_true_lang-zbXxuTgZ.js → breadcrumb.vue_vue_type_script_setup_true_lang-nfrW6-5D.js} +1 -1
  3. package/dist/{change_password-CGTsPVRW.js → change_password-C1TSXbkT.js} +4 -4
  4. package/dist/{department-QRdHgu4z.js → department-Cy3bZi0Z.js} +15 -11
  5. package/dist/{desktop-C_q7VUj9.js → desktop-D8NO-31I.js} +1 -1
  6. package/dist/{http_api_v1-D1Pu4P-8.js → http_api_v1-BOkofMrH.js} +3 -1
  7. package/dist/{index-B1Hskmci.js → index-D0WjiJFA.js} +45 -152
  8. package/dist/{log-ByJQPRKr.js → log-BNz3HXTx.js} +5 -5
  9. package/dist/{login-GunVpm8V.js → login-CRBF4af6.js} +9 -6
  10. package/dist/main-D1Qc1usP.js +447 -0
  11. package/dist/{message-2gz6_WO4.js → message-CxCkznRZ.js} +1 -1
  12. package/dist/notification-CFdEb99z.js +82 -0
  13. package/dist/{position-2aCnMhUk.js → position-BsXmxfyE.js} +6 -6
  14. package/dist/{role-BL8NWYb0.js → role-DfMFK4Sf.js} +6 -6
  15. package/dist/{self-CyVqGJto.js → self-Twg1O-V2.js} +2 -2
  16. package/dist/{systemsetting-BdHsAnqL.js → systemsetting-DY_aaCMb.js} +19 -7
  17. package/dist/{user-CpVX3F-F.js → user-BNfLS3hP.js} +7 -7
  18. package/dist/{zsys_delbutton.vue_vue_type_script_setup_true_lang-CFvu9b2e.js → zsys_delbutton.vue_vue_type_script_setup_true_lang-CdVC6Qlu.js} +2 -2
  19. package/dist/zsys_time-BE4ImI0m.js +22 -0
  20. package/dist/{zsyslist.vue_vue_type_script_setup_true_lang-B85TNTPZ.js → zsyslist.vue_vue_type_script_setup_true_lang-Bwtl9i35.js} +3 -3
  21. package/dist/zsysview.css +1 -1
  22. package/dist/zsysview.es.js +1 -1
  23. package/docs//345/205/250/345/261/200/345/217/230/351/207/217.md +4 -1
  24. package/package.json +1 -1
  25. package/dist/default_avatar.png +0 -0
  26. package/dist/main-Xzv2gkG-.js +0 -290
  27. package/dist/zsys_time-4KclnYJN.js +0 -17
@@ -0,0 +1,22 @@
1
+ function formatDateTime(date) {
2
+ if (date == "0001-01-01T00:00:00Z")
3
+ return "";
4
+ const d = new Date(date);
5
+ return isNaN(d.getTime()) ? "" : [
6
+ d.getFullYear(),
7
+ (d.getMonth() + 1).toString().padStart(2, "0"),
8
+ d.getDate().toString().padStart(2, "0")
9
+ ].join("-") + " " + [
10
+ d.getHours().toString().padStart(2, "0"),
11
+ d.getMinutes().toString().padStart(2, "0"),
12
+ d.getSeconds().toString().padStart(2, "0")
13
+ ].join(":");
14
+ }
15
+ const formatPreciseOralTime = (timestamp) => {
16
+ const date = new Date(timestamp), diffInMs = (/* @__PURE__ */ new Date()).getTime() - date.getTime(), seconds = Math.floor(diffInMs / 1e3), minutes = Math.floor(seconds / 60), hours = Math.floor(minutes / 60), days = Math.floor(hours / 24);
17
+ return days > 0 ? days === 1 ? "昨天" : days === 2 ? "前天" : days < 7 ? `${days}天前` : days < 30 ? `${Math.floor(days / 7)}周前` : days < 365 ? `${Math.floor(days / 30)}个月前` : `${Math.floor(days / 365)}年前` : hours > 0 ? `${hours}小时前` : minutes > 0 ? `${minutes}分钟前` : "刚刚";
18
+ };
19
+ export {
20
+ formatDateTime as a,
21
+ formatPreciseOralTime as f
22
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, reactive, watch, resolveComponent, createElementBlock, openBlock, createCommentVNode, createElementVNode, createBlock, toDisplayString, withCtx, createTextVNode, createVNode, Fragment, renderList, unref, ref, withDirectives, withModifiers, vShow, renderSlot, withKeys, onMounted, onUnmounted, resolveDirective } from "vue";
2
- import { n as useMagicKeys, w as whenever, _ as _export_sfc, p as refresh_default, q as search_default } from "./index-B1Hskmci.js";
3
- import { H as HttpApiV1 } from "./http_api_v1-D1Pu4P-8.js";
4
- import { Z as ZSYSMessage } from "./message-2gz6_WO4.js";
2
+ import { h as useMagicKeys, w as whenever, _ as _export_sfc, i as refresh_default, j as search_default } from "./index-D0WjiJFA.js";
3
+ import { H as HttpApiV1 } from "./http_api_v1-BOkofMrH.js";
4
+ import { Z as ZSYSMessage } from "./message-CxCkznRZ.js";
5
5
  import { z as zsysEventBus } from "./zsys_eventBus-NYpVNvQ4.js";
6
6
  const _hoisted_1$1 = { style: { "padding-left": "20px", "padding-right": "20px", "padding-top": "6px" } }, _hoisted_2 = {
7
7
  key: 0,