dlzn-ui 2.0.52 → 2.0.54
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/{provider-CwykAGOx.css → provider-BBCGISR5.css} +1 -1
- package/chunks/{AssignUser-B11nIqo_.mjs → AssignUser-DFGKVyHA.mjs} +14 -14
- package/chunks/{BasicInfo-9WqspD1Z.mjs → BasicInfo-oYAekSwI.mjs} +1 -1
- package/chunks/{ColumnInfo-B_lgPqVS.mjs → ColumnInfo-CVSldNXs.mjs} +2 -2
- package/chunks/{Common-BVD38hp6.mjs → Common-DDWrIunx.mjs} +1 -1
- package/chunks/{Day-CHWBklI0.mjs → Day-Che8kW_B.mjs} +1 -1
- package/chunks/{DictTypeDetail-C8SPo0b_.mjs → DictTypeDetail-vPGWHXOl.mjs} +8 -8
- package/chunks/{GenInfo-Dxoe_3RM.mjs → GenInfo-BcwpyZSj.mjs} +1 -1
- package/chunks/{Hour-NaDEj833.mjs → Hour-BoXdhMMY.mjs} +1 -1
- package/chunks/{Import-BZkJuPLC.mjs → Import-BVbnDZt3.mjs} +2 -2
- package/chunks/{Index-QeguMHYR.mjs → Index-C1v5EsZk.mjs} +1 -1
- package/chunks/{Index-LNJ_79uk.mjs → Index-CnjpeIQL.mjs} +1 -1
- package/chunks/{Index-ClKOg-Wu.mjs → Index-CxEYiUa-.mjs} +1 -1
- package/chunks/{Index-CQSAs1h6.mjs → Index-xoyD_qOp.mjs} +1 -1
- package/chunks/{IndexItem-D7mOSNO6.mjs → IndexItem-BT-IQMY5.mjs} +1 -1
- package/chunks/{Log-DSKkWGbI.mjs → Log-DOEaFtk1.mjs} +11 -11
- package/chunks/{LoginBg-BharyaPx.mjs → LoginBg-YM4US_NO.mjs} +1 -1
- package/chunks/{Minute-CM6f_BSX.mjs → Minute-BJpoCyM8.mjs} +1 -1
- package/chunks/{Month-DRWusngF.mjs → Month-UU1z-xQV.mjs} +1 -1
- package/chunks/{Preview-hFTldEUR.mjs → Preview-SqQ2UnMr.mjs} +1 -1
- package/chunks/{Second-BTRO-iOb.mjs → Second-BOsQlzmK.mjs} +1 -1
- package/chunks/{SelectDept-B_9npI--.mjs → SelectDept-DJciskzT.mjs} +1 -1
- package/chunks/{SelectMenu-CB0bsNEl.mjs → SelectMenu-7XAtNOza.mjs} +1 -1
- package/chunks/{SelectUser-CZ4P-c67.mjs → SelectUser-ChPXL5SD.mjs} +2 -2
- package/chunks/{UserInfo-CT_ez2uW.mjs → UserInfo-Bzdeuht7.mjs} +7 -7
- package/chunks/{app-DNfYzQDT.mjs → app-CouSbYl9.mjs} +1 -1
- package/chunks/auto-complete-WniYblq6.mjs +77 -0
- package/chunks/{custom-page-list-v88splrD.mjs → custom-page-list-ijqPjUG8.mjs} +4 -4
- package/chunks/{custom-page-table-BheCVTlP.mjs → custom-page-table-CUlGWxoP.mjs} +2 -2
- package/chunks/{overview-MLIPTO-D.mjs → overview-ZgCAiVFV.mjs} +1 -1
- package/chunks/{page-list-BLDYBbVJ.mjs → page-list-DsgM0XRF.mjs} +3 -3
- package/chunks/{page-query-JDsWn-xy.mjs → page-query-D-9Bfc2i.mjs} +1 -1
- package/chunks/{page-table-Be4aMLTf.mjs → page-table-BNO8b2RS.mjs} +3 -3
- package/chunks/{pagination-Cck2wqel.mjs → pagination-CQP7D64K.mjs} +1 -1
- package/chunks/{provider-CDqQoKIA.mjs → provider-Bb25LOJZ.mjs} +483 -470
- package/chunks/{table-5y2fT5vf.mjs → table-v44larO2.mjs} +1 -1
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/auto-complete/index.d.ts +2 -0
- package/components/auto-complete/index.mjs +2 -0
- package/components/auto-complete/src/auto-complete.d.ts +12 -0
- package/components/auto-complete/src/auto-complete.mjs +2 -0
- package/components/auto-complete/src/auto-complete.vue.d.ts +10 -0
- 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 +21 -21
- 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 +48 -26
- package/layout/Home1.mjs +31 -0
- package/layout/Home1.vue.d.ts +3 -0
- package/layout/Login.mjs +2 -2
- package/layout/NotFound.mjs +1 -1
- package/layout/index.mjs +2 -0
- 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/LoginBgBak.mjs +7 -1
- package/layout/profile/Index.mjs +2 -2
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/layout/vueBits/Grainient.mjs +140 -0
- package/layout/vueBits/Grainient.vue.d.ts +52 -0
- package/layout/vueBits/LightRays.vue.d.ts +1 -1
- package/layout/vueBits/Prism.vue.d.ts +5 -5
- 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/proj-template/package.json +37 -0
- package/proj-template/pnpm-workspace.yaml +0 -1
- package/router/index.mjs +1 -1
- package/store/modules/common.mjs +1 -1
- package/store/modules/login.mjs +1 -1
- package/store/modules/recentRouters.mjs +1 -1
- package/store/modules/router.mjs +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/utils/tree.d.ts +2 -1
- package/utils/tree.mjs +8 -5
- 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
- package/proj-template/patches/omi@7.7.13.patch +0 -15
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as e, S as t, V as n, o as r } from "../../../chunks/provider-Bb25LOJZ.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-DsgM0XRF.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-DFGKVyHA.mjs";
|
|
6
|
+
import { t as s } from "../../../chunks/SelectDept-DJciskzT.mjs";
|
|
7
|
+
import { t as c } from "../../../chunks/SelectMenu-7XAtNOza.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-DFGKVyHA.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-DJciskzT.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-7XAtNOza.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-ChPXL5SD.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-Bb25LOJZ.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-v44larO2.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-DsgM0XRF.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-Bb25LOJZ.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-oYAekSwI.mjs";
|
|
4
|
+
import { t as a } from "../../../../chunks/ColumnInfo-CVSldNXs.mjs";
|
|
5
|
+
import { t as o } from "../../../../chunks/GenInfo-BcwpyZSj.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-oYAekSwI.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-CVSldNXs.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-BcwpyZSj.mjs";
|
|
2
2
|
export { e as default };
|
package/views/tool/gen/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as e, S as t, V as n } from "../../../chunks/provider-Bb25LOJZ.mjs";
|
|
2
2
|
import { n as r } from "../../../chunks/useAppContext-D47amIp5.mjs";
|
|
3
|
-
import { t as i } from "../../../chunks/page-list-
|
|
3
|
+
import { t as i } from "../../../chunks/page-list-DsgM0XRF.mjs";
|
|
4
4
|
import "../../../components/page-list/index.mjs";
|
|
5
|
-
import { t as a } from "../../../chunks/Import-
|
|
6
|
-
import { t as o } from "../../../chunks/Preview-
|
|
5
|
+
import { t as a } from "../../../chunks/Import-BVbnDZt3.mjs";
|
|
6
|
+
import { t as o } from "../../../chunks/Preview-SqQ2UnMr.mjs";
|
|
7
7
|
import { computed as s, createBlock as c, defineComponent as l, h as u, mergeProps as d, openBlock as f, reactive as p, ref as m, unref as h, useTemplateRef as g } from "vue";
|
|
8
8
|
import { useRouter as _ } from "vue-router";
|
|
9
9
|
//#endregion
|
|
@@ -31,7 +31,7 @@ var v = /* @__PURE__ */ l({
|
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
async function S(e) {
|
|
34
|
-
await
|
|
34
|
+
await t.Get("tool/gen/batchGenCode", {
|
|
35
35
|
meta: {
|
|
36
36
|
useDownload: `生成的代码${e}.zip`,
|
|
37
37
|
useResponseBlob: !0
|
|
@@ -46,7 +46,7 @@ var v = /* @__PURE__ */ l({
|
|
|
46
46
|
permission: "tool:gen:remove",
|
|
47
47
|
showBatch: !0
|
|
48
48
|
},
|
|
49
|
-
list: { method: (e) =>
|
|
49
|
+
list: { method: (e) => t.Get("tool/gen/list", { params: {
|
|
50
50
|
...e,
|
|
51
51
|
dateRange: void 0,
|
|
52
52
|
"params[beginTime]": e.dateRange[0],
|
|
@@ -77,11 +77,11 @@ var v = /* @__PURE__ */ l({
|
|
|
77
77
|
{
|
|
78
78
|
cell: {
|
|
79
79
|
buttons: [
|
|
80
|
-
({ row:
|
|
80
|
+
({ row: t }) => ({
|
|
81
81
|
default: "预览",
|
|
82
82
|
onClick: () => {
|
|
83
|
-
|
|
84
|
-
body: () => u(o, { tableId:
|
|
83
|
+
e({
|
|
84
|
+
body: () => u(o, { tableId: t.tableId }),
|
|
85
85
|
cancelBtn: "关闭",
|
|
86
86
|
confirmBtn: null,
|
|
87
87
|
header: "代码预览",
|
|
@@ -106,14 +106,14 @@ var v = /* @__PURE__ */ l({
|
|
|
106
106
|
popconfirm: {
|
|
107
107
|
content: `确认要强制同步${e.tableName}表结构吗?`,
|
|
108
108
|
onConfirm: async () => {
|
|
109
|
-
await
|
|
109
|
+
await t.Get(`tool/gen/synchDb/${e.tableName}`, { meta: { useSuccessMsg: !0 } });
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
}),
|
|
113
113
|
({ row: e }) => ({
|
|
114
114
|
default: "生成代码",
|
|
115
115
|
onClick: async () => {
|
|
116
|
-
e.genType === "1" ? (await
|
|
116
|
+
e.genType === "1" ? (await t.Get(`tool/gen/genCode/${e.tableName}`), r(`成功生成到自定义路径:${e.genPath}`)) : await S(e.tableName);
|
|
117
117
|
},
|
|
118
118
|
permission: "tool:gen:code"
|
|
119
119
|
})
|
|
@@ -139,12 +139,12 @@ var v = /* @__PURE__ */ l({
|
|
|
139
139
|
}), {
|
|
140
140
|
default: "导入",
|
|
141
141
|
onClick: () => {
|
|
142
|
-
let
|
|
143
|
-
|
|
144
|
-
body: () => u(a, { ref:
|
|
142
|
+
let e = m(null);
|
|
143
|
+
n({
|
|
144
|
+
body: () => u(a, { ref: e }),
|
|
145
145
|
header: "导入表",
|
|
146
146
|
onConfirmCallback: async () => {
|
|
147
|
-
await
|
|
147
|
+
await e.value.handleSubmit(), y.value.query();
|
|
148
148
|
},
|
|
149
149
|
width: 800
|
|
150
150
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/Import-
|
|
1
|
+
import { t as e } from "../../../../chunks/Import-BVbnDZt3.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/Preview-
|
|
1
|
+
import { t as e } from "../../../../chunks/Preview-SqQ2UnMr.mjs";
|
|
2
2
|
export { e as default };
|