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,182 @@
1
+ import { F as e, S as t, o as n } from "../../../chunks/provider-C6TTHGoz.mjs";
2
+ import r from "../../../plugins/autoImport/$msg/index.mjs";
3
+ import { t as i } from "../../../chunks/page-list-Zp_EiMZd.mjs";
4
+ import "../../../components/page-list/index.mjs";
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
+ //#endregion
7
+ //#region ../../packages/dlzn-ui/views/system/post/index.vue
8
+ var h = /* @__PURE__ */ o({
9
+ __name: "index",
10
+ setup(o) {
11
+ let h = p("pageListRef"), g = {
12
+ postCode: {
13
+ _label: "岗位编码",
14
+ _required: !0,
15
+ component: "TInput",
16
+ model: "postCode"
17
+ },
18
+ postName: {
19
+ _label: "岗位名称",
20
+ _required: !0,
21
+ component: "TInput",
22
+ model: "postName"
23
+ },
24
+ postSort: {
25
+ _label: "岗位顺序",
26
+ _required: !0,
27
+ component: "TInputNumber",
28
+ decimalPlaces: 0,
29
+ model: "postSort",
30
+ theme: "row"
31
+ },
32
+ remark: {
33
+ _label: "备注",
34
+ component: "TTextarea",
35
+ model: "remark"
36
+ },
37
+ status: {
38
+ _label: "状态",
39
+ component: "TSelect",
40
+ dicCode: "sys_normal_disable",
41
+ model: "status"
42
+ }
43
+ }, _ = {
44
+ apis: {
45
+ delete: {
46
+ method: "system/post",
47
+ permission: "system:post:remove"
48
+ },
49
+ export: {
50
+ method: "system/post/export",
51
+ permission: "system:post:export"
52
+ },
53
+ list: { method: "system/post/list" }
54
+ },
55
+ columns: [
56
+ {
57
+ colKey: "postId",
58
+ title: "岗位编号"
59
+ },
60
+ {
61
+ colKey: "postCode",
62
+ title: "岗位编码"
63
+ },
64
+ {
65
+ colKey: "postName",
66
+ title: "岗位名称"
67
+ },
68
+ {
69
+ colKey: "postSort",
70
+ title: "岗位排序"
71
+ },
72
+ {
73
+ cell: {
74
+ component: "DicLabel",
75
+ dicCode: "sys_normal_disable"
76
+ },
77
+ colKey: "status",
78
+ title: "状态"
79
+ },
80
+ {
81
+ colKey: "createTime",
82
+ title: "创建时间"
83
+ },
84
+ {
85
+ colKey: "createBy",
86
+ title: "创建人"
87
+ },
88
+ {
89
+ colKey: "updateTime",
90
+ title: "更新时间"
91
+ },
92
+ {
93
+ colKey: "updateBy",
94
+ title: "更新人"
95
+ },
96
+ {
97
+ cell: {
98
+ buttons: [({ row: i }) => ({
99
+ default: "编辑",
100
+ onClick: () => {
101
+ let a = d(null);
102
+ m(a, () => {
103
+ a.value.setFormData(i);
104
+ }, { once: !0 }), e({
105
+ body: () => s(n, {
106
+ items: [
107
+ g.postCode,
108
+ g.postName,
109
+ g.postSort,
110
+ {
111
+ ...g.status,
112
+ component: "TRadioGroup"
113
+ },
114
+ g.remark
115
+ ],
116
+ labelAlign: "right",
117
+ layout: "vertical",
118
+ ref: a
119
+ }),
120
+ header: "修改岗位",
121
+ onConfirmCallback: async () => {
122
+ await t.Put("system/post", {
123
+ ...await a.value.validate(),
124
+ postId: i.postId
125
+ }), r.success("岗位修改成功"), h.value.query();
126
+ },
127
+ width: 430
128
+ });
129
+ },
130
+ permission: "system:post:edit"
131
+ })],
132
+ component: "Buttons"
133
+ },
134
+ colKey: "_operation",
135
+ title: "操作"
136
+ }
137
+ ],
138
+ formItems: [
139
+ g.postCode,
140
+ g.postName,
141
+ g.status
142
+ ],
143
+ operations: [{
144
+ default: "新增",
145
+ onClick: () => {
146
+ let i = d(null);
147
+ e({
148
+ body: () => s(n, {
149
+ data: u({ status: "0" }),
150
+ items: [
151
+ g.postCode,
152
+ g.postName,
153
+ g.postSort,
154
+ {
155
+ ...g.status,
156
+ component: "TRadioGroup"
157
+ },
158
+ g.remark
159
+ ],
160
+ labelAlign: "right",
161
+ layout: "vertical",
162
+ ref: i
163
+ }),
164
+ header: "添加岗位",
165
+ onConfirmCallback: async () => {
166
+ await t.Post("system/post", await i.value.validate()), r.success("岗位添加成功"), h.value.query();
167
+ },
168
+ width: 430
169
+ });
170
+ },
171
+ permission: "system:post:add"
172
+ }],
173
+ tableOtherProps: { rowKey: "postId" }
174
+ };
175
+ return (e, t) => (l(), a(f(i), c({
176
+ ref_key: "pageListRef",
177
+ ref: h
178
+ }, _), null, 16));
179
+ }
180
+ });
181
+ //#endregion
182
+ export { h 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;
@@ -0,0 +1,319 @@
1
+ import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-C6TTHGoz.mjs";
2
+ import i from "../../../plugins/autoImport/$msg/index.mjs";
3
+ import { t as a } from "../../../chunks/page-list-Zp_EiMZd.mjs";
4
+ import "../../../components/page-list/index.mjs";
5
+ import { t as o } from "../../../chunks/AssignUser-BPrzGjCg.mjs";
6
+ import { t as s } from "../../../chunks/SelectDept-C78pnJtp.mjs";
7
+ import { t as c } from "../../../chunks/SelectMenu-B2-QkHU2.mjs";
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
+ //#endregion
10
+ //#region ../../packages/dlzn-ui/views/system/role/index.vue
11
+ var y = /* @__PURE__ */ u({
12
+ __name: "index",
13
+ setup(u) {
14
+ let y = _("pageListRef"), b = {
15
+ menu_ids: {
16
+ _class: "col-span-full",
17
+ _label: "角色类型",
18
+ _rules: [{
19
+ message: "请选择角色类型",
20
+ required: !0
21
+ }],
22
+ model: "menuIds",
23
+ slot: "menu_ids"
24
+ },
25
+ remark: {
26
+ _class: "col-span-full",
27
+ _label: "备注",
28
+ component: "TTextarea",
29
+ model: "remark"
30
+ },
31
+ roleKey: {
32
+ _label: "权限字符",
33
+ _required: !0,
34
+ component: "TInput",
35
+ model: "roleKey"
36
+ },
37
+ roleName: {
38
+ _label: "角色名称",
39
+ _required: !0,
40
+ component: "TInput",
41
+ maxlength: 30,
42
+ model: "roleName"
43
+ },
44
+ roleSort: {
45
+ _label: "显示顺序",
46
+ _required: !0,
47
+ component: "TInputNumber",
48
+ decimalPlaces: 0,
49
+ model: "roleSort",
50
+ theme: "row"
51
+ },
52
+ status: {
53
+ _label: "角色状态",
54
+ component: "TRadioGroup",
55
+ dicCode: "sys_normal_disable",
56
+ model: "status"
57
+ }
58
+ }, x = {
59
+ apis: {
60
+ export: {
61
+ method: "system/role/export",
62
+ permission: "system:role:export"
63
+ },
64
+ list: { method: (e) => n.Get("system/role/list", { params: {
65
+ ...e,
66
+ dateRange: void 0,
67
+ "params[beginTime]": e.dateRange[0] ?? "",
68
+ "params[endTime]": e.dateRange[1] ?? ""
69
+ } }) }
70
+ },
71
+ columns: [
72
+ {
73
+ colKey: "roleId",
74
+ title: "角色编号"
75
+ },
76
+ {
77
+ colKey: "roleName",
78
+ title: "角色名称"
79
+ },
80
+ {
81
+ colKey: "roleKey",
82
+ title: "权限字符"
83
+ },
84
+ {
85
+ colKey: "roleSort",
86
+ title: "显示顺序"
87
+ },
88
+ {
89
+ cell: (t, { row: r }) => ({
90
+ beforeChange: async () => {
91
+ let t = r.status === "1" ? "启用" : "停用";
92
+ return await e(`确认${t}${r.roleName}角色吗?`), await n.Put("system/role/changeStatus", {
93
+ roleId: r.roleId,
94
+ status: r.status === "1" ? "0" : "1"
95
+ }, { meta: { useSuccessMsg: !0 } }), y.value.query(), !0;
96
+ },
97
+ component: "Switch",
98
+ customValue: ["0", "1"],
99
+ disabled: r.roleId === "1"
100
+ }),
101
+ colKey: "status",
102
+ title: "角色状态"
103
+ },
104
+ {
105
+ colKey: "remark",
106
+ title: "备注"
107
+ },
108
+ {
109
+ colKey: "createBy",
110
+ title: "创建人"
111
+ },
112
+ {
113
+ colKey: "createTime",
114
+ title: "创建时间"
115
+ },
116
+ {
117
+ colKey: "updateBy",
118
+ title: "更新人"
119
+ },
120
+ {
121
+ colKey: "updateTime",
122
+ title: "更新时间"
123
+ },
124
+ {
125
+ cell: {
126
+ buttons: [
127
+ ({ row: t }) => ({
128
+ default: "编辑",
129
+ onClick: async () => {
130
+ let { checkedKeys: a, menus: o } = await n.Get(`system/menu/roleMenuTreeselect/${t.roleId}`), s = h(null);
131
+ if (t.menuCheckStrictly) {
132
+ let e = (t) => t.some((t) => t.children && e(t.children) || a.includes(t.id)), t = (n) => {
133
+ n.forEach((n) => {
134
+ n.children && (e(n.children) && (a.includes(n.id) || a.push(n.id)), t(n.children));
135
+ });
136
+ };
137
+ t(o);
138
+ }
139
+ v(s, () => {
140
+ s.value.setFormData(t);
141
+ }, { once: !0 }), e({
142
+ body: () => d(r, {
143
+ data: m({ menuIds: a }),
144
+ items: [
145
+ b.roleName,
146
+ b.roleKey,
147
+ b.roleSort,
148
+ b.status,
149
+ b.menu_ids,
150
+ b.remark
151
+ ],
152
+ ref: s
153
+ }, { menu_ids: () => d(c, { menuOptions: o }) }),
154
+ header: "修改角色",
155
+ onConfirmCallback: async () => {
156
+ await n.Put("system/role", {
157
+ ...await s.value.validate(),
158
+ menuCheckStrictly: !1,
159
+ roleId: t.roleId
160
+ }), i.success("角色修改成功"), y.value.query();
161
+ },
162
+ width: 730
163
+ });
164
+ },
165
+ permission: "system:role:edit",
166
+ show: t.roleId !== "1"
167
+ }),
168
+ ({ row: t }) => ({
169
+ default: "数据权限",
170
+ onClick: async () => {
171
+ let { checkedKeys: a, depts: o } = await n.Get(`system/role/deptTree/${t.roleId}`), c = h(null);
172
+ if (t.deptCheckStrictly) {
173
+ let e = (t) => t.some((t) => t.children && e(t.children) || a.includes(t.id)), t = (n) => {
174
+ n.forEach((n) => {
175
+ n.children && (e(n.children) && (a.includes(n.id) || a.push(n.id)), t(n.children));
176
+ });
177
+ };
178
+ t(o);
179
+ }
180
+ v(c, () => {
181
+ c.value.setFormData(t);
182
+ }, { once: !0 }), e({
183
+ body: () => d(r, {
184
+ data: m({ deptIds: a }),
185
+ items: [
186
+ {
187
+ _label: "角色名称",
188
+ component: "TInput",
189
+ disabled: !0,
190
+ model: "roleName"
191
+ },
192
+ {
193
+ _label: "权限字符",
194
+ component: "TInput",
195
+ disabled: !0,
196
+ model: "roleKey"
197
+ },
198
+ {
199
+ _label: "权限范围",
200
+ component: "TSelect",
201
+ dicCode: "role_data_scope",
202
+ model: "dataScope"
203
+ },
204
+ {
205
+ __others: ({ formData: e }) => ({ show: e.dataScope === "2" }),
206
+ _label: "数据权限",
207
+ _rules: [{
208
+ message: "请选择数据权限",
209
+ required: !0
210
+ }],
211
+ model: "deptIds",
212
+ slot: "dept_ids"
213
+ }
214
+ ],
215
+ ref: c
216
+ }, { dept_ids: () => d(s, { deptOptions: o }) }),
217
+ header: `给${t.roleName}分配数据权限`,
218
+ onConfirmCallback: async () => {
219
+ await n.Put("system/role/dataScope", {
220
+ deptIds: [],
221
+ ...await c.value.validate(),
222
+ deptCheckStrictly: !1,
223
+ roleId: t.roleId
224
+ }), i.success("数据权限分配成功"), y.value.query();
225
+ },
226
+ width: 430
227
+ });
228
+ },
229
+ permission: "system:role:edit",
230
+ show: t.roleId !== "1"
231
+ }),
232
+ ({ row: e }) => ({
233
+ default: "分配用户",
234
+ onClick: async () => {
235
+ t({
236
+ body: () => d(o, { roleId: e.roleId }),
237
+ footer: !1,
238
+ header: `给${e.roleName}分配用户`,
239
+ width: 1500
240
+ });
241
+ },
242
+ permission: "system:role:edit",
243
+ show: e.roleId !== "1"
244
+ }),
245
+ ({ row: e }) => ({
246
+ default: "删除",
247
+ permission: "system:role:remove",
248
+ popconfirm: {
249
+ content: "确认删除吗",
250
+ onConfirm: async () => {
251
+ await n.Delete(`system/role/${e.roleId}`), i("删除成功"), y.value.query();
252
+ }
253
+ },
254
+ show: e.roleId !== "1"
255
+ })
256
+ ],
257
+ component: "Buttons"
258
+ },
259
+ colKey: "_operation",
260
+ title: "操作"
261
+ }
262
+ ],
263
+ formItems: [
264
+ b.roleName,
265
+ b.roleKey,
266
+ {
267
+ ...b.status,
268
+ component: "TSelect"
269
+ },
270
+ {
271
+ _class: "col-span-2",
272
+ _label: "创建时间",
273
+ component: "TDatePicker",
274
+ model: "dateRange",
275
+ type: "daterange"
276
+ }
277
+ ],
278
+ operations: [{
279
+ default: "新增",
280
+ onClick: async () => {
281
+ let t = await n.Get("system/menu/treeselect"), a = h(null);
282
+ e({
283
+ body: () => d(r, {
284
+ data: m({
285
+ menuIds: [],
286
+ status: "0"
287
+ }),
288
+ items: [
289
+ b.roleName,
290
+ b.roleKey,
291
+ b.roleSort,
292
+ b.status,
293
+ b.menu_ids,
294
+ b.remark
295
+ ],
296
+ ref: a
297
+ }, { menu_ids: () => d(c, { menuOptions: t }) }),
298
+ header: "添加角色",
299
+ onConfirmCallback: async () => {
300
+ await n.Post("system/role", {
301
+ ...await a.value.validate(),
302
+ menuCheckStrictly: !1
303
+ }), i.success("角色添加成功"), y.value.query();
304
+ },
305
+ width: 730
306
+ });
307
+ },
308
+ permission: "system:role:add"
309
+ }],
310
+ tableOtherProps: { rowKey: "roleId" }
311
+ };
312
+ return (e, t) => (p(), l(g(a), f({
313
+ ref_key: "pageListRef",
314
+ ref: y
315
+ }, x), null, 16));
316
+ }
317
+ });
318
+ //#endregion
319
+ export { y 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;
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../../chunks/AssignUser-BPrzGjCg.mjs";
2
+ export { e as default };
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ roleId: string;
3
+ };
4
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../../chunks/SelectDept-C78pnJtp.mjs";
2
+ export { e as default };
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ deptOptions: any[];
3
+ };
4
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../../chunks/SelectMenu-B2-QkHU2.mjs";
2
+ export { e as default };
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ menuOptions: any[];
3
+ };
4
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../../../../chunks/SelectUser-BuE4Lgm0.mjs";
2
+ export { e as default };
@@ -0,0 +1,11 @@
1
+ import { TableCol } from '../../../../components/table';
2
+ type __VLS_Props = {
3
+ roleId: string;
4
+ tableCol: TableCol[];
5
+ };
6
+ declare function handleSubmit(): Promise<void>;
7
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
8
+ handleSubmit: typeof handleSubmit;
9
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;