dlzn-ui 2.0.52 → 2.0.53
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/chunks/{AssignUser-B11nIqo_.mjs → AssignUser-CJFt5Q1h.mjs} +14 -14
- package/chunks/{BasicInfo-9WqspD1Z.mjs → BasicInfo-CJNldTAG.mjs} +1 -1
- package/chunks/{ColumnInfo-B_lgPqVS.mjs → ColumnInfo-Be56uLyo.mjs} +2 -2
- package/chunks/{Common-BVD38hp6.mjs → Common-CFfc_3CV.mjs} +1 -1
- package/chunks/{Day-CHWBklI0.mjs → Day-goCJrrD_.mjs} +1 -1
- package/chunks/{DictTypeDetail-C8SPo0b_.mjs → DictTypeDetail-C-LVM-Mf.mjs} +8 -8
- package/chunks/{GenInfo-Dxoe_3RM.mjs → GenInfo-1KrHcY4D.mjs} +1 -1
- package/chunks/{Hour-NaDEj833.mjs → Hour-B0FYcjAM.mjs} +1 -1
- package/chunks/{Import-BZkJuPLC.mjs → Import-BTaQ_XRL.mjs} +2 -2
- package/chunks/{Index-ClKOg-Wu.mjs → Index-CIuzrUvW.mjs} +1 -1
- package/chunks/{Index-QeguMHYR.mjs → Index-DLWQRcwf.mjs} +1 -1
- package/chunks/{Index-CQSAs1h6.mjs → Index-DWMWEc1h.mjs} +1 -1
- package/chunks/{Index-LNJ_79uk.mjs → Index-NwyOfjbd.mjs} +1 -1
- package/chunks/{IndexItem-D7mOSNO6.mjs → IndexItem-BGiKCAsP.mjs} +1 -1
- package/chunks/{Log-DSKkWGbI.mjs → Log-3YYKqTZ2.mjs} +11 -11
- package/chunks/{LoginBg-BharyaPx.mjs → LoginBg-Bk4XiQcv.mjs} +1 -1
- package/chunks/{Minute-CM6f_BSX.mjs → Minute-DUu_mOOe.mjs} +1 -1
- package/chunks/{Month-DRWusngF.mjs → Month-Gvd1GX2j.mjs} +1 -1
- package/chunks/{Preview-hFTldEUR.mjs → Preview-BrOs3WhB.mjs} +1 -1
- package/chunks/{Second-BTRO-iOb.mjs → Second-D022qvS-.mjs} +1 -1
- package/chunks/{SelectDept-B_9npI--.mjs → SelectDept-B1D0kuQH.mjs} +1 -1
- package/chunks/{SelectMenu-CB0bsNEl.mjs → SelectMenu-DHUb3_VU.mjs} +1 -1
- package/chunks/{SelectUser-CZ4P-c67.mjs → SelectUser-CAFBcwTn.mjs} +2 -2
- package/chunks/{UserInfo-CT_ez2uW.mjs → UserInfo-CqWhc6yw.mjs} +7 -7
- package/chunks/{app-DNfYzQDT.mjs → app-CEhN8Ot6.mjs} +1 -1
- package/chunks/{custom-page-list-v88splrD.mjs → custom-page-list-BSixJAQP.mjs} +4 -4
- package/chunks/{custom-page-table-BheCVTlP.mjs → custom-page-table-BTWOfn8t.mjs} +2 -2
- package/chunks/{overview-MLIPTO-D.mjs → overview-D_sf7DL1.mjs} +1 -1
- package/chunks/{page-list-BLDYBbVJ.mjs → page-list-PgB5MGIt.mjs} +3 -3
- package/chunks/{page-query-JDsWn-xy.mjs → page-query-CkhudpAH.mjs} +1 -1
- package/chunks/{page-table-Be4aMLTf.mjs → page-table-C53YrGik.mjs} +3 -3
- package/chunks/{pagination-Cck2wqel.mjs → pagination-DjeMHIma.mjs} +1 -1
- package/chunks/{provider-CDqQoKIA.mjs → provider-CkV8UD3o.mjs} +471 -466
- package/chunks/{table-5y2fT5vf.mjs → table-Bu1WKJn0.mjs} +1 -1
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +6 -6
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/index.mjs +9 -9
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.d.ts +13 -13
- package/components/page-list/src/page-list.mjs +1 -1
- package/components/page-query/index.mjs +1 -1
- package/components/page-query/src/page-query.mjs +1 -1
- package/components/page-table/index.mjs +1 -1
- package/components/page-table/src/page-table.mjs +1 -1
- package/components/pagination/index.mjs +1 -1
- package/components/pagination/src/pagination.mjs +1 -1
- package/components/provider/index.mjs +1 -1
- package/components/provider/src/Provider.mjs +1 -1
- package/components/radio-group/index.mjs +1 -1
- package/components/radio-group/src/radio-group.mjs +1 -1
- package/components/select/index.mjs +1 -1
- package/components/select/src/select.mjs +1 -1
- package/components/select-sys-user/index.mjs +1 -1
- package/components/select-sys-user/src/Picker.mjs +2 -2
- package/components/select-sys-user/src/select-sys-user.mjs +1 -1
- package/components/table/index.mjs +1 -1
- package/components/table/src/table.mjs +1 -1
- package/components/tree/index.mjs +1 -1
- package/components/tree/src/tree.mjs +1 -1
- package/components/tree/src/tree.vue.d.ts +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 +2 -2
- package/layout/Login.mjs +2 -2
- 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 +2 -1
- package/plugins/autoImport/$alova/index.mjs +1 -1
- package/plugins/autoImport/$confirm/index.mjs +1 -1
- package/plugins/autoImport/$dialog/index.mjs +1 -1
- package/plugins/autoImport/$drawer/index.mjs +1 -1
- package/plugins/captcha/captcha.mjs +1 -1
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
- package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/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 +2 -2
- package/store/modules/user.mjs +1 -1
- package/utils/index.mjs +3 -3
- package/utils/tool.d.ts +2 -0
- package/utils/tool.mjs +6 -2
- package/views/monitor/cache/index.mjs +2 -2
- package/views/monitor/cacheList/index.mjs +2 -2
- package/views/monitor/logininfor/index.mjs +2 -2
- package/views/monitor/online/index.mjs +2 -2
- package/views/monitor/operlog/index.mjs +2 -2
- 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 +16 -16
- 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 +36 -36
- 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 +13 -13
- 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 +15 -15
- package/views/tool/gen/modules/Import.mjs +1 -1
- package/views/tool/gen/modules/Preview.mjs +1 -1
- package/views/tool/job/index.mjs +26 -26
- package/views/tool/job/modules/Log.mjs +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as e, V as t, o as n } from "../../../chunks/provider-CkV8UD3o.mjs";
|
|
2
2
|
import r from "../../../plugins/autoImport/$msg/index.mjs";
|
|
3
|
-
import { t as i } from "../../../chunks/page-list-
|
|
3
|
+
import { t as i } from "../../../chunks/page-list-PgB5MGIt.mjs";
|
|
4
4
|
import "../../../components/page-list/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
|
//#endregion
|
|
@@ -89,7 +89,7 @@ var h = /* @__PURE__ */ o({
|
|
|
89
89
|
let a = d(null);
|
|
90
90
|
m(a, () => {
|
|
91
91
|
a.value.setFormData(i);
|
|
92
|
-
}, { once: !0 }),
|
|
92
|
+
}, { once: !0 }), t({
|
|
93
93
|
body: () => s(n, {
|
|
94
94
|
items: _,
|
|
95
95
|
labelAlign: "right",
|
|
@@ -98,7 +98,7 @@ var h = /* @__PURE__ */ o({
|
|
|
98
98
|
}),
|
|
99
99
|
header: "修改公告",
|
|
100
100
|
onConfirmCallback: async () => {
|
|
101
|
-
await
|
|
101
|
+
await e.Put("system/notice", {
|
|
102
102
|
...await a.value.validate(),
|
|
103
103
|
noticeId: i.noticeId
|
|
104
104
|
}), r.success("公告修改成功"), h.value.query();
|
|
@@ -123,7 +123,7 @@ var h = /* @__PURE__ */ o({
|
|
|
123
123
|
default: "新增",
|
|
124
124
|
onClick: () => {
|
|
125
125
|
let i = d(null);
|
|
126
|
-
|
|
126
|
+
t({
|
|
127
127
|
body: () => s(n, {
|
|
128
128
|
data: u({ status: "0" }),
|
|
129
129
|
items: _,
|
|
@@ -133,7 +133,7 @@ var h = /* @__PURE__ */ o({
|
|
|
133
133
|
}),
|
|
134
134
|
header: "添加公告",
|
|
135
135
|
onConfirmCallback: async () => {
|
|
136
|
-
await
|
|
136
|
+
await e.Post("system/notice", await i.value.validate()), r.success("公告添加成功"), h.value.query();
|
|
137
137
|
},
|
|
138
138
|
width: 460
|
|
139
139
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as e, V as t, o as n } from "../../../chunks/provider-CkV8UD3o.mjs";
|
|
2
2
|
import r from "../../../plugins/autoImport/$msg/index.mjs";
|
|
3
|
-
import { t as i } from "../../../chunks/page-list-
|
|
3
|
+
import { t as i } from "../../../chunks/page-list-PgB5MGIt.mjs";
|
|
4
4
|
import "../../../components/page-list/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
|
//#endregion
|
|
@@ -101,7 +101,7 @@ var h = /* @__PURE__ */ o({
|
|
|
101
101
|
let a = d(null);
|
|
102
102
|
m(a, () => {
|
|
103
103
|
a.value.setFormData(i);
|
|
104
|
-
}, { once: !0 }),
|
|
104
|
+
}, { once: !0 }), t({
|
|
105
105
|
body: () => s(n, {
|
|
106
106
|
items: [
|
|
107
107
|
g.postCode,
|
|
@@ -119,7 +119,7 @@ var h = /* @__PURE__ */ o({
|
|
|
119
119
|
}),
|
|
120
120
|
header: "修改岗位",
|
|
121
121
|
onConfirmCallback: async () => {
|
|
122
|
-
await
|
|
122
|
+
await e.Put("system/post", {
|
|
123
123
|
...await a.value.validate(),
|
|
124
124
|
postId: i.postId
|
|
125
125
|
}), r.success("岗位修改成功"), h.value.query();
|
|
@@ -144,7 +144,7 @@ var h = /* @__PURE__ */ o({
|
|
|
144
144
|
default: "新增",
|
|
145
145
|
onClick: () => {
|
|
146
146
|
let i = d(null);
|
|
147
|
-
|
|
147
|
+
t({
|
|
148
148
|
body: () => s(n, {
|
|
149
149
|
data: u({ status: "0" }),
|
|
150
150
|
items: [
|
|
@@ -163,7 +163,7 @@ var h = /* @__PURE__ */ o({
|
|
|
163
163
|
}),
|
|
164
164
|
header: "添加岗位",
|
|
165
165
|
onConfirmCallback: async () => {
|
|
166
|
-
await
|
|
166
|
+
await e.Post("system/post", await i.value.validate()), r.success("岗位添加成功"), h.value.query();
|
|
167
167
|
},
|
|
168
168
|
width: 430
|
|
169
169
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as e, S as t, V as n, o as r } from "../../../chunks/provider-CkV8UD3o.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-PgB5MGIt.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-CJFt5Q1h.mjs";
|
|
6
|
+
import { t as s } from "../../../chunks/SelectDept-B1D0kuQH.mjs";
|
|
7
|
+
import { t as c } from "../../../chunks/SelectMenu-DHUb3_VU.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) => t.Get("system/role/list", { params: {
|
|
65
65
|
...e,
|
|
66
66
|
dateRange: void 0,
|
|
67
67
|
"params[beginTime]": e.dateRange[0] ?? "",
|
|
@@ -86,10 +86,10 @@ var y = /* @__PURE__ */ u({
|
|
|
86
86
|
title: "显示顺序"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
|
-
cell: (
|
|
89
|
+
cell: (e, { row: r }) => ({
|
|
90
90
|
beforeChange: async () => {
|
|
91
|
-
let
|
|
92
|
-
return await
|
|
91
|
+
let e = r.status === "1" ? "启用" : "停用";
|
|
92
|
+
return await n(`确认${e}${r.roleName}角色吗?`), await t.Put("system/role/changeStatus", {
|
|
93
93
|
roleId: r.roleId,
|
|
94
94
|
status: r.status === "1" ? "0" : "1"
|
|
95
95
|
}, { meta: { useSuccessMsg: !0 } }), y.value.query(), !0;
|
|
@@ -124,11 +124,11 @@ var y = /* @__PURE__ */ u({
|
|
|
124
124
|
{
|
|
125
125
|
cell: {
|
|
126
126
|
buttons: [
|
|
127
|
-
({ row:
|
|
127
|
+
({ row: e }) => ({
|
|
128
128
|
default: "编辑",
|
|
129
129
|
onClick: async () => {
|
|
130
|
-
let { checkedKeys: a, menus: o } = await
|
|
131
|
-
if (
|
|
130
|
+
let { checkedKeys: a, menus: o } = await t.Get(`system/menu/roleMenuTreeselect/${e.roleId}`), s = h(null);
|
|
131
|
+
if (e.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,8 +137,8 @@ var y = /* @__PURE__ */ u({
|
|
|
137
137
|
t(o);
|
|
138
138
|
}
|
|
139
139
|
v(s, () => {
|
|
140
|
-
s.value.setFormData(
|
|
141
|
-
}, { once: !0 }),
|
|
140
|
+
s.value.setFormData(e);
|
|
141
|
+
}, { once: !0 }), n({
|
|
142
142
|
body: () => d(r, {
|
|
143
143
|
data: m({ menuIds: a }),
|
|
144
144
|
items: [
|
|
@@ -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 t.Put("system/role", {
|
|
157
157
|
...await s.value.validate(),
|
|
158
158
|
menuCheckStrictly: !1,
|
|
159
|
-
roleId:
|
|
159
|
+
roleId: e.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: e.roleId !== "1"
|
|
167
167
|
}),
|
|
168
|
-
({ row:
|
|
168
|
+
({ row: e }) => ({
|
|
169
169
|
default: "数据权限",
|
|
170
170
|
onClick: async () => {
|
|
171
|
-
let { checkedKeys: a, depts: o } = await
|
|
172
|
-
if (
|
|
171
|
+
let { checkedKeys: a, depts: o } = await t.Get(`system/role/deptTree/${e.roleId}`), c = h(null);
|
|
172
|
+
if (e.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,8 +178,8 @@ var y = /* @__PURE__ */ u({
|
|
|
178
178
|
t(o);
|
|
179
179
|
}
|
|
180
180
|
v(c, () => {
|
|
181
|
-
c.value.setFormData(
|
|
182
|
-
}, { once: !0 }),
|
|
181
|
+
c.value.setFormData(e);
|
|
182
|
+
}, { once: !0 }), n({
|
|
183
183
|
body: () => d(r, {
|
|
184
184
|
data: m({ deptIds: a }),
|
|
185
185
|
items: [
|
|
@@ -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: `给${e.roleName}分配数据权限`,
|
|
218
218
|
onConfirmCallback: async () => {
|
|
219
|
-
await
|
|
219
|
+
await t.Put("system/role/dataScope", {
|
|
220
220
|
deptIds: [],
|
|
221
221
|
...await c.value.validate(),
|
|
222
222
|
deptCheckStrictly: !1,
|
|
223
|
-
roleId:
|
|
223
|
+
roleId: e.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: e.roleId !== "1"
|
|
231
231
|
}),
|
|
232
|
-
({ row:
|
|
232
|
+
({ row: t }) => ({
|
|
233
233
|
default: "分配用户",
|
|
234
234
|
onClick: async () => {
|
|
235
|
-
|
|
236
|
-
body: () => d(o, { roleId:
|
|
235
|
+
e({
|
|
236
|
+
body: () => d(o, { roleId: t.roleId }),
|
|
237
237
|
footer: !1,
|
|
238
|
-
header: `给${
|
|
238
|
+
header: `给${t.roleName}分配用户`,
|
|
239
239
|
width: 1500
|
|
240
240
|
});
|
|
241
241
|
},
|
|
242
242
|
permission: "system:role:edit",
|
|
243
|
-
show:
|
|
243
|
+
show: t.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 t.Delete(`system/role/${e.roleId}`), i("删除成功"), y.value.query();
|
|
252
252
|
}
|
|
253
253
|
},
|
|
254
254
|
show: e.roleId !== "1"
|
|
@@ -278,8 +278,8 @@ var y = /* @__PURE__ */ u({
|
|
|
278
278
|
operations: [{
|
|
279
279
|
default: "新增",
|
|
280
280
|
onClick: async () => {
|
|
281
|
-
let
|
|
282
|
-
|
|
281
|
+
let e = await t.Get("system/menu/treeselect"), a = h(null);
|
|
282
|
+
n({
|
|
283
283
|
body: () => d(r, {
|
|
284
284
|
data: m({
|
|
285
285
|
menuIds: [],
|
|
@@ -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: e }) }),
|
|
298
298
|
header: "添加角色",
|
|
299
299
|
onConfirmCallback: async () => {
|
|
300
|
-
await
|
|
300
|
+
await t.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-CJFt5Q1h.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-B1D0kuQH.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-DHUb3_VU.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-CAFBcwTn.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { N as e, S as t, V as n, o as r } from "../../../chunks/provider-CkV8UD3o.mjs";
|
|
2
2
|
import { n as i } from "../../../chunks/useAppContext-D47amIp5.mjs";
|
|
3
3
|
import { passwordReg as a, passwordRegMessage as o } from "../../../constants/regs.mjs";
|
|
4
4
|
import s from "../../../plugins/autoImport/$msg/index.mjs";
|
|
5
|
-
import { t as c } from "../../../chunks/table-
|
|
5
|
+
import { t as c } from "../../../chunks/table-Bu1WKJn0.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-PgB5MGIt.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) => t.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) => t.Get("system/user/list", { params: {
|
|
118
118
|
...e,
|
|
119
119
|
dateRange: void 0,
|
|
120
120
|
"params[beginTime]": e.dateRange[0] ?? "",
|
|
@@ -145,10 +145,10 @@ var w = /* @__PURE__ */ p({
|
|
|
145
145
|
title: "手机号码"
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
|
-
cell: (
|
|
148
|
+
cell: (e, { row: r }) => ({
|
|
149
149
|
beforeChange: async () => {
|
|
150
|
-
let
|
|
151
|
-
return await
|
|
150
|
+
let e = r.status === "1" ? "启用" : "停用";
|
|
151
|
+
return await n(`确认${e}${r.userName}用户吗?`), await t.Put("system/user/changeStatus", {
|
|
152
152
|
status: r.status === "1" ? "0" : "1",
|
|
153
153
|
userId: r.userId
|
|
154
154
|
}, { meta: { useSuccessMsg: !0 } }), E.value.query(), !0;
|
|
@@ -188,7 +188,7 @@ var w = /* @__PURE__ */ p({
|
|
|
188
188
|
let { data: a, postIds: o, posts: c, roleIds: l, roles: u } = await T(i.userId), d = y(null);
|
|
189
189
|
S(d, () => {
|
|
190
190
|
d.value.setFormData(a, { splitToArrKeys: VITE_APP_ID === "1" ? ["userDeptIds"] : [] });
|
|
191
|
-
}, { once: !0 }),
|
|
191
|
+
}, { once: !0 }), n({
|
|
192
192
|
body: () => m(r, {
|
|
193
193
|
data: v({
|
|
194
194
|
postIds: o,
|
|
@@ -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 n = await d.value.validate();
|
|
228
|
+
await t.Put("system/user", {
|
|
229
|
+
...n,
|
|
230
|
+
...VITE_APP_ID === "1" ? { userDeptIds: n.userDeptIds.join(",") } : {},
|
|
231
231
|
userId: a.userId,
|
|
232
232
|
userName: a.userName
|
|
233
|
-
}),
|
|
233
|
+
}), e(a.userId), s.success("用户修改成功"), E.value.query();
|
|
234
234
|
},
|
|
235
235
|
width: 730
|
|
236
236
|
});
|
|
@@ -238,11 +238,11 @@ var w = /* @__PURE__ */ p({
|
|
|
238
238
|
permission: "system:user:edit",
|
|
239
239
|
show: i.userId !== "1"
|
|
240
240
|
}),
|
|
241
|
-
({ row:
|
|
241
|
+
({ row: e }) => ({
|
|
242
242
|
default: "重置密码",
|
|
243
243
|
onClick: async () => {
|
|
244
244
|
let s = y(null);
|
|
245
|
-
|
|
245
|
+
n({
|
|
246
246
|
body: () => m(r, {
|
|
247
247
|
items: [{
|
|
248
248
|
_required: !0,
|
|
@@ -256,25 +256,25 @@ var w = /* @__PURE__ */ p({
|
|
|
256
256
|
}],
|
|
257
257
|
ref: s
|
|
258
258
|
}),
|
|
259
|
-
header: `请输入${
|
|
259
|
+
header: `请输入${e.userName}用户的新密码`,
|
|
260
260
|
onConfirmCallback: async () => {
|
|
261
|
-
let
|
|
262
|
-
await
|
|
263
|
-
password:
|
|
264
|
-
userId:
|
|
265
|
-
}), i(`密码修改成功,新密码是:${
|
|
261
|
+
let n = (await s.value.validate()).newPassword;
|
|
262
|
+
await t.Put("system/user/resetPwd", {
|
|
263
|
+
password: n,
|
|
264
|
+
userId: e.userId
|
|
265
|
+
}), i(`密码修改成功,新密码是:${n}`), E.value.query();
|
|
266
266
|
},
|
|
267
267
|
width: 430
|
|
268
268
|
});
|
|
269
269
|
},
|
|
270
270
|
permission: "system:user:resetPwd",
|
|
271
|
-
show:
|
|
271
|
+
show: e.userId !== "1"
|
|
272
272
|
}),
|
|
273
|
-
({ row:
|
|
273
|
+
({ row: e }) => ({
|
|
274
274
|
default: "分配角色",
|
|
275
275
|
onClick: async () => {
|
|
276
|
-
let { roles: r, user: i } = await
|
|
277
|
-
|
|
276
|
+
let { roles: r, user: i } = await t.Get(`system/user/authRole/${e.userId}`), a = y(null);
|
|
277
|
+
n({
|
|
278
278
|
body: () => m(c, {
|
|
279
279
|
columns: [
|
|
280
280
|
{
|
|
@@ -306,11 +306,11 @@ var w = /* @__PURE__ */ p({
|
|
|
306
306
|
}),
|
|
307
307
|
header: `为用户${i.nickName}(${i.userName})分配角色`,
|
|
308
308
|
onConfirmCallback: async () => {
|
|
309
|
-
await
|
|
309
|
+
await t.Put("system/user/authRole", {}, {
|
|
310
310
|
meta: { useSuccessMsg: !0 },
|
|
311
311
|
params: {
|
|
312
312
|
roleIds: a.value.selectedRowKeys.join(","),
|
|
313
|
-
userId:
|
|
313
|
+
userId: e.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: e.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 t.Delete(`system/user/${e.userId}`), s("删除成功"), E.value.query();
|
|
330
330
|
}
|
|
331
331
|
},
|
|
332
332
|
show: e.userId !== "1"
|
|
@@ -358,8 +358,8 @@ var w = /* @__PURE__ */ p({
|
|
|
358
358
|
operations: [{
|
|
359
359
|
default: "新增",
|
|
360
360
|
onClick: async () => {
|
|
361
|
-
let { posts:
|
|
362
|
-
|
|
361
|
+
let { posts: e, roles: i } = await T(""), a = y(null);
|
|
362
|
+
n({
|
|
363
363
|
body: () => m(r, {
|
|
364
364
|
data: v({ status: "0" }),
|
|
365
365
|
items: [
|
|
@@ -374,7 +374,7 @@ var w = /* @__PURE__ */ p({
|
|
|
374
374
|
D.status,
|
|
375
375
|
{
|
|
376
376
|
...D.postIds,
|
|
377
|
-
options:
|
|
377
|
+
options: e.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 a.value.validate();
|
|
398
|
-
await
|
|
398
|
+
await t.Post("system/user", {
|
|
399
399
|
...e,
|
|
400
400
|
...VITE_APP_ID === "1" ? { userDeptIds: e.userDeptIds.join(",") } : {}
|
|
401
401
|
}), s.success("用户添加成功"), E.value.query();
|
|
@@ -407,13 +407,13 @@ var w = /* @__PURE__ */ p({
|
|
|
407
407
|
}, {
|
|
408
408
|
default: "导入",
|
|
409
409
|
onClick: async () => {
|
|
410
|
-
let
|
|
411
|
-
|
|
410
|
+
let e = y(null);
|
|
411
|
+
n({
|
|
412
412
|
body: () => m(r, {
|
|
413
413
|
items: [{
|
|
414
414
|
_required: !0,
|
|
415
415
|
component: "TUpload",
|
|
416
|
-
downloadTemplate:
|
|
416
|
+
downloadTemplate: t.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: e
|
|
428
428
|
}),
|
|
429
429
|
header: "导入用户",
|
|
430
430
|
onConfirmCallback: async () => {
|
|
431
|
-
let
|
|
432
|
-
await
|
|
431
|
+
let n = await e.value.validate();
|
|
432
|
+
await t.Post("system/user/importData", { file: n.file[0].raw }, {
|
|
433
433
|
meta: { useFormData: !0 },
|
|
434
|
-
params: { updateSupport:
|
|
434
|
+
params: { updateSupport: n.updateSupport }
|
|
435
435
|
}), E.value.query();
|
|
436
436
|
},
|
|
437
437
|
width: 480
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as e,
|
|
1
|
+
import { S as e, n as t, z as n } from "../../../../chunks/provider-CkV8UD3o.mjs";
|
|
2
2
|
import r from "../../../../store/modules/excludeKPname.mjs";
|
|
3
|
-
import { t as i } from "../../../../chunks/BasicInfo-
|
|
4
|
-
import { t as a } from "../../../../chunks/ColumnInfo-
|
|
5
|
-
import { t as o } from "../../../../chunks/GenInfo-
|
|
3
|
+
import { t as i } from "../../../../chunks/BasicInfo-CJNldTAG.mjs";
|
|
4
|
+
import { t as a } from "../../../../chunks/ColumnInfo-Be56uLyo.mjs";
|
|
5
|
+
import { t as o } from "../../../../chunks/GenInfo-1KrHcY4D.mjs";
|
|
6
6
|
import { createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, nextTick as f, openBlock as p, ref as m, unref as h, withCtx as g } from "vue";
|
|
7
7
|
import { useRoute as _ } from "vue-router";
|
|
8
8
|
//#region ../../packages/dlzn-ui/views/tool/gen/editTable/index.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -11,7 +11,7 @@ var v = { class: "mt-4 text-center" }, y = /* @__PURE__ */ d({
|
|
|
11
11
|
setup(d) {
|
|
12
12
|
let y = _(), b = m(null), x = m(null), S = m(null);
|
|
13
13
|
function C() {
|
|
14
|
-
|
|
14
|
+
n().close(y.name);
|
|
15
15
|
}
|
|
16
16
|
function w({ info: e }) {
|
|
17
17
|
f(() => {
|
|
@@ -19,20 +19,20 @@ var v = { class: "mt-4 text-center" }, y = /* @__PURE__ */ d({
|
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
21
|
async function T() {
|
|
22
|
-
let [
|
|
22
|
+
let [t, i, a] = await Promise.all([
|
|
23
23
|
b.value.handleSubmit(),
|
|
24
24
|
x.value.handleSubmit(),
|
|
25
25
|
S.value.handleSubmit()
|
|
26
26
|
]);
|
|
27
27
|
await e.Put("tool/gen", {
|
|
28
|
-
...
|
|
28
|
+
...t,
|
|
29
29
|
...i,
|
|
30
30
|
columns: a,
|
|
31
31
|
params: { parentMenuId: i.parentMenuId },
|
|
32
32
|
tableId: y.query.id
|
|
33
|
-
}, { meta: { useSuccessMsg: !0 } }), r().add("Gen"),
|
|
33
|
+
}, { meta: { useSuccessMsg: !0 } }), r().add("Gen"), n().close(y.name);
|
|
34
34
|
}
|
|
35
|
-
return (e,
|
|
35
|
+
return (e, n) => (p(), s("div", null, [
|
|
36
36
|
u(i, {
|
|
37
37
|
ref_key: "basicInfoRef",
|
|
38
38
|
ref: b
|
|
@@ -46,18 +46,18 @@ var v = { class: "mt-4 text-center" }, y = /* @__PURE__ */ d({
|
|
|
46
46
|
ref: S,
|
|
47
47
|
onQuerySuccess: w
|
|
48
48
|
}, null, 512),
|
|
49
|
-
c("div", v, [u(h(
|
|
49
|
+
c("div", v, [u(h(t), {
|
|
50
50
|
theme: "default",
|
|
51
51
|
variant: "outline",
|
|
52
52
|
onClick: C
|
|
53
53
|
}, {
|
|
54
|
-
default: g(() => [...
|
|
54
|
+
default: g(() => [...n[0] ||= [l("取消", -1)]]),
|
|
55
55
|
_: 1
|
|
56
|
-
}), u(h(
|
|
56
|
+
}), u(h(t), {
|
|
57
57
|
class: "ml-4!",
|
|
58
58
|
onClick: T
|
|
59
59
|
}, {
|
|
60
|
-
default: g(() => [...
|
|
60
|
+
default: g(() => [...n[1] ||= [l("保存", -1)]]),
|
|
61
61
|
_: 1
|
|
62
62
|
})])
|
|
63
63
|
]));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../../chunks/BasicInfo-
|
|
1
|
+
import { t as e } from "../../../../../chunks/BasicInfo-CJNldTAG.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../../chunks/ColumnInfo-
|
|
1
|
+
import { t as e } from "../../../../../chunks/ColumnInfo-Be56uLyo.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../../chunks/GenInfo-
|
|
1
|
+
import { t as e } from "../../../../../chunks/GenInfo-1KrHcY4D.mjs";
|
|
2
2
|
export { e as default };
|