dlzn-ui 2.0.5 → 2.0.6
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.
- package/assets/IndexItem-CfYDJ95Q.css +1 -0
- package/assets/LoginBg-BTrRjkK7.css +1 -0
- package/assets/{button-Be7wyDo4.css → button-Bwn73ZEc.css} +1 -1
- package/chunks/AssignUser-DCju22tm.mjs +124 -0
- package/chunks/{Common-B5NscAh_.mjs → Common-DQbblaTl.mjs} +1 -1
- package/chunks/{Day-Ci8nR_Ll.mjs → Day-9BKmHuZl.mjs} +1 -1
- package/chunks/{DictTypeDetail-B_aSmp0m.mjs → DictTypeDetail-e14bGyiZ.mjs} +2 -2
- package/chunks/{Hour-C1yYXl7B.mjs → Hour-CrFFADzT.mjs} +1 -1
- package/chunks/{Index-BxpYRhO7.mjs → Index-7ubKF9v4.mjs} +1 -1
- package/chunks/{Index-Z81MxcDh.mjs → Index-CZ0ICyCx.mjs} +1 -1
- package/chunks/{Index-DU8S7od8.mjs → Index-CZnP6jHo.mjs} +1 -1
- package/chunks/{Index-UHMQ6ORy.mjs → Index-ChH8kYUs.mjs} +1 -1
- package/chunks/{Index-CHfwy4gI.mjs → Index-DloA1g7z.mjs} +1 -1
- package/chunks/{Index-Bb9OwRGB.mjs → Index-QUCWrT4d.mjs} +1 -1
- package/chunks/{IndexItem-BWoJrz24.mjs → IndexItem-OIGXdAkP.mjs} +4 -4
- package/chunks/Log-DdemNjDW.mjs +213 -0
- package/chunks/{LoginBg-B1auGWuJ.mjs → LoginBg-BD6ChYvu.mjs} +3 -3
- package/chunks/{MenuNode-Dp1kCBvH.mjs → MenuNode-DXgE629W.mjs} +1 -1
- package/chunks/{Minute-CA5DlXsq.mjs → Minute-xZNOCy8Q.mjs} +1 -1
- package/chunks/{Month-D-4ld14M.mjs → Month-CvWOcD_9.mjs} +1 -1
- package/chunks/{Second-RPGoCkey.mjs → Second-BvMnEOms.mjs} +1 -1
- package/chunks/SelectDept-DmtKBaW0.mjs +68 -0
- package/chunks/SelectMenu-tEpLm6Ij.mjs +68 -0
- package/chunks/SelectUser-CTvBarod.mjs +57 -0
- package/chunks/{UserInfo-CrBlooGu.mjs → UserInfo-qrNR9tve.mjs} +1 -1
- package/chunks/{app-DiNoDaOD.mjs → app-CggLqjRQ.mjs} +1 -1
- package/chunks/{button-BcpR95gj.mjs → button-Dk3CiB69.mjs} +5 -5
- package/chunks/{custom-page-list-DF3Qw4y7.mjs → custom-page-list-CJWB72dw.mjs} +4 -4
- package/chunks/{custom-page-table-CH09hGDM.mjs → custom-page-table-5f8lI6CQ.mjs} +2 -2
- package/chunks/{overview-BQQnpz4N.mjs → overview-BEtKbidZ.mjs} +1 -1
- package/chunks/{page-list-BjjvOqb5.mjs → page-list-C3nqGnnX.mjs} +3 -3
- package/chunks/{page-query-BCNFOYTD.mjs → page-query-C6oSW1je.mjs} +1 -1
- package/chunks/{page-table-VeEt8uuI.mjs → page-table-3DTiPP9H.mjs} +3 -3
- package/chunks/{pagination-BuhM6NW1.mjs → pagination-C6-VAj4W.mjs} +1 -1
- package/chunks/{table-B3z8z5O8.mjs → table-Cp9NQHjQ.mjs} +1 -1
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +6 -6
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/index.mjs +9 -9
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.mjs +1 -1
- package/components/page-query/index.mjs +1 -1
- package/components/page-query/src/page-query.mjs +1 -1
- package/components/page-table/index.mjs +1 -1
- package/components/page-table/src/page-table.mjs +1 -1
- package/components/pagination/index.mjs +1 -1
- package/components/pagination/src/pagination.mjs +1 -1
- package/components/provider/index.mjs +1 -1
- package/components/provider/src/Provider.mjs +1 -1
- package/components/radio-group/index.mjs +1 -1
- package/components/radio-group/src/radio-group.mjs +1 -1
- package/components/select/index.mjs +1 -1
- package/components/select/src/select.mjs +1 -1
- package/components/select-sys-user/index.mjs +1 -1
- package/components/select-sys-user/src/Picker.mjs +2 -2
- package/components/select-sys-user/src/select-sys-user.mjs +1 -1
- package/components/table/index.mjs +1 -1
- package/components/table/src/table.mjs +1 -1
- package/components/tree/index.mjs +1 -1
- package/components/tree/src/tree.mjs +1 -1
- package/components/tree-select/index.mjs +1 -1
- package/components/tree-select/src/tree-select.mjs +1 -1
- package/components/upload/index.mjs +1 -1
- package/components/upload/src/upload.mjs +1 -1
- package/hooks/useDicOptions/index.mjs +1 -1
- package/hooks/useSysUser/index.mjs +1 -1
- package/layout/Entry.mjs +2 -0
- package/layout/Login.mjs +2 -2
- package/layout/NotFound.mjs +1 -1
- package/layout/{index2.mjs → index.mjs} +1 -1
- package/layout/modules/Aside.mjs +1 -1
- package/layout/modules/Breadcrumb.mjs +1 -1
- package/layout/modules/Header.mjs +1 -1
- package/layout/modules/LoginBg.mjs +1 -1
- package/layout/modules/MenuNode.mjs +1 -1
- package/layout/profile/Index.mjs +2 -2
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/package.json +9 -1
- package/plugins/autoImport/$alova/index.mjs +1 -1
- package/plugins/autoImport/$confirm/index.mjs +1 -1
- package/plugins/autoImport/$dialog/index.mjs +1 -1
- package/plugins/autoImport/$drawer/index.mjs +1 -1
- package/plugins/captcha/captcha.mjs +1 -1
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
- package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/TypographyText/Index.mjs +1 -1
- package/plugins/tableRenders/cell/TypographyTextLink/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +5 -5
- package/router/index.mjs +1 -1
- package/store/modules/common.mjs +1 -1
- package/store/modules/login.mjs +1 -1
- package/store/modules/recentRouters.mjs +1 -1
- package/store/modules/router.mjs +1 -1
- package/store/modules/user.mjs +1 -1
- package/views/index.mjs +9 -1
- package/views/system/dept/index.mjs +256 -0
- package/views/system/dept/index.vue.d.ts +3 -0
- package/views/system/dept/utils.d.ts +2 -0
- package/views/system/dept/utils.mjs +15 -0
- package/views/system/dict/index.mjs +3 -3
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +407 -0
- package/views/system/menu/index.vue.d.ts +3 -0
- package/views/system/post/index.mjs +182 -0
- package/views/system/post/index.vue.d.ts +3 -0
- package/views/system/role/index.mjs +319 -0
- package/views/system/role/index.vue.d.ts +3 -0
- package/views/system/role/modules/AssignUser.mjs +2 -0
- package/views/system/role/modules/AssignUser.vue.d.ts +6 -0
- package/views/system/role/modules/SelectDept.mjs +2 -0
- package/views/system/role/modules/SelectDept.vue.d.ts +6 -0
- package/views/system/role/modules/SelectMenu.mjs +2 -0
- package/views/system/role/modules/SelectMenu.vue.d.ts +6 -0
- package/views/system/role/modules/SelectUser.mjs +2 -0
- package/views/system/role/modules/SelectUser.vue.d.ts +11 -0
- package/views/system/user/index.mjs +451 -0
- package/views/system/user/index.vue.d.ts +9 -0
- package/views/tool/job/index.mjs +297 -0
- package/views/tool/job/index.vue.d.ts +3 -0
- package/views/tool/job/modules/Log.mjs +2 -0
- package/views/tool/job/modules/Log.vue.d.ts +6 -0
- package/assets/IndexItem-5VrD3wb-.css +0 -1
- package/assets/LoginBg-9HH4oQBJ.css +0 -1
- package/layout/Index.mjs +0 -2
- /package/layout/{Index.vue.d.ts → Entry.vue.d.ts} +0 -0
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { F as e, P as t, a as n, x as r } from "../../../chunks/button-Dk3CiB69.mjs";
|
|
2
|
+
import i from "../../../plugins/autoImport/$msg/index.mjs";
|
|
3
|
+
import { t as a } from "../../../chunks/page-list-C3nqGnnX.mjs";
|
|
4
|
+
import "../../../components/page-list/index.mjs";
|
|
5
|
+
import { t as o } from "../../../chunks/AssignUser-DCju22tm.mjs";
|
|
6
|
+
import { t as s } from "../../../chunks/SelectDept-DmtKBaW0.mjs";
|
|
7
|
+
import { t as c } from "../../../chunks/SelectMenu-tEpLm6Ij.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) => r.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: (e, { row: n }) => ({
|
|
90
|
+
beforeChange: async () => {
|
|
91
|
+
let e = n.status === "1" ? "启用" : "停用";
|
|
92
|
+
return await t(`确认${e}${n.roleName}角色吗?`), await r.Put("system/role/changeStatus", {
|
|
93
|
+
roleId: n.roleId,
|
|
94
|
+
status: n.status === "1" ? "0" : "1"
|
|
95
|
+
}, { meta: { useSuccessMsg: !0 } }), y.value.query(), !0;
|
|
96
|
+
},
|
|
97
|
+
component: "Switch",
|
|
98
|
+
customValue: ["0", "1"],
|
|
99
|
+
disabled: n.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: e }) => ({
|
|
128
|
+
default: "编辑",
|
|
129
|
+
onClick: async () => {
|
|
130
|
+
let { checkedKeys: a, menus: o } = await r.Get(`system/menu/roleMenuTreeselect/${e.roleId}`), s = h(null);
|
|
131
|
+
if (e.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(e);
|
|
141
|
+
}, { once: !0 }), t({
|
|
142
|
+
body: () => d(n, {
|
|
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 r.Put("system/role", {
|
|
157
|
+
...await s.value.validate(),
|
|
158
|
+
menuCheckStrictly: !1,
|
|
159
|
+
roleId: e.roleId
|
|
160
|
+
}), i.success("角色修改成功"), y.value.query();
|
|
161
|
+
},
|
|
162
|
+
width: 730
|
|
163
|
+
});
|
|
164
|
+
},
|
|
165
|
+
permission: "system:role:edit",
|
|
166
|
+
show: e.roleId !== "1"
|
|
167
|
+
}),
|
|
168
|
+
({ row: e }) => ({
|
|
169
|
+
default: "数据权限",
|
|
170
|
+
onClick: async () => {
|
|
171
|
+
let { checkedKeys: a, depts: o } = await r.Get(`system/role/deptTree/${e.roleId}`), c = h(null);
|
|
172
|
+
if (e.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(e);
|
|
182
|
+
}, { once: !0 }), t({
|
|
183
|
+
body: () => d(n, {
|
|
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: `给${e.roleName}分配数据权限`,
|
|
218
|
+
onConfirmCallback: async () => {
|
|
219
|
+
await r.Put("system/role/dataScope", {
|
|
220
|
+
deptIds: [],
|
|
221
|
+
...await c.value.validate(),
|
|
222
|
+
deptCheckStrictly: !1,
|
|
223
|
+
roleId: e.roleId
|
|
224
|
+
}), i.success("数据权限分配成功"), y.value.query();
|
|
225
|
+
},
|
|
226
|
+
width: 430
|
|
227
|
+
});
|
|
228
|
+
},
|
|
229
|
+
permission: "system:role:edit",
|
|
230
|
+
show: e.roleId !== "1"
|
|
231
|
+
}),
|
|
232
|
+
({ row: t }) => ({
|
|
233
|
+
default: "分配用户",
|
|
234
|
+
onClick: async () => {
|
|
235
|
+
e({
|
|
236
|
+
body: () => d(o, { roleId: t.roleId }),
|
|
237
|
+
footer: !1,
|
|
238
|
+
header: `给${t.roleName}分配用户`,
|
|
239
|
+
width: 1500
|
|
240
|
+
});
|
|
241
|
+
},
|
|
242
|
+
permission: "system:role:edit",
|
|
243
|
+
show: t.roleId !== "1"
|
|
244
|
+
}),
|
|
245
|
+
({ row: e }) => ({
|
|
246
|
+
default: "删除",
|
|
247
|
+
permission: "system:role:remove",
|
|
248
|
+
popconfirm: {
|
|
249
|
+
content: "确认删除吗",
|
|
250
|
+
onConfirm: async () => {
|
|
251
|
+
await r.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 e = await r.Get("system/menu/treeselect"), a = h(null);
|
|
282
|
+
t({
|
|
283
|
+
body: () => d(n, {
|
|
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: e }) }),
|
|
298
|
+
header: "添加角色",
|
|
299
|
+
onConfirmCallback: async () => {
|
|
300
|
+
await r.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,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,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,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,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;
|