dlzn-ui 2.0.5 → 2.0.7

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 (166) hide show
  1. package/assets/IndexItem-CfYDJ95Q.css +1 -0
  2. package/assets/LoginBg-XqWOv7dJ.css +1 -0
  3. package/assets/main-CxSb5Gqw.css +2 -0
  4. package/assets/{button-Be7wyDo4.css → provider-1BcdscQq.css} +1 -1
  5. package/chunks/AssignUser-BPrzGjCg.mjs +124 -0
  6. package/chunks/{Common-B5NscAh_.mjs → Common-Ds4A0g73.mjs} +7 -7
  7. package/chunks/{Day-Ci8nR_Ll.mjs → Day-CWWVjsXu.mjs} +13 -13
  8. package/chunks/{DictTypeDetail-B_aSmp0m.mjs → DictTypeDetail-ijxK2MDm.mjs} +7 -7
  9. package/chunks/{Hour-C1yYXl7B.mjs → Hour-D-2s4xgR.mjs} +1 -1
  10. package/chunks/{Index-BxpYRhO7.mjs → Index-7ubKF9v4.mjs} +1 -1
  11. package/chunks/{Index-DU8S7od8.mjs → Index-CZnP6jHo.mjs} +1 -1
  12. package/chunks/{Index-UHMQ6ORy.mjs → Index-D0dEcWw2.mjs} +1 -1
  13. package/chunks/{Index-CHfwy4gI.mjs → Index-DhkEiAro.mjs} +5 -5
  14. package/chunks/{Index-Bb9OwRGB.mjs → Index-DoPLbOv7.mjs} +1 -1
  15. package/chunks/{Index-Z81MxcDh.mjs → Index-az-w01U3.mjs} +1 -1
  16. package/chunks/{IndexItem-BWoJrz24.mjs → IndexItem-KlRJte7i.mjs} +8 -8
  17. package/chunks/Log-LYCmf0zI.mjs +213 -0
  18. package/chunks/{LoginBg-B1auGWuJ.mjs → LoginBg-BtuSDFUq.mjs} +11 -19
  19. package/chunks/{MenuNode-Dp1kCBvH.mjs → MenuNode-6Nca-v9i.mjs} +2 -2
  20. package/chunks/{Minute-CA5DlXsq.mjs → Minute-8BpPY8V6.mjs} +1 -1
  21. package/chunks/{Month-D-4ld14M.mjs → Month-C5iIZpY7.mjs} +1 -1
  22. package/chunks/{Second-RPGoCkey.mjs → Second-BKF09AKl.mjs} +1 -1
  23. package/chunks/SelectDept-C78pnJtp.mjs +68 -0
  24. package/chunks/SelectMenu-B2-QkHU2.mjs +68 -0
  25. package/chunks/SelectUser-BuE4Lgm0.mjs +57 -0
  26. package/chunks/{UserInfo-CrBlooGu.mjs → UserInfo-uDVj4WPH.mjs} +11 -11
  27. package/chunks/{Wrapper-LEchQmDn.mjs → Wrapper-C6BtJDSa.mjs} +5 -5
  28. package/chunks/{app-DiNoDaOD.mjs → app-BXskd1Ae.mjs} +4 -4
  29. package/chunks/{custom-page-list-DF3Qw4y7.mjs → custom-page-list-r5EUcg98.mjs} +4 -4
  30. package/chunks/{custom-page-table-CH09hGDM.mjs → custom-page-table-D1FmkEop.mjs} +2 -2
  31. package/chunks/{overview-BQQnpz4N.mjs → overview-BCXuALeB.mjs} +1 -1
  32. package/chunks/{page-list-BjjvOqb5.mjs → page-list-Zp_EiMZd.mjs} +36 -36
  33. package/chunks/{page-query-BCNFOYTD.mjs → page-query-CxZBtQht.mjs} +5 -5
  34. package/chunks/{page-table-VeEt8uuI.mjs → page-table-BpyyKTMq.mjs} +9 -9
  35. package/chunks/{pagination-BuhM6NW1.mjs → pagination-y5tkmGDM.mjs} +1 -1
  36. package/chunks/{button-BcpR95gj.mjs → provider-C6TTHGoz.mjs} +429 -433
  37. package/chunks/{table-B3z8z5O8.mjs → table-2Eqd8Kcx.mjs} +10 -10
  38. package/components/app/index.mjs +1 -1
  39. package/components/app/src/app.mjs +1 -1
  40. package/components/button/index.mjs +1 -1
  41. package/components/button/src/button.mjs +1 -1
  42. package/components/checkbox-group/index.mjs +1 -1
  43. package/components/checkbox-group/src/checkbox-group.mjs +1 -1
  44. package/components/cron/index.mjs +1 -1
  45. package/components/cron/src/Common.mjs +1 -1
  46. package/components/cron/src/Day.mjs +1 -1
  47. package/components/cron/src/Hour.mjs +1 -1
  48. package/components/cron/src/Minute.mjs +1 -1
  49. package/components/cron/src/Month.mjs +1 -1
  50. package/components/cron/src/Picker.mjs +6 -6
  51. package/components/cron/src/Second.mjs +1 -1
  52. package/components/cron/src/cron.mjs +1 -1
  53. package/components/custom-page-list/index.mjs +1 -1
  54. package/components/custom-page-list/src/custom-page-list.mjs +1 -1
  55. package/components/custom-page-table/index.mjs +1 -1
  56. package/components/custom-page-table/src/custom-page-table.mjs +1 -1
  57. package/components/date-picker/index.mjs +1 -1
  58. package/components/date-picker/src/date-picker.mjs +1 -1
  59. package/components/form/index.mjs +1 -1
  60. package/components/form/src/form.mjs +1 -1
  61. package/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
  62. package/components/index.mjs +11 -11
  63. package/components/overview/index.mjs +1 -1
  64. package/components/overview/src/DicLabel/Index.mjs +1 -1
  65. package/components/overview/src/IndexItem.mjs +1 -1
  66. package/components/overview/src/overview.mjs +1 -1
  67. package/components/page-list/index.mjs +1 -1
  68. package/components/page-list/src/page-list.d.ts +3 -3
  69. package/components/page-list/src/page-list.mjs +1 -1
  70. package/components/page-query/index.mjs +1 -1
  71. package/components/page-query/src/page-query.mjs +1 -1
  72. package/components/page-table/index.mjs +1 -1
  73. package/components/page-table/src/page-table.mjs +1 -1
  74. package/components/page-table/src/page-table.vue.d.ts +1 -1
  75. package/components/pagination/index.mjs +1 -1
  76. package/components/pagination/src/pagination.mjs +1 -1
  77. package/components/provider/index.mjs +1 -1
  78. package/components/provider/src/Provider.mjs +1 -1
  79. package/components/radio-group/index.mjs +1 -1
  80. package/components/radio-group/src/radio-group.mjs +1 -1
  81. package/components/select/index.mjs +2 -2
  82. package/components/select/src/select.mjs +1 -1
  83. package/components/select-sys-user/index.mjs +1 -1
  84. package/components/select-sys-user/src/Picker.mjs +2 -2
  85. package/components/select-sys-user/src/select-sys-user.mjs +1 -1
  86. package/components/table/index.mjs +1 -1
  87. package/components/table/src/table.mjs +1 -1
  88. package/components/table/src/table.vue.d.ts +1 -1
  89. package/components/tree/index.mjs +2 -2
  90. package/components/tree/src/tree.mjs +1 -1
  91. package/components/tree-select/index.mjs +1 -1
  92. package/components/tree-select/src/tree-select.mjs +1 -1
  93. package/components/upload/index.mjs +2 -2
  94. package/components/upload/src/upload.mjs +1 -1
  95. package/hooks/useDicOptions/index.mjs +2 -2
  96. package/hooks/useSysUser/index.mjs +2 -2
  97. package/index.d.ts +3 -0
  98. package/layout/Entry.mjs +2 -0
  99. package/layout/Login.mjs +5 -5
  100. package/layout/NotFound.mjs +1 -1
  101. package/layout/{index2.mjs → index.mjs} +1 -1
  102. package/layout/modules/Aside.mjs +1 -1
  103. package/layout/modules/Breadcrumb.mjs +1 -1
  104. package/layout/modules/Header.mjs +1 -1
  105. package/layout/modules/LoginBg.mjs +1 -1
  106. package/layout/modules/MenuNode.mjs +1 -1
  107. package/layout/profile/Index.mjs +4 -4
  108. package/layout/profile/ResetPwd.mjs +1 -1
  109. package/layout/profile/UserInfo.mjs +1 -1
  110. package/main.d.ts +2 -0
  111. package/main.mjs +14 -0
  112. package/package.json +13 -1
  113. package/plugins/autoImport/$alova/index.mjs +2 -2
  114. package/plugins/autoImport/$confirm/index.mjs +1 -1
  115. package/plugins/autoImport/$dialog/index.mjs +1 -1
  116. package/plugins/autoImport/$drawer/index.mjs +1 -1
  117. package/plugins/captcha/captcha.mjs +12 -12
  118. package/plugins/captcha/index.mjs +1 -1
  119. package/plugins/initialize/webUpdateNotify.mjs +1 -1
  120. package/plugins/tableRenders/Wrapper.mjs +1 -1
  121. package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
  122. package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
  123. package/plugins/tableRenders/cell/ImageViewer/Index.vue.d.ts +1 -1
  124. package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
  125. package/plugins/tableRenders/cell/TypographyText/Index.mjs +1 -1
  126. package/plugins/tableRenders/cell/TypographyTextLink/Index.mjs +1 -1
  127. package/plugins/tableRenders/cell/index.mjs +6 -6
  128. package/plugins/tableRenders/title/index.mjs +1 -1
  129. package/router/index.mjs +1 -1
  130. package/store/modules/common.mjs +1 -1
  131. package/store/modules/login.mjs +1 -1
  132. package/store/modules/recentRouters.mjs +1 -1
  133. package/store/modules/router.mjs +1 -1
  134. package/store/modules/user.mjs +2 -2
  135. package/views/index.mjs +9 -1
  136. package/views/system/dept/index.mjs +256 -0
  137. package/views/system/dept/index.vue.d.ts +3 -0
  138. package/views/system/dept/utils.d.ts +2 -0
  139. package/views/system/dept/utils.mjs +15 -0
  140. package/views/system/dict/index.mjs +18 -18
  141. package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
  142. package/views/system/menu/index.mjs +407 -0
  143. package/views/system/menu/index.vue.d.ts +3 -0
  144. package/views/system/post/index.mjs +182 -0
  145. package/views/system/post/index.vue.d.ts +3 -0
  146. package/views/system/role/index.mjs +319 -0
  147. package/views/system/role/index.vue.d.ts +3 -0
  148. package/views/system/role/modules/AssignUser.mjs +2 -0
  149. package/views/system/role/modules/AssignUser.vue.d.ts +6 -0
  150. package/views/system/role/modules/SelectDept.mjs +2 -0
  151. package/views/system/role/modules/SelectDept.vue.d.ts +6 -0
  152. package/views/system/role/modules/SelectMenu.mjs +2 -0
  153. package/views/system/role/modules/SelectMenu.vue.d.ts +6 -0
  154. package/views/system/role/modules/SelectUser.mjs +2 -0
  155. package/views/system/role/modules/SelectUser.vue.d.ts +11 -0
  156. package/views/system/user/index.mjs +451 -0
  157. package/views/system/user/index.vue.d.ts +9 -0
  158. package/views/tool/job/index.mjs +297 -0
  159. package/views/tool/job/index.vue.d.ts +3 -0
  160. package/views/tool/job/modules/Log.mjs +2 -0
  161. package/views/tool/job/modules/Log.vue.d.ts +6 -0
  162. package/assets/IndexItem-5VrD3wb-.css +0 -1
  163. package/assets/LoginBg-9HH4oQBJ.css +0 -1
  164. package/layout/Index.mjs +0 -2
  165. package/chunks/{date-picker-DtbDIFUH.mjs → date-picker-D15OhWnK.mjs} +1 -1
  166. /package/layout/{Index.vue.d.ts → Entry.vue.d.ts} +0 -0
@@ -0,0 +1,15 @@
1
+ import { S as e } from "../../../chunks/provider-C6TTHGoz.mjs";
2
+ import { flatArrToTree as t } from "../../../utils/tree.mjs";
3
+ import "../../../utils/index.mjs";
4
+ import { useRequest as n } from "alova/client";
5
+ //#region ../../packages/dlzn-ui/views/system/dept/utils.ts
6
+ var { data: r, send: i } = n(e.Get("system/dept/list", { transform: (e) => t(e.map((e) => ({
7
+ ...e,
8
+ label: e.deptName,
9
+ value: e.deptId
10
+ })), { idKey: "value" }) }), {
11
+ immediate: !1,
12
+ initialData: []
13
+ });
14
+ //#endregion
15
+ export { r as deptTreeList, i as deptTreeListSend };
@@ -1,8 +1,8 @@
1
- import { F as e, P as t, a as n, x as r } from "../../../chunks/button-BcpR95gj.mjs";
1
+ import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-C6TTHGoz.mjs";
2
2
  import i from "../../../plugins/autoImport/$msg/index.mjs";
3
- import { t as a } from "../../../chunks/page-list-BjjvOqb5.mjs";
3
+ import { t as a } from "../../../chunks/page-list-Zp_EiMZd.mjs";
4
4
  import "../../../components/page-list/index.mjs";
5
- import { t as o } from "../../../chunks/DictTypeDetail-B_aSmp0m.mjs";
5
+ import { t as o } from "../../../chunks/DictTypeDetail-ijxK2MDm.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
@@ -50,7 +50,7 @@ var _ = /* @__PURE__ */ c({
50
50
  method: "system/dict/type/export",
51
51
  permission: "system:dict:export"
52
52
  },
53
- list: { method: (e) => r.Get("system/dict/type/list", { params: {
53
+ list: { method: (e) => n.Get("system/dict/type/list", { params: {
54
54
  ...e,
55
55
  dateRange: void 0,
56
56
  "params[beginTime]": e.dateRange[0] ?? "",
@@ -67,10 +67,10 @@ var _ = /* @__PURE__ */ c({
67
67
  title: "字典名称"
68
68
  },
69
69
  {
70
- cell: (t, { row: n }) => ({
70
+ cell: (e, { row: n }) => ({
71
71
  component: "TypographyTextLink",
72
72
  link: { onClick: () => {
73
- e({
73
+ t({
74
74
  body: () => l(o, { dictType: n.dictType }),
75
75
  footer: !1,
76
76
  header: `字典类型: ${n.dictName}(${n.dictType})`,
@@ -103,14 +103,14 @@ var _ = /* @__PURE__ */ c({
103
103
  },
104
104
  {
105
105
  cell: {
106
- buttons: [({ row: e }) => ({
106
+ buttons: [({ row: t }) => ({
107
107
  default: "编辑",
108
108
  onClick: () => {
109
109
  let a = p(null);
110
110
  g(a, () => {
111
- a.value.setFormData(e);
112
- }, { once: !0 }), t({
113
- body: () => l(n, {
111
+ a.value.setFormData(t);
112
+ }, { once: !0 }), e({
113
+ body: () => l(r, {
114
114
  items: [
115
115
  v.dictName,
116
116
  v.dictType,
@@ -126,9 +126,9 @@ var _ = /* @__PURE__ */ c({
126
126
  }),
127
127
  header: "修改字典类型",
128
128
  onConfirmCallback: async () => {
129
- await r.Put("system/dict/type", {
129
+ await n.Put("system/dict/type", {
130
130
  ...await a.value.validate(),
131
- dictId: e.dictId
131
+ dictId: t.dictId
132
132
  }), i.success("字典类型修改成功"), _.value.query();
133
133
  },
134
134
  width: 430
@@ -151,9 +151,9 @@ var _ = /* @__PURE__ */ c({
151
151
  operations: [{
152
152
  default: "新增",
153
153
  onClick: () => {
154
- let e = p(null);
155
- t({
156
- body: () => l(n, {
154
+ let t = p(null);
155
+ e({
156
+ body: () => l(r, {
157
157
  data: f({ status: "0" }),
158
158
  items: [
159
159
  v.dictName,
@@ -166,11 +166,11 @@ var _ = /* @__PURE__ */ c({
166
166
  ],
167
167
  labelAlign: "right",
168
168
  layout: "vertical",
169
- ref: e
169
+ ref: t
170
170
  }),
171
171
  header: "添加字典类型",
172
172
  onConfirmCallback: async () => {
173
- await r.Post("system/dict/type", await e.value.validate()), i.success("字典添加成功"), _.value.query();
173
+ await n.Post("system/dict/type", await t.value.validate()), i.success("字典添加成功"), _.value.query();
174
174
  },
175
175
  width: 430
176
176
  });
@@ -179,7 +179,7 @@ var _ = /* @__PURE__ */ c({
179
179
  }, {
180
180
  default: "刷新缓存",
181
181
  onClick: async () => {
182
- await r.Delete("system/dict/type/refreshCache", void 0, { meta: { useSuccessMsg: !0 } }), _.value.query();
182
+ await n.Delete("system/dict/type/refreshCache", void 0, { meta: { useSuccessMsg: !0 } }), _.value.query();
183
183
  },
184
184
  permission: "system:dict:remove"
185
185
  }],
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/DictTypeDetail-B_aSmp0m.mjs";
1
+ import { t as e } from "../../../../chunks/DictTypeDetail-ijxK2MDm.mjs";
2
2
  export { e as default };
@@ -0,0 +1,407 @@
1
+ import { F as e, S as t, n, o as r } from "../../../chunks/provider-C6TTHGoz.mjs";
2
+ import { t as i } from "../../../chunks/icon-COjp1yrx.mjs";
3
+ import "../../../components/icon/index.mjs";
4
+ import a from "../../../plugins/autoImport/$msg/index.mjs";
5
+ import { isFalsy as o } from "../../../utils/boolean.mjs";
6
+ import { flatArrToTree as s } from "../../../utils/tree.mjs";
7
+ import "../../../utils/index.mjs";
8
+ import { t as c } from "../../../chunks/page-list-Zp_EiMZd.mjs";
9
+ import "../../../components/page-list/index.mjs";
10
+ 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";
11
+ import { useRequest as y } from "alova/client";
12
+ //#endregion
13
+ //#region ../../packages/dlzn-ui/views/system/menu/index.vue
14
+ var b = /* @__PURE__ */ u({
15
+ __name: "index",
16
+ setup(u) {
17
+ let { data: b, send: x } = y(t.Get("system/menu/list", { transform: (e) => s(e.map((e) => ({
18
+ ...e,
19
+ label: e.menuName,
20
+ value: e.menuId
21
+ })), { idKey: "value" }) }), { initialData: [] }), S = _("pageListRef"), C = h([]), w = {
22
+ component: {
23
+ __others: ({ formData: e }) => ({ show: e.menuType === "C" }),
24
+ _class: "col-span-full",
25
+ _label: "组件路径",
26
+ _required: !0,
27
+ component: "TInput",
28
+ model: "component",
29
+ placeholder: "访问的组件路径,如:`system/user/index`,必须以index结尾,默认在`views`目录下"
30
+ },
31
+ icon: {
32
+ __others: ({ formData: e }) => ({
33
+ adornment: {
34
+ append: () => d(n, {
35
+ default: "去选择",
36
+ onClick: () => {
37
+ window.open("https://icon-sets.iconify.design/", "_blank");
38
+ },
39
+ variant: "text"
40
+ }, { icon: () => d(i, { icon: "line-md:link" }) }),
41
+ prepend: () => d(i, {
42
+ class: "mx-1",
43
+ icon: e.icon
44
+ })
45
+ },
46
+ show: e.menuType !== "F" && o(e.parentId)
47
+ }),
48
+ _label: "菜单图标",
49
+ _required: !0,
50
+ component: "TInput",
51
+ model: "icon"
52
+ },
53
+ isCache: {
54
+ __others: ({ formData: e }) => ({ show: e.menuType === "C" }),
55
+ _label: "是否被keep-alive缓存",
56
+ component: "TRadioGroup",
57
+ model: "isCache",
58
+ options: [{
59
+ label: "缓存",
60
+ value: "0"
61
+ }, {
62
+ label: "不缓存",
63
+ value: "1"
64
+ }]
65
+ },
66
+ isFrame: {
67
+ __others: ({ formData: e }) => ({ show: e.menuType === "C" }),
68
+ _label: "是否全屏页面",
69
+ component: "TRadioGroup",
70
+ model: "isFrame",
71
+ options: [{
72
+ label: "是",
73
+ value: "0"
74
+ }, {
75
+ label: "否",
76
+ value: "1"
77
+ }]
78
+ },
79
+ menuName: {
80
+ _class: "col-start-1",
81
+ _label: "菜单名称",
82
+ _required: !0,
83
+ component: "TInput",
84
+ model: "menuName"
85
+ },
86
+ menuType: {
87
+ _label: "菜单类型",
88
+ component: "TRadioGroup",
89
+ model: "menuType",
90
+ options: [
91
+ {
92
+ label: "目录",
93
+ value: "M"
94
+ },
95
+ {
96
+ label: "菜单",
97
+ value: "C"
98
+ },
99
+ {
100
+ label: "按钮",
101
+ value: "F"
102
+ }
103
+ ]
104
+ },
105
+ orderNum: {
106
+ _label: "显示排序",
107
+ _required: !0,
108
+ component: "TInputNumber",
109
+ decimalPlaces: 0,
110
+ model: "orderNum",
111
+ theme: "row"
112
+ },
113
+ parentId: m({
114
+ _class: "col-span-full",
115
+ _label: "上级菜单",
116
+ component: "TTreeSelect",
117
+ data: b,
118
+ model: "parentId",
119
+ placeholder: "请选择上级菜单, 不选择的话, 默认为顶级菜单"
120
+ }),
121
+ path: {
122
+ __others: ({ formData: e }) => ({ show: e.menuType !== "F" }),
123
+ _class: "col-span-full",
124
+ _label: "路由地址",
125
+ _required: !0,
126
+ component: "TInput",
127
+ model: "path",
128
+ placeholder: "请输入路由地址, router.name就是该字段首字母大写后的结果"
129
+ },
130
+ perms: {
131
+ __others: ({ formData: e }) => ({ show: e.menuType !== "M" }),
132
+ _label: "权限标识",
133
+ component: "TInput",
134
+ model: "perms",
135
+ placeholder: "如:system:user:list"
136
+ },
137
+ status: {
138
+ _label: "状态",
139
+ component: "TRadioGroup",
140
+ dicCode: "sys_normal_disable",
141
+ model: "status"
142
+ },
143
+ visible: {
144
+ __others: ({ formData: e }) => ({ show: e.menuType !== "F" }),
145
+ _label: "是否在左侧菜单中显示",
146
+ component: "TRadioGroup",
147
+ dicCode: "sys_show_hide",
148
+ model: "visible"
149
+ }
150
+ };
151
+ function T(e) {
152
+ if (o(e.component)) return;
153
+ let t = e.component.split("___");
154
+ e.component = e.isFrame === "0" ? `${t[0]}___0` : t[0];
155
+ }
156
+ let E = {
157
+ apis: {
158
+ delete: {
159
+ callback: () => {
160
+ x();
161
+ },
162
+ method: "system/menu",
163
+ permission: "system:menu:remove"
164
+ },
165
+ list: { method: (e) => t.Get("system/menu/list", {
166
+ params: {
167
+ ...e,
168
+ pageNum: void 0,
169
+ pageSize: void 0
170
+ },
171
+ transform: (e) => ({
172
+ rows: s(e, { idKey: "menuId" }),
173
+ total: 0
174
+ })
175
+ }) }
176
+ },
177
+ columns: [
178
+ {
179
+ colKey: "menuName",
180
+ fixed: "left",
181
+ title: "菜单名称"
182
+ },
183
+ {
184
+ colKey: "orderNum",
185
+ title: "排序"
186
+ },
187
+ {
188
+ cell: { component: "Icon" },
189
+ colKey: "icon",
190
+ title: "图标"
191
+ },
192
+ {
193
+ colKey: "perms",
194
+ title: "权限标识"
195
+ },
196
+ {
197
+ cell: (e, { row: t }) => t.component?.split("___")[0],
198
+ colKey: "component",
199
+ title: "组件路径"
200
+ },
201
+ {
202
+ cell: {
203
+ component: "OptionLabel",
204
+ options: [{
205
+ label: "是",
206
+ value: "0"
207
+ }, {
208
+ label: "否",
209
+ value: "1"
210
+ }]
211
+ },
212
+ colKey: "isFrame",
213
+ title: "是否全屏页面"
214
+ },
215
+ {
216
+ cell: {
217
+ component: "DicLabel",
218
+ dicCode: "sys_normal_disable"
219
+ },
220
+ colKey: "status",
221
+ title: "状态"
222
+ },
223
+ {
224
+ colKey: "createTime",
225
+ title: "创建时间"
226
+ },
227
+ {
228
+ colKey: "createBy",
229
+ title: "创建人"
230
+ },
231
+ {
232
+ colKey: "updateTime",
233
+ title: "更新时间"
234
+ },
235
+ {
236
+ colKey: "updateBy",
237
+ title: "更新人"
238
+ },
239
+ {
240
+ cell: {
241
+ buttons: [({ row: n }) => ({
242
+ default: "编辑",
243
+ onClick: () => {
244
+ let i = h(null);
245
+ v(i, () => {
246
+ i.value.setFormData({
247
+ ...n,
248
+ parentId: n.parentId === "0" ? "" : n.parentId
249
+ }, { numberToStringKeys: ["isFrame"] });
250
+ }, { once: !0 }), e({
251
+ body: () => d(r, {
252
+ data: m({
253
+ isCache: "0",
254
+ isFrame: "1",
255
+ visible: "0"
256
+ }),
257
+ items: [
258
+ w.parentId,
259
+ w.menuType,
260
+ w.icon,
261
+ w.menuName,
262
+ w.orderNum,
263
+ w.path,
264
+ w.component,
265
+ w.perms,
266
+ w.isCache,
267
+ w.visible,
268
+ w.isFrame,
269
+ w.status
270
+ ],
271
+ ref: i
272
+ }),
273
+ header: "编辑菜单",
274
+ onConfirmCallback: async () => {
275
+ let e = await i.value.validate();
276
+ [
277
+ "component",
278
+ "perms",
279
+ "visible",
280
+ "icon",
281
+ "isCache",
282
+ "path",
283
+ "isFrame"
284
+ ].forEach((t) => {
285
+ t in e || (e[t] = "");
286
+ }), T(e), await t.Put("system/menu", {
287
+ ...e,
288
+ menuId: n.menuId,
289
+ parentId: o(e.parentId) ? "0" : e.parentId
290
+ }), x(), a.success("菜单修改成功"), S.value.query();
291
+ },
292
+ width: 730
293
+ });
294
+ },
295
+ permission: "system:menu:edit"
296
+ }), ({ row: n }) => ({
297
+ default: "新增",
298
+ onClick: () => {
299
+ let i = h(null);
300
+ e({
301
+ body: () => d(r, {
302
+ data: m({
303
+ isCache: "0",
304
+ isFrame: "1",
305
+ menuType: "M",
306
+ parentId: n.menuId,
307
+ status: "0",
308
+ visible: "0"
309
+ }),
310
+ items: [
311
+ {
312
+ ...w.parentId,
313
+ disabled: !0
314
+ },
315
+ w.menuType,
316
+ w.icon,
317
+ w.menuName,
318
+ w.orderNum,
319
+ w.path,
320
+ w.component,
321
+ w.perms,
322
+ w.isCache,
323
+ w.visible,
324
+ w.isFrame,
325
+ w.status
326
+ ],
327
+ ref: i
328
+ }),
329
+ header: "新增菜单",
330
+ onConfirmCallback: async () => {
331
+ let e = await i.value.validate();
332
+ T(e), await t.Post("system/menu", e), x(), a.success("菜单修改成功"), S.value.query();
333
+ },
334
+ width: 730
335
+ });
336
+ },
337
+ permission: "system:menu:add"
338
+ })],
339
+ component: "Buttons"
340
+ },
341
+ colKey: "_operation",
342
+ title: "操作"
343
+ }
344
+ ],
345
+ formItems: [w.menuName, {
346
+ ...w.status,
347
+ component: "TSelect"
348
+ }],
349
+ operations: [{
350
+ default: "新增",
351
+ onClick: () => {
352
+ let n = h(null);
353
+ e({
354
+ body: () => d(r, {
355
+ data: m({
356
+ isCache: "0",
357
+ isFrame: "1",
358
+ menuType: "M",
359
+ status: "0",
360
+ visible: "0"
361
+ }),
362
+ items: [
363
+ w.parentId,
364
+ w.menuType,
365
+ w.icon,
366
+ w.menuName,
367
+ w.orderNum,
368
+ w.path,
369
+ w.component,
370
+ w.perms,
371
+ w.isCache,
372
+ w.visible,
373
+ w.isFrame,
374
+ w.status
375
+ ],
376
+ ref: n
377
+ }),
378
+ header: "添加菜单",
379
+ onConfirmCallback: async () => {
380
+ let e = await n.value.validate();
381
+ T(e), await t.Post("system/menu", {
382
+ ...e,
383
+ parentId: o(e.parentId) ? "0" : e.parentId
384
+ }), x(), a.success("菜单添加成功"), S.value.query();
385
+ },
386
+ width: 730
387
+ });
388
+ },
389
+ permission: "system:menu:add"
390
+ }],
391
+ tableOtherProps: m({
392
+ expandedTreeNodes: C,
393
+ onExpandedTreeNodesChange: (e) => {
394
+ C.value = e;
395
+ },
396
+ rowKey: "menuId",
397
+ showSerialNumber: !1
398
+ })
399
+ };
400
+ return (e, t) => (p(), l(g(c), f({
401
+ ref_key: "pageListRef",
402
+ ref: S
403
+ }, E), null, 16));
404
+ }
405
+ });
406
+ //#endregion
407
+ export { b 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;