dlzn-ui 2.0.90 → 2.0.91
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/pagination-BpKuirTF.css +1 -0
- package/assets/table-CVArV2Pt.css +1 -0
- package/chunks/{AssignUser-C1TJqI7T.mjs → AssignUser-Cba5vAl1.mjs} +14 -14
- package/chunks/{BasicInfo-ieKCaGwH.mjs → BasicInfo-Bvq-HQJ_.mjs} +1 -1
- package/chunks/{ColumnInfo-BhkorfJI.mjs → ColumnInfo-CRLX-mvV.mjs} +2 -2
- package/chunks/{Common-BvSQiKo2.mjs → Common-Bq9qdi2i.mjs} +1 -1
- package/chunks/{Day-CTBFWJIV.mjs → Day-BUVcUtFu.mjs} +1 -1
- package/chunks/{DictTypeDetail-BgfdUvJ-.mjs → DictTypeDetail-BcE2-B5V.mjs} +8 -8
- package/chunks/{GenInfo-hM-odgqv.mjs → GenInfo-DJq_EewR.mjs} +1 -1
- package/chunks/{Hour-BCoOdrBX.mjs → Hour-CwQQPXaR.mjs} +1 -1
- package/chunks/{Import-DXsRyeub.mjs → Import-rJdKqVqG.mjs} +2 -2
- package/chunks/{Index-DZAUiAs7.mjs → Index-C_K9w486.mjs} +1 -1
- package/chunks/{Index-_rLBm48m.mjs → Index-DVPHy-2h.mjs} +1 -1
- package/chunks/{Index-CrYhNcWE.mjs → Index-Wsuv1_GI.mjs} +1 -1
- package/chunks/{Index-C8rKiUnc.mjs → Index-xm96pJY-.mjs} +1 -1
- package/chunks/{IndexItem-BERW_4wf.mjs → IndexItem-mkv5naiz.mjs} +1 -1
- package/chunks/{Log-BgqKjZhH.mjs → Log-i0vc4tLi.mjs} +11 -11
- package/chunks/{LoginBg-DbmOre6P.mjs → LoginBg-BtYLzpau.mjs} +1 -1
- package/chunks/{Minute-Br6DyEnJ.mjs → Minute-DVOyQfoM.mjs} +1 -1
- package/chunks/{Month-BSkP_NNE.mjs → Month-C9EsJdGm.mjs} +1 -1
- package/chunks/{Preview-Dq6tVW4P.mjs → Preview-DT31fnBR.mjs} +1 -1
- package/chunks/{Second-BaOHtpcm.mjs → Second-2dWCZLjn.mjs} +1 -1
- package/chunks/{SelectDept-JdE01RJl.mjs → SelectDept-C_mJ04_S.mjs} +1 -1
- package/chunks/{SelectMenu-CBGt2RrU.mjs → SelectMenu-D_SA_EiZ.mjs} +1 -1
- package/chunks/{SelectUser-CQpx2HzJ.mjs → SelectUser-DLAbDQ8W.mjs} +2 -2
- package/chunks/{UserInfo-tWIden6Y.mjs → UserInfo-Dl2INqhu.mjs} +9 -9
- package/chunks/{app-dUSiq7Ru.mjs → app-MIQr7kNK.mjs} +1 -1
- package/chunks/{custom-page-list-CUeAAYEa.mjs → custom-page-list-DHK_NW0i.mjs} +4 -4
- package/chunks/{custom-page-table-C-gi7OGt.mjs → custom-page-table-1gOvwcJL.mjs} +2 -2
- package/chunks/{job-DnYhSDP4.mjs → job-D6_vm6Ii.mjs} +24 -24
- package/chunks/{overview-D_tbwhqT.mjs → overview-amJc1B-Y.mjs} +1 -1
- package/chunks/{page-list-VSe1LOfK.mjs → page-list-nd2K6s0p.mjs} +3 -3
- package/chunks/{page-query-8XmyQiCK.mjs → page-query-Bp2Wfk95.mjs} +1 -1
- package/chunks/{page-table-BdNBjt_k.mjs → page-table-Bgq2mekF.mjs} +57 -57
- package/chunks/{pagination-BOb4D8uP.mjs → pagination-BlUizDPX.mjs} +3 -3
- package/chunks/{provider-CQbOYjc5.mjs → provider-6bwbdidw.mjs} +245 -245
- package/chunks/{table-BEeznK4Y.mjs → table-C-19SNwB.mjs} +40 -38
- 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/dialog/index.mjs +1 -1
- package/components/dialog/src/dialog.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/index.mjs +10 -10
- 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.d.ts +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 +1 -1
- package/layout/Home.mjs +5 -5
- package/layout/Home1.mjs +2 -2
- package/layout/Login.mjs +3 -3
- 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/profile/Index.mjs +2 -2
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/main.mjs +3 -3
- package/package.json +1 -1
- package/plugins/autoImport/$alova/index.d.ts +1 -0
- 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 +21 -19
- 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/index.mjs +3 -3
- 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/monitor/cache/index.mjs +2 -2
- package/views/monitor/cacheList/index.mjs +2 -2
- package/views/monitor/job/index.mjs +1 -1
- package/views/monitor/logininfor/index.mjs +2 -2
- package/views/monitor/online/index.mjs +2 -2
- package/views/monitor/operlog/index.mjs +10 -10
- package/views/monitor/server/index.mjs +2 -2
- package/views/system/config/index.mjs +11 -11
- package/views/system/dept/index.mjs +15 -15
- package/views/system/dept/utils.mjs +1 -1
- package/views/system/dict/index.mjs +15 -15
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +19 -19
- package/views/system/menu/utils.mjs +1 -1
- package/views/system/notice/index.mjs +6 -6
- package/views/system/post/index.mjs +6 -6
- package/views/system/role/index.mjs +31 -31
- 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 +41 -41
- package/views/tool/gen/editTable/index.mjs +14 -14
- package/views/tool/gen/editTable/modules/BasicInfo.mjs +1 -1
- package/views/tool/gen/editTable/modules/ColumnInfo.mjs +1 -1
- package/views/tool/gen/editTable/modules/GenInfo.mjs +1 -1
- package/views/tool/gen/index.mjs +11 -11
- package/views/tool/gen/modules/Import.mjs +1 -1
- package/views/tool/gen/modules/Preview.mjs +1 -1
- package/views/tool/job/index.mjs +1 -1
- package/views/tool/job/modules/Log.mjs +1 -1
- package/assets/pagination-B9tRH6dt.css +0 -1
- package/assets/table-Dq4nevWy.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "../../../../chunks/DictTypeDetail-
|
|
1
|
+
export { t as default } from "../../../../chunks/DictTypeDetail-BcE2-B5V.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as e, S as t, n, o as r } from "../../../chunks/provider-6bwbdidw.mjs";
|
|
2
2
|
import { t as i } from "../../../chunks/icon-DnBGEq-n.mjs";
|
|
3
3
|
import "../../../components/icon/index.mjs";
|
|
4
4
|
import { isFalsy as a } from "../../../utils/boolean.mjs";
|
|
5
5
|
import "../../../components/page-list/index.mjs";
|
|
6
6
|
import { flatArrToTree as o } from "../../../utils/tree.mjs";
|
|
7
7
|
import s from "../../../plugins/autoImport/$msg/index.mjs";
|
|
8
|
-
import { t as c } from "../../../chunks/page-list-
|
|
8
|
+
import { t as c } from "../../../chunks/page-list-nd2K6s0p.mjs";
|
|
9
9
|
import "../../../chunks/utils-SvnLuaWm.mjs";
|
|
10
10
|
import { useMenuTree as l } from "./utils.mjs";
|
|
11
11
|
import { createBlock as u, defineComponent as d, h as f, mergeProps as p, openBlock as m, reactive as h, ref as g, unref as _, useTemplateRef as v, watch as y } from "vue";
|
|
@@ -158,9 +158,9 @@ var b = /* @__PURE__ */ d({
|
|
|
158
158
|
method: "system/menu",
|
|
159
159
|
permission: "system:menu:remove"
|
|
160
160
|
},
|
|
161
|
-
list: { method: (
|
|
161
|
+
list: { method: (e) => t.Get("system/menu/list", {
|
|
162
162
|
params: {
|
|
163
|
-
...
|
|
163
|
+
...e,
|
|
164
164
|
pageNum: void 0,
|
|
165
165
|
pageSize: void 0
|
|
166
166
|
},
|
|
@@ -243,7 +243,7 @@ var b = /* @__PURE__ */ d({
|
|
|
243
243
|
...n,
|
|
244
244
|
parentId: n.parentId === "0" ? "" : n.parentId
|
|
245
245
|
}, { numberToStringKeys: ["isFrame"] });
|
|
246
|
-
}, { once: !0 }),
|
|
246
|
+
}, { once: !0 }), e({
|
|
247
247
|
body: () => f(r, {
|
|
248
248
|
data: h({
|
|
249
249
|
isCache: "0",
|
|
@@ -268,7 +268,7 @@ var b = /* @__PURE__ */ d({
|
|
|
268
268
|
}),
|
|
269
269
|
header: "编辑菜单",
|
|
270
270
|
onConfirmCallback: async () => {
|
|
271
|
-
let
|
|
271
|
+
let e = await i.value.validate();
|
|
272
272
|
[
|
|
273
273
|
"component",
|
|
274
274
|
"perms",
|
|
@@ -277,12 +277,12 @@ var b = /* @__PURE__ */ d({
|
|
|
277
277
|
"isCache",
|
|
278
278
|
"path",
|
|
279
279
|
"isFrame"
|
|
280
|
-
].forEach((
|
|
281
|
-
|
|
282
|
-
}), T(
|
|
283
|
-
...
|
|
280
|
+
].forEach((t) => {
|
|
281
|
+
t in e || (e[t] = "");
|
|
282
|
+
}), T(e), await t.Put("system/menu", {
|
|
283
|
+
...e,
|
|
284
284
|
menuId: n.menuId,
|
|
285
|
-
parentId: a(
|
|
285
|
+
parentId: a(e.parentId) ? "0" : e.parentId
|
|
286
286
|
}), x(), s.success("菜单修改成功"), S.value.query();
|
|
287
287
|
},
|
|
288
288
|
width: 730
|
|
@@ -293,7 +293,7 @@ var b = /* @__PURE__ */ d({
|
|
|
293
293
|
default: "新增",
|
|
294
294
|
onClick: () => {
|
|
295
295
|
let i = g(null);
|
|
296
|
-
|
|
296
|
+
e({
|
|
297
297
|
body: () => f(r, {
|
|
298
298
|
data: h({
|
|
299
299
|
isCache: "0",
|
|
@@ -324,8 +324,8 @@ var b = /* @__PURE__ */ d({
|
|
|
324
324
|
}),
|
|
325
325
|
header: "新增菜单",
|
|
326
326
|
onConfirmCallback: async () => {
|
|
327
|
-
let
|
|
328
|
-
T(
|
|
327
|
+
let e = await i.value.validate();
|
|
328
|
+
T(e), await t.Post("system/menu", e), x(), s.success("菜单修改成功"), S.value.query();
|
|
329
329
|
},
|
|
330
330
|
width: 730
|
|
331
331
|
});
|
|
@@ -346,7 +346,7 @@ var b = /* @__PURE__ */ d({
|
|
|
346
346
|
default: "新增",
|
|
347
347
|
onClick: () => {
|
|
348
348
|
let n = g(null);
|
|
349
|
-
|
|
349
|
+
e({
|
|
350
350
|
body: () => f(r, {
|
|
351
351
|
data: h({
|
|
352
352
|
isCache: "0",
|
|
@@ -373,10 +373,10 @@ var b = /* @__PURE__ */ d({
|
|
|
373
373
|
}),
|
|
374
374
|
header: "添加菜单",
|
|
375
375
|
onConfirmCallback: async () => {
|
|
376
|
-
let
|
|
377
|
-
T(
|
|
378
|
-
...
|
|
379
|
-
parentId: a(
|
|
376
|
+
let e = await n.value.validate();
|
|
377
|
+
T(e), await t.Post("system/menu", {
|
|
378
|
+
...e,
|
|
379
|
+
parentId: a(e.parentId) ? "0" : e.parentId
|
|
380
380
|
}), x(), s.success("菜单添加成功"), S.value.query();
|
|
381
381
|
},
|
|
382
382
|
width: 730
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as e } from "../../../chunks/provider-
|
|
1
|
+
import { S as e } from "../../../chunks/provider-6bwbdidw.mjs";
|
|
2
2
|
import "../../../chunks/utils-SvnLuaWm.mjs";
|
|
3
3
|
import { flatArrToTree as t } from "../../../utils/tree.mjs";
|
|
4
4
|
import { useRequest as n } from "alova/client";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as e, S as t, o as n } from "../../../chunks/provider-6bwbdidw.mjs";
|
|
2
2
|
import "../../../components/page-list/index.mjs";
|
|
3
|
-
import { t as r } from "../../../chunks/page-list-
|
|
3
|
+
import { t as r } from "../../../chunks/page-list-nd2K6s0p.mjs";
|
|
4
4
|
import i from "../../../plugins/autoImport/$msg/index.mjs";
|
|
5
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
6
|
// ../../packages/dlzn-ui/views/system/notice/index.vue
|
|
@@ -88,7 +88,7 @@ var h = /* @__PURE__ */ o({
|
|
|
88
88
|
let a = d(null);
|
|
89
89
|
m(a, () => {
|
|
90
90
|
a.value.setFormData(r);
|
|
91
|
-
}, { once: !0 }),
|
|
91
|
+
}, { once: !0 }), e({
|
|
92
92
|
body: () => s(n, {
|
|
93
93
|
items: _,
|
|
94
94
|
labelAlign: "right",
|
|
@@ -97,7 +97,7 @@ var h = /* @__PURE__ */ o({
|
|
|
97
97
|
}),
|
|
98
98
|
header: "修改公告",
|
|
99
99
|
onConfirmCallback: async () => {
|
|
100
|
-
await
|
|
100
|
+
await t.Put("system/notice", {
|
|
101
101
|
...await a.value.validate(),
|
|
102
102
|
noticeId: r.noticeId
|
|
103
103
|
}), i.success("公告修改成功"), h.value.query();
|
|
@@ -122,7 +122,7 @@ var h = /* @__PURE__ */ o({
|
|
|
122
122
|
default: "新增",
|
|
123
123
|
onClick: () => {
|
|
124
124
|
let r = d(null);
|
|
125
|
-
|
|
125
|
+
e({
|
|
126
126
|
body: () => s(n, {
|
|
127
127
|
data: u({ status: "0" }),
|
|
128
128
|
items: _,
|
|
@@ -132,7 +132,7 @@ var h = /* @__PURE__ */ o({
|
|
|
132
132
|
}),
|
|
133
133
|
header: "添加公告",
|
|
134
134
|
onConfirmCallback: async () => {
|
|
135
|
-
await
|
|
135
|
+
await t.Post("system/notice", await r.value.validate()), i.success("公告添加成功"), h.value.query();
|
|
136
136
|
},
|
|
137
137
|
width: 460
|
|
138
138
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as e, S as t, o as n } from "../../../chunks/provider-6bwbdidw.mjs";
|
|
2
2
|
import "../../../components/page-list/index.mjs";
|
|
3
|
-
import { t as r } from "../../../chunks/page-list-
|
|
3
|
+
import { t as r } from "../../../chunks/page-list-nd2K6s0p.mjs";
|
|
4
4
|
import i from "../../../plugins/autoImport/$msg/index.mjs";
|
|
5
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
6
|
// ../../packages/dlzn-ui/views/system/post/index.vue
|
|
@@ -100,7 +100,7 @@ var h = /* @__PURE__ */ o({
|
|
|
100
100
|
let a = d(null);
|
|
101
101
|
m(a, () => {
|
|
102
102
|
a.value.setFormData(r);
|
|
103
|
-
}, { once: !0 }),
|
|
103
|
+
}, { once: !0 }), e({
|
|
104
104
|
body: () => s(n, {
|
|
105
105
|
items: [
|
|
106
106
|
g.postCode,
|
|
@@ -118,7 +118,7 @@ var h = /* @__PURE__ */ o({
|
|
|
118
118
|
}),
|
|
119
119
|
header: "修改岗位",
|
|
120
120
|
onConfirmCallback: async () => {
|
|
121
|
-
await
|
|
121
|
+
await t.Put("system/post", {
|
|
122
122
|
...await a.value.validate(),
|
|
123
123
|
postId: r.postId
|
|
124
124
|
}), i.success("岗位修改成功"), h.value.query();
|
|
@@ -143,7 +143,7 @@ var h = /* @__PURE__ */ o({
|
|
|
143
143
|
default: "新增",
|
|
144
144
|
onClick: () => {
|
|
145
145
|
let r = d(null);
|
|
146
|
-
|
|
146
|
+
e({
|
|
147
147
|
body: () => s(n, {
|
|
148
148
|
data: u({ status: "0" }),
|
|
149
149
|
items: [
|
|
@@ -162,7 +162,7 @@ var h = /* @__PURE__ */ o({
|
|
|
162
162
|
}),
|
|
163
163
|
header: "添加岗位",
|
|
164
164
|
onConfirmCallback: async () => {
|
|
165
|
-
await
|
|
165
|
+
await t.Post("system/post", await r.value.validate()), i.success("岗位添加成功"), h.value.query();
|
|
166
166
|
},
|
|
167
167
|
width: 430
|
|
168
168
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { H as e, S as t,
|
|
1
|
+
import { H as e, S as t, U as n, o as r } from "../../../chunks/provider-6bwbdidw.mjs";
|
|
2
2
|
import "../../../components/page-list/index.mjs";
|
|
3
|
-
import { t as i } from "../../../chunks/page-list-
|
|
3
|
+
import { t as i } from "../../../chunks/page-list-nd2K6s0p.mjs";
|
|
4
4
|
import a from "../../../plugins/autoImport/$msg/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-Cba5vAl1.mjs";
|
|
6
|
+
import { t as s } from "../../../chunks/SelectDept-C_mJ04_S.mjs";
|
|
7
|
+
import { t as c } from "../../../chunks/SelectMenu-D_SA_EiZ.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
|
// ../../packages/dlzn-ui/views/system/role/index.vue
|
|
10
10
|
var y = /* @__PURE__ */ u({
|
|
@@ -85,10 +85,10 @@ var y = /* @__PURE__ */ u({
|
|
|
85
85
|
title: "显示顺序"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
|
-
cell: (
|
|
88
|
+
cell: (n, { row: r }) => ({
|
|
89
89
|
beforeChange: async () => {
|
|
90
|
-
let
|
|
91
|
-
return await
|
|
90
|
+
let n = r.status === "1" ? "启用" : "停用";
|
|
91
|
+
return await e(`确认${n}${r.roleName}角色吗?`), await t.Put("system/role/changeStatus", {
|
|
92
92
|
roleId: r.roleId,
|
|
93
93
|
status: r.status === "1" ? "0" : "1"
|
|
94
94
|
}, { meta: { useSuccessMsg: !0 } }), y.value.query(), !0;
|
|
@@ -123,11 +123,11 @@ var y = /* @__PURE__ */ u({
|
|
|
123
123
|
{
|
|
124
124
|
cell: {
|
|
125
125
|
buttons: [
|
|
126
|
-
({ row:
|
|
126
|
+
({ row: n }) => ({
|
|
127
127
|
default: "编辑",
|
|
128
128
|
onClick: async () => {
|
|
129
|
-
let { checkedKeys: i, menus: o } = await t.Get(`system/menu/roleMenuTreeselect/${
|
|
130
|
-
if (
|
|
129
|
+
let { checkedKeys: i, menus: o } = await t.Get(`system/menu/roleMenuTreeselect/${n.roleId}`), s = h(null);
|
|
130
|
+
if (n.menuCheckStrictly) {
|
|
131
131
|
let e = (t) => t.some((t) => t.children && e(t.children) || i.includes(t.id)), t = (n) => {
|
|
132
132
|
n.forEach((n) => {
|
|
133
133
|
n.children && (e(n.children) && (i.includes(n.id) || i.push(n.id)), t(n.children));
|
|
@@ -136,8 +136,8 @@ var y = /* @__PURE__ */ u({
|
|
|
136
136
|
t(o);
|
|
137
137
|
}
|
|
138
138
|
v(s, () => {
|
|
139
|
-
s.value.setFormData(
|
|
140
|
-
}, { once: !0 }),
|
|
139
|
+
s.value.setFormData(n);
|
|
140
|
+
}, { once: !0 }), e({
|
|
141
141
|
body: () => d(r, {
|
|
142
142
|
data: m({ menuIds: i }),
|
|
143
143
|
items: [
|
|
@@ -155,20 +155,20 @@ var y = /* @__PURE__ */ u({
|
|
|
155
155
|
await t.Put("system/role", {
|
|
156
156
|
...await s.value.validate(),
|
|
157
157
|
menuCheckStrictly: !1,
|
|
158
|
-
roleId:
|
|
158
|
+
roleId: n.roleId
|
|
159
159
|
}), a.success("角色修改成功"), y.value.query();
|
|
160
160
|
},
|
|
161
161
|
width: 730
|
|
162
162
|
});
|
|
163
163
|
},
|
|
164
164
|
permission: "system:role:edit",
|
|
165
|
-
show:
|
|
165
|
+
show: n.roleId !== "1"
|
|
166
166
|
}),
|
|
167
|
-
({ row:
|
|
167
|
+
({ row: n }) => ({
|
|
168
168
|
default: "数据权限",
|
|
169
169
|
onClick: async () => {
|
|
170
|
-
let { checkedKeys: i, depts: o } = await t.Get(`system/role/deptTree/${
|
|
171
|
-
if (
|
|
170
|
+
let { checkedKeys: i, depts: o } = await t.Get(`system/role/deptTree/${n.roleId}`), c = h(null);
|
|
171
|
+
if (n.deptCheckStrictly) {
|
|
172
172
|
let e = (t) => t.some((t) => t.children && e(t.children) || i.includes(t.id)), t = (n) => {
|
|
173
173
|
n.forEach((n) => {
|
|
174
174
|
n.children && (e(n.children) && (i.includes(n.id) || i.push(n.id)), t(n.children));
|
|
@@ -177,8 +177,8 @@ var y = /* @__PURE__ */ u({
|
|
|
177
177
|
t(o);
|
|
178
178
|
}
|
|
179
179
|
v(c, () => {
|
|
180
|
-
c.value.setFormData(
|
|
181
|
-
}, { once: !0 }),
|
|
180
|
+
c.value.setFormData(n);
|
|
181
|
+
}, { once: !0 }), e({
|
|
182
182
|
body: () => d(r, {
|
|
183
183
|
data: m({ deptIds: i }),
|
|
184
184
|
items: [
|
|
@@ -213,33 +213,33 @@ var y = /* @__PURE__ */ u({
|
|
|
213
213
|
],
|
|
214
214
|
ref: c
|
|
215
215
|
}, { dept_ids: () => d(s, { deptOptions: o }) }),
|
|
216
|
-
header: `给${
|
|
216
|
+
header: `给${n.roleName}分配数据权限`,
|
|
217
217
|
onConfirmCallback: async () => {
|
|
218
218
|
await t.Put("system/role/dataScope", {
|
|
219
219
|
deptIds: [],
|
|
220
220
|
...await c.value.validate(),
|
|
221
221
|
deptCheckStrictly: !1,
|
|
222
|
-
roleId:
|
|
222
|
+
roleId: n.roleId
|
|
223
223
|
}), a.success("数据权限分配成功"), y.value.query();
|
|
224
224
|
},
|
|
225
225
|
width: 430
|
|
226
226
|
});
|
|
227
227
|
},
|
|
228
228
|
permission: "system:role:edit",
|
|
229
|
-
show:
|
|
229
|
+
show: n.roleId !== "1"
|
|
230
230
|
}),
|
|
231
|
-
({ row:
|
|
231
|
+
({ row: e }) => ({
|
|
232
232
|
default: "分配用户",
|
|
233
233
|
onClick: async () => {
|
|
234
|
-
|
|
235
|
-
body: () => d(o, { roleId:
|
|
234
|
+
n({
|
|
235
|
+
body: () => d(o, { roleId: e.roleId }),
|
|
236
236
|
footer: !1,
|
|
237
|
-
header: `给${
|
|
237
|
+
header: `给${e.roleName}分配用户`,
|
|
238
238
|
width: 1500
|
|
239
239
|
});
|
|
240
240
|
},
|
|
241
241
|
permission: "system:role:edit",
|
|
242
|
-
show:
|
|
242
|
+
show: e.roleId !== "1"
|
|
243
243
|
}),
|
|
244
244
|
({ row: e }) => ({
|
|
245
245
|
default: "删除",
|
|
@@ -277,8 +277,8 @@ var y = /* @__PURE__ */ u({
|
|
|
277
277
|
operations: [{
|
|
278
278
|
default: "新增",
|
|
279
279
|
onClick: async () => {
|
|
280
|
-
let
|
|
281
|
-
|
|
280
|
+
let n = await t.Get("system/menu/treeselect"), i = h(null);
|
|
281
|
+
e({
|
|
282
282
|
body: () => d(r, {
|
|
283
283
|
data: m({
|
|
284
284
|
menuIds: [],
|
|
@@ -293,7 +293,7 @@ var y = /* @__PURE__ */ u({
|
|
|
293
293
|
b.remark
|
|
294
294
|
],
|
|
295
295
|
ref: i
|
|
296
|
-
}, { menu_ids: () => d(c, { menuOptions:
|
|
296
|
+
}, { menu_ids: () => d(c, { menuOptions: n }) }),
|
|
297
297
|
header: "添加角色",
|
|
298
298
|
onConfirmCallback: async () => {
|
|
299
299
|
await t.Post("system/role", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "../../../../chunks/AssignUser-
|
|
1
|
+
export { t as default } from "../../../../chunks/AssignUser-Cba5vAl1.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "../../../../chunks/SelectDept-
|
|
1
|
+
export { t as default } from "../../../../chunks/SelectDept-C_mJ04_S.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "../../../../chunks/SelectMenu-
|
|
1
|
+
export { t as default } from "../../../../chunks/SelectMenu-D_SA_EiZ.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "../../../../chunks/SelectUser-
|
|
1
|
+
export { t as default } from "../../../../chunks/SelectUser-DLAbDQ8W.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as e, P as t, S as n, o as r } from "../../../chunks/provider-6bwbdidw.mjs";
|
|
2
2
|
import "../../../components/page-list/index.mjs";
|
|
3
3
|
import "../../../components/table/index.mjs";
|
|
4
4
|
import { passwordReg as i, passwordRegMessage as a } from "../../../constants/regs.mjs";
|
|
5
|
-
import { t as o } from "../../../chunks/table-
|
|
5
|
+
import { t as o } from "../../../chunks/table-C-19SNwB.mjs";
|
|
6
6
|
import s from "../../../plugins/autoImport/$msg/index.mjs";
|
|
7
|
-
import { t as c } from "../../../chunks/page-list-
|
|
7
|
+
import { t as c } from "../../../chunks/page-list-nd2K6s0p.mjs";
|
|
8
8
|
import { n as l } from "../../../chunks/useAppContext-DAxNLHY9.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: E } = C((e) =>
|
|
25
|
+
let { send: E } = C((e) => n.Get(`system/user/${e}`, { meta: { useDataResult: !1 } }), { immediate: !1 }), D = x("pageListRef"), O = {
|
|
26
26
|
deptId: v({
|
|
27
27
|
_label: "归属部门",
|
|
28
28
|
_required: !0,
|
|
@@ -120,7 +120,7 @@ var w = /* @__PURE__ */ p({
|
|
|
120
120
|
method: "system/user/export",
|
|
121
121
|
permission: "system:user:export"
|
|
122
122
|
},
|
|
123
|
-
list: { method: (e) =>
|
|
123
|
+
list: { method: (e) => n.Get("system/user/list", { params: {
|
|
124
124
|
...e,
|
|
125
125
|
dateRange: void 0,
|
|
126
126
|
"params[beginTime]": e.dateRange[0] ?? "",
|
|
@@ -160,10 +160,10 @@ var w = /* @__PURE__ */ p({
|
|
|
160
160
|
title: "手机号码"
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
|
-
cell: (
|
|
163
|
+
cell: (t, { row: r }) => ({
|
|
164
164
|
beforeChange: async () => {
|
|
165
|
-
let
|
|
166
|
-
return await
|
|
165
|
+
let t = r.status === "1" ? "启用" : "停用";
|
|
166
|
+
return await e(`确认${t}${r.userName}用户吗?`), await n.Put("system/user/changeStatus", {
|
|
167
167
|
status: r.status === "1" ? "0" : "1",
|
|
168
168
|
userId: r.userId
|
|
169
169
|
}, { meta: { useSuccessMsg: !0 } }), D.value.query(), !0;
|
|
@@ -203,7 +203,7 @@ var w = /* @__PURE__ */ p({
|
|
|
203
203
|
let { data: a, postIds: o, posts: c, roleIds: l, roles: u } = await E(i.userId), d = y(null);
|
|
204
204
|
S(d, () => {
|
|
205
205
|
d.value.setFormData(a, { splitToArrKeys: VITE_APP_ID === "1" ? ["userDeptIds"] : [] });
|
|
206
|
-
}, { once: !0 }),
|
|
206
|
+
}, { once: !0 }), e({
|
|
207
207
|
body: () => m(r, {
|
|
208
208
|
data: v({
|
|
209
209
|
postIds: o,
|
|
@@ -240,13 +240,13 @@ var w = /* @__PURE__ */ p({
|
|
|
240
240
|
}),
|
|
241
241
|
header: "修改用户",
|
|
242
242
|
onConfirmCallback: async () => {
|
|
243
|
-
let
|
|
244
|
-
await
|
|
245
|
-
...
|
|
246
|
-
...VITE_APP_ID === "1" ? { userDeptIds:
|
|
243
|
+
let e = await d.value.validate();
|
|
244
|
+
await n.Put("system/user", {
|
|
245
|
+
...e,
|
|
246
|
+
...VITE_APP_ID === "1" ? { userDeptIds: e.userDeptIds.join(",") } : {},
|
|
247
247
|
userId: a.userId,
|
|
248
248
|
userName: a.userName
|
|
249
|
-
}),
|
|
249
|
+
}), t(a.userId), s.success("用户修改成功"), D.value.query();
|
|
250
250
|
},
|
|
251
251
|
width: 730
|
|
252
252
|
});
|
|
@@ -254,11 +254,11 @@ var w = /* @__PURE__ */ p({
|
|
|
254
254
|
permission: "system:user:edit",
|
|
255
255
|
show: i.userId !== "1"
|
|
256
256
|
}),
|
|
257
|
-
({ row:
|
|
257
|
+
({ row: t }) => ({
|
|
258
258
|
default: "重置密码",
|
|
259
259
|
onClick: async () => {
|
|
260
260
|
let o = y(null);
|
|
261
|
-
|
|
261
|
+
e({
|
|
262
262
|
body: () => m(r, {
|
|
263
263
|
items: [{
|
|
264
264
|
_required: !0,
|
|
@@ -272,25 +272,25 @@ var w = /* @__PURE__ */ p({
|
|
|
272
272
|
}],
|
|
273
273
|
ref: o
|
|
274
274
|
}),
|
|
275
|
-
header: `请输入${
|
|
275
|
+
header: `请输入${t.userName}用户的新密码`,
|
|
276
276
|
onConfirmCallback: async () => {
|
|
277
|
-
let
|
|
278
|
-
await
|
|
279
|
-
password:
|
|
280
|
-
userId:
|
|
281
|
-
}), l(`密码修改成功,新密码是:${
|
|
277
|
+
let e = (await o.value.validate()).newPassword;
|
|
278
|
+
await n.Put("system/user/resetPwd", {
|
|
279
|
+
password: e,
|
|
280
|
+
userId: t.userId
|
|
281
|
+
}), l(`密码修改成功,新密码是:${e}`), D.value.query();
|
|
282
282
|
},
|
|
283
283
|
width: 430
|
|
284
284
|
});
|
|
285
285
|
},
|
|
286
286
|
permission: "system:user:resetPwd",
|
|
287
|
-
show:
|
|
287
|
+
show: t.userId !== "1"
|
|
288
288
|
}),
|
|
289
|
-
({ row:
|
|
289
|
+
({ row: t }) => ({
|
|
290
290
|
default: "分配角色",
|
|
291
291
|
onClick: async () => {
|
|
292
|
-
let { roles: r, user: i } = await
|
|
293
|
-
|
|
292
|
+
let { roles: r, user: i } = await n.Get(`system/user/authRole/${t.userId}`), a = y(null);
|
|
293
|
+
e({
|
|
294
294
|
body: () => m(o, {
|
|
295
295
|
columns: [
|
|
296
296
|
{
|
|
@@ -322,11 +322,11 @@ var w = /* @__PURE__ */ p({
|
|
|
322
322
|
}),
|
|
323
323
|
header: `为用户${i.nickName}(${i.userName})分配角色`,
|
|
324
324
|
onConfirmCallback: async () => {
|
|
325
|
-
await
|
|
325
|
+
await n.Put("system/user/authRole", {}, {
|
|
326
326
|
meta: { useSuccessMsg: !0 },
|
|
327
327
|
params: {
|
|
328
328
|
roleIds: a.value.selectedRowKeys.join(","),
|
|
329
|
-
userId:
|
|
329
|
+
userId: t.userId
|
|
330
330
|
}
|
|
331
331
|
}), D.value.query();
|
|
332
332
|
},
|
|
@@ -334,7 +334,7 @@ var w = /* @__PURE__ */ p({
|
|
|
334
334
|
});
|
|
335
335
|
},
|
|
336
336
|
permission: "system:user:edit",
|
|
337
|
-
show:
|
|
337
|
+
show: t.userId !== "1"
|
|
338
338
|
}),
|
|
339
339
|
({ row: e }) => ({
|
|
340
340
|
default: "删除",
|
|
@@ -342,7 +342,7 @@ var w = /* @__PURE__ */ p({
|
|
|
342
342
|
popconfirm: {
|
|
343
343
|
content: "确认删除吗",
|
|
344
344
|
onConfirm: async () => {
|
|
345
|
-
await
|
|
345
|
+
await n.Delete(`system/user/${e.userId}`), s("删除成功"), D.value.query();
|
|
346
346
|
}
|
|
347
347
|
},
|
|
348
348
|
show: e.userId !== "1"
|
|
@@ -376,8 +376,8 @@ var w = /* @__PURE__ */ p({
|
|
|
376
376
|
{
|
|
377
377
|
default: "新增",
|
|
378
378
|
onClick: async () => {
|
|
379
|
-
let { posts:
|
|
380
|
-
|
|
379
|
+
let { posts: t, roles: i } = await E(""), a = y(null);
|
|
380
|
+
e({
|
|
381
381
|
body: () => m(r, {
|
|
382
382
|
data: v({ status: "0" }),
|
|
383
383
|
items: [
|
|
@@ -393,7 +393,7 @@ var w = /* @__PURE__ */ p({
|
|
|
393
393
|
O.status,
|
|
394
394
|
{
|
|
395
395
|
...O.postIds,
|
|
396
|
-
options:
|
|
396
|
+
options: t.map((e) => ({
|
|
397
397
|
disabled: e.status === "1",
|
|
398
398
|
label: e.postName,
|
|
399
399
|
value: e.postId
|
|
@@ -414,7 +414,7 @@ var w = /* @__PURE__ */ p({
|
|
|
414
414
|
header: "添加用户",
|
|
415
415
|
onConfirmCallback: async () => {
|
|
416
416
|
let e = await a.value.validate();
|
|
417
|
-
await
|
|
417
|
+
await n.Post("system/user", {
|
|
418
418
|
...e,
|
|
419
419
|
...VITE_APP_ID === "1" ? { userDeptIds: e.userDeptIds.join(",") } : {}
|
|
420
420
|
}), s.success("用户添加成功"), D.value.query();
|
|
@@ -428,13 +428,13 @@ var w = /* @__PURE__ */ p({
|
|
|
428
428
|
{
|
|
429
429
|
default: "导入",
|
|
430
430
|
onClick: async () => {
|
|
431
|
-
let
|
|
432
|
-
|
|
431
|
+
let t = y(null);
|
|
432
|
+
e({
|
|
433
433
|
body: () => m(r, {
|
|
434
434
|
items: [{
|
|
435
435
|
_required: !0,
|
|
436
436
|
component: "TUpload",
|
|
437
|
-
downloadTemplate:
|
|
437
|
+
downloadTemplate: n.Post("system/user/importTemplate", {}, { meta: {
|
|
438
438
|
useDownload: "用户管理导入模板.xlsx",
|
|
439
439
|
useResponseBlob: !0
|
|
440
440
|
} }),
|
|
@@ -445,14 +445,14 @@ var w = /* @__PURE__ */ p({
|
|
|
445
445
|
label: "是否更新已经存在的用户数据",
|
|
446
446
|
model: "updateSupport"
|
|
447
447
|
}],
|
|
448
|
-
ref:
|
|
448
|
+
ref: t
|
|
449
449
|
}),
|
|
450
450
|
header: "导入用户",
|
|
451
451
|
onConfirmCallback: async () => {
|
|
452
|
-
let
|
|
453
|
-
await
|
|
452
|
+
let e = await t.value.validate();
|
|
453
|
+
await n.Post("system/user/importData", { file: e.file[0].raw }, {
|
|
454
454
|
meta: { useFormData: !0 },
|
|
455
|
-
params: { updateSupport:
|
|
455
|
+
params: { updateSupport: e.updateSupport }
|
|
456
456
|
}), D.value.query();
|
|
457
457
|
},
|
|
458
458
|
width: 480
|