dlzn-ui 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/IndexItem-CfYDJ95Q.css +1 -0
- package/assets/LoginBg-BTrRjkK7.css +1 -0
- package/assets/button-Bwn73ZEc.css +2 -0
- package/chunks/AssignUser-DCju22tm.mjs +124 -0
- package/chunks/{Common-BQTZ_uz9.mjs → Common-DQbblaTl.mjs} +1 -1
- package/chunks/{Day-DHc-joxZ.mjs → Day-9BKmHuZl.mjs} +1 -1
- package/chunks/DictTypeDetail-e14bGyiZ.mjs +188 -0
- package/chunks/{Hour-C4kJ4rZT.mjs → Hour-CrFFADzT.mjs} +1 -1
- package/chunks/{Index-BxpYRhO7.mjs → Index-7ubKF9v4.mjs} +1 -1
- package/chunks/{Index-Bk3I0k1K.mjs → Index-CZ0ICyCx.mjs} +1 -1
- package/chunks/{Index-DU8S7od8.mjs → Index-CZnP6jHo.mjs} +1 -1
- package/chunks/{Index-CCG3SRsb.mjs → Index-ChH8kYUs.mjs} +1 -1
- package/chunks/{Index-BJtXtnZE.mjs → Index-DloA1g7z.mjs} +1 -1
- package/chunks/{Index-7nQvK_SL.mjs → Index-QUCWrT4d.mjs} +1 -1
- package/chunks/{IndexItem-BYR8l3fS.mjs → IndexItem-OIGXdAkP.mjs} +4 -4
- package/chunks/Log-DdemNjDW.mjs +213 -0
- package/chunks/{LoginBg-B1auGWuJ.mjs → LoginBg-BD6ChYvu.mjs} +3 -3
- package/chunks/{MenuNode-D8j_Ugxd.mjs → MenuNode-DXgE629W.mjs} +2 -2
- package/chunks/{Minute-CvRY311e.mjs → Minute-xZNOCy8Q.mjs} +1 -1
- package/chunks/{Month-CKIsP_K8.mjs → Month-CvWOcD_9.mjs} +1 -1
- package/chunks/{Second-BA45p0oz.mjs → Second-BvMnEOms.mjs} +1 -1
- package/chunks/SelectDept-DmtKBaW0.mjs +68 -0
- package/chunks/SelectMenu-tEpLm6Ij.mjs +68 -0
- package/chunks/SelectUser-CTvBarod.mjs +57 -0
- package/chunks/{UserInfo-BmzDf5OX.mjs → UserInfo-qrNR9tve.mjs} +1 -1
- package/chunks/{app-gfbohwfS.mjs → app-CggLqjRQ.mjs} +1 -1
- package/chunks/{button-CI_79tzA.mjs → button-Dk3CiB69.mjs} +381 -380
- package/chunks/{custom-page-list-ClOelq_X.mjs → custom-page-list-CJWB72dw.mjs} +4 -4
- package/chunks/{custom-page-table-BmrOVzPO.mjs → custom-page-table-5f8lI6CQ.mjs} +2 -2
- package/chunks/{overview-B15xOap9.mjs → overview-BEtKbidZ.mjs} +1 -1
- package/chunks/{page-list-TMA20Io6.mjs → page-list-C3nqGnnX.mjs} +3 -3
- package/chunks/{page-query-CGlzVmmX.mjs → page-query-C6oSW1je.mjs} +1 -1
- package/chunks/{page-table-BLWMUBZ0.mjs → page-table-3DTiPP9H.mjs} +3 -3
- package/chunks/{pagination-X1rzhDDh.mjs → pagination-C6-VAj4W.mjs} +1 -1
- package/chunks/{table-DI_apdgZ.mjs → table-Cp9NQHjQ.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.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-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/index.d.ts +1 -1
- package/layout/Entry.mjs +2 -0
- package/layout/Login.mjs +2 -2
- package/layout/NotFound.mjs +1 -1
- package/layout/{index2.mjs → index.mjs} +2 -2
- package/layout/modules/Aside.mjs +1 -1
- package/layout/modules/Breadcrumb.mjs +1 -1
- package/layout/modules/Header.mjs +1 -1
- package/layout/modules/LoginBg.mjs +1 -1
- package/layout/modules/MenuNode.mjs +1 -1
- package/layout/profile/Index.mjs +2 -2
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/package.json +9 -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/TypographyText/Index.mjs +1 -1
- package/plugins/tableRenders/cell/TypographyTextLink/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +5 -5
- 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/index.d.ts +4 -0
- package/views/index.mjs +15 -0
- package/views/system/dept/index.mjs +256 -0
- package/views/system/dept/index.vue.d.ts +3 -0
- package/views/system/dept/utils.d.ts +2 -0
- package/views/system/dept/utils.mjs +15 -0
- package/views/system/dict/index.mjs +195 -0
- package/views/system/dict/index.vue.d.ts +3 -0
- package/views/system/dict/modules/DictTypeDetail.mjs +2 -0
- package/views/system/dict/modules/DictTypeDetail.vue.d.ts +6 -0
- package/views/system/menu/index.mjs +407 -0
- package/views/system/menu/index.vue.d.ts +3 -0
- package/views/system/post/index.mjs +182 -0
- package/views/system/post/index.vue.d.ts +3 -0
- package/views/system/role/index.mjs +319 -0
- package/views/system/role/index.vue.d.ts +3 -0
- package/views/system/role/modules/AssignUser.mjs +2 -0
- package/views/system/role/modules/AssignUser.vue.d.ts +6 -0
- package/views/system/role/modules/SelectDept.mjs +2 -0
- package/views/system/role/modules/SelectDept.vue.d.ts +6 -0
- package/views/system/role/modules/SelectMenu.mjs +2 -0
- package/views/system/role/modules/SelectMenu.vue.d.ts +6 -0
- package/views/system/role/modules/SelectUser.mjs +2 -0
- package/views/system/role/modules/SelectUser.vue.d.ts +11 -0
- package/views/system/user/index.mjs +451 -0
- package/views/system/user/index.vue.d.ts +9 -0
- package/views/tool/job/index.mjs +297 -0
- package/views/tool/job/index.vue.d.ts +3 -0
- package/views/tool/job/modules/Log.mjs +2 -0
- package/views/tool/job/modules/Log.vue.d.ts +6 -0
- package/assets/IndexItem-5VrD3wb-.css +0 -1
- package/assets/LoginBg-9HH4oQBJ.css +0 -1
- package/assets/button-BtFXYlHm.css +0 -2
- package/layout/Index.mjs +0 -2
- /package/layout/{Index.vue.d.ts → Entry.vue.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./Common-
|
|
1
|
+
import { t as e } from "./Common-DQbblaTl.mjs";
|
|
2
2
|
import { createBlock as t, defineComponent as n, openBlock as r, useModel as i } from "vue";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region ../../packages/dlzn-ui/components/cron/src/Month.vue
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./Common-
|
|
1
|
+
import { t as e } from "./Common-DQbblaTl.mjs";
|
|
2
2
|
import { createBlock as t, defineComponent as n, openBlock as r, useModel as i } from "vue";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region ../../packages/dlzn-ui/components/cron/src/Second.vue
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { l as e } from "./button-Dk3CiB69.mjs";
|
|
2
|
+
import { t } from "./checkbox-CLlUEbkk.mjs";
|
|
3
|
+
import "../components/checkbox/index.mjs";
|
|
4
|
+
import { treeToFlatArr as n } from "../utils/tree.mjs";
|
|
5
|
+
import "../utils/index.mjs";
|
|
6
|
+
import { computed as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, inject as c, openBlock as l, ref as u, unref as d, useTemplateRef as f, watch as p } from "vue";
|
|
7
|
+
//#region ../../packages/dlzn-ui/views/system/role/modules/SelectDept.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var m = { class: "w-full" }, h = { class: "mb-1 flex gap-4" }, g = /* @__PURE__ */ s({
|
|
9
|
+
__name: "SelectDept",
|
|
10
|
+
props: { deptOptions: {} },
|
|
11
|
+
setup(s) {
|
|
12
|
+
let g = s, _ = c("formData"), v = u(!0), y = u(!1), b = u(!0), x = r(() => {
|
|
13
|
+
let e = [], t = (n) => {
|
|
14
|
+
n.forEach((n) => {
|
|
15
|
+
e.push(n), n.children && t(n.children);
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
return t(g.deptOptions), e;
|
|
19
|
+
});
|
|
20
|
+
p(y, (e) => {
|
|
21
|
+
e ? _.deptIds = x.value.map((e) => e.id) : _.deptIds = [];
|
|
22
|
+
});
|
|
23
|
+
let S = f("treeRef"), C = (...e) => {
|
|
24
|
+
if (!b.value) return;
|
|
25
|
+
let { node: t, trigger: r } = e[1], i = e[0].includes(t.value);
|
|
26
|
+
if (r === "node-click") {
|
|
27
|
+
let e = S.value.getTreeData(t.value);
|
|
28
|
+
n(e).forEach((e) => {
|
|
29
|
+
S.value.setItem(e.value, { checked: i });
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
return (n, r) => (l(), i("div", m, [a("div", h, [
|
|
34
|
+
o(d(t), {
|
|
35
|
+
modelValue: v.value,
|
|
36
|
+
"onUpdate:modelValue": r[0] ||= (e) => v.value = e,
|
|
37
|
+
label: "展开/折叠"
|
|
38
|
+
}, null, 8, ["modelValue"]),
|
|
39
|
+
o(d(t), {
|
|
40
|
+
modelValue: y.value,
|
|
41
|
+
"onUpdate:modelValue": r[1] ||= (e) => y.value = e,
|
|
42
|
+
label: "全选/全不选"
|
|
43
|
+
}, null, 8, ["modelValue"]),
|
|
44
|
+
o(d(t), {
|
|
45
|
+
modelValue: b.value,
|
|
46
|
+
"onUpdate:modelValue": r[2] ||= (e) => b.value = e,
|
|
47
|
+
label: "父子联动"
|
|
48
|
+
}, null, 8, ["modelValue"])
|
|
49
|
+
]), o(d(e), {
|
|
50
|
+
ref_key: "treeRef",
|
|
51
|
+
ref: S,
|
|
52
|
+
modelValue: d(_).deptIds,
|
|
53
|
+
"onUpdate:modelValue": r[3] ||= (e) => d(_).deptIds = e,
|
|
54
|
+
"check-strictly": !0,
|
|
55
|
+
checkable: "",
|
|
56
|
+
data: s.deptOptions,
|
|
57
|
+
"expand-all": v.value,
|
|
58
|
+
keys: { value: "id" },
|
|
59
|
+
onChange: C
|
|
60
|
+
}, null, 8, [
|
|
61
|
+
"modelValue",
|
|
62
|
+
"data",
|
|
63
|
+
"expand-all"
|
|
64
|
+
])]));
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
//#endregion
|
|
68
|
+
export { g as t };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { l as e } from "./button-Dk3CiB69.mjs";
|
|
2
|
+
import { t } from "./checkbox-CLlUEbkk.mjs";
|
|
3
|
+
import "../components/checkbox/index.mjs";
|
|
4
|
+
import { treeToFlatArr as n } from "../utils/tree.mjs";
|
|
5
|
+
import "../utils/index.mjs";
|
|
6
|
+
import { computed as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, inject as c, openBlock as l, ref as u, unref as d, useTemplateRef as f, watch as p } from "vue";
|
|
7
|
+
//#region ../../packages/dlzn-ui/views/system/role/modules/SelectMenu.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var m = { class: "w-full" }, h = { class: "mb-1 flex gap-4" }, g = /* @__PURE__ */ s({
|
|
9
|
+
__name: "SelectMenu",
|
|
10
|
+
props: { menuOptions: {} },
|
|
11
|
+
setup(s) {
|
|
12
|
+
let g = s, _ = c("formData"), v = u(!1), y = u(!1), b = u(!0), x = r(() => {
|
|
13
|
+
let e = [], t = (n) => {
|
|
14
|
+
n.forEach((n) => {
|
|
15
|
+
e.push(n), n.children && t(n.children);
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
return t(g.menuOptions), e;
|
|
19
|
+
});
|
|
20
|
+
p(y, (e) => {
|
|
21
|
+
e ? _.menuIds = x.value.map((e) => e.id) : _.menuIds = [];
|
|
22
|
+
});
|
|
23
|
+
let S = f("treeRef"), C = (...e) => {
|
|
24
|
+
if (!b.value) return;
|
|
25
|
+
let { node: t, trigger: r } = e[1], i = e[0].includes(t.value);
|
|
26
|
+
if (r === "node-click") {
|
|
27
|
+
let e = S.value.getTreeData(t.value);
|
|
28
|
+
n(e).forEach((e) => {
|
|
29
|
+
S.value.setItem(e.value, { checked: i });
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
return (n, r) => (l(), i("div", m, [a("div", h, [
|
|
34
|
+
o(d(t), {
|
|
35
|
+
modelValue: v.value,
|
|
36
|
+
"onUpdate:modelValue": r[0] ||= (e) => v.value = e,
|
|
37
|
+
label: "展开/折叠"
|
|
38
|
+
}, null, 8, ["modelValue"]),
|
|
39
|
+
o(d(t), {
|
|
40
|
+
modelValue: y.value,
|
|
41
|
+
"onUpdate:modelValue": r[1] ||= (e) => y.value = e,
|
|
42
|
+
label: "全选/全不选"
|
|
43
|
+
}, null, 8, ["modelValue"]),
|
|
44
|
+
o(d(t), {
|
|
45
|
+
modelValue: b.value,
|
|
46
|
+
"onUpdate:modelValue": r[2] ||= (e) => b.value = e,
|
|
47
|
+
label: "父子联动"
|
|
48
|
+
}, null, 8, ["modelValue"])
|
|
49
|
+
]), o(d(e), {
|
|
50
|
+
ref_key: "treeRef",
|
|
51
|
+
ref: S,
|
|
52
|
+
modelValue: d(_).menuIds,
|
|
53
|
+
"onUpdate:modelValue": r[3] ||= (e) => d(_).menuIds = e,
|
|
54
|
+
"check-strictly": !0,
|
|
55
|
+
checkable: "",
|
|
56
|
+
data: s.menuOptions,
|
|
57
|
+
"expand-all": v.value,
|
|
58
|
+
keys: { value: "id" },
|
|
59
|
+
onChange: C
|
|
60
|
+
}, null, 8, [
|
|
61
|
+
"modelValue",
|
|
62
|
+
"data",
|
|
63
|
+
"expand-all"
|
|
64
|
+
])]));
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
//#endregion
|
|
68
|
+
export { g as t };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { x as e } from "./button-Dk3CiB69.mjs";
|
|
2
|
+
import t from "../plugins/autoImport/$msg/index.mjs";
|
|
3
|
+
import { t as n } from "./page-list-C3nqGnnX.mjs";
|
|
4
|
+
import "../components/page-list/index.mjs";
|
|
5
|
+
import { createBlock as r, defineComponent as i, mergeProps as a, openBlock as o, unref as s, useTemplateRef as c } from "vue";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ../../packages/dlzn-ui/views/system/role/modules/SelectUser.vue
|
|
8
|
+
var l = /* @__PURE__ */ i({
|
|
9
|
+
__name: "SelectUser",
|
|
10
|
+
props: {
|
|
11
|
+
roleId: {},
|
|
12
|
+
tableCol: {}
|
|
13
|
+
},
|
|
14
|
+
setup(i, { expose: l }) {
|
|
15
|
+
let u = i, d = c("pageListRef"), f = {
|
|
16
|
+
apis: { list: { method: (t) => e.Get("system/role/authUser/unallocatedList", { params: {
|
|
17
|
+
...t,
|
|
18
|
+
roleId: u.roleId
|
|
19
|
+
} }) } },
|
|
20
|
+
cardProps: {
|
|
21
|
+
bodyClassName: "p-0!",
|
|
22
|
+
shadow: !1
|
|
23
|
+
},
|
|
24
|
+
columns: u.tableCol,
|
|
25
|
+
formItems: [{
|
|
26
|
+
_label: "用户名称",
|
|
27
|
+
component: "TInput",
|
|
28
|
+
model: "userName"
|
|
29
|
+
}, {
|
|
30
|
+
_label: "手机号码",
|
|
31
|
+
component: "TInput",
|
|
32
|
+
model: "phonenumber"
|
|
33
|
+
}],
|
|
34
|
+
tableOtherProps: {
|
|
35
|
+
flexHeight: !1,
|
|
36
|
+
rowKey: "userId",
|
|
37
|
+
showColumnConfigBtn: !1,
|
|
38
|
+
showRowSelect: "multiple",
|
|
39
|
+
showToggleFullscreenBtn: !1
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
async function p() {
|
|
43
|
+
let n = d.value.selectedRowKeys;
|
|
44
|
+
if (n.length === 0) return Promise.reject("请选择要分配的用户");
|
|
45
|
+
await e.Put("system/role/authUser/selectAll", {}, { params: {
|
|
46
|
+
roleId: u.roleId,
|
|
47
|
+
userIds: n.join(",")
|
|
48
|
+
} }), t("分配用户成功");
|
|
49
|
+
}
|
|
50
|
+
return l({ handleSubmit: p }), (e, t) => (o(), r(s(n), a({
|
|
51
|
+
ref_key: "pageListRef",
|
|
52
|
+
ref: d
|
|
53
|
+
}, f), null, 16));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//#endregion
|
|
57
|
+
export { l as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as e, a as t, r as n, t as r, x as i, y as a } from "./button-
|
|
1
|
+
import { V as e, a as t, r as n, t as r, x as i, y as a } from "./button-Dk3CiB69.mjs";
|
|
2
2
|
import { createBlock as o, createTextVNode as s, createVNode as c, defineComponent as l, inject as u, openBlock as d, reactive as f, unref as p, useTemplateRef as m, watchEffect as h, withCtx as g } from "vue";
|
|
3
3
|
import { useRoute as _ } from "vue-router";
|
|
4
4
|
//#endregion
|