dlzn-ui 2.0.6 → 2.0.8
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/$loading-D_Zs2VgL.css +1 -0
- package/assets/LoginBg-XqWOv7dJ.css +1 -0
- package/assets/main-CxSb5Gqw.css +2 -0
- package/assets/{button-Bwn73ZEc.css → provider-1BcdscQq.css} +1 -1
- package/chunks/$loading-Df3COGfW.mjs +241 -0
- package/chunks/{AssignUser-DCju22tm.mjs → AssignUser-Dj8rq5gH.mjs} +3 -3
- package/chunks/{Common-DQbblaTl.mjs → Common-CnrITpXz.mjs} +7 -7
- package/chunks/{Day-9BKmHuZl.mjs → Day-tjS-0iDA.mjs} +13 -13
- package/chunks/{DictTypeDetail-e14bGyiZ.mjs → DictTypeDetail-CcohOVfN.mjs} +7 -7
- package/chunks/FileSaver.min-BAG7TK0U.mjs +70 -0
- package/chunks/{Hour-CrFFADzT.mjs → Hour-B9fx59cM.mjs} +1 -1
- package/chunks/{Index-Bu5a_B5n.mjs → Index-B-_PVf5U.mjs} +1 -1
- package/chunks/{Index-QUCWrT4d.mjs → Index-BTEVAXbg.mjs} +2 -2
- package/chunks/{Index-bEWcnIHJ.mjs → Index-BxfxoY-l.mjs} +1 -1
- package/chunks/{Index-Bi44jQm2.mjs → Index-CrxoIuR-.mjs} +1 -1
- package/chunks/{Index-ChH8kYUs.mjs → Index-D-gi1OVy.mjs} +2 -2
- package/chunks/{Index-DloA1g7z.mjs → Index-DlrNiiDp.mjs} +5 -5
- package/chunks/{Index-De48YIRG.mjs → Index-baebFewJ.mjs} +1 -1
- package/chunks/{Index-CZ0ICyCx.mjs → Index-z9vUMzmS.mjs} +2 -2
- package/chunks/{IndexItem-OIGXdAkP.mjs → IndexItem-rt5wZA39.mjs} +7 -7
- package/chunks/{Log-DdemNjDW.mjs → Log-DK5aduPG.mjs} +8 -8
- package/chunks/{LoginBg-BD6ChYvu.mjs → LoginBg-BtuSDFUq.mjs} +10 -18
- package/chunks/{MenuNode-ByutDAqI.mjs → MenuNode-B0M4WpOn.mjs} +1 -1
- package/chunks/{MenuNode-DXgE629W.mjs → MenuNode-DEBSfNz9.mjs} +3 -3
- package/chunks/{Minute-xZNOCy8Q.mjs → Minute-hPwzkaCM.mjs} +1 -1
- package/chunks/{Month-CvWOcD_9.mjs → Month-Cnjhbs28.mjs} +1 -1
- package/chunks/{Second-BvMnEOms.mjs → Second-DAYKul2s.mjs} +1 -1
- package/chunks/{SelectDept-DmtKBaW0.mjs → SelectDept-CC4ckbbt.mjs} +1 -1
- package/chunks/{SelectMenu-tEpLm6Ij.mjs → SelectMenu-pBim6_Lj.mjs} +1 -1
- package/chunks/{SelectUser-CTvBarod.mjs → SelectUser-D6dBXxlL.mjs} +2 -2
- package/chunks/Triangle-C5ogSVp9.mjs +1140 -0
- package/chunks/{UserInfo-qrNR9tve.mjs → UserInfo-BUlPdKge.mjs} +11 -11
- package/chunks/{Wrapper-LEchQmDn.mjs → Wrapper-C6BtJDSa.mjs} +5 -5
- package/chunks/__vite-browser-external-D1GT_Hx9.mjs +7 -0
- package/chunks/{app-CggLqjRQ.mjs → app-Dk-mybzX.mjs} +5 -5
- package/chunks/auto-animate-FPySn19g.mjs +341 -0
- package/chunks/crypto-js-DWj_rBsG.mjs +3695 -0
- package/chunks/css-Cw_qlmlv.mjs +521 -0
- package/chunks/{custom-page-list-CJWB72dw.mjs → custom-page-list-EQhltX7t.mjs} +4 -4
- package/chunks/{custom-page-table-5f8lI6CQ.mjs → custom-page-table-CYLFzT4F.mjs} +2 -2
- package/chunks/date-picker-C_5NJHjq.mjs +8186 -0
- package/chunks/icon-jnCbW4iu.mjs +1013 -0
- package/chunks/{menu-CjNx3wKR.mjs → menu-DYwAudY3.mjs} +1 -1
- package/chunks/{overview-BEtKbidZ.mjs → overview-D9YB44O0.mjs} +1 -1
- package/chunks/{page-list-C3nqGnnX.mjs → page-list-BnGVTcad.mjs} +36 -36
- package/chunks/{page-query-C6oSW1je.mjs → page-query-QCT-mat_.mjs} +5 -5
- package/chunks/{page-table-3DTiPP9H.mjs → page-table-DMOjg44G.mjs} +9 -9
- package/chunks/{pagination-C6-VAj4W.mjs → pagination-BNAZYVJk.mjs} +1 -1
- package/chunks/{button-Dk3CiB69.mjs → provider-DQIMA4mE.mjs} +840 -809
- package/chunks/rolldown-runtime-D_tDV3RV.mjs +23 -0
- package/chunks/{scrollbar-CI1mysNQ.mjs → scrollbar-B0u39t4J.mjs} +9 -10
- package/chunks/store-C46_JI7q.mjs +112 -0
- package/chunks/{table-Cp9NQHjQ.mjs → table-BFP90EA0.mjs} +11 -11
- package/chunks/{tag-CfeJWJii.mjs → tag-BDpZ8-Fj.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 +6206 -103
- 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/icon/index.mjs +1 -1
- package/components/icon/src/icon.mjs +1 -1
- package/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
- package/components/index.mjs +19 -19
- 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/OptionLabel/Index.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/scrollbar/index.mjs +1 -1
- package/components/scrollbar/src/scrollbar.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/tag/index.mjs +1 -1
- package/components/tag/src/tag.mjs +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/useAnimateAuto/index.mjs +6 -6
- package/hooks/useContextMenu/menu/index.mjs +1 -1
- package/hooks/useContextMenu/menu/src/MenuNode.mjs +1 -1
- package/hooks/useContextMenu/menu/src/menu.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 +1 -1
- package/layout/Login.mjs +6 -6
- package/layout/NotFound.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/layout/vueBits/LightRays.mjs +47 -47
- package/layout/vueBits/Plasma.mjs +29 -29
- package/layout/vueBits/Prism.mjs +51 -51
- package/main.d.ts +2 -0
- package/main.mjs +41 -0
- package/package.json +17 -11
- 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/autoImport/$loading/index.mjs +2 -38
- package/plugins/captcha/captcha.mjs +13 -13
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/echarts/index.mjs +705 -25
- package/plugins/initialize/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/Icon/Index.mjs +1 -1
- package/plugins/tableRenders/cell/ImageViewer/Index.vue.d.ts +1 -1
- package/plugins/tableRenders/cell/OptionLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Tags/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +7 -7
- package/plugins/tableRenders/title/index.mjs +1 -1
- package/router/index.mjs +1 -1
- package/store/index.mjs +2 -7
- 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/utils/tool.mjs +16 -15
- package/views/system/dept/index.mjs +10 -10
- package/views/system/dept/utils.mjs +1 -1
- package/views/system/dict/index.mjs +18 -18
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +11 -11
- package/views/system/post/index.mjs +6 -6
- package/views/system/role/index.mjs +42 -42
- package/views/system/role/modules/AssignUser.mjs +1 -1
- package/views/system/role/modules/SelectDept.mjs +1 -1
- package/views/system/role/modules/SelectMenu.mjs +1 -1
- package/views/system/role/modules/SelectUser.mjs +1 -1
- package/views/system/user/index.mjs +49 -49
- package/views/tool/job/index.mjs +31 -31
- package/views/tool/job/modules/Log.mjs +1 -1
- package/assets/LoginBg-BTrRjkK7.css +0 -1
- package/chunks/date-picker-DtbDIFUH.mjs +0 -378
- package/chunks/icon-COjp1yrx.mjs +0 -21
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { F as e,
|
|
1
|
+
import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-DQIMA4mE.mjs";
|
|
2
2
|
import i from "../../../plugins/autoImport/$msg/index.mjs";
|
|
3
|
-
import { t as a } from "../../../chunks/page-list-
|
|
3
|
+
import { t as a } from "../../../chunks/page-list-BnGVTcad.mjs";
|
|
4
4
|
import "../../../components/page-list/index.mjs";
|
|
5
|
-
import { t as o } from "../../../chunks/AssignUser-
|
|
6
|
-
import { t as s } from "../../../chunks/SelectDept-
|
|
7
|
-
import { t as c } from "../../../chunks/SelectMenu-
|
|
5
|
+
import { t as o } from "../../../chunks/AssignUser-Dj8rq5gH.mjs";
|
|
6
|
+
import { t as s } from "../../../chunks/SelectDept-CC4ckbbt.mjs";
|
|
7
|
+
import { t as c } from "../../../chunks/SelectMenu-pBim6_Lj.mjs";
|
|
8
8
|
import { createBlock as l, defineComponent as u, h as d, mergeProps as f, openBlock as p, reactive as m, ref as h, unref as g, useTemplateRef as _, watch as v } from "vue";
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region ../../packages/dlzn-ui/views/system/role/index.vue
|
|
@@ -61,7 +61,7 @@ var y = /* @__PURE__ */ u({
|
|
|
61
61
|
method: "system/role/export",
|
|
62
62
|
permission: "system:role:export"
|
|
63
63
|
},
|
|
64
|
-
list: { method: (e) =>
|
|
64
|
+
list: { method: (e) => n.Get("system/role/list", { params: {
|
|
65
65
|
...e,
|
|
66
66
|
dateRange: void 0,
|
|
67
67
|
"params[beginTime]": e.dateRange[0] ?? "",
|
|
@@ -86,17 +86,17 @@ var y = /* @__PURE__ */ u({
|
|
|
86
86
|
title: "显示顺序"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
|
-
cell: (
|
|
89
|
+
cell: (t, { row: r }) => ({
|
|
90
90
|
beforeChange: async () => {
|
|
91
|
-
let
|
|
92
|
-
return await
|
|
93
|
-
roleId:
|
|
94
|
-
status:
|
|
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
95
|
}, { meta: { useSuccessMsg: !0 } }), y.value.query(), !0;
|
|
96
96
|
},
|
|
97
97
|
component: "Switch",
|
|
98
98
|
customValue: ["0", "1"],
|
|
99
|
-
disabled:
|
|
99
|
+
disabled: r.roleId === "1"
|
|
100
100
|
}),
|
|
101
101
|
colKey: "status",
|
|
102
102
|
title: "角色状态"
|
|
@@ -124,11 +124,11 @@ var y = /* @__PURE__ */ u({
|
|
|
124
124
|
{
|
|
125
125
|
cell: {
|
|
126
126
|
buttons: [
|
|
127
|
-
({ row:
|
|
127
|
+
({ row: t }) => ({
|
|
128
128
|
default: "编辑",
|
|
129
129
|
onClick: async () => {
|
|
130
|
-
let { checkedKeys: a, menus: o } = await
|
|
131
|
-
if (
|
|
130
|
+
let { checkedKeys: a, menus: o } = await n.Get(`system/menu/roleMenuTreeselect/${t.roleId}`), s = h(null);
|
|
131
|
+
if (t.menuCheckStrictly) {
|
|
132
132
|
let e = (t) => t.some((t) => t.children && e(t.children) || a.includes(t.id)), t = (n) => {
|
|
133
133
|
n.forEach((n) => {
|
|
134
134
|
n.children && (e(n.children) && (a.includes(n.id) || a.push(n.id)), t(n.children));
|
|
@@ -137,9 +137,9 @@ var y = /* @__PURE__ */ u({
|
|
|
137
137
|
t(o);
|
|
138
138
|
}
|
|
139
139
|
v(s, () => {
|
|
140
|
-
s.value.setFormData(
|
|
141
|
-
}, { once: !0 }),
|
|
142
|
-
body: () => d(
|
|
140
|
+
s.value.setFormData(t);
|
|
141
|
+
}, { once: !0 }), e({
|
|
142
|
+
body: () => d(r, {
|
|
143
143
|
data: m({ menuIds: a }),
|
|
144
144
|
items: [
|
|
145
145
|
b.roleName,
|
|
@@ -153,23 +153,23 @@ var y = /* @__PURE__ */ u({
|
|
|
153
153
|
}, { menu_ids: () => d(c, { menuOptions: o }) }),
|
|
154
154
|
header: "修改角色",
|
|
155
155
|
onConfirmCallback: async () => {
|
|
156
|
-
await
|
|
156
|
+
await n.Put("system/role", {
|
|
157
157
|
...await s.value.validate(),
|
|
158
158
|
menuCheckStrictly: !1,
|
|
159
|
-
roleId:
|
|
159
|
+
roleId: t.roleId
|
|
160
160
|
}), i.success("角色修改成功"), y.value.query();
|
|
161
161
|
},
|
|
162
162
|
width: 730
|
|
163
163
|
});
|
|
164
164
|
},
|
|
165
165
|
permission: "system:role:edit",
|
|
166
|
-
show:
|
|
166
|
+
show: t.roleId !== "1"
|
|
167
167
|
}),
|
|
168
|
-
({ row:
|
|
168
|
+
({ row: t }) => ({
|
|
169
169
|
default: "数据权限",
|
|
170
170
|
onClick: async () => {
|
|
171
|
-
let { checkedKeys: a, depts: o } = await
|
|
172
|
-
if (
|
|
171
|
+
let { checkedKeys: a, depts: o } = await n.Get(`system/role/deptTree/${t.roleId}`), c = h(null);
|
|
172
|
+
if (t.deptCheckStrictly) {
|
|
173
173
|
let e = (t) => t.some((t) => t.children && e(t.children) || a.includes(t.id)), t = (n) => {
|
|
174
174
|
n.forEach((n) => {
|
|
175
175
|
n.children && (e(n.children) && (a.includes(n.id) || a.push(n.id)), t(n.children));
|
|
@@ -178,9 +178,9 @@ var y = /* @__PURE__ */ u({
|
|
|
178
178
|
t(o);
|
|
179
179
|
}
|
|
180
180
|
v(c, () => {
|
|
181
|
-
c.value.setFormData(
|
|
182
|
-
}, { once: !0 }),
|
|
183
|
-
body: () => d(
|
|
181
|
+
c.value.setFormData(t);
|
|
182
|
+
}, { once: !0 }), e({
|
|
183
|
+
body: () => d(r, {
|
|
184
184
|
data: m({ deptIds: a }),
|
|
185
185
|
items: [
|
|
186
186
|
{
|
|
@@ -214,33 +214,33 @@ var y = /* @__PURE__ */ u({
|
|
|
214
214
|
],
|
|
215
215
|
ref: c
|
|
216
216
|
}, { dept_ids: () => d(s, { deptOptions: o }) }),
|
|
217
|
-
header: `给${
|
|
217
|
+
header: `给${t.roleName}分配数据权限`,
|
|
218
218
|
onConfirmCallback: async () => {
|
|
219
|
-
await
|
|
219
|
+
await n.Put("system/role/dataScope", {
|
|
220
220
|
deptIds: [],
|
|
221
221
|
...await c.value.validate(),
|
|
222
222
|
deptCheckStrictly: !1,
|
|
223
|
-
roleId:
|
|
223
|
+
roleId: t.roleId
|
|
224
224
|
}), i.success("数据权限分配成功"), y.value.query();
|
|
225
225
|
},
|
|
226
226
|
width: 430
|
|
227
227
|
});
|
|
228
228
|
},
|
|
229
229
|
permission: "system:role:edit",
|
|
230
|
-
show:
|
|
230
|
+
show: t.roleId !== "1"
|
|
231
231
|
}),
|
|
232
|
-
({ row:
|
|
232
|
+
({ row: e }) => ({
|
|
233
233
|
default: "分配用户",
|
|
234
234
|
onClick: async () => {
|
|
235
|
-
|
|
236
|
-
body: () => d(o, { roleId:
|
|
235
|
+
t({
|
|
236
|
+
body: () => d(o, { roleId: e.roleId }),
|
|
237
237
|
footer: !1,
|
|
238
|
-
header: `给${
|
|
238
|
+
header: `给${e.roleName}分配用户`,
|
|
239
239
|
width: 1500
|
|
240
240
|
});
|
|
241
241
|
},
|
|
242
242
|
permission: "system:role:edit",
|
|
243
|
-
show:
|
|
243
|
+
show: e.roleId !== "1"
|
|
244
244
|
}),
|
|
245
245
|
({ row: e }) => ({
|
|
246
246
|
default: "删除",
|
|
@@ -248,7 +248,7 @@ var y = /* @__PURE__ */ u({
|
|
|
248
248
|
popconfirm: {
|
|
249
249
|
content: "确认删除吗",
|
|
250
250
|
onConfirm: async () => {
|
|
251
|
-
await
|
|
251
|
+
await n.Delete(`system/role/${e.roleId}`), i("删除成功"), y.value.query();
|
|
252
252
|
}
|
|
253
253
|
},
|
|
254
254
|
show: e.roleId !== "1"
|
|
@@ -278,9 +278,9 @@ var y = /* @__PURE__ */ u({
|
|
|
278
278
|
operations: [{
|
|
279
279
|
default: "新增",
|
|
280
280
|
onClick: async () => {
|
|
281
|
-
let
|
|
282
|
-
|
|
283
|
-
body: () => d(
|
|
281
|
+
let t = await n.Get("system/menu/treeselect"), a = h(null);
|
|
282
|
+
e({
|
|
283
|
+
body: () => d(r, {
|
|
284
284
|
data: m({
|
|
285
285
|
menuIds: [],
|
|
286
286
|
status: "0"
|
|
@@ -294,10 +294,10 @@ var y = /* @__PURE__ */ u({
|
|
|
294
294
|
b.remark
|
|
295
295
|
],
|
|
296
296
|
ref: a
|
|
297
|
-
}, { menu_ids: () => d(c, { menuOptions:
|
|
297
|
+
}, { menu_ids: () => d(c, { menuOptions: t }) }),
|
|
298
298
|
header: "添加角色",
|
|
299
299
|
onConfirmCallback: async () => {
|
|
300
|
-
await
|
|
300
|
+
await n.Post("system/role", {
|
|
301
301
|
...await a.value.validate(),
|
|
302
302
|
menuCheckStrictly: !1
|
|
303
303
|
}), i.success("角色添加成功"), y.value.query();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/AssignUser-
|
|
1
|
+
import { t as e } from "../../../../chunks/AssignUser-Dj8rq5gH.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/SelectDept-
|
|
1
|
+
import { t as e } from "../../../../chunks/SelectDept-CC4ckbbt.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/SelectMenu-
|
|
1
|
+
import { t as e } from "../../../../chunks/SelectMenu-pBim6_Lj.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/SelectUser-
|
|
1
|
+
import { t as e } from "../../../../chunks/SelectUser-D6dBXxlL.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as e, N as t, S as n, o as r } from "../../../chunks/provider-DQIMA4mE.mjs";
|
|
2
2
|
import { n as i } from "../../../chunks/useAppContext-D47amIp5.mjs";
|
|
3
3
|
import a from "../../../plugins/autoImport/$msg/index.mjs";
|
|
4
4
|
import { passwordReg as o, passwordRegMessage as s } from "../../../constants/others.mjs";
|
|
5
|
-
import { t as c } from "../../../chunks/table-
|
|
5
|
+
import { t as c } from "../../../chunks/table-BFP90EA0.mjs";
|
|
6
6
|
import "../../../components/table/index.mjs";
|
|
7
|
-
import { t as l } from "../../../chunks/page-list-
|
|
7
|
+
import { t as l } from "../../../chunks/page-list-BnGVTcad.mjs";
|
|
8
8
|
import "../../../components/page-list/index.mjs";
|
|
9
9
|
import { deptTreeList as u, deptTreeListSend as d } from "../dept/utils.mjs";
|
|
10
10
|
import { createBlock as f, defineComponent as p, h as m, mergeProps as h, onActivated as g, openBlock as _, reactive as v, ref as y, unref as b, useTemplateRef as x, watch as S } from "vue";
|
|
@@ -22,7 +22,7 @@ var w = /* @__PURE__ */ p({
|
|
|
22
22
|
g(() => {
|
|
23
23
|
d();
|
|
24
24
|
});
|
|
25
|
-
let { send: T } = C((e) =>
|
|
25
|
+
let { send: T } = C((e) => n.Get(`system/user/${e}`, { meta: { useDataResult: !1 } }), { immediate: !1 }), E = x("pageListRef"), D = {
|
|
26
26
|
deptId: v({
|
|
27
27
|
_label: "归属部门",
|
|
28
28
|
_required: !0,
|
|
@@ -114,7 +114,7 @@ var w = /* @__PURE__ */ p({
|
|
|
114
114
|
method: "system/user/export",
|
|
115
115
|
permission: "system:user:export"
|
|
116
116
|
},
|
|
117
|
-
list: { method: (e) =>
|
|
117
|
+
list: { method: (e) => n.Get("system/user/list", { params: {
|
|
118
118
|
...e,
|
|
119
119
|
dateRange: void 0,
|
|
120
120
|
"params[beginTime]": e.dateRange[0] ?? "",
|
|
@@ -145,12 +145,12 @@ var w = /* @__PURE__ */ p({
|
|
|
145
145
|
title: "手机号码"
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
|
-
cell: (
|
|
148
|
+
cell: (t, { row: r }) => ({
|
|
149
149
|
beforeChange: async () => {
|
|
150
|
-
let
|
|
151
|
-
return await
|
|
152
|
-
status:
|
|
153
|
-
userId:
|
|
150
|
+
let t = r.status === "1" ? "启用" : "停用";
|
|
151
|
+
return await e(`确认${t}${r.userName}用户吗?`), await n.Put("system/user/changeStatus", {
|
|
152
|
+
status: r.status === "1" ? "0" : "1",
|
|
153
|
+
userId: r.userId
|
|
154
154
|
}, { meta: { useSuccessMsg: !0 } }), E.value.query(), !0;
|
|
155
155
|
},
|
|
156
156
|
component: "Switch",
|
|
@@ -188,8 +188,8 @@ var w = /* @__PURE__ */ p({
|
|
|
188
188
|
let { data: o, postIds: s, posts: c, roleIds: l, roles: u } = await T(i.userId), d = y(null);
|
|
189
189
|
S(d, () => {
|
|
190
190
|
d.value.setFormData(o, { splitToArrKeys: VITE_APP_ID === "1" ? ["userDeptIds"] : [] });
|
|
191
|
-
}, { once: !0 }),
|
|
192
|
-
body: () => m(
|
|
191
|
+
}, { once: !0 }), e({
|
|
192
|
+
body: () => m(r, {
|
|
193
193
|
data: v({
|
|
194
194
|
postIds: s,
|
|
195
195
|
roleIds: l
|
|
@@ -224,13 +224,13 @@ var w = /* @__PURE__ */ p({
|
|
|
224
224
|
}),
|
|
225
225
|
header: "修改用户",
|
|
226
226
|
onConfirmCallback: async () => {
|
|
227
|
-
let
|
|
228
|
-
await
|
|
229
|
-
...
|
|
230
|
-
...VITE_APP_ID === "1" ? { userDeptIds:
|
|
227
|
+
let e = await d.value.validate();
|
|
228
|
+
await n.Put("system/user", {
|
|
229
|
+
...e,
|
|
230
|
+
...VITE_APP_ID === "1" ? { userDeptIds: e.userDeptIds.join(",") } : {},
|
|
231
231
|
userId: o.userId,
|
|
232
232
|
userName: o.userName
|
|
233
|
-
}),
|
|
233
|
+
}), t(o.userId), a.success("用户修改成功"), E.value.query();
|
|
234
234
|
},
|
|
235
235
|
width: 730
|
|
236
236
|
});
|
|
@@ -238,12 +238,12 @@ var w = /* @__PURE__ */ p({
|
|
|
238
238
|
permission: "system:user:edit",
|
|
239
239
|
show: i.userId !== "1"
|
|
240
240
|
}),
|
|
241
|
-
({ row:
|
|
241
|
+
({ row: t }) => ({
|
|
242
242
|
default: "重置密码",
|
|
243
243
|
onClick: async () => {
|
|
244
244
|
let a = y(null);
|
|
245
|
-
|
|
246
|
-
body: () => m(
|
|
245
|
+
e({
|
|
246
|
+
body: () => m(r, {
|
|
247
247
|
items: [{
|
|
248
248
|
_required: !0,
|
|
249
249
|
_rules: [{
|
|
@@ -256,25 +256,25 @@ var w = /* @__PURE__ */ p({
|
|
|
256
256
|
}],
|
|
257
257
|
ref: a
|
|
258
258
|
}),
|
|
259
|
-
header: `请输入${
|
|
259
|
+
header: `请输入${t.userName}用户的新密码`,
|
|
260
260
|
onConfirmCallback: async () => {
|
|
261
|
-
let
|
|
262
|
-
await
|
|
263
|
-
password:
|
|
264
|
-
userId:
|
|
265
|
-
}), i(`密码修改成功,新密码是:${
|
|
261
|
+
let e = (await a.value.validate()).newPassword;
|
|
262
|
+
await n.Put("system/user/resetPwd", {
|
|
263
|
+
password: e,
|
|
264
|
+
userId: t.userId
|
|
265
|
+
}), i(`密码修改成功,新密码是:${e}`), E.value.query();
|
|
266
266
|
},
|
|
267
267
|
width: 430
|
|
268
268
|
});
|
|
269
269
|
},
|
|
270
270
|
permission: "system:user:resetPwd",
|
|
271
|
-
show:
|
|
271
|
+
show: t.userId !== "1"
|
|
272
272
|
}),
|
|
273
|
-
({ row:
|
|
273
|
+
({ row: t }) => ({
|
|
274
274
|
default: "分配角色",
|
|
275
275
|
onClick: async () => {
|
|
276
|
-
let { roles:
|
|
277
|
-
|
|
276
|
+
let { roles: r, user: i } = await n.Get(`system/user/authRole/${t.userId}`), a = y(null);
|
|
277
|
+
e({
|
|
278
278
|
body: () => m(c, {
|
|
279
279
|
columns: [
|
|
280
280
|
{
|
|
@@ -298,19 +298,19 @@ var w = /* @__PURE__ */ p({
|
|
|
298
298
|
title: "角色说明"
|
|
299
299
|
}
|
|
300
300
|
],
|
|
301
|
-
data:
|
|
302
|
-
defaultSelectedRowKeys:
|
|
301
|
+
data: r,
|
|
302
|
+
defaultSelectedRowKeys: r.filter((e) => e.flag).map((e) => e.roleId),
|
|
303
303
|
ref: a,
|
|
304
304
|
rowKey: "roleId",
|
|
305
305
|
showRowSelect: "multiple"
|
|
306
306
|
}),
|
|
307
307
|
header: `为用户${i.nickName}(${i.userName})分配角色`,
|
|
308
308
|
onConfirmCallback: async () => {
|
|
309
|
-
await
|
|
309
|
+
await n.Put("system/user/authRole", {}, {
|
|
310
310
|
meta: { useSuccessMsg: !0 },
|
|
311
311
|
params: {
|
|
312
312
|
roleIds: a.value.selectedRowKeys.join(","),
|
|
313
|
-
userId:
|
|
313
|
+
userId: t.userId
|
|
314
314
|
}
|
|
315
315
|
}), E.value.query();
|
|
316
316
|
},
|
|
@@ -318,7 +318,7 @@ var w = /* @__PURE__ */ p({
|
|
|
318
318
|
});
|
|
319
319
|
},
|
|
320
320
|
permission: "system:user:edit",
|
|
321
|
-
show:
|
|
321
|
+
show: t.userId !== "1"
|
|
322
322
|
}),
|
|
323
323
|
({ row: e }) => ({
|
|
324
324
|
default: "删除",
|
|
@@ -326,7 +326,7 @@ var w = /* @__PURE__ */ p({
|
|
|
326
326
|
popconfirm: {
|
|
327
327
|
content: "确认删除吗",
|
|
328
328
|
onConfirm: async () => {
|
|
329
|
-
await
|
|
329
|
+
await n.Delete(`system/user/${e.userId}`), a("删除成功"), E.value.query();
|
|
330
330
|
}
|
|
331
331
|
},
|
|
332
332
|
show: e.userId !== "1"
|
|
@@ -358,9 +358,9 @@ var w = /* @__PURE__ */ p({
|
|
|
358
358
|
operations: [{
|
|
359
359
|
default: "新增",
|
|
360
360
|
onClick: async () => {
|
|
361
|
-
let { posts:
|
|
362
|
-
|
|
363
|
-
body: () => m(
|
|
361
|
+
let { posts: t, roles: i } = await T(""), o = y(null);
|
|
362
|
+
e({
|
|
363
|
+
body: () => m(r, {
|
|
364
364
|
data: v({ status: "0" }),
|
|
365
365
|
items: [
|
|
366
366
|
D.nickName,
|
|
@@ -374,7 +374,7 @@ var w = /* @__PURE__ */ p({
|
|
|
374
374
|
D.status,
|
|
375
375
|
{
|
|
376
376
|
...D.postIds,
|
|
377
|
-
options:
|
|
377
|
+
options: t.map((e) => ({
|
|
378
378
|
disabled: e.status === "1",
|
|
379
379
|
label: e.postName,
|
|
380
380
|
value: e.postId
|
|
@@ -395,7 +395,7 @@ var w = /* @__PURE__ */ p({
|
|
|
395
395
|
header: "添加用户",
|
|
396
396
|
onConfirmCallback: async () => {
|
|
397
397
|
let e = await o.value.validate();
|
|
398
|
-
await
|
|
398
|
+
await n.Post("system/user", {
|
|
399
399
|
...e,
|
|
400
400
|
...VITE_APP_ID === "1" ? { userDeptIds: e.userDeptIds.join(",") } : {}
|
|
401
401
|
}), a.success("用户添加成功"), E.value.query();
|
|
@@ -407,13 +407,13 @@ var w = /* @__PURE__ */ p({
|
|
|
407
407
|
}, {
|
|
408
408
|
default: "导入",
|
|
409
409
|
onClick: async () => {
|
|
410
|
-
let
|
|
411
|
-
|
|
412
|
-
body: () => m(
|
|
410
|
+
let t = y(null);
|
|
411
|
+
e({
|
|
412
|
+
body: () => m(r, {
|
|
413
413
|
items: [{
|
|
414
414
|
_required: !0,
|
|
415
415
|
component: "TUpload",
|
|
416
|
-
downloadTemplate:
|
|
416
|
+
downloadTemplate: n.Post("system/user/importTemplate", {}, { meta: {
|
|
417
417
|
useDownload: "用户管理导入模板.xlsx",
|
|
418
418
|
useResponseBlob: !0
|
|
419
419
|
} }),
|
|
@@ -424,14 +424,14 @@ var w = /* @__PURE__ */ p({
|
|
|
424
424
|
label: "是否更新已经存在的用户数据",
|
|
425
425
|
model: "updateSupport"
|
|
426
426
|
}],
|
|
427
|
-
ref:
|
|
427
|
+
ref: t
|
|
428
428
|
}),
|
|
429
429
|
header: "导入用户",
|
|
430
430
|
onConfirmCallback: async () => {
|
|
431
|
-
let
|
|
432
|
-
await
|
|
431
|
+
let e = await t.value.validate();
|
|
432
|
+
await n.Post("system/user/importData", { file: e.file[0].raw }, {
|
|
433
433
|
meta: { useFormData: !0 },
|
|
434
|
-
params: { updateSupport:
|
|
434
|
+
params: { updateSupport: e.updateSupport }
|
|
435
435
|
}), E.value.query();
|
|
436
436
|
},
|
|
437
437
|
width: 480
|
package/views/tool/job/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F as e,
|
|
1
|
+
import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-DQIMA4mE.mjs";
|
|
2
2
|
import i from "../../../plugins/autoImport/$msg/index.mjs";
|
|
3
|
-
import { t as a } from "../../../chunks/page-list-
|
|
3
|
+
import { t as a } from "../../../chunks/page-list-BnGVTcad.mjs";
|
|
4
4
|
import "../../../components/page-list/index.mjs";
|
|
5
|
-
import { t as o } from "../../../chunks/Log-
|
|
5
|
+
import { t as o } from "../../../chunks/Log-DK5aduPG.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/tool/job/index.vue
|
|
@@ -126,12 +126,12 @@ var _ = /* @__PURE__ */ c({
|
|
|
126
126
|
title: "cron执行表达式"
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
|
-
cell: (
|
|
129
|
+
cell: (t, { row: r }) => ({
|
|
130
130
|
beforeChange: async () => {
|
|
131
|
-
let
|
|
132
|
-
return await
|
|
133
|
-
jobId:
|
|
134
|
-
status:
|
|
131
|
+
let t = r.status === "1" ? "启用" : "停用";
|
|
132
|
+
return await e(`确认${t}${r.jobName}任务吗?`), await n.Put("monitor/job/changeStatus", {
|
|
133
|
+
jobId: r.jobId,
|
|
134
|
+
status: r.status === "1" ? "0" : "1"
|
|
135
135
|
}, { meta: { useSuccessMsg: !0 } }), _.value.query(), !0;
|
|
136
136
|
},
|
|
137
137
|
component: "Switch",
|
|
@@ -143,14 +143,14 @@ var _ = /* @__PURE__ */ c({
|
|
|
143
143
|
{
|
|
144
144
|
cell: {
|
|
145
145
|
buttons: [
|
|
146
|
-
({ row:
|
|
146
|
+
({ row: t }) => ({
|
|
147
147
|
default: "编辑",
|
|
148
148
|
onClick: () => {
|
|
149
149
|
let a = p(null);
|
|
150
150
|
g(a, () => {
|
|
151
|
-
a.value.setFormData(
|
|
152
|
-
}, { once: !0 }),
|
|
153
|
-
body: () => l(
|
|
151
|
+
a.value.setFormData(t);
|
|
152
|
+
}, { once: !0 }), e({
|
|
153
|
+
body: () => l(r, {
|
|
154
154
|
items: [
|
|
155
155
|
v.jobName,
|
|
156
156
|
v.jobGroup,
|
|
@@ -164,9 +164,9 @@ var _ = /* @__PURE__ */ c({
|
|
|
164
164
|
}),
|
|
165
165
|
header: "修改任务",
|
|
166
166
|
onConfirmCallback: async () => {
|
|
167
|
-
await
|
|
167
|
+
await n.Put("monitor/job", {
|
|
168
168
|
...await a.value.validate(),
|
|
169
|
-
jobId:
|
|
169
|
+
jobId: t.jobId
|
|
170
170
|
}), i.success("任务修改成功"), _.value.query();
|
|
171
171
|
},
|
|
172
172
|
width: 730
|
|
@@ -180,21 +180,21 @@ var _ = /* @__PURE__ */ c({
|
|
|
180
180
|
popconfirm: {
|
|
181
181
|
content: `确认要立即执行一次${e.jobName}任务吗?`,
|
|
182
182
|
onConfirm: async () => {
|
|
183
|
-
await
|
|
183
|
+
await n.Put("monitor/job/run", {
|
|
184
184
|
jobGroup: e.jobGroup,
|
|
185
185
|
jobId: e.jobId
|
|
186
186
|
}, { meta: { useSuccessMsg: !0 } });
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
}),
|
|
190
|
-
({ row:
|
|
190
|
+
({ row: t }) => ({
|
|
191
191
|
default: "任务详细",
|
|
192
192
|
onClick: () => {
|
|
193
|
-
let
|
|
194
|
-
g(
|
|
195
|
-
|
|
196
|
-
}, { once: !0 }),
|
|
197
|
-
body: () => l(
|
|
193
|
+
let n = p(null);
|
|
194
|
+
g(n, () => {
|
|
195
|
+
n.value.setFormData(t);
|
|
196
|
+
}, { once: !0 }), e({
|
|
197
|
+
body: () => l(r, {
|
|
198
198
|
items: [
|
|
199
199
|
v.jobId,
|
|
200
200
|
v.jobName,
|
|
@@ -208,7 +208,7 @@ var _ = /* @__PURE__ */ c({
|
|
|
208
208
|
v.concurrent
|
|
209
209
|
],
|
|
210
210
|
readonly: !0,
|
|
211
|
-
ref:
|
|
211
|
+
ref: n
|
|
212
212
|
}),
|
|
213
213
|
footer: !1,
|
|
214
214
|
header: "任务详细",
|
|
@@ -217,11 +217,11 @@ var _ = /* @__PURE__ */ c({
|
|
|
217
217
|
},
|
|
218
218
|
permission: "monitor:job:query"
|
|
219
219
|
}),
|
|
220
|
-
({ row:
|
|
220
|
+
({ row: e }) => ({
|
|
221
221
|
default: "调度日志",
|
|
222
222
|
onClick: () => {
|
|
223
|
-
|
|
224
|
-
body: () => l(o, { id:
|
|
223
|
+
t({
|
|
224
|
+
body: () => l(o, { id: e.jobId }),
|
|
225
225
|
footer: !1,
|
|
226
226
|
header: "查看调度日志",
|
|
227
227
|
width: 1500
|
|
@@ -247,9 +247,9 @@ var _ = /* @__PURE__ */ c({
|
|
|
247
247
|
operations: [{
|
|
248
248
|
default: "新增",
|
|
249
249
|
onClick: () => {
|
|
250
|
-
let
|
|
251
|
-
|
|
252
|
-
body: () => l(
|
|
250
|
+
let t = p(null);
|
|
251
|
+
e({
|
|
252
|
+
body: () => l(r, {
|
|
253
253
|
data: f({
|
|
254
254
|
concurrent: "1",
|
|
255
255
|
misfirePolicy: "1",
|
|
@@ -263,11 +263,11 @@ var _ = /* @__PURE__ */ c({
|
|
|
263
263
|
v.misfirePolicy,
|
|
264
264
|
v.concurrent
|
|
265
265
|
],
|
|
266
|
-
ref:
|
|
266
|
+
ref: t
|
|
267
267
|
}),
|
|
268
268
|
header: "新增任务",
|
|
269
269
|
onConfirmCallback: async () => {
|
|
270
|
-
await
|
|
270
|
+
await n.Post("monitor/job", await t.value.validate()), i.success("任务新增成功"), _.value.query();
|
|
271
271
|
},
|
|
272
272
|
width: 730
|
|
273
273
|
});
|
|
@@ -276,7 +276,7 @@ var _ = /* @__PURE__ */ c({
|
|
|
276
276
|
}, {
|
|
277
277
|
default: "日志",
|
|
278
278
|
onClick: () => {
|
|
279
|
-
|
|
279
|
+
t({
|
|
280
280
|
body: () => l(o),
|
|
281
281
|
footer: !1,
|
|
282
282
|
header: "查看调度日志",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/Log-
|
|
1
|
+
import { t as e } from "../../../../chunks/Log-DK5aduPG.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.logo[data-v-bf909017]{max-width:200px;max-height:100px;position:absolute;top:25px;left:25px}.bg_inner[data-v-bf909017]{width:calc(12% + 860px);max-width:96%;height:450px}.login_form_wrapper[data-v-bf909017]{width:430px;max-width:100%}@media screen and (width<=1100px){.left_banner[data-v-bf909017]{display:none}.bg_inner[data-v-bf909017]{justify-content:center}}
|