dlzn-ui 2.0.57 → 2.0.59

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 (158) hide show
  1. package/assets/{provider-DIrGVGOU.css → provider-B7Qp92IB.css} +1 -1
  2. package/chunks/{AssignUser-DtER_ejJ.mjs → AssignUser-bMazhfbV.mjs} +3 -3
  3. package/chunks/{BasicInfo-BUMKRgQJ.mjs → BasicInfo-gyjQU2uO.mjs} +1 -1
  4. package/chunks/{ColumnInfo-Db_V0RdZ.mjs → ColumnInfo-CFYZ5hWe.mjs} +2 -2
  5. package/chunks/{Common-C50CJzOp.mjs → Common-DBSYg1d6.mjs} +1 -1
  6. package/chunks/{Day-Ca12so8o.mjs → Day-ChCPxAyN.mjs} +1 -1
  7. package/chunks/{DictTypeDetail-48OfCZLN.mjs → DictTypeDetail-ndBNKRnJ.mjs} +2 -2
  8. package/chunks/{GenInfo-yGFmqWPU.mjs → GenInfo-Cu9r0CWu.mjs} +1 -1
  9. package/chunks/{Hour-DsNBBlc4.mjs → Hour-DliOctKJ.mjs} +1 -1
  10. package/chunks/{Import-DuiyoZya.mjs → Import-Bzr5ifWR.mjs} +2 -2
  11. package/chunks/{Index-Bwa9roLv.mjs → Index-BTzAo7cI.mjs} +1 -1
  12. package/chunks/{Index-3OTZvoEG.mjs → Index-BlMeGYHt.mjs} +1 -1
  13. package/chunks/{Index-Z6v1V3J6.mjs → Index-DkdDlFEM.mjs} +1 -1
  14. package/chunks/{Index-oBN7hDRt.mjs → Index-MqUf5ZDu.mjs} +1 -1
  15. package/chunks/{IndexItem-DNEqAAjM.mjs → IndexItem-A_Ovo4M5.mjs} +1 -1
  16. package/chunks/{Log-CNy8LPBX.mjs → Log-BDGXwssd.mjs} +2 -2
  17. package/chunks/{LoginBg-R2KrvisY.mjs → LoginBg-DKefXcPd.mjs} +1 -1
  18. package/chunks/{Minute-DsOjDKJw.mjs → Minute-COzGc3ad.mjs} +1 -1
  19. package/chunks/{Month-tFXTN8o3.mjs → Month-Dx81Eaal.mjs} +1 -1
  20. package/chunks/{Preview-Bjjy5QvH.mjs → Preview-ChIMapuV.mjs} +1 -1
  21. package/chunks/{Second-BDd95Jav.mjs → Second-BWbEhs38.mjs} +1 -1
  22. package/chunks/{SelectDept-BSOcrk6_.mjs → SelectDept-DbVJHioK.mjs} +1 -1
  23. package/chunks/{SelectMenu-G_Toehs6.mjs → SelectMenu-C7L1sfLX.mjs} +1 -1
  24. package/chunks/{SelectUser-CIOnHIpt.mjs → SelectUser-C43-AOq3.mjs} +2 -2
  25. package/chunks/{UserInfo-CLKPzdpf.mjs → UserInfo-BhTJ0uFN.mjs} +1 -1
  26. package/chunks/{app-C2GscqOQ.mjs → app-Ch2PbR-W.mjs} +1 -1
  27. package/chunks/{custom-page-list-BEwJFbop.mjs → custom-page-list-C_Ls1OqQ.mjs} +4 -4
  28. package/chunks/{custom-page-table-97Xi_m_P.mjs → custom-page-table-DD3RNBZW.mjs} +2 -2
  29. package/chunks/job-DcKHJj9d.mjs +297 -0
  30. package/chunks/{overview-DXgHrRkH.mjs → overview-CtHQkWg4.mjs} +1 -1
  31. package/chunks/{page-list-9ShvLAqK.mjs → page-list-BwtbLllw.mjs} +3 -3
  32. package/chunks/{page-query-Bo30X-Np.mjs → page-query-21MkVjW-.mjs} +1 -1
  33. package/chunks/{page-table-HHguazH_.mjs → page-table-CNXoo8NE.mjs} +3 -3
  34. package/chunks/{pagination-BJfw8dU3.mjs → pagination-D9t3wPwB.mjs} +1 -1
  35. package/chunks/{provider-CH9EHEA4.mjs → provider-BPshoiNR.mjs} +373 -359
  36. package/chunks/{table-8T5HDisC.mjs → table-CZTzoYO4.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-group/index.mjs +1 -1
  42. package/components/checkbox-group/src/checkbox-group.mjs +1 -1
  43. package/components/cron/index.mjs +1 -1
  44. package/components/cron/src/Common.mjs +1 -1
  45. package/components/cron/src/Day.mjs +1 -1
  46. package/components/cron/src/Hour.mjs +1 -1
  47. package/components/cron/src/Minute.mjs +1 -1
  48. package/components/cron/src/Month.mjs +1 -1
  49. package/components/cron/src/Picker.mjs +6 -6
  50. package/components/cron/src/Second.mjs +1 -1
  51. package/components/cron/src/cron.mjs +1 -1
  52. package/components/custom-page-list/index.mjs +1 -1
  53. package/components/custom-page-list/src/custom-page-list.mjs +1 -1
  54. package/components/custom-page-table/index.mjs +1 -1
  55. package/components/custom-page-table/src/custom-page-table.mjs +1 -1
  56. package/components/form/index.mjs +1 -1
  57. package/components/form/src/form.mjs +1 -1
  58. package/components/index.mjs +9 -9
  59. package/components/overview/index.mjs +1 -1
  60. package/components/overview/src/DicLabel/Index.mjs +1 -1
  61. package/components/overview/src/IndexItem.mjs +1 -1
  62. package/components/overview/src/overview.mjs +1 -1
  63. package/components/page-list/index.mjs +1 -1
  64. package/components/page-list/src/page-list.d.ts +1 -3
  65. package/components/page-list/src/page-list.mjs +1 -1
  66. package/components/page-query/index.mjs +1 -1
  67. package/components/page-query/src/page-query.mjs +1 -1
  68. package/components/page-table/index.mjs +1 -1
  69. package/components/page-table/src/page-table.mjs +1 -1
  70. package/components/pagination/index.mjs +1 -1
  71. package/components/pagination/src/pagination.mjs +1 -1
  72. package/components/provider/index.mjs +1 -1
  73. package/components/provider/src/Provider.mjs +1 -1
  74. package/components/radio-group/index.mjs +1 -1
  75. package/components/radio-group/src/radio-group.mjs +1 -1
  76. package/components/select/index.mjs +1 -1
  77. package/components/select/src/select.mjs +1 -1
  78. package/components/select-sys-user/index.mjs +1 -1
  79. package/components/select-sys-user/src/Picker.mjs +2 -2
  80. package/components/select-sys-user/src/select-sys-user.mjs +1 -1
  81. package/components/table/index.mjs +1 -1
  82. package/components/table/src/table.mjs +1 -1
  83. package/components/tree/index.mjs +1 -1
  84. package/components/tree/src/tree.mjs +1 -1
  85. package/components/tree-select/index.mjs +1 -1
  86. package/components/tree-select/src/tree-select.mjs +1 -1
  87. package/components/upload/index.mjs +1 -1
  88. package/components/upload/src/upload.d.ts +1 -3
  89. package/components/upload/src/upload.mjs +1 -1
  90. package/hooks/useDicOptions/index.mjs +1 -1
  91. package/hooks/useSysUser/index.mjs +1 -1
  92. package/index.html +1 -1
  93. package/layout/Entry.mjs +1 -1
  94. package/layout/Home.mjs +1 -1
  95. package/layout/Home1.mjs +2 -2
  96. package/layout/Login.mjs +2 -2
  97. package/layout/NotFound.mjs +1 -1
  98. package/layout/modules/Aside.mjs +1 -1
  99. package/layout/modules/Breadcrumb.mjs +1 -1
  100. package/layout/modules/Header.mjs +1 -1
  101. package/layout/modules/LoginBg.mjs +1 -1
  102. package/layout/profile/Index.mjs +2 -2
  103. package/layout/profile/ResetPwd.mjs +1 -1
  104. package/layout/profile/UserInfo.mjs +1 -1
  105. package/main.mjs +2 -2
  106. package/package.json +1 -1
  107. package/plugins/autoImport/$alova/index.mjs +1 -1
  108. package/plugins/autoImport/$confirm/index.mjs +1 -1
  109. package/plugins/autoImport/$dialog/index.mjs +1 -1
  110. package/plugins/autoImport/$drawer/index.mjs +1 -1
  111. package/plugins/captcha/captcha.mjs +1 -1
  112. package/plugins/captcha/index.mjs +1 -1
  113. package/plugins/initialize/webUpdateNotify.mjs +1 -1
  114. package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
  115. package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
  116. package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
  117. package/plugins/tableRenders/cell/index.mjs +3 -3
  118. package/router/index.mjs +1 -1
  119. package/store/modules/common.mjs +1 -1
  120. package/store/modules/login.mjs +1 -1
  121. package/store/modules/recentRouters.mjs +1 -1
  122. package/store/modules/router.mjs +1 -1
  123. package/store/modules/user.mjs +1 -1
  124. package/views/index.mjs +1 -0
  125. package/views/monitor/cache/index.mjs +2 -2
  126. package/views/monitor/cacheList/index.mjs +2 -2
  127. package/views/monitor/job/index.mjs +12 -0
  128. package/views/monitor/job/index.vue.d.ts +3 -0
  129. package/views/monitor/logininfor/index.mjs +2 -2
  130. package/views/monitor/online/index.mjs +2 -2
  131. package/views/monitor/operlog/index.mjs +2 -2
  132. package/views/monitor/server/index.mjs +2 -2
  133. package/views/system/config/index.mjs +2 -2
  134. package/views/system/dept/index.mjs +2 -2
  135. package/views/system/dept/utils.mjs +1 -1
  136. package/views/system/dict/index.mjs +3 -3
  137. package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
  138. package/views/system/menu/index.mjs +2 -2
  139. package/views/system/menu/utils.mjs +1 -1
  140. package/views/system/notice/index.mjs +2 -2
  141. package/views/system/post/index.mjs +2 -2
  142. package/views/system/role/index.mjs +5 -5
  143. package/views/system/role/modules/AssignUser.mjs +1 -1
  144. package/views/system/role/modules/SelectDept.mjs +1 -1
  145. package/views/system/role/modules/SelectMenu.mjs +1 -1
  146. package/views/system/role/modules/SelectUser.mjs +1 -1
  147. package/views/system/user/index.mjs +142 -116
  148. package/views/system/user/index.vue.d.ts +5 -1
  149. package/views/tool/gen/editTable/index.mjs +4 -4
  150. package/views/tool/gen/editTable/modules/BasicInfo.mjs +1 -1
  151. package/views/tool/gen/editTable/modules/ColumnInfo.mjs +1 -1
  152. package/views/tool/gen/editTable/modules/GenInfo.mjs +1 -1
  153. package/views/tool/gen/index.mjs +4 -4
  154. package/views/tool/gen/modules/Import.mjs +1 -1
  155. package/views/tool/gen/modules/Preview.mjs +1 -1
  156. package/views/tool/job/index.mjs +2 -297
  157. package/views/tool/job/modules/Log.mjs +1 -1
  158. package/README.md +0 -137
package/router/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { D as e, E as t, T as n } from "../chunks/provider-CH9EHEA4.mjs";
1
+ import { D as e, E as t, T as n } from "../chunks/provider-BPshoiNR.mjs";
2
2
  export { e as default, n as getRoute, t as getTopRoute };
@@ -1,2 +1,2 @@
1
- import { B as e } from "../../chunks/provider-CH9EHEA4.mjs";
1
+ import { B as e } from "../../chunks/provider-BPshoiNR.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { j as e } from "../../chunks/provider-CH9EHEA4.mjs";
1
+ import { j as e } from "../../chunks/provider-BPshoiNR.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { z as e } from "../../chunks/provider-CH9EHEA4.mjs";
1
+ import { z as e } from "../../chunks/provider-BPshoiNR.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { L as e, R as t } from "../../chunks/provider-CH9EHEA4.mjs";
1
+ import { L as e, R as t } from "../../chunks/provider-BPshoiNR.mjs";
2
2
  export { t as default, e as getRoutersMethod };
@@ -1,2 +1,2 @@
1
- import { i as e, r as t } from "../../chunks/provider-CH9EHEA4.mjs";
1
+ import { i as e, r as t } from "../../chunks/provider-BPshoiNR.mjs";
2
2
  export { e as default, t as getUserInfoMethod };
package/views/index.mjs CHANGED
@@ -3,6 +3,7 @@ var t = {
3
3
  .../* @__PURE__ */ Object.assign({
4
4
  "./monitor/cache/index.vue": () => import("./monitor/cache/index.mjs"),
5
5
  "./monitor/cacheList/index.vue": () => import("./monitor/cacheList/index.mjs"),
6
+ "./monitor/job/index.vue": () => import("./monitor/job/index.mjs"),
6
7
  "./monitor/logininfor/index.vue": () => import("./monitor/logininfor/index.mjs"),
7
8
  "./monitor/online/index.vue": () => import("./monitor/online/index.mjs"),
8
9
  "./monitor/operlog/index.vue": () => import("./monitor/operlog/index.mjs"),
@@ -1,7 +1,7 @@
1
- import { S as e } from "../../../chunks/provider-CH9EHEA4.mjs";
1
+ import { S as e } from "../../../chunks/provider-BPshoiNR.mjs";
2
2
  import { t } from "../../../chunks/card-Domqu1Hz.mjs";
3
3
  import "../../../components/card/index.mjs";
4
- import { t as n } from "../../../chunks/table-8T5HDisC.mjs";
4
+ import { t as n } from "../../../chunks/table-CZTzoYO4.mjs";
5
5
  import "../../../components/table/index.mjs";
6
6
  import { t as r } from "../../../chunks/echarts-C3EKKtvU.mjs";
7
7
  import { computed as i, createElementBlock as a, createVNode as o, defineComponent as s, normalizeStyle as c, openBlock as l, unref as u, withCtx as d } from "vue";
@@ -1,8 +1,8 @@
1
- import { S as e, n as t, o as n } from "../../../chunks/provider-CH9EHEA4.mjs";
1
+ import { S as e, n as t, o as n } from "../../../chunks/provider-BPshoiNR.mjs";
2
2
  import r from "../../../plugins/autoImport/$msg/index.mjs";
3
3
  import { t as i } from "../../../chunks/card-Domqu1Hz.mjs";
4
4
  import "../../../components/card/index.mjs";
5
- import { t as a } from "../../../chunks/table-8T5HDisC.mjs";
5
+ import { t as a } from "../../../chunks/table-CZTzoYO4.mjs";
6
6
  import "../../../components/table/index.mjs";
7
7
  import { computed as o, createElementBlock as s, createTextVNode as c, createVNode as l, defineComponent as u, openBlock as d, reactive as f, ref as p, unref as m, watch as h, withCtx as g } from "vue";
8
8
  //#region ../../packages/dlzn-ui/views/monitor/cacheList/index.vue?vue&type=script&setup=true&lang.ts
@@ -0,0 +1,12 @@
1
+ import { t as e } from "../../../chunks/job-DcKHJj9d.mjs";
2
+ import { createBlock as t, defineComponent as n, openBlock as r } from "vue";
3
+ //#endregion
4
+ //#region ../../packages/dlzn-ui/views/monitor/job/index.vue
5
+ var i = /* @__PURE__ */ n({
6
+ __name: "index",
7
+ setup(n) {
8
+ return (n, i) => (r(), t(e));
9
+ }
10
+ });
11
+ //#endregion
12
+ export { i 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 { S as e } from "../../../chunks/provider-CH9EHEA4.mjs";
2
- import { t } from "../../../chunks/page-list-9ShvLAqK.mjs";
1
+ import { S as e } from "../../../chunks/provider-BPshoiNR.mjs";
2
+ import { t } from "../../../chunks/page-list-BwtbLllw.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
@@ -1,5 +1,5 @@
1
- import { S as e } from "../../../chunks/provider-CH9EHEA4.mjs";
2
- import { t } from "../../../chunks/page-list-9ShvLAqK.mjs";
1
+ import { S as e } from "../../../chunks/provider-BPshoiNR.mjs";
2
+ import { t } from "../../../chunks/page-list-BwtbLllw.mjs";
3
3
  import "../../../components/page-list/index.mjs";
4
4
  import { createBlock as n, defineComponent as r, mergeProps as i, openBlock as a, unref as o, useTemplateRef as s } from "vue";
5
5
  //#endregion
@@ -1,5 +1,5 @@
1
- import { H as e, S as t, o as n } from "../../../chunks/provider-CH9EHEA4.mjs";
2
- import { t as r } from "../../../chunks/page-list-9ShvLAqK.mjs";
1
+ import { H as e, S as t, o as n } from "../../../chunks/provider-BPshoiNR.mjs";
2
+ import { t as r } from "../../../chunks/page-list-BwtbLllw.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
@@ -1,7 +1,7 @@
1
- import { S as e } from "../../../chunks/provider-CH9EHEA4.mjs";
1
+ import { S as e } from "../../../chunks/provider-BPshoiNR.mjs";
2
2
  import { t } from "../../../chunks/card-Domqu1Hz.mjs";
3
3
  import "../../../components/card/index.mjs";
4
- import { t as n } from "../../../chunks/table-8T5HDisC.mjs";
4
+ import { t as n } from "../../../chunks/table-CZTzoYO4.mjs";
5
5
  import "../../../components/table/index.mjs";
6
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
7
  import { useRequest as u } from "alova/client";
@@ -1,6 +1,6 @@
1
- import { S as e, V as t, o as n } from "../../../chunks/provider-CH9EHEA4.mjs";
1
+ import { S as e, V as t, o as n } from "../../../chunks/provider-BPshoiNR.mjs";
2
2
  import r from "../../../plugins/autoImport/$msg/index.mjs";
3
- import { t as i } from "../../../chunks/page-list-9ShvLAqK.mjs";
3
+ import { t as i } from "../../../chunks/page-list-BwtbLllw.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 { S as e, V as t, o as n } from "../../../chunks/provider-CH9EHEA4.mjs";
1
+ import { S as e, V as t, o as n } from "../../../chunks/provider-BPshoiNR.mjs";
2
2
  import "../../../chunks/utils-ag05P503.mjs";
3
3
  import { flatArrToTree as r } from "../../../utils/tree.mjs";
4
4
  import i from "../../../plugins/autoImport/$msg/index.mjs";
5
- import { t as a } from "../../../chunks/page-list-9ShvLAqK.mjs";
5
+ import { t as a } from "../../../chunks/page-list-BwtbLllw.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-CH9EHEA4.mjs";
1
+ import { S as e } from "../../../chunks/provider-BPshoiNR.mjs";
2
2
  import "../../../chunks/utils-ag05P503.mjs";
3
3
  import { flatArrToTree as t } from "../../../utils/tree.mjs";
4
4
  import { useRequest as n } from "alova/client";
@@ -1,8 +1,8 @@
1
- import { H as e, S as t, V as n, o as r } from "../../../chunks/provider-CH9EHEA4.mjs";
1
+ import { H as e, S as t, V as n, o as r } from "../../../chunks/provider-BPshoiNR.mjs";
2
2
  import i from "../../../plugins/autoImport/$msg/index.mjs";
3
- import { t as a } from "../../../chunks/page-list-9ShvLAqK.mjs";
3
+ import { t as a } from "../../../chunks/page-list-BwtbLllw.mjs";
4
4
  import "../../../components/page-list/index.mjs";
5
- import { t as o } from "../../../chunks/DictTypeDetail-48OfCZLN.mjs";
5
+ import { t as o } from "../../../chunks/DictTypeDetail-ndBNKRnJ.mjs";
6
6
  import { createBlock as s, defineComponent as c, h as l, mergeProps as u, openBlock as d, reactive as f, ref as p, unref as m, useTemplateRef as h, watch as g } from "vue";
7
7
  //#endregion
8
8
  //#region ../../packages/dlzn-ui/views/system/dict/index.vue
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/DictTypeDetail-48OfCZLN.mjs";
1
+ import { t as e } from "../../../../chunks/DictTypeDetail-ndBNKRnJ.mjs";
2
2
  export { e as default };
@@ -1,11 +1,11 @@
1
- import { S as e, V as t, n, o as r } from "../../../chunks/provider-CH9EHEA4.mjs";
1
+ import { S as e, V as t, n, o as r } from "../../../chunks/provider-BPshoiNR.mjs";
2
2
  import { t as i } from "../../../chunks/icon-DcFIQ_yG.mjs";
3
3
  import "../../../components/icon/index.mjs";
4
4
  import { isFalsy as a } from "../../../utils/boolean.mjs";
5
5
  import "../../../chunks/utils-ag05P503.mjs";
6
6
  import { flatArrToTree as o } from "../../../utils/tree.mjs";
7
7
  import s from "../../../plugins/autoImport/$msg/index.mjs";
8
- import { t as c } from "../../../chunks/page-list-9ShvLAqK.mjs";
8
+ import { t as c } from "../../../chunks/page-list-BwtbLllw.mjs";
9
9
  import "../../../components/page-list/index.mjs";
10
10
  import { useMenuTree as l } from "./utils.mjs";
11
11
  import { createBlock as u, defineComponent as d, h as f, mergeProps as p, openBlock as m, reactive as h, ref as g, unref as _, useTemplateRef as v, watch as y } from "vue";
@@ -1,4 +1,4 @@
1
- import { S as e } from "../../../chunks/provider-CH9EHEA4.mjs";
1
+ import { S as e } from "../../../chunks/provider-BPshoiNR.mjs";
2
2
  import "../../../chunks/utils-ag05P503.mjs";
3
3
  import { flatArrToTree as t } from "../../../utils/tree.mjs";
4
4
  import { useRequest as n } from "alova/client";
@@ -1,6 +1,6 @@
1
- import { S as e, V as t, o as n } from "../../../chunks/provider-CH9EHEA4.mjs";
1
+ import { S as e, V as t, o as n } from "../../../chunks/provider-BPshoiNR.mjs";
2
2
  import r from "../../../plugins/autoImport/$msg/index.mjs";
3
- import { t as i } from "../../../chunks/page-list-9ShvLAqK.mjs";
3
+ import { t as i } from "../../../chunks/page-list-BwtbLllw.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,6 +1,6 @@
1
- import { S as e, V as t, o as n } from "../../../chunks/provider-CH9EHEA4.mjs";
1
+ import { S as e, V as t, o as n } from "../../../chunks/provider-BPshoiNR.mjs";
2
2
  import r from "../../../plugins/autoImport/$msg/index.mjs";
3
- import { t as i } from "../../../chunks/page-list-9ShvLAqK.mjs";
3
+ import { t as i } from "../../../chunks/page-list-BwtbLllw.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,10 +1,10 @@
1
- import { H as e, S as t, V as n, o as r } from "../../../chunks/provider-CH9EHEA4.mjs";
1
+ import { H as e, S as t, V as n, o as r } from "../../../chunks/provider-BPshoiNR.mjs";
2
2
  import i from "../../../plugins/autoImport/$msg/index.mjs";
3
- import { t as a } from "../../../chunks/page-list-9ShvLAqK.mjs";
3
+ import { t as a } from "../../../chunks/page-list-BwtbLllw.mjs";
4
4
  import "../../../components/page-list/index.mjs";
5
- import { t as o } from "../../../chunks/AssignUser-DtER_ejJ.mjs";
6
- import { t as s } from "../../../chunks/SelectDept-BSOcrk6_.mjs";
7
- import { t as c } from "../../../chunks/SelectMenu-G_Toehs6.mjs";
5
+ import { t as o } from "../../../chunks/AssignUser-bMazhfbV.mjs";
6
+ import { t as s } from "../../../chunks/SelectDept-DbVJHioK.mjs";
7
+ import { t as c } from "../../../chunks/SelectMenu-C7L1sfLX.mjs";
8
8
  import { createBlock as l, defineComponent as u, h as d, mergeProps as f, openBlock as p, reactive as m, ref as h, unref as g, useTemplateRef as _, watch as v } from "vue";
9
9
  //#endregion
10
10
  //#region ../../packages/dlzn-ui/views/system/role/index.vue
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/AssignUser-DtER_ejJ.mjs";
1
+ import { t as e } from "../../../../chunks/AssignUser-bMazhfbV.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/SelectDept-BSOcrk6_.mjs";
1
+ import { t as e } from "../../../../chunks/SelectDept-DbVJHioK.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/SelectMenu-G_Toehs6.mjs";
1
+ import { t as e } from "../../../../chunks/SelectMenu-C7L1sfLX.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/SelectUser-CIOnHIpt.mjs";
1
+ import { t as e } from "../../../../chunks/SelectUser-C43-AOq3.mjs";
2
2
  export { e as default };
@@ -1,10 +1,10 @@
1
- import { N as e, S as t, V as n, o as r } from "../../../chunks/provider-CH9EHEA4.mjs";
1
+ import { N as e, S as t, V as n, o as r } from "../../../chunks/provider-BPshoiNR.mjs";
2
2
  import { n as i } from "../../../chunks/useAppContext-D47amIp5.mjs";
3
3
  import { passwordReg as a, passwordRegMessage as o } from "../../../constants/regs.mjs";
4
4
  import s from "../../../plugins/autoImport/$msg/index.mjs";
5
- import { t as c } from "../../../chunks/table-8T5HDisC.mjs";
5
+ import { t as c } from "../../../chunks/table-CZTzoYO4.mjs";
6
6
  import "../../../components/table/index.mjs";
7
- import { t as l } from "../../../chunks/page-list-9ShvLAqK.mjs";
7
+ import { t as l } from "../../../chunks/page-list-BwtbLllw.mjs";
8
8
  import "../../../components/page-list/index.mjs";
9
9
  import { deptTreeList as u, deptTreeListSend as d } from "../dept/utils.mjs";
10
10
  import { createBlock as f, defineComponent as p, h as m, mergeProps as h, onActivated as g, openBlock as _, reactive as v, ref as y, unref as b, useTemplateRef as x, watch as S } from "vue";
@@ -15,14 +15,15 @@ var w = /* @__PURE__ */ p({
15
15
  __name: "index",
16
16
  props: {
17
17
  formItemMap: {},
18
+ operations: {},
18
19
  tableColumns: {}
19
20
  },
20
- setup(p) {
21
- let w = p;
21
+ setup(p, { expose: w }) {
22
+ let T = p;
22
23
  g(() => {
23
24
  d();
24
25
  });
25
- let { send: T } = C((e) => t.Get(`system/user/${e}`, { meta: { useDataResult: !1 } }), { immediate: !1 }), E = x("pageListRef"), D = {
26
+ let { send: E } = C((e) => t.Get(`system/user/${e}`, { meta: { useDataResult: !1 } }), { immediate: !1 }), D = x("pageListRef"), O = {
26
27
  deptId: v({
27
28
  _label: "归属部门",
28
29
  _required: !0,
@@ -94,7 +95,13 @@ var w = /* @__PURE__ */ p({
94
95
  dicCode: "sys_normal_disable",
95
96
  model: "status"
96
97
  },
97
- ...VITE_APP_ID === "1" ? { ...w.formItemMap ?? {} } : {},
98
+ userType: {
99
+ _label: "用户类型",
100
+ component: "TSelect",
101
+ dicCode: "sys_user_type",
102
+ model: "userType"
103
+ },
104
+ ...VITE_APP_ID === "1" ? { ...T.formItemMap ?? {} } : {},
98
105
  userName: {
99
106
  _label: "登录账号",
100
107
  _required: !0,
@@ -108,7 +115,7 @@ var w = /* @__PURE__ */ p({
108
115
  component: "TInput",
109
116
  model: "userName"
110
117
  }
111
- }, O = {
118
+ }, k = {
112
119
  apis: {
113
120
  export: {
114
121
  method: "system/user/export",
@@ -131,7 +138,16 @@ var w = /* @__PURE__ */ p({
131
138
  colKey: "userName",
132
139
  title: "登录账号"
133
140
  },
134
- ...VITE_APP_ID === "1" ? w.tableColumns ?? [] : [],
141
+ {
142
+ cell: {
143
+ component: "DicLabel",
144
+ dicCode: "sys_user_type"
145
+ },
146
+ colKey: "userType",
147
+ title: "用户类型",
148
+ visible: VITE_APP_ID !== "1"
149
+ },
150
+ ...["1", "2"].includes(VITE_APP_ID) ? T.tableColumns ?? [] : [],
135
151
  {
136
152
  colKey: "nickName",
137
153
  title: "用户昵称"
@@ -151,7 +167,7 @@ var w = /* @__PURE__ */ p({
151
167
  return await n(`确认${e}${r.userName}用户吗?`), await t.Put("system/user/changeStatus", {
152
168
  status: r.status === "1" ? "0" : "1",
153
169
  userId: r.userId
154
- }, { meta: { useSuccessMsg: !0 } }), E.value.query(), !0;
170
+ }, { meta: { useSuccessMsg: !0 } }), D.value.query(), !0;
155
171
  },
156
172
  component: "Switch",
157
173
  customValue: ["0", "1"]
@@ -185,7 +201,7 @@ var w = /* @__PURE__ */ p({
185
201
  ({ row: i }) => ({
186
202
  default: "编辑",
187
203
  onClick: async () => {
188
- let { data: a, postIds: o, posts: c, roleIds: l, roles: u } = await T(i.userId), d = y(null);
204
+ let { data: a, postIds: o, posts: c, roleIds: l, roles: u } = await E(i.userId), d = y(null);
189
205
  S(d, () => {
190
206
  d.value.setFormData(a, { splitToArrKeys: VITE_APP_ID === "1" ? ["userDeptIds"] : [] });
191
207
  }, { once: !0 }), n({
@@ -195,15 +211,16 @@ var w = /* @__PURE__ */ p({
195
211
  roleIds: l
196
212
  }),
197
213
  items: [
198
- D.nickName,
199
- ...VITE_APP_ID === "1" ? Object.values(w.formItemMap ?? {}) : [],
200
- D.deptId,
201
- D.phonenumber,
202
- D.email,
203
- D.sex,
204
- D.status,
214
+ O.nickName,
215
+ ...VITE_APP_ID === "1" ? [] : [O.userType],
216
+ ...VITE_APP_ID === "1" ? Object.values(T.formItemMap ?? {}) : [],
217
+ O.deptId,
218
+ O.phonenumber,
219
+ O.email,
220
+ O.sex,
221
+ O.status,
205
222
  {
206
- ...D.postIds,
223
+ ...O.postIds,
207
224
  options: c.map((e) => ({
208
225
  disabled: e.status === "1",
209
226
  label: e.postName,
@@ -211,14 +228,14 @@ var w = /* @__PURE__ */ p({
211
228
  }))
212
229
  },
213
230
  {
214
- ...D.roleIds,
231
+ ...O.roleIds,
215
232
  options: u.map((e) => ({
216
233
  disabled: e.status === "1",
217
234
  label: e.roleName,
218
235
  value: e.roleId
219
236
  }))
220
237
  },
221
- D.remark
238
+ O.remark
222
239
  ],
223
240
  ref: d
224
241
  }),
@@ -230,7 +247,7 @@ var w = /* @__PURE__ */ p({
230
247
  ...VITE_APP_ID === "1" ? { userDeptIds: n.userDeptIds.join(",") } : {},
231
248
  userId: a.userId,
232
249
  userName: a.userName
233
- }), e(a.userId), s.success("用户修改成功"), E.value.query();
250
+ }), e(a.userId), s.success("用户修改成功"), D.value.query();
234
251
  },
235
252
  width: 730
236
253
  });
@@ -262,7 +279,7 @@ var w = /* @__PURE__ */ p({
262
279
  await t.Put("system/user/resetPwd", {
263
280
  password: n,
264
281
  userId: e.userId
265
- }), i(`密码修改成功,新密码是:${n}`), E.value.query();
282
+ }), i(`密码修改成功,新密码是:${n}`), D.value.query();
266
283
  },
267
284
  width: 430
268
285
  });
@@ -312,7 +329,7 @@ var w = /* @__PURE__ */ p({
312
329
  roleIds: a.value.selectedRowKeys.join(","),
313
330
  userId: e.userId
314
331
  }
315
- }), E.value.query();
332
+ }), D.value.query();
316
333
  },
317
334
  width: 800
318
335
  });
@@ -326,7 +343,7 @@ var w = /* @__PURE__ */ p({
326
343
  popconfirm: {
327
344
  content: "确认删除吗",
328
345
  onConfirm: async () => {
329
- await t.Delete(`system/user/${e.userId}`), s("删除成功"), E.value.query();
346
+ await t.Delete(`system/user/${e.userId}`), s("删除成功"), D.value.query();
330
347
  }
331
348
  },
332
349
  show: e.userId !== "1"
@@ -339,12 +356,13 @@ var w = /* @__PURE__ */ p({
339
356
  }
340
357
  ],
341
358
  formItems: [
342
- D.deptId,
343
- D.userName,
344
- D.nickName,
345
- D.phonenumber,
359
+ O.deptId,
360
+ O.userName,
361
+ ...VITE_APP_ID === "1" ? [] : [O.userType],
362
+ O.nickName,
363
+ O.phonenumber,
346
364
  {
347
- ...D.status,
365
+ ...O.status,
348
366
  component: "TSelect"
349
367
  },
350
368
  {
@@ -355,96 +373,104 @@ var w = /* @__PURE__ */ p({
355
373
  type: "daterange"
356
374
  }
357
375
  ],
358
- operations: [{
359
- default: "新增",
360
- onClick: async () => {
361
- let { posts: e, roles: i } = await T(""), a = y(null);
362
- n({
363
- body: () => m(r, {
364
- data: v({ status: "0" }),
365
- items: [
366
- D.nickName,
367
- ...VITE_APP_ID === "1" ? Object.values(w.formItemMap) : [],
368
- D.deptId,
369
- D.phonenumber,
370
- D.email,
371
- D.userName,
372
- D.password,
373
- D.sex,
374
- D.status,
375
- {
376
- ...D.postIds,
377
- options: e.map((e) => ({
378
- disabled: e.status === "1",
379
- label: e.postName,
380
- value: e.postId
381
- }))
382
- },
383
- {
384
- ...D.roleIds,
385
- options: i.map((e) => ({
386
- disabled: e.status === "1",
387
- label: e.roleName,
388
- value: e.roleId
389
- }))
390
- },
391
- D.remark
392
- ],
393
- ref: a
394
- }),
395
- header: "添加用户",
396
- onConfirmCallback: async () => {
397
- let e = await a.value.validate();
398
- await t.Post("system/user", {
399
- ...e,
400
- ...VITE_APP_ID === "1" ? { userDeptIds: e.userDeptIds.join(",") } : {}
401
- }), s.success("用户添加成功"), E.value.query();
402
- },
403
- width: 730
404
- });
405
- },
406
- permission: "system:user:add"
407
- }, {
408
- default: "导入",
409
- onClick: async () => {
410
- let e = y(null);
411
- n({
412
- body: () => m(r, {
413
- items: [{
414
- _required: !0,
415
- component: "TUpload",
416
- downloadTemplate: t.Post("system/user/importTemplate", {}, { meta: {
417
- useDownload: "用户管理导入模板.xlsx",
418
- useResponseBlob: !0
419
- } }),
420
- model: "file",
421
- tips: "请下载模板,并按照模板格式导入"
422
- }, {
423
- component: "TCheckbox",
424
- label: "是否更新已经存在的用户数据",
425
- model: "updateSupport"
426
- }],
427
- ref: e
428
- }),
429
- header: "导入用户",
430
- onConfirmCallback: async () => {
431
- let n = await e.value.validate();
432
- await t.Post("system/user/importData", { file: n.file[0].raw }, {
433
- meta: { useFormData: !0 },
434
- params: { updateSupport: n.updateSupport }
435
- }), E.value.query();
436
- },
437
- width: 480
438
- });
376
+ operations: [
377
+ {
378
+ default: "新增",
379
+ onClick: async () => {
380
+ let { posts: e, roles: i } = await E(""), a = y(null);
381
+ n({
382
+ body: () => m(r, {
383
+ data: v({ status: "0" }),
384
+ items: [
385
+ O.nickName,
386
+ ...VITE_APP_ID === "1" ? [] : [O.userType],
387
+ ...VITE_APP_ID === "1" ? Object.values(T.formItemMap) : [],
388
+ O.deptId,
389
+ O.phonenumber,
390
+ O.email,
391
+ O.userName,
392
+ O.password,
393
+ O.sex,
394
+ O.status,
395
+ {
396
+ ...O.postIds,
397
+ options: e.map((e) => ({
398
+ disabled: e.status === "1",
399
+ label: e.postName,
400
+ value: e.postId
401
+ }))
402
+ },
403
+ {
404
+ ...O.roleIds,
405
+ options: i.map((e) => ({
406
+ disabled: e.status === "1",
407
+ label: e.roleName,
408
+ value: e.roleId
409
+ }))
410
+ },
411
+ O.remark
412
+ ],
413
+ ref: a
414
+ }),
415
+ header: "添加用户",
416
+ onConfirmCallback: async () => {
417
+ let e = await a.value.validate();
418
+ await t.Post("system/user", {
419
+ ...e,
420
+ ...VITE_APP_ID === "1" ? { userDeptIds: e.userDeptIds.join(",") } : {}
421
+ }), s.success("用户添加成功"), D.value.query();
422
+ },
423
+ width: 730
424
+ });
425
+ },
426
+ permission: "system:user:add"
439
427
  },
440
- permission: "system:user:import"
441
- }],
428
+ ...T.operations ?? [],
429
+ {
430
+ default: "导入",
431
+ onClick: async () => {
432
+ let e = y(null);
433
+ n({
434
+ body: () => m(r, {
435
+ items: [{
436
+ _required: !0,
437
+ component: "TUpload",
438
+ downloadTemplate: t.Post("system/user/importTemplate", {}, { meta: {
439
+ useDownload: "用户管理导入模板.xlsx",
440
+ useResponseBlob: !0
441
+ } }),
442
+ model: "file",
443
+ tips: "请下载模板,并按照模板格式导入"
444
+ }, {
445
+ component: "TCheckbox",
446
+ label: "是否更新已经存在的用户数据",
447
+ model: "updateSupport"
448
+ }],
449
+ ref: e
450
+ }),
451
+ header: "导入用户",
452
+ onConfirmCallback: async () => {
453
+ let n = await e.value.validate();
454
+ await t.Post("system/user/importData", { file: n.file[0].raw }, {
455
+ meta: { useFormData: !0 },
456
+ params: { updateSupport: n.updateSupport }
457
+ }), D.value.query();
458
+ },
459
+ width: 480
460
+ });
461
+ },
462
+ permission: "system:user:import",
463
+ show: VITE_APP_ID !== "2"
464
+ }
465
+ ],
442
466
  tableOtherProps: { rowKey: "userId" }
443
467
  };
444
- return (e, t) => (_(), f(b(l), h({
468
+ return w({ query: () => {
469
+ D.value.query();
470
+ } }), (e, t) => (_(), f(b(l), h({
445
471
  ref_key: "pageListRef",
446
- ref: E
447
- }, O), null, 16));
472
+ ref: D
473
+ }, k), null, 16));
448
474
  }
449
475
  });
450
476
  //#endregion