dlzn-ui 2.0.30 → 2.0.32

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 (167) hide show
  1. package/assets/Index-CubAI_w9.css +1 -0
  2. package/assets/color-picker-DD6DUdBH.css +1 -0
  3. package/assets/css/tdesign-reset.css +1 -1
  4. package/assets/{provider-XeFy2v3X.css → provider-BVALV5nM.css} +1 -1
  5. package/chunks/{AssignUser-DZvNJ6_v.mjs → AssignUser-CwTne2Qc.mjs} +3 -3
  6. package/chunks/{Common-DZTByJ2b.mjs → Common-CkUSQvHq.mjs} +1 -1
  7. package/chunks/{Day-D47hdyiq.mjs → Day-BcnyU5sK.mjs} +1 -1
  8. package/chunks/{DictTypeDetail--OE6JJ5s.mjs → DictTypeDetail-CCAzju0B.mjs} +2 -2
  9. package/chunks/{Hour-CkkZZ5R6.mjs → Hour-Cwatbaf_.mjs} +1 -1
  10. package/chunks/{Index-0-JzYXfb.mjs → Index-B-O5KGpr.mjs} +1 -1
  11. package/chunks/Index-But4jrnW.mjs +61 -0
  12. package/chunks/{Index-DsO5SwJk.mjs → Index-CKN8MPux.mjs} +1 -1
  13. package/chunks/{Index-CSNXgzLe.mjs → Index-Cj8p6UO8.mjs} +1 -1
  14. package/chunks/{Index-C_JjguDb.mjs → Index-CtOfQO_c.mjs} +1 -1
  15. package/chunks/{Index-2AaTfz2L.mjs → Index-CtjRKRpF.mjs} +1 -1
  16. package/chunks/{IndexItem-CUgu9du0.mjs → IndexItem-PI7azFUZ.mjs} +1 -1
  17. package/chunks/{Log-DTQeRVz1.mjs → Log-BKG8INUi.mjs} +2 -2
  18. package/chunks/{Minute-Dl21u3sJ.mjs → Minute-xIvf6ywN.mjs} +1 -1
  19. package/chunks/{Month-DIgPlTW3.mjs → Month-BR0hxhS7.mjs} +1 -1
  20. package/chunks/{Second-C9JrfdJq.mjs → Second-CAfVDcZ6.mjs} +1 -1
  21. package/chunks/{SelectDept-BdP4Fevb.mjs → SelectDept-DpwFmg4t.mjs} +2 -2
  22. package/chunks/{SelectMenu-C8uTKPyO.mjs → SelectMenu-PhyLqwyu.mjs} +2 -2
  23. package/chunks/{SelectUser-Y-2MCvw3.mjs → SelectUser-BF4CSoDQ.mjs} +2 -2
  24. package/chunks/{UserInfo-BXDXYNSa.mjs → UserInfo-eE2h2il7.mjs} +1 -1
  25. package/chunks/{app-C4vupHU4.mjs → app-Bzy7d05r.mjs} +1 -1
  26. package/chunks/{checkbox-DsFECVao.mjs → checkbox-Drb_LAT6.mjs} +0 -9
  27. package/chunks/color-picker-BVropPi4.mjs +77 -0
  28. package/chunks/{custom-page-list-Dkjf1nLR.mjs → custom-page-list-V6c5UZq4.mjs} +4 -4
  29. package/chunks/{custom-page-table-y7emjJnS.mjs → custom-page-table-C0a_H9Oi.mjs} +2 -2
  30. package/chunks/{overview-YqvRmr0O.mjs → overview-DT92-YBw.mjs} +1 -1
  31. package/chunks/{page-list-DUYDkWcj.mjs → page-list-BhLsMD_7.mjs} +3 -3
  32. package/chunks/{page-query-oFiHpSCX.mjs → page-query-DiQBAtPy.mjs} +1 -1
  33. package/chunks/{page-table-C1hMMXID.mjs → page-table-VlLsrpZs.mjs} +3 -3
  34. package/chunks/{pagination-CQPdVoCT.mjs → pagination-gtzetvwl.mjs} +1 -1
  35. package/chunks/{provider-BhFm5rvy.mjs → provider-Ccvmo_nA.mjs} +273 -266
  36. package/chunks/{table-CqT9HbMR.mjs → table-C3GB8HZj.mjs} +1 -1
  37. package/components/app/index.mjs +1 -1
  38. package/components/app/src/app.mjs +1 -1
  39. package/components/button/index.mjs +1 -1
  40. package/components/button/src/button.mjs +1 -1
  41. package/components/checkbox/index.mjs +1 -1
  42. package/components/checkbox/src/checkbox.d.ts +1 -1
  43. package/components/checkbox/src/checkbox.mjs +1 -1
  44. package/components/checkbox/src/checkbox.vue.d.ts +0 -1
  45. package/components/checkbox-group/index.mjs +1 -1
  46. package/components/checkbox-group/src/checkbox-group.mjs +1 -1
  47. package/components/color-picker/index.d.ts +2 -0
  48. package/components/color-picker/index.mjs +2 -0
  49. package/components/color-picker/src/color-picker.d.ts +16 -0
  50. package/components/color-picker/src/color-picker.mjs +2 -0
  51. package/components/color-picker/src/color-picker.vue.d.ts +12 -0
  52. package/components/cron/index.mjs +1 -1
  53. package/components/cron/src/Common.mjs +1 -1
  54. package/components/cron/src/Day.mjs +1 -1
  55. package/components/cron/src/Hour.mjs +1 -1
  56. package/components/cron/src/Minute.mjs +1 -1
  57. package/components/cron/src/Month.mjs +1 -1
  58. package/components/cron/src/Picker.mjs +6 -6
  59. package/components/cron/src/Second.mjs +1 -1
  60. package/components/cron/src/cron.mjs +1 -1
  61. package/components/cron/src/cron.vue.d.ts +1 -1
  62. package/components/custom-page-list/index.mjs +1 -1
  63. package/components/custom-page-list/src/custom-page-list.mjs +1 -1
  64. package/components/custom-page-table/index.mjs +1 -1
  65. package/components/custom-page-table/src/custom-page-table.mjs +1 -1
  66. package/components/form/index.mjs +1 -1
  67. package/components/form/src/form.d.ts +2 -0
  68. package/components/form/src/form.mjs +1 -1
  69. package/components/index.mjs +10 -10
  70. package/components/input/src/input.vue.d.ts +1 -1
  71. package/components/overview/index.mjs +1 -1
  72. package/components/overview/src/DicLabel/Index.mjs +1 -1
  73. package/components/overview/src/IndexItem.mjs +1 -1
  74. package/components/overview/src/overview.mjs +1 -1
  75. package/components/page-list/index.mjs +1 -1
  76. package/components/page-list/src/page-list.d.ts +97 -45
  77. package/components/page-list/src/page-list.mjs +1 -1
  78. package/components/page-query/index.mjs +1 -1
  79. package/components/page-query/src/page-query.mjs +1 -1
  80. package/components/page-table/index.mjs +1 -1
  81. package/components/page-table/src/page-table.mjs +1 -1
  82. package/components/pagination/index.mjs +1 -1
  83. package/components/pagination/src/pagination.mjs +1 -1
  84. package/components/provider/index.mjs +1 -1
  85. package/components/provider/src/Provider.mjs +1 -1
  86. package/components/radio-group/index.mjs +1 -1
  87. package/components/radio-group/src/radio-group.mjs +1 -1
  88. package/components/select/index.mjs +1 -1
  89. package/components/select/src/select.mjs +1 -1
  90. package/components/select-sys-user/index.mjs +1 -1
  91. package/components/select-sys-user/src/Picker.mjs +2 -2
  92. package/components/select-sys-user/src/select-sys-user.mjs +1 -1
  93. package/components/table/index.mjs +1 -1
  94. package/components/table/src/table.mjs +1 -1
  95. package/components/tree/index.mjs +1 -1
  96. package/components/tree/src/tree.mjs +1 -1
  97. package/components/tree-select/index.mjs +1 -1
  98. package/components/tree-select/src/tree-select.mjs +1 -1
  99. package/components/upload/index.mjs +1 -1
  100. package/components/upload/src/upload.mjs +1 -1
  101. package/constants/index.d.ts +1 -1
  102. package/constants/index.mjs +2 -2
  103. package/constants/{others.d.ts → regs.d.ts} +1 -0
  104. package/constants/{others.mjs → regs.mjs} +3 -3
  105. package/hooks/useDicOptions/index.mjs +1 -1
  106. package/hooks/useSysUser/index.mjs +1 -1
  107. package/layout/Entry.mjs +1 -1
  108. package/layout/Home.mjs +26 -10
  109. package/layout/Login.mjs +1 -1
  110. package/layout/NotFound.mjs +1 -1
  111. package/layout/modules/Aside.mjs +1 -1
  112. package/layout/modules/Breadcrumb.mjs +1 -1
  113. package/layout/modules/Header.mjs +1 -1
  114. package/layout/profile/Index.mjs +2 -2
  115. package/layout/profile/ResetPwd.mjs +1 -1
  116. package/layout/profile/UserInfo.mjs +1 -1
  117. package/main.mjs +2 -2
  118. package/package.json +1 -1
  119. package/plugins/autoImport/$alova/index.mjs +1 -1
  120. package/plugins/autoImport/$confirm/index.mjs +1 -1
  121. package/plugins/autoImport/$dialog/index.mjs +1 -1
  122. package/plugins/autoImport/$drawer/index.mjs +1 -1
  123. package/plugins/captcha/captcha.mjs +1 -1
  124. package/plugins/captcha/index.mjs +1 -1
  125. package/plugins/initialize/webUpdateNotify.mjs +1 -1
  126. package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
  127. package/plugins/tableRenders/cell/ColorPicker/Index.mjs +2 -0
  128. package/plugins/tableRenders/cell/ColorPicker/Index.vue.d.ts +21 -0
  129. package/plugins/tableRenders/cell/ColorPicker/index.d.ts +2 -0
  130. package/plugins/tableRenders/cell/ColorPicker/index2.mjs +0 -0
  131. package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
  132. package/plugins/tableRenders/cell/Input/Index.mjs +1 -1
  133. package/plugins/tableRenders/cell/Input/Index.vue.d.ts +1 -1
  134. package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
  135. package/plugins/tableRenders/cell/index.d.ts +2 -0
  136. package/plugins/tableRenders/cell/index.mjs +45 -43
  137. package/router/index.mjs +1 -1
  138. package/store/modules/common.mjs +1 -1
  139. package/store/modules/login.mjs +1 -1
  140. package/store/modules/recentRouters.mjs +1 -1
  141. package/store/modules/router.mjs +1 -1
  142. package/store/modules/user.mjs +1 -1
  143. package/utils/boolean.mjs +1 -1
  144. package/views/index.mjs +2 -0
  145. package/views/monitor/logininfor/index.mjs +2 -2
  146. package/views/monitor/online/index.mjs +82 -0
  147. package/views/monitor/online/index.vue.d.ts +3 -0
  148. package/views/monitor/operlog/index.mjs +2 -2
  149. package/views/monitor/server/index.mjs +216 -0
  150. package/views/monitor/server/index.vue.d.ts +3 -0
  151. package/views/system/config/index.mjs +2 -2
  152. package/views/system/dept/index.mjs +2 -2
  153. package/views/system/dept/utils.mjs +1 -1
  154. package/views/system/dict/index.mjs +3 -3
  155. package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
  156. package/views/system/menu/index.mjs +2 -2
  157. package/views/system/notice/index.mjs +2 -2
  158. package/views/system/post/index.mjs +2 -2
  159. package/views/system/role/index.mjs +5 -5
  160. package/views/system/role/modules/AssignUser.mjs +1 -1
  161. package/views/system/role/modules/SelectDept.mjs +1 -1
  162. package/views/system/role/modules/SelectMenu.mjs +1 -1
  163. package/views/system/role/modules/SelectUser.mjs +1 -1
  164. package/views/system/user/index.mjs +4 -4
  165. package/views/tool/job/index.mjs +3 -3
  166. package/views/tool/job/modules/Log.mjs +1 -1
  167. package/assets/Index-D8NszkhN.css +0 -1
@@ -1,2 +1,2 @@
1
- import { C as e, S as t, w as n } from "../../../chunks/provider-BhFm5rvy.mjs";
1
+ import { C as e, S as t, w as n } from "../../../chunks/provider-Ccvmo_nA.mjs";
2
2
  export { t as default, e as getFilterEmptyParamsObj, n as getParamsString };
@@ -1,2 +1,2 @@
1
- import { F as e } from "../../../chunks/provider-BhFm5rvy.mjs";
1
+ import { F as e } from "../../../chunks/provider-Ccvmo_nA.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { I as e } from "../../../chunks/provider-BhFm5rvy.mjs";
1
+ import { I as e } from "../../../chunks/provider-Ccvmo_nA.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { O as e } from "../../../chunks/provider-BhFm5rvy.mjs";
1
+ import { O as e } from "../../../chunks/provider-Ccvmo_nA.mjs";
2
2
  export { e as default };
@@ -1,4 +1,4 @@
1
- import { S as e, n as t } from "../../chunks/provider-BhFm5rvy.mjs";
1
+ import { S as e, n as t } from "../../chunks/provider-Ccvmo_nA.mjs";
2
2
  import { t as n } from "../../chunks/icon-COjp1yrx.mjs";
3
3
  import "../../components/icon/index.mjs";
4
4
  import { aesEncrypt as r } from "../../utils/tool.mjs";
@@ -1,4 +1,4 @@
1
- import { I as e } from "../../chunks/provider-BhFm5rvy.mjs";
1
+ import { I as e } from "../../chunks/provider-Ccvmo_nA.mjs";
2
2
  import { defineAsyncComponent as t, h as n } from "vue";
3
3
  //#region ../../packages/dlzn-ui/plugins/captcha/index.ts
4
4
  var r = () => new Promise((r) => {
@@ -1,4 +1,4 @@
1
- import { F as e } from "../../chunks/provider-BhFm5rvy.mjs";
1
+ import { F as e } from "../../chunks/provider-Ccvmo_nA.mjs";
2
2
  import { nextTick as t, ref as n } from "vue";
3
3
  //#region ../../packages/dlzn-ui/plugins/initialize/webUpdateNotify.ts
4
4
  var r = !1;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-2AaTfz2L.mjs";
1
+ import { t as e } from "../../../../chunks/Index-CtjRKRpF.mjs";
2
2
  export { e as default };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../../chunks/Index-But4jrnW.mjs";
2
+ export { e as default };
@@ -0,0 +1,21 @@
1
+ import { ColorPickerProps } from './index.ts';
2
+ type __VLS_Props = ColorPickerProps;
3
+ type __VLS_ModelProps = {
4
+ 'modelValue'?: string;
5
+ };
6
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ "update:modelValue": (value: string | undefined) => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
11
+ }>, {
12
+ disabled: boolean;
13
+ readonly: boolean;
14
+ colorModes: Array<"monochrome" | "linear-gradient">;
15
+ format: "HEX" | "HEX8" | "RGB" | "RGBA" | "HSL" | "HSLA" | "HSV" | "HSVA" | "CMYK" | "CSS";
16
+ recentColors: Array<string> | boolean | null;
17
+ defaultRecentColors: Array<string> | boolean | null;
18
+ showPrimaryColorPreview: boolean;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { ColorPickerProps as _ColorPickerProps } from '../../../../components/color-picker';
2
+ export type ColorPickerProps = Omit<_ColorPickerProps, 'modelValue'>;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-CSNXgzLe.mjs";
1
+ import { t as e } from "../../../../chunks/Index-Cj8p6UO8.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-0-JzYXfb.mjs";
1
+ import { t as e } from "../../../../chunks/Index-B-O5KGpr.mjs";
2
2
  export { e as default };
@@ -13,8 +13,8 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {},
13
13
  disabled: boolean;
14
14
  readonly: boolean;
15
15
  placeholder: string;
16
- autocomplete: string;
17
16
  clearable: boolean;
17
+ autocomplete: string;
18
18
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
19
  declare const _default: typeof __VLS_export;
20
20
  export default _default;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Index-C_JjguDb.mjs";
1
+ import { t as e } from "../../../../chunks/Index-CtOfQO_c.mjs";
2
2
  export { e as default };
@@ -1,6 +1,7 @@
1
1
  import { SlotReturnValue } from 'tdesign-vue-next';
2
2
  import { AvatarProps } from './Avatar/index.ts';
3
3
  import { ButtonsProps } from './Buttons/index.ts';
4
+ import { ColorPickerProps } from './ColorPicker/index.ts';
4
5
  import { DefaultProps } from './Default/index.ts';
5
6
  import { DicLabelProps } from './DicLabel/index.ts';
6
7
  import { FormatDateProps } from './FormatDate/index.ts';
@@ -28,6 +29,7 @@ export type ComponentConfig<T extends keyof ComponentPropsMap> = ComponentPropsM
28
29
  interface ComponentPropsMap {
29
30
  Avatar: AvatarProps;
30
31
  Buttons: ButtonsProps;
32
+ ColorPicker: ColorPickerProps;
31
33
  Default: DefaultProps;
32
34
  DicLabel: DicLabelProps;
33
35
  FormatDate: FormatDateProps;
@@ -1,68 +1,70 @@
1
1
  import { n as e } from "../../../chunks/useAppContext-D47amIp5.mjs";
2
2
  import { t } from "../../../chunks/Index-BChP9CTL.mjs";
3
- import { t as n } from "../../../chunks/Index-2AaTfz2L.mjs";
4
- import { t as r } from "../../../chunks/Index-BuqrJDKe.mjs";
5
- import { t as i } from "../../../chunks/Index-CSNXgzLe.mjs";
6
- import { t as a } from "../../../chunks/Index-Bye0GY_j.mjs";
7
- import { t as o } from "../../../chunks/Index-BwWS0oPl.mjs";
8
- import { t as s } from "../../../chunks/Index-bEWcnIHJ.mjs";
9
- import { t as c } from "../../../chunks/Index-AH0WCRJO.mjs";
10
- import { t as l } from "../../../chunks/Index-CgJ94bEi.mjs";
11
- import { t as u } from "../../../chunks/Index-0-JzYXfb.mjs";
12
- import { t as d } from "../../../chunks/Index-Cu2Ud84o.mjs";
13
- import { t as f } from "../../../chunks/Index-DBQnzqsw.mjs";
14
- import { t as p } from "../../../chunks/Index-D6pUjcEN.mjs";
15
- import { t as m } from "../../../chunks/Index-C_JjguDb.mjs";
16
- import { t as h } from "../../../chunks/Index-BOv4n_q9.mjs";
17
- import { t as g } from "../../../chunks/Index-vcnN6L-y.mjs";
18
- import { t as _ } from "../../../chunks/Index-CZnP6jHo.mjs";
19
- import { t as v } from "../../../chunks/Index-CT0eb17V.mjs";
20
- import { t as y } from "../../../chunks/Wrapper-C6BtJDSa.mjs";
3
+ import { t as n } from "../../../chunks/Index-CtjRKRpF.mjs";
4
+ import { t as r } from "../../../chunks/Index-But4jrnW.mjs";
5
+ import { t as i } from "../../../chunks/Index-BuqrJDKe.mjs";
6
+ import { t as a } from "../../../chunks/Index-Cj8p6UO8.mjs";
7
+ import { t as o } from "../../../chunks/Index-Bye0GY_j.mjs";
8
+ import { t as s } from "../../../chunks/Index-BwWS0oPl.mjs";
9
+ import { t as c } from "../../../chunks/Index-bEWcnIHJ.mjs";
10
+ import { t as l } from "../../../chunks/Index-AH0WCRJO.mjs";
11
+ import { t as u } from "../../../chunks/Index-CgJ94bEi.mjs";
12
+ import { t as d } from "../../../chunks/Index-B-O5KGpr.mjs";
13
+ import { t as f } from "../../../chunks/Index-Cu2Ud84o.mjs";
14
+ import { t as p } from "../../../chunks/Index-DBQnzqsw.mjs";
15
+ import { t as m } from "../../../chunks/Index-D6pUjcEN.mjs";
16
+ import { t as h } from "../../../chunks/Index-CtOfQO_c.mjs";
17
+ import { t as g } from "../../../chunks/Index-BOv4n_q9.mjs";
18
+ import { t as _ } from "../../../chunks/Index-vcnN6L-y.mjs";
19
+ import { t as v } from "../../../chunks/Index-CZnP6jHo.mjs";
20
+ import { t as y } from "../../../chunks/Index-CT0eb17V.mjs";
21
+ import { t as b } from "../../../chunks/Wrapper-C6BtJDSa.mjs";
21
22
  //#region ../../packages/dlzn-ui/plugins/tableRenders/cell/index.ts
22
- var b = /* #__PURE__ */ Object.assign({
23
+ var x = /* #__PURE__ */ Object.assign({
23
24
  "./Avatar/Index.vue": t,
24
25
  "./Buttons/Index.vue": n,
25
- "./Default/Index.vue": r,
26
- "./DicLabel/Index.vue": i,
27
- "./FormatDate/Index.vue": a,
28
- "./FormatNumber/Index.vue": o,
29
- "./Icon/Index.vue": s,
30
- "./Image/Index.vue": c,
31
- "./ImageViewer/Index.vue": l,
32
- "./Input/Index.vue": u,
33
- "./InputNumber/Index.vue": d,
34
- "./Link/Index.vue": f,
35
- "./OptionLabel/Index.vue": p,
36
- "./Select/Index.vue": m,
37
- "./Switch/Index.vue": h,
38
- "./Tags/Index.vue": g,
39
- "./TypographyText/Index.vue": _,
40
- "./TypographyTextLink/Index.vue": v
26
+ "./ColorPicker/Index.vue": r,
27
+ "./Default/Index.vue": i,
28
+ "./DicLabel/Index.vue": a,
29
+ "./FormatDate/Index.vue": o,
30
+ "./FormatNumber/Index.vue": s,
31
+ "./Icon/Index.vue": c,
32
+ "./Image/Index.vue": l,
33
+ "./ImageViewer/Index.vue": u,
34
+ "./Input/Index.vue": d,
35
+ "./InputNumber/Index.vue": f,
36
+ "./Link/Index.vue": p,
37
+ "./OptionLabel/Index.vue": m,
38
+ "./Select/Index.vue": h,
39
+ "./Switch/Index.vue": g,
40
+ "./Tags/Index.vue": _,
41
+ "./TypographyText/Index.vue": v,
42
+ "./TypographyTextLink/Index.vue": y
41
43
  });
42
- function x(t) {
44
+ function S(t) {
43
45
  if (typeof t == "string") return e.error("cell 值类型为 string 表示使用插槽渲染, 没有计算宽度, 所以暂不支持"), () => null;
44
46
  let n = t === void 0 ? { component: "Default" } : t;
45
- if (S(n)) {
47
+ if (C(n)) {
46
48
  let { component: e, ...t } = n;
47
- return (n, r) => n(y, r, () => n(b[`./${e}/Index.vue`], {
49
+ return (n, r) => n(b, r, () => n(x[`./${e}/Index.vue`], {
48
50
  ...t,
49
51
  ...r
50
52
  }));
51
53
  }
52
54
  return (e, t) => {
53
55
  let r = n(e, t);
54
- if (S(r)) {
56
+ if (C(r)) {
55
57
  let { component: n, ...i } = r;
56
- return e(y, t, () => e(b[`./${n}/Index.vue`], {
58
+ return e(b, t, () => e(x[`./${n}/Index.vue`], {
57
59
  ...i,
58
60
  ...t
59
61
  }));
60
62
  }
61
- return e(y, t, () => r);
63
+ return e(b, t, () => r);
62
64
  };
63
65
  }
64
- function S(e) {
66
+ function C(e) {
65
67
  return typeof e == "object" && !!e && "component" in e && typeof e.component == "string";
66
68
  }
67
69
  //#endregion
68
- export { x as getCellRender };
70
+ export { S as getCellRender };
package/router/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { D as e, E as t, T as n } from "../chunks/provider-BhFm5rvy.mjs";
1
+ import { D as e, E as t, T as n } from "../chunks/provider-Ccvmo_nA.mjs";
2
2
  export { e as default, n as getRoute, t as getTopRoute };
@@ -1,2 +1,2 @@
1
- import { H as e } from "../../chunks/provider-BhFm5rvy.mjs";
1
+ import { H as e } from "../../chunks/provider-Ccvmo_nA.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { j as e } from "../../chunks/provider-BhFm5rvy.mjs";
1
+ import { j as e } from "../../chunks/provider-Ccvmo_nA.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { V as e } from "../../chunks/provider-BhFm5rvy.mjs";
1
+ import { V as e } from "../../chunks/provider-Ccvmo_nA.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { B as e, z as t } from "../../chunks/provider-BhFm5rvy.mjs";
1
+ import { B as e, z as t } from "../../chunks/provider-Ccvmo_nA.mjs";
2
2
  export { e as default, t as getRoutersMethod };
@@ -1,2 +1,2 @@
1
- import { i as e, r as t } from "../../chunks/provider-BhFm5rvy.mjs";
1
+ import { i as e, r as t } from "../../chunks/provider-Ccvmo_nA.mjs";
2
2
  export { e as default, t as getUserInfoMethod };
package/utils/boolean.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { validNumberStringReg as e } from "../constants/others.mjs";
1
+ import { validNumberStringReg as e } from "../constants/regs.mjs";
2
2
  //#region ../../packages/dlzn-ui/utils/boolean.ts
3
3
  function t(e) {
4
4
  return [
package/views/index.mjs CHANGED
@@ -2,7 +2,9 @@ import e from "virtual:dlzn-ui/app-params";
2
2
  var t = {
3
3
  .../* @__PURE__ */ Object.assign({
4
4
  "./monitor/logininfor/index.vue": () => import("./monitor/logininfor/index.mjs"),
5
+ "./monitor/online/index.vue": () => import("./monitor/online/index.mjs"),
5
6
  "./monitor/operlog/index.vue": () => import("./monitor/operlog/index.mjs"),
7
+ "./monitor/server/index.vue": () => import("./monitor/server/index.mjs"),
6
8
  "./system/config/index.vue": () => import("./system/config/index.mjs"),
7
9
  "./system/dept/index.vue": () => import("./system/dept/index.mjs"),
8
10
  "./system/dict/index.vue": () => import("./system/dict/index.mjs"),
@@ -1,5 +1,5 @@
1
- import { S as e } from "../../../chunks/provider-BhFm5rvy.mjs";
2
- import { t } from "../../../chunks/page-list-DUYDkWcj.mjs";
1
+ import { S as e } from "../../../chunks/provider-Ccvmo_nA.mjs";
2
+ import { t } from "../../../chunks/page-list-BhLsMD_7.mjs";
3
3
  import "../../../components/page-list/index.mjs";
4
4
  import { createBlock as n, defineComponent as r, mergeProps as i, openBlock as a, reactive as o, ref as s, unref as c, useTemplateRef as l } from "vue";
5
5
  //#endregion
@@ -0,0 +1,82 @@
1
+ import { S as e } from "../../../chunks/provider-Ccvmo_nA.mjs";
2
+ import { t } from "../../../chunks/page-list-BhLsMD_7.mjs";
3
+ import "../../../components/page-list/index.mjs";
4
+ import { createBlock as n, defineComponent as r, mergeProps as i, openBlock as a, unref as o, useTemplateRef as s } from "vue";
5
+ //#endregion
6
+ //#region ../../packages/dlzn-ui/views/monitor/online/index.vue
7
+ var c = /* @__PURE__ */ r({
8
+ __name: "index",
9
+ setup(r) {
10
+ let c = s("pageListRef"), l = {
11
+ ipaddr: {
12
+ _label: "登录地址",
13
+ component: "TInput",
14
+ model: "ipaddr"
15
+ },
16
+ userName: {
17
+ _label: "用户名称",
18
+ component: "TInput",
19
+ model: "userName"
20
+ }
21
+ }, u = {
22
+ apis: { list: { method: "monitor/online/list" } },
23
+ columns: [
24
+ {
25
+ colKey: "tokenId",
26
+ title: "会话编号"
27
+ },
28
+ {
29
+ colKey: "userName",
30
+ title: "登录名称"
31
+ },
32
+ {
33
+ colKey: "deptName",
34
+ title: "所属部门"
35
+ },
36
+ {
37
+ colKey: "ipaddr",
38
+ title: "主机"
39
+ },
40
+ {
41
+ colKey: "loginLocation",
42
+ title: "登录地点"
43
+ },
44
+ {
45
+ colKey: "os",
46
+ title: "操作系统"
47
+ },
48
+ {
49
+ colKey: "browser",
50
+ title: "浏览器"
51
+ },
52
+ {
53
+ colKey: "loginTime",
54
+ title: "登录时间"
55
+ },
56
+ {
57
+ cell: {
58
+ buttons: [({ row: t }) => ({
59
+ default: "强退",
60
+ popconfirm: {
61
+ content: `是否确认强退名称为${t.userName}的用户?`,
62
+ onConfirm: async () => {
63
+ await e.Delete(`monitor/online/${t.tokenId}`, void 0, { meta: { useSuccessMsg: !0 } }), c.value.query();
64
+ }
65
+ }
66
+ })],
67
+ component: "Buttons"
68
+ },
69
+ colKey: "_operation",
70
+ title: "操作"
71
+ }
72
+ ],
73
+ formItems: [l.ipaddr, l.userName]
74
+ };
75
+ return (e, r) => (a(), n(o(t), i({
76
+ ref_key: "pageListRef",
77
+ ref: c
78
+ }, u), null, 16));
79
+ }
80
+ });
81
+ //#endregion
82
+ export { c as default };
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -1,5 +1,5 @@
1
- import { I as e, S as t, o as n } from "../../../chunks/provider-BhFm5rvy.mjs";
2
- import { t as r } from "../../../chunks/page-list-DUYDkWcj.mjs";
1
+ import { I as e, S as t, o as n } from "../../../chunks/provider-Ccvmo_nA.mjs";
2
+ import { t as r } from "../../../chunks/page-list-BhLsMD_7.mjs";
3
3
  import "../../../components/page-list/index.mjs";
4
4
  import { createBlock as i, defineComponent as a, h as o, mergeProps as s, openBlock as c, reactive as l, ref as u, unref as d, useTemplateRef as f, watch as p } from "vue";
5
5
  //#endregion
@@ -0,0 +1,216 @@
1
+ import { S as e } from "../../../chunks/provider-Ccvmo_nA.mjs";
2
+ import { t } from "../../../chunks/card-Domqu1Hz.mjs";
3
+ import "../../../components/card/index.mjs";
4
+ import { t as n } from "../../../chunks/table-C3GB8HZj.mjs";
5
+ import "../../../components/table/index.mjs";
6
+ import { computed as r, createElementBlock as i, createVNode as a, defineComponent as o, openBlock as s, unref as c, withCtx as l } from "vue";
7
+ import { useRequest as u } from "alova/client";
8
+ //#region ../../packages/dlzn-ui/views/monitor/server/index.vue?vue&type=script&setup=true&lang.ts
9
+ var d = { class: "grid grid-cols-3 gap-4" }, f = /* @__PURE__ */ o({
10
+ __name: "index",
11
+ setup(o) {
12
+ let f = [{
13
+ colKey: "label",
14
+ title: "属性"
15
+ }, {
16
+ colKey: "value",
17
+ title: "值"
18
+ }], p = [
19
+ {
20
+ colKey: "label",
21
+ title: "属性"
22
+ },
23
+ {
24
+ colKey: "memory",
25
+ title: "内存"
26
+ },
27
+ {
28
+ colKey: "JVM",
29
+ title: "JVM"
30
+ }
31
+ ], m = [
32
+ {
33
+ colKey: "dirName",
34
+ title: "盘符路径"
35
+ },
36
+ {
37
+ colKey: "sysTypeName",
38
+ title: "文件系统"
39
+ },
40
+ {
41
+ colKey: "typeName",
42
+ title: "盘符类型"
43
+ },
44
+ {
45
+ colKey: "total",
46
+ title: "总大小"
47
+ },
48
+ {
49
+ colKey: "free",
50
+ title: "可用大小"
51
+ },
52
+ {
53
+ colKey: "used",
54
+ title: "已用大小"
55
+ },
56
+ {
57
+ align: "right",
58
+ cell: {
59
+ component: "FormatNumber",
60
+ config: {
61
+ style: "unit",
62
+ unit: "percent"
63
+ }
64
+ },
65
+ colKey: "usage",
66
+ title: "已用百分比"
67
+ }
68
+ ], { data: h, loading: g } = u(e.Get("monitor/server"), { initialData: void 0 }), _ = r(() => {
69
+ let e = h.value?.cpu;
70
+ return e ? [
71
+ {
72
+ label: "核心数",
73
+ value: e.cpuNum
74
+ },
75
+ {
76
+ label: "用户使用率",
77
+ value: `${e.used}%`
78
+ },
79
+ {
80
+ label: "系统使用率",
81
+ value: `${e.sys}%`
82
+ },
83
+ {
84
+ label: "当前空闲率",
85
+ value: `${e.free}%`
86
+ }
87
+ ] : [];
88
+ }), v = r(() => {
89
+ let e = h.value?.jvm, t = h.value?.mem;
90
+ return !e || !t ? [] : [
91
+ {
92
+ JVM: `${e.total}M`,
93
+ label: "总内存",
94
+ memory: `${t.total}G`
95
+ },
96
+ {
97
+ JVM: `${e.used}M`,
98
+ label: "已用内存",
99
+ memory: `${t.used}G`
100
+ },
101
+ {
102
+ JVM: `${e.free}M`,
103
+ label: "剩余内存",
104
+ memory: `${t.free}G`
105
+ },
106
+ {
107
+ JVM: `${e.usage}%`,
108
+ label: "使用率",
109
+ memory: `${t.usage}%`
110
+ }
111
+ ];
112
+ }), y = r(() => {
113
+ let e = h.value?.sys;
114
+ return e ? [
115
+ {
116
+ label: "服务器名称",
117
+ value: e.computerName
118
+ },
119
+ {
120
+ label: "操作系统",
121
+ value: e.osName
122
+ },
123
+ {
124
+ label: "服务器IP",
125
+ value: e.computerIp
126
+ },
127
+ {
128
+ label: "系统架构",
129
+ value: e.osArch
130
+ }
131
+ ] : [];
132
+ }), b = r(() => {
133
+ let e = h.value?.jvm, t = h.value?.sys;
134
+ return !e || !t ? [] : [
135
+ {
136
+ label: "Java名称",
137
+ value: e.name
138
+ },
139
+ {
140
+ label: "Java版本",
141
+ value: e.version
142
+ },
143
+ {
144
+ label: "启动时间",
145
+ value: e.startTime
146
+ },
147
+ {
148
+ label: "运行时长",
149
+ value: e.runTime
150
+ },
151
+ {
152
+ label: "安装路径",
153
+ value: e.home
154
+ },
155
+ {
156
+ label: "项目路径",
157
+ value: t.userDir
158
+ },
159
+ {
160
+ label: "运行参数",
161
+ value: e.inputArgs
162
+ }
163
+ ];
164
+ }), x = r(() => h.value?.sysFiles ?? []);
165
+ return (e, r) => (s(), i("div", d, [
166
+ a(c(t), { title: "CPU" }, {
167
+ default: l(() => [a(c(n), {
168
+ columns: f,
169
+ data: _.value,
170
+ loading: c(g)
171
+ }, null, 8, ["data", "loading"])]),
172
+ _: 1
173
+ }),
174
+ a(c(t), { title: "内存" }, {
175
+ default: l(() => [a(c(n), {
176
+ columns: p,
177
+ data: v.value,
178
+ loading: c(g)
179
+ }, null, 8, ["data", "loading"])]),
180
+ _: 1
181
+ }),
182
+ a(c(t), { title: "服务器信息" }, {
183
+ default: l(() => [a(c(n), {
184
+ columns: f,
185
+ data: y.value,
186
+ loading: c(g)
187
+ }, null, 8, ["data", "loading"])]),
188
+ _: 1
189
+ }),
190
+ a(c(t), {
191
+ class: "col-span-3",
192
+ title: "Java虚拟机信息"
193
+ }, {
194
+ default: l(() => [a(c(n), {
195
+ columns: f,
196
+ data: b.value,
197
+ loading: c(g)
198
+ }, null, 8, ["data", "loading"])]),
199
+ _: 1
200
+ }),
201
+ a(c(t), {
202
+ class: "col-span-3",
203
+ title: "磁盘状态"
204
+ }, {
205
+ default: l(() => [a(c(n), {
206
+ columns: m,
207
+ data: x.value,
208
+ loading: c(g)
209
+ }, null, 8, ["data", "loading"])]),
210
+ _: 1
211
+ })
212
+ ]));
213
+ }
214
+ });
215
+ //#endregion
216
+ export { f as default };
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -1,6 +1,6 @@
1
- import { F as e, S as t, o as n } from "../../../chunks/provider-BhFm5rvy.mjs";
1
+ import { F as e, S as t, o as n } from "../../../chunks/provider-Ccvmo_nA.mjs";
2
2
  import r from "../../../plugins/autoImport/$msg/index.mjs";
3
- import { t as i } from "../../../chunks/page-list-DUYDkWcj.mjs";
3
+ import { t as i } from "../../../chunks/page-list-BhLsMD_7.mjs";
4
4
  import "../../../components/page-list/index.mjs";
5
5
  import { createBlock as a, defineComponent as o, h as s, mergeProps as c, openBlock as l, reactive as u, ref as d, unref as f, useTemplateRef as p, watch as m } from "vue";
6
6
  //#endregion
@@ -1,8 +1,8 @@
1
- import { F as e, S as t, o as n } from "../../../chunks/provider-BhFm5rvy.mjs";
1
+ import { F as e, S as t, o as n } from "../../../chunks/provider-Ccvmo_nA.mjs";
2
2
  import r from "../../../plugins/autoImport/$msg/index.mjs";
3
3
  import { flatArrToTree as i } from "../../../utils/tree.mjs";
4
4
  import "../../../utils/index.mjs";
5
- import { t as a } from "../../../chunks/page-list-DUYDkWcj.mjs";
5
+ import { t as a } from "../../../chunks/page-list-BhLsMD_7.mjs";
6
6
  import "../../../components/page-list/index.mjs";
7
7
  import { deptTreeList as o, deptTreeListSend as s } from "./utils.mjs";
8
8
  import { createBlock as c, defineComponent as l, h as u, mergeProps as d, openBlock as f, reactive as p, ref as m, unref as h, useTemplateRef as g, watch as _ } from "vue";
@@ -1,4 +1,4 @@
1
- import { S as e } from "../../../chunks/provider-BhFm5rvy.mjs";
1
+ import { S as e } from "../../../chunks/provider-Ccvmo_nA.mjs";
2
2
  import { flatArrToTree as t } from "../../../utils/tree.mjs";
3
3
  import "../../../utils/index.mjs";
4
4
  import { useRequest as n } from "alova/client";