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.
- package/assets/IndexItem-CfYDJ95Q.css +1 -0
- package/assets/LoginBg-XqWOv7dJ.css +1 -0
- package/assets/main-CxSb5Gqw.css +2 -0
- package/assets/{button-Be7wyDo4.css → provider-1BcdscQq.css} +1 -1
- package/chunks/AssignUser-BPrzGjCg.mjs +124 -0
- package/chunks/{Common-B5NscAh_.mjs → Common-Ds4A0g73.mjs} +7 -7
- package/chunks/{Day-Ci8nR_Ll.mjs → Day-CWWVjsXu.mjs} +13 -13
- package/chunks/{DictTypeDetail-B_aSmp0m.mjs → DictTypeDetail-ijxK2MDm.mjs} +7 -7
- package/chunks/{Hour-C1yYXl7B.mjs → Hour-D-2s4xgR.mjs} +1 -1
- package/chunks/{Index-BxpYRhO7.mjs → Index-7ubKF9v4.mjs} +1 -1
- package/chunks/{Index-DU8S7od8.mjs → Index-CZnP6jHo.mjs} +1 -1
- package/chunks/{Index-UHMQ6ORy.mjs → Index-D0dEcWw2.mjs} +1 -1
- package/chunks/{Index-CHfwy4gI.mjs → Index-DhkEiAro.mjs} +5 -5
- package/chunks/{Index-Bb9OwRGB.mjs → Index-DoPLbOv7.mjs} +1 -1
- package/chunks/{Index-Z81MxcDh.mjs → Index-az-w01U3.mjs} +1 -1
- package/chunks/{IndexItem-BWoJrz24.mjs → IndexItem-KlRJte7i.mjs} +8 -8
- package/chunks/Log-LYCmf0zI.mjs +213 -0
- package/chunks/{LoginBg-B1auGWuJ.mjs → LoginBg-BtuSDFUq.mjs} +11 -19
- package/chunks/{MenuNode-Dp1kCBvH.mjs → MenuNode-6Nca-v9i.mjs} +2 -2
- package/chunks/{Minute-CA5DlXsq.mjs → Minute-8BpPY8V6.mjs} +1 -1
- package/chunks/{Month-D-4ld14M.mjs → Month-C5iIZpY7.mjs} +1 -1
- package/chunks/{Second-RPGoCkey.mjs → Second-BKF09AKl.mjs} +1 -1
- package/chunks/SelectDept-C78pnJtp.mjs +68 -0
- package/chunks/SelectMenu-B2-QkHU2.mjs +68 -0
- package/chunks/SelectUser-BuE4Lgm0.mjs +57 -0
- package/chunks/{UserInfo-CrBlooGu.mjs → UserInfo-uDVj4WPH.mjs} +11 -11
- package/chunks/{Wrapper-LEchQmDn.mjs → Wrapper-C6BtJDSa.mjs} +5 -5
- package/chunks/{app-DiNoDaOD.mjs → app-BXskd1Ae.mjs} +4 -4
- package/chunks/{custom-page-list-DF3Qw4y7.mjs → custom-page-list-r5EUcg98.mjs} +4 -4
- package/chunks/{custom-page-table-CH09hGDM.mjs → custom-page-table-D1FmkEop.mjs} +2 -2
- package/chunks/{overview-BQQnpz4N.mjs → overview-BCXuALeB.mjs} +1 -1
- package/chunks/{page-list-BjjvOqb5.mjs → page-list-Zp_EiMZd.mjs} +36 -36
- package/chunks/{page-query-BCNFOYTD.mjs → page-query-CxZBtQht.mjs} +5 -5
- package/chunks/{page-table-VeEt8uuI.mjs → page-table-BpyyKTMq.mjs} +9 -9
- package/chunks/{pagination-BuhM6NW1.mjs → pagination-y5tkmGDM.mjs} +1 -1
- package/chunks/{button-BcpR95gj.mjs → provider-C6TTHGoz.mjs} +429 -433
- package/chunks/{table-B3z8z5O8.mjs → table-2Eqd8Kcx.mjs} +10 -10
- 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/date-picker/index.mjs +1 -1
- package/components/date-picker/src/date-picker.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
- package/components/index.mjs +11 -11
- 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.d.ts +3 -3
- 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/page-table/src/page-table.vue.d.ts +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 +2 -2
- 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/table/src/table.vue.d.ts +1 -1
- package/components/tree/index.mjs +2 -2
- 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 +2 -2
- package/components/upload/src/upload.mjs +1 -1
- package/hooks/useDicOptions/index.mjs +2 -2
- package/hooks/useSysUser/index.mjs +2 -2
- package/index.d.ts +3 -0
- package/layout/Entry.mjs +2 -0
- package/layout/Login.mjs +5 -5
- 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 +4 -4
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/main.d.ts +2 -0
- package/main.mjs +14 -0
- package/package.json +13 -1
- package/plugins/autoImport/$alova/index.mjs +2 -2
- 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 +12 -12
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/Wrapper.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/ImageViewer/Index.vue.d.ts +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 +6 -6
- package/plugins/tableRenders/title/index.mjs +1 -1
- 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 +2 -2
- 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 +18 -18
- 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/chunks/{date-picker-DtbDIFUH.mjs → date-picker-D15OhWnK.mjs} +1 -1
- /package/layout/{Index.vue.d.ts → Entry.vue.d.ts} +0 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { F as e, S as t, o as n } from "./provider-C6TTHGoz.mjs";
|
|
2
|
+
import r from "../plugins/autoImport/$msg/index.mjs";
|
|
3
|
+
import { t as i } from "./page-list-Zp_EiMZd.mjs";
|
|
4
|
+
import "../components/page-list/index.mjs";
|
|
5
|
+
import { computed as a, createBlock as o, defineComponent as s, h as c, mergeProps as l, nextTick as u, openBlock as d, reactive as f, ref as p, unref as m, useTemplateRef as h, watch as g } from "vue";
|
|
6
|
+
import { useRequest as _ } from "alova/client";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ../../packages/dlzn-ui/views/tool/job/modules/Log.vue
|
|
9
|
+
var v = /* @__PURE__ */ s({
|
|
10
|
+
__name: "Log",
|
|
11
|
+
props: { id: {} },
|
|
12
|
+
setup(s) {
|
|
13
|
+
let v = s, y = h("pageListRef"), { data: b, send: x } = _((e) => t.Get(`monitor/job/${e}`), {
|
|
14
|
+
immediate: !1,
|
|
15
|
+
initialData: {}
|
|
16
|
+
});
|
|
17
|
+
v.id === void 0 ? u(() => {
|
|
18
|
+
y.value.query();
|
|
19
|
+
}) : x(v.id).then(() => {
|
|
20
|
+
u(() => {
|
|
21
|
+
y.value.query();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
let S = {
|
|
25
|
+
createTime: {
|
|
26
|
+
_label: "执行时间",
|
|
27
|
+
component: "TInput",
|
|
28
|
+
model: "createTime"
|
|
29
|
+
},
|
|
30
|
+
exceptionInfo: {
|
|
31
|
+
__others: ({ formData: e }) => ({ show: e.status === "1" }),
|
|
32
|
+
_class: "col-span-full",
|
|
33
|
+
_label: "异常信息",
|
|
34
|
+
component: "TTextarea",
|
|
35
|
+
maxlength: "",
|
|
36
|
+
model: "exceptionInfo"
|
|
37
|
+
},
|
|
38
|
+
invokeTarget: {
|
|
39
|
+
_class: "col-span-full",
|
|
40
|
+
_label: "调用目标方法",
|
|
41
|
+
component: "TTextarea",
|
|
42
|
+
model: "invokeTarget"
|
|
43
|
+
},
|
|
44
|
+
jobGroup: {
|
|
45
|
+
_label: "任务分组",
|
|
46
|
+
component: "TSelect",
|
|
47
|
+
dicCode: "sys_job_group",
|
|
48
|
+
model: "jobGroup"
|
|
49
|
+
},
|
|
50
|
+
jobLogId: {
|
|
51
|
+
_label: "日志编号",
|
|
52
|
+
component: "TInput",
|
|
53
|
+
model: "jobLogId"
|
|
54
|
+
},
|
|
55
|
+
jobMessage: {
|
|
56
|
+
_class: "col-span-full",
|
|
57
|
+
_label: "日志信息",
|
|
58
|
+
component: "TTextarea",
|
|
59
|
+
maxlength: "",
|
|
60
|
+
model: "jobMessage"
|
|
61
|
+
},
|
|
62
|
+
jobName: {
|
|
63
|
+
_label: "任务名称",
|
|
64
|
+
component: "TInput",
|
|
65
|
+
model: "jobName"
|
|
66
|
+
},
|
|
67
|
+
status: {
|
|
68
|
+
_label: "执行状态",
|
|
69
|
+
component: "TRadioGroup",
|
|
70
|
+
dicCode: "sys_job_status",
|
|
71
|
+
model: "status"
|
|
72
|
+
}
|
|
73
|
+
}, C = {
|
|
74
|
+
apis: {
|
|
75
|
+
delete: {
|
|
76
|
+
method: "monitor/jobLog",
|
|
77
|
+
permission: "monitor:job:remove",
|
|
78
|
+
showBatch: !0
|
|
79
|
+
},
|
|
80
|
+
export: {
|
|
81
|
+
method: "monitor/jobLog/export",
|
|
82
|
+
permission: "monitor:job:export"
|
|
83
|
+
},
|
|
84
|
+
list: { method: (e) => t.Get("monitor/jobLog/list", { params: {
|
|
85
|
+
...e,
|
|
86
|
+
dateRange: void 0,
|
|
87
|
+
"params[beginTime]": e.dateRange[0] ?? "",
|
|
88
|
+
"params[endTime]": e.dateRange[1] ?? ""
|
|
89
|
+
} }) }
|
|
90
|
+
},
|
|
91
|
+
cardProps: {
|
|
92
|
+
bodyClassName: "p-0!",
|
|
93
|
+
shadow: !1
|
|
94
|
+
},
|
|
95
|
+
columns: [
|
|
96
|
+
{
|
|
97
|
+
colKey: "jobLogId",
|
|
98
|
+
title: "日志编号"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
colKey: "jobName",
|
|
102
|
+
title: "任务名称"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
cell: {
|
|
106
|
+
component: "DicLabel",
|
|
107
|
+
dicCode: "sys_job_group"
|
|
108
|
+
},
|
|
109
|
+
colKey: "jobGroup",
|
|
110
|
+
title: "任务组名"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
colKey: "invokeTarget",
|
|
114
|
+
title: "调用目标字符串"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
colKey: "jobMessage",
|
|
118
|
+
title: "日志信息"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
cell: {
|
|
122
|
+
component: "DicLabel",
|
|
123
|
+
dicCode: "sys_job_status"
|
|
124
|
+
},
|
|
125
|
+
colKey: "status",
|
|
126
|
+
title: "执行状态"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
colKey: "createTime",
|
|
130
|
+
title: "执行时间"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
cell: {
|
|
134
|
+
buttons: [({ row: t }) => ({
|
|
135
|
+
default: "详情",
|
|
136
|
+
onClick: () => {
|
|
137
|
+
let r = p(null);
|
|
138
|
+
g(r, () => {
|
|
139
|
+
r.value.setFormData(t);
|
|
140
|
+
}, { once: !0 }), e({
|
|
141
|
+
body: () => c(n, {
|
|
142
|
+
items: [
|
|
143
|
+
S.jobLogId,
|
|
144
|
+
S.jobName,
|
|
145
|
+
S.jobGroup,
|
|
146
|
+
S.createTime,
|
|
147
|
+
S.invokeTarget,
|
|
148
|
+
S.jobMessage,
|
|
149
|
+
S.status,
|
|
150
|
+
S.exceptionInfo
|
|
151
|
+
],
|
|
152
|
+
readonly: !0,
|
|
153
|
+
ref: r
|
|
154
|
+
}),
|
|
155
|
+
footer: !1,
|
|
156
|
+
header: "调度日志详细",
|
|
157
|
+
width: 730
|
|
158
|
+
});
|
|
159
|
+
},
|
|
160
|
+
permission: "monitor:job:query"
|
|
161
|
+
})],
|
|
162
|
+
component: "Buttons"
|
|
163
|
+
},
|
|
164
|
+
colKey: "_operation",
|
|
165
|
+
title: "操作"
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
formItems: [
|
|
169
|
+
S.jobName,
|
|
170
|
+
S.jobGroup,
|
|
171
|
+
{
|
|
172
|
+
...S.status,
|
|
173
|
+
component: "TSelect"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
_class: "col-span-2",
|
|
177
|
+
_label: "执行时间",
|
|
178
|
+
component: "TDatePicker",
|
|
179
|
+
model: "dateRange",
|
|
180
|
+
type: "daterange"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
initialFormData: f({
|
|
184
|
+
jobGroup: a(() => b.value.jobGroup ?? ""),
|
|
185
|
+
jobName: a(() => b.value.jobName ?? "")
|
|
186
|
+
}),
|
|
187
|
+
isFirstQueryByParent: !0,
|
|
188
|
+
operations: [{
|
|
189
|
+
default: "清空",
|
|
190
|
+
permission: "monitor:job:remove",
|
|
191
|
+
popconfirm: {
|
|
192
|
+
content: "确认清空吗",
|
|
193
|
+
onConfirm: async () => {
|
|
194
|
+
await t.Delete("monitor/jobLog/clean"), r.success("清空成功"), y.value.query();
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}],
|
|
198
|
+
tableOtherProps: {
|
|
199
|
+
flexHeight: !1,
|
|
200
|
+
rowKey: "jobLogId",
|
|
201
|
+
showColumnConfigBtn: !1,
|
|
202
|
+
showRowSelect: "multiple",
|
|
203
|
+
showToggleFullscreenBtn: !1
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
return (e, t) => (d(), o(m(i), l({
|
|
207
|
+
ref_key: "pageListRef",
|
|
208
|
+
ref: y
|
|
209
|
+
}, C), null, 16));
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
//#endregion
|
|
213
|
+
export { v as t };
|
|
@@ -4,35 +4,27 @@ import "../components/image/index.mjs";
|
|
|
4
4
|
import { t as n } from "./card-BfHb58zl.mjs";
|
|
5
5
|
import "../components/card/index.mjs";
|
|
6
6
|
import { createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, openBlock as l, renderSlot as u, unref as d, withCtx as f } from "vue";
|
|
7
|
-
import
|
|
8
|
-
|
|
7
|
+
import p from "virtual:dlzn-ui/app-params";
|
|
8
|
+
import '../assets/LoginBg-XqWOv7dJ.css';//#region ../../packages/dlzn-ui/layout/modules/LoginBg.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
var m = {
|
|
9
10
|
class: "relative flex h-full items-center justify-center",
|
|
10
|
-
style: { background: "linear-gradient(159deg
|
|
11
|
-
},
|
|
11
|
+
style: { background: "linear-gradient(\n 159deg,\n var(--td-brand-color-3) 0%,\n #fff 43%,\n #fff 61%,\n var(--td-brand-color-3) 100%\n )" }
|
|
12
|
+
}, h = { class: "bg_inner flex items-stretch justify-between" }, g = /*#__PURE__*/ e(/* @__PURE__ */ c({
|
|
12
13
|
__name: "LoginBg",
|
|
13
14
|
setup(e) {
|
|
14
|
-
|
|
15
|
-
eager: !0,
|
|
16
|
-
import: "default",
|
|
17
|
-
query: "?url"
|
|
18
|
-
}))[0], h = Object.values(import.meta.glob("img/logo.*", {
|
|
19
|
-
eager: !0,
|
|
20
|
-
import: "default",
|
|
21
|
-
query: "?url"
|
|
22
|
-
}))[0];
|
|
23
|
-
return (e, g) => (l(), a("div", p, [o("div", m, [s(d(t), {
|
|
15
|
+
return (e, c) => (l(), a("div", m, [o("div", h, [s(d(t), {
|
|
24
16
|
class: "left_banner",
|
|
25
|
-
src: d(
|
|
17
|
+
src: d(p).loginLeftBannerUrl,
|
|
26
18
|
style: { transform: "scale(1.4)" }
|
|
27
19
|
}, null, 8, ["src"]), s(d(n), { class: "login_form_wrapper shrink-0 px-4!" }, {
|
|
28
20
|
default: f(() => [u(e.$slots, "default", {}, void 0, !0)]),
|
|
29
21
|
_: 3
|
|
30
|
-
})]), d(
|
|
22
|
+
})]), d(p).loginTopLeftLogoUrl ? (l(), r(d(t), {
|
|
31
23
|
key: 0,
|
|
32
24
|
class: "logo",
|
|
33
|
-
src: d(
|
|
25
|
+
src: d(p).loginTopLeftLogoUrl
|
|
34
26
|
}, null, 8, ["src"])) : i("v-if", !0)]));
|
|
35
27
|
}
|
|
36
|
-
}), [["__scopeId", "data-v-
|
|
28
|
+
}), [["__scopeId", "data-v-637f6712"]]);
|
|
37
29
|
//#endregion
|
|
38
|
-
export {
|
|
30
|
+
export { g as t };
|
|
@@ -30,7 +30,7 @@ var _ = /* @__PURE__ */ c({
|
|
|
30
30
|
}, [c.level === 0 ? {
|
|
31
31
|
name: "icon",
|
|
32
32
|
fn: m(() => [s(p(e), {
|
|
33
|
-
class: "mr-2",
|
|
33
|
+
class: "relative right-1 mr-2",
|
|
34
34
|
icon: _(u),
|
|
35
35
|
size: "20"
|
|
36
36
|
}, null, 8, ["icon"])]),
|
|
@@ -48,7 +48,7 @@ var _ = /* @__PURE__ */ c({
|
|
|
48
48
|
}, [c.level === 0 ? {
|
|
49
49
|
name: "icon",
|
|
50
50
|
fn: m(() => [s(p(e), {
|
|
51
|
-
class: "mr-
|
|
51
|
+
class: "relative right-1 mr-2",
|
|
52
52
|
icon: _(u),
|
|
53
53
|
size: "20"
|
|
54
54
|
}, null, 8, ["icon"])]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./Common-
|
|
1
|
+
import { t as e } from "./Common-Ds4A0g73.mjs";
|
|
2
2
|
import { createBlock as t, defineComponent as n, openBlock as r, useModel as i } from "vue";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region ../../packages/dlzn-ui/components/cron/src/Minute.vue
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./Common-
|
|
1
|
+
import { t as e } from "./Common-Ds4A0g73.mjs";
|
|
2
2
|
import { createBlock as t, defineComponent as n, openBlock as r, useModel as i } from "vue";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region ../../packages/dlzn-ui/components/cron/src/Month.vue
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./Common-
|
|
1
|
+
import { t as e } from "./Common-Ds4A0g73.mjs";
|
|
2
2
|
import { createBlock as t, defineComponent as n, openBlock as r, useModel as i } from "vue";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region ../../packages/dlzn-ui/components/cron/src/Second.vue
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { u as e } from "./provider-C6TTHGoz.mjs";
|
|
2
|
+
import { t } from "./checkbox-CLlUEbkk.mjs";
|
|
3
|
+
import "../components/checkbox/index.mjs";
|
|
4
|
+
import { treeToFlatArr as n } from "../utils/tree.mjs";
|
|
5
|
+
import "../utils/index.mjs";
|
|
6
|
+
import { computed as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, inject as c, openBlock as l, ref as u, unref as d, useTemplateRef as f, watch as p } from "vue";
|
|
7
|
+
//#region ../../packages/dlzn-ui/views/system/role/modules/SelectDept.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var m = { class: "w-full" }, h = { class: "mb-1 flex gap-4" }, g = /* @__PURE__ */ s({
|
|
9
|
+
__name: "SelectDept",
|
|
10
|
+
props: { deptOptions: {} },
|
|
11
|
+
setup(s) {
|
|
12
|
+
let g = s, _ = c("formData"), v = u(!0), y = u(!1), b = u(!0), x = r(() => {
|
|
13
|
+
let e = [], t = (n) => {
|
|
14
|
+
n.forEach((n) => {
|
|
15
|
+
e.push(n), n.children && t(n.children);
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
return t(g.deptOptions), e;
|
|
19
|
+
});
|
|
20
|
+
p(y, (e) => {
|
|
21
|
+
e ? _.deptIds = x.value.map((e) => e.id) : _.deptIds = [];
|
|
22
|
+
});
|
|
23
|
+
let S = f("treeRef"), C = (...e) => {
|
|
24
|
+
if (!b.value) return;
|
|
25
|
+
let { node: t, trigger: r } = e[1], i = e[0].includes(t.value);
|
|
26
|
+
if (r === "node-click") {
|
|
27
|
+
let e = S.value.getTreeData(t.value);
|
|
28
|
+
n(e).forEach((e) => {
|
|
29
|
+
S.value.setItem(e.value, { checked: i });
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
return (n, r) => (l(), i("div", m, [a("div", h, [
|
|
34
|
+
o(d(t), {
|
|
35
|
+
modelValue: v.value,
|
|
36
|
+
"onUpdate:modelValue": r[0] ||= (e) => v.value = e,
|
|
37
|
+
label: "展开/折叠"
|
|
38
|
+
}, null, 8, ["modelValue"]),
|
|
39
|
+
o(d(t), {
|
|
40
|
+
modelValue: y.value,
|
|
41
|
+
"onUpdate:modelValue": r[1] ||= (e) => y.value = e,
|
|
42
|
+
label: "全选/全不选"
|
|
43
|
+
}, null, 8, ["modelValue"]),
|
|
44
|
+
o(d(t), {
|
|
45
|
+
modelValue: b.value,
|
|
46
|
+
"onUpdate:modelValue": r[2] ||= (e) => b.value = e,
|
|
47
|
+
label: "父子联动"
|
|
48
|
+
}, null, 8, ["modelValue"])
|
|
49
|
+
]), o(d(e), {
|
|
50
|
+
ref_key: "treeRef",
|
|
51
|
+
ref: S,
|
|
52
|
+
modelValue: d(_).deptIds,
|
|
53
|
+
"onUpdate:modelValue": r[3] ||= (e) => d(_).deptIds = e,
|
|
54
|
+
"check-strictly": !0,
|
|
55
|
+
checkable: "",
|
|
56
|
+
data: s.deptOptions,
|
|
57
|
+
"expand-all": v.value,
|
|
58
|
+
keys: { value: "id" },
|
|
59
|
+
onChange: C
|
|
60
|
+
}, null, 8, [
|
|
61
|
+
"modelValue",
|
|
62
|
+
"data",
|
|
63
|
+
"expand-all"
|
|
64
|
+
])]));
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
//#endregion
|
|
68
|
+
export { g as t };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { u as e } from "./provider-C6TTHGoz.mjs";
|
|
2
|
+
import { t } from "./checkbox-CLlUEbkk.mjs";
|
|
3
|
+
import "../components/checkbox/index.mjs";
|
|
4
|
+
import { treeToFlatArr as n } from "../utils/tree.mjs";
|
|
5
|
+
import "../utils/index.mjs";
|
|
6
|
+
import { computed as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, inject as c, openBlock as l, ref as u, unref as d, useTemplateRef as f, watch as p } from "vue";
|
|
7
|
+
//#region ../../packages/dlzn-ui/views/system/role/modules/SelectMenu.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var m = { class: "w-full" }, h = { class: "mb-1 flex gap-4" }, g = /* @__PURE__ */ s({
|
|
9
|
+
__name: "SelectMenu",
|
|
10
|
+
props: { menuOptions: {} },
|
|
11
|
+
setup(s) {
|
|
12
|
+
let g = s, _ = c("formData"), v = u(!1), y = u(!1), b = u(!0), x = r(() => {
|
|
13
|
+
let e = [], t = (n) => {
|
|
14
|
+
n.forEach((n) => {
|
|
15
|
+
e.push(n), n.children && t(n.children);
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
return t(g.menuOptions), e;
|
|
19
|
+
});
|
|
20
|
+
p(y, (e) => {
|
|
21
|
+
e ? _.menuIds = x.value.map((e) => e.id) : _.menuIds = [];
|
|
22
|
+
});
|
|
23
|
+
let S = f("treeRef"), C = (...e) => {
|
|
24
|
+
if (!b.value) return;
|
|
25
|
+
let { node: t, trigger: r } = e[1], i = e[0].includes(t.value);
|
|
26
|
+
if (r === "node-click") {
|
|
27
|
+
let e = S.value.getTreeData(t.value);
|
|
28
|
+
n(e).forEach((e) => {
|
|
29
|
+
S.value.setItem(e.value, { checked: i });
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
return (n, r) => (l(), i("div", m, [a("div", h, [
|
|
34
|
+
o(d(t), {
|
|
35
|
+
modelValue: v.value,
|
|
36
|
+
"onUpdate:modelValue": r[0] ||= (e) => v.value = e,
|
|
37
|
+
label: "展开/折叠"
|
|
38
|
+
}, null, 8, ["modelValue"]),
|
|
39
|
+
o(d(t), {
|
|
40
|
+
modelValue: y.value,
|
|
41
|
+
"onUpdate:modelValue": r[1] ||= (e) => y.value = e,
|
|
42
|
+
label: "全选/全不选"
|
|
43
|
+
}, null, 8, ["modelValue"]),
|
|
44
|
+
o(d(t), {
|
|
45
|
+
modelValue: b.value,
|
|
46
|
+
"onUpdate:modelValue": r[2] ||= (e) => b.value = e,
|
|
47
|
+
label: "父子联动"
|
|
48
|
+
}, null, 8, ["modelValue"])
|
|
49
|
+
]), o(d(e), {
|
|
50
|
+
ref_key: "treeRef",
|
|
51
|
+
ref: S,
|
|
52
|
+
modelValue: d(_).menuIds,
|
|
53
|
+
"onUpdate:modelValue": r[3] ||= (e) => d(_).menuIds = e,
|
|
54
|
+
"check-strictly": !0,
|
|
55
|
+
checkable: "",
|
|
56
|
+
data: s.menuOptions,
|
|
57
|
+
"expand-all": v.value,
|
|
58
|
+
keys: { value: "id" },
|
|
59
|
+
onChange: C
|
|
60
|
+
}, null, 8, [
|
|
61
|
+
"modelValue",
|
|
62
|
+
"data",
|
|
63
|
+
"expand-all"
|
|
64
|
+
])]));
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
//#endregion
|
|
68
|
+
export { g as t };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { S as e } from "./provider-C6TTHGoz.mjs";
|
|
2
|
+
import t from "../plugins/autoImport/$msg/index.mjs";
|
|
3
|
+
import { t as n } from "./page-list-Zp_EiMZd.mjs";
|
|
4
|
+
import "../components/page-list/index.mjs";
|
|
5
|
+
import { createBlock as r, defineComponent as i, mergeProps as a, openBlock as o, unref as s, useTemplateRef as c } from "vue";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ../../packages/dlzn-ui/views/system/role/modules/SelectUser.vue
|
|
8
|
+
var l = /* @__PURE__ */ i({
|
|
9
|
+
__name: "SelectUser",
|
|
10
|
+
props: {
|
|
11
|
+
roleId: {},
|
|
12
|
+
tableCol: {}
|
|
13
|
+
},
|
|
14
|
+
setup(i, { expose: l }) {
|
|
15
|
+
let u = i, d = c("pageListRef"), f = {
|
|
16
|
+
apis: { list: { method: (t) => e.Get("system/role/authUser/unallocatedList", { params: {
|
|
17
|
+
...t,
|
|
18
|
+
roleId: u.roleId
|
|
19
|
+
} }) } },
|
|
20
|
+
cardProps: {
|
|
21
|
+
bodyClassName: "p-0!",
|
|
22
|
+
shadow: !1
|
|
23
|
+
},
|
|
24
|
+
columns: u.tableCol,
|
|
25
|
+
formItems: [{
|
|
26
|
+
_label: "用户名称",
|
|
27
|
+
component: "TInput",
|
|
28
|
+
model: "userName"
|
|
29
|
+
}, {
|
|
30
|
+
_label: "手机号码",
|
|
31
|
+
component: "TInput",
|
|
32
|
+
model: "phonenumber"
|
|
33
|
+
}],
|
|
34
|
+
tableOtherProps: {
|
|
35
|
+
flexHeight: !1,
|
|
36
|
+
rowKey: "userId",
|
|
37
|
+
showColumnConfigBtn: !1,
|
|
38
|
+
showRowSelect: "multiple",
|
|
39
|
+
showToggleFullscreenBtn: !1
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
async function p() {
|
|
43
|
+
let n = d.value.selectedRowKeys;
|
|
44
|
+
if (n.length === 0) return Promise.reject("请选择要分配的用户");
|
|
45
|
+
await e.Put("system/role/authUser/selectAll", {}, { params: {
|
|
46
|
+
roleId: u.roleId,
|
|
47
|
+
userIds: n.join(",")
|
|
48
|
+
} }), t("分配用户成功");
|
|
49
|
+
}
|
|
50
|
+
return l({ handleSubmit: p }), (e, t) => (o(), r(s(n), a({
|
|
51
|
+
ref_key: "pageListRef",
|
|
52
|
+
ref: d
|
|
53
|
+
}, f), null, 16));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//#endregion
|
|
57
|
+
export { l as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as e, V as t, b as n, i as r, n as i, o as a } from "./provider-C6TTHGoz.mjs";
|
|
2
2
|
import { createBlock as o, createTextVNode as s, createVNode as c, defineComponent as l, inject as u, openBlock as d, reactive as f, unref as p, useTemplateRef as m, watchEffect as h, withCtx as g } from "vue";
|
|
3
3
|
import { useRoute as _ } from "vue-router";
|
|
4
4
|
//#endregion
|
|
@@ -41,35 +41,35 @@ var v = /* @__PURE__ */ l({
|
|
|
41
41
|
_required: !0,
|
|
42
42
|
component: "TRadioGroup",
|
|
43
43
|
model: "sex",
|
|
44
|
-
options:
|
|
44
|
+
options: n("sys_user_sex", ["0", "1"])
|
|
45
45
|
},
|
|
46
46
|
{ slot: "footer" }
|
|
47
47
|
]);
|
|
48
48
|
function w() {
|
|
49
|
-
|
|
49
|
+
t().close(b.name);
|
|
50
50
|
}
|
|
51
51
|
async function T() {
|
|
52
|
-
let
|
|
53
|
-
await
|
|
52
|
+
let t = await S.value.validate();
|
|
53
|
+
await e.Put("system/user/profile", t, { meta: {
|
|
54
54
|
useLoading: "保存中...",
|
|
55
55
|
useSuccessMsg: !0
|
|
56
|
-
} }),
|
|
56
|
+
} }), r().getUserInfo(!1), y("update");
|
|
57
57
|
}
|
|
58
|
-
return (e,
|
|
58
|
+
return (e, t) => (d(), o(p(a), {
|
|
59
59
|
ref: "form",
|
|
60
60
|
items: C,
|
|
61
61
|
"label-align": "right",
|
|
62
62
|
layout: "vertical"
|
|
63
63
|
}, {
|
|
64
|
-
footer: g(() => [c(p(
|
|
65
|
-
default: g(() => [...
|
|
64
|
+
footer: g(() => [c(p(i), { onClick: T }, {
|
|
65
|
+
default: g(() => [...t[0] ||= [s("保存", -1)]]),
|
|
66
66
|
_: 1
|
|
67
|
-
}), c(p(
|
|
67
|
+
}), c(p(i), {
|
|
68
68
|
class: "ml-4!",
|
|
69
69
|
theme: "default",
|
|
70
70
|
onClick: w
|
|
71
71
|
}, {
|
|
72
|
-
default: g(() => [...
|
|
72
|
+
default: g(() => [...t[1] ||= [s("关闭", -1)]]),
|
|
73
73
|
_: 1
|
|
74
74
|
})]),
|
|
75
75
|
_: 1
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createBlock as e, createElementBlock as t, createElementVNode as n, defineComponent as r, inject as i, onMounted as a, onUpdated as o, openBlock as s, ref as c, renderSlot as l, unref as u, useAttrs as d, useTemplateRef as f, withCtx as p } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Tooltip as m } from "tdesign-vue-next";
|
|
3
|
+
import { useMutationObserver as h, useThrottleFn as g } from "@vueuse/core";
|
|
4
4
|
//#region ../../packages/dlzn-ui/plugins/tableRenders/Wrapper.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _ = { class: "inline-flex max-w-full align-middle" }, v = 25, y = /* @__PURE__ */ r({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "Wrapper",
|
|
8
8
|
setup(r) {
|
|
9
|
-
let y = i("_columnWidths"), b = i("columnMinWidths"), x = i("columnMaxWidths"), S = d(), C = f("wrapperRef"), w = c(!1), T = c(""), E =
|
|
9
|
+
let y = i("_columnWidths"), b = i("columnMinWidths"), x = i("columnMaxWidths"), S = d(), C = f("wrapperRef"), w = c(!1), T = c(""), E = g(() => {
|
|
10
10
|
if (C.value === null) return;
|
|
11
11
|
let e = C.value.closest("td, th"), t = C.value.getBoundingClientRect().width, n = C.value.scrollWidth, r = e.getBoundingClientRect().width, i = S.col.colKey, a = x[i], o = 0, s = e.querySelector(".t-table__tree-op-icon");
|
|
12
12
|
s && (o = s.getBoundingClientRect().width + Number.parseFloat(getComputedStyle(s).marginRight));
|
|
@@ -17,7 +17,7 @@ var _ = { class: "inline-flex max-w-full align-middle" }, v = 25, y = /* @__PURE
|
|
|
17
17
|
let f = Math.ceil(Math.max(t, n) + v + o + c + u), p = Math.max(Math.min(f, a), b[i]);
|
|
18
18
|
p > y.value[i] && (p <= r ? b[i] = p : y.value[i] = p + 2);
|
|
19
19
|
}, 500, !0);
|
|
20
|
-
return a(E), o(E),
|
|
20
|
+
return a(E), o(E), h(C, (e) => {
|
|
21
21
|
e.forEach(() => {
|
|
22
22
|
E();
|
|
23
23
|
});
|
|
@@ -25,7 +25,7 @@ var _ = { class: "inline-flex max-w-full align-middle" }, v = 25, y = /* @__PURE
|
|
|
25
25
|
characterData: !0,
|
|
26
26
|
childList: !0,
|
|
27
27
|
subtree: !0
|
|
28
|
-
}), (r, i) => (s(), t("div", _, [w.value ? (s(), e(u(
|
|
28
|
+
}), (r, i) => (s(), t("div", _, [w.value ? (s(), e(u(m), {
|
|
29
29
|
key: 0,
|
|
30
30
|
content: T.value
|
|
31
31
|
}, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as e, t } from "./provider-C6TTHGoz.mjs";
|
|
2
2
|
import { t as n } from "./useAppContext-D47amIp5.mjs";
|
|
3
3
|
import { t as r } from "./menu-CjNx3wKR.mjs";
|
|
4
4
|
import "../hooks/useContextMenu/menu/index.mjs";
|
|
@@ -10,10 +10,10 @@ var f = /* @__PURE__ */ o({
|
|
|
10
10
|
__name: "app",
|
|
11
11
|
setup(o) {
|
|
12
12
|
n();
|
|
13
|
-
let f =
|
|
14
|
-
return (
|
|
13
|
+
let f = e();
|
|
14
|
+
return (e, n) => {
|
|
15
15
|
let o = c("RouterView");
|
|
16
|
-
return s(), i(l(
|
|
16
|
+
return s(), i(l(t), null, {
|
|
17
17
|
default: u(() => [
|
|
18
18
|
a(o, { class: "isolate" }),
|
|
19
19
|
a(l(r)),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as e } from "./provider-C6TTHGoz.mjs";
|
|
2
2
|
import { t } from "./plugin-vue_export-helper-B3ysoDQm.mjs";
|
|
3
3
|
import { t as n } from "./card-BfHb58zl.mjs";
|
|
4
4
|
import "../components/card/index.mjs";
|
|
5
|
-
import { t as r } from "./custom-page-table-
|
|
5
|
+
import { t as r } from "./custom-page-table-D1FmkEop.mjs";
|
|
6
6
|
import "../components/custom-page-table/index.mjs";
|
|
7
|
-
import { n as i, r as a } from "./page-list-
|
|
8
|
-
import { t as o } from "./page-query-
|
|
7
|
+
import { n as i, r as a } from "./page-list-Zp_EiMZd.mjs";
|
|
8
|
+
import { t as o } from "./page-query-CxZBtQht.mjs";
|
|
9
9
|
import "../components/page-query/index.mjs";
|
|
10
10
|
import "../components/page-list/index.mjs";
|
|
11
11
|
import { Fragment as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as f, createVNode as p, defineComponent as m, guardReactiveProps as h, mergeDefaults as g, mergeProps as _, normalizeProps as v, openBlock as y, renderList as b, renderSlot as x, unref as S, useTemplateRef as C, withCtx as w } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, r as t } from "./page-table-
|
|
2
|
-
import { t as n } from "./pagination-
|
|
1
|
+
import { n as e, r as t } from "./page-table-BpyyKTMq.mjs";
|
|
2
|
+
import { t as n } from "./pagination-y5tkmGDM.mjs";
|
|
3
3
|
import "../components/pagination/index.mjs";
|
|
4
4
|
import "../components/page-table/index.mjs";
|
|
5
5
|
import { Fragment as r, createBlock as i, createCommentVNode as a, createElementBlock as o, defineComponent as s, guardReactiveProps as c, isRef as l, mergeDefaults as u, normalizeProps as d, openBlock as f, renderSlot as p, unref as m } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./IndexItem-
|
|
1
|
+
import { t as e } from "./IndexItem-KlRJte7i.mjs";
|
|
2
2
|
import { Fragment as t, createBlock as n, createElementBlock as r, defineComponent as i, normalizeStyle as a, openBlock as o, renderList as s } from "vue";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region ../../packages/dlzn-ui/components/overview/src/overview.vue
|