dlzn-ui 2.0.26 → 2.0.28

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.
Files changed (41) hide show
  1. package/chunks/{AssignUser-B8KO6qit.mjs → AssignUser-DZvNJ6_v.mjs} +2 -2
  2. package/chunks/{DictTypeDetail-DDv2c9JG.mjs → DictTypeDetail--OE6JJ5s.mjs} +1 -1
  3. package/chunks/{Log-CPni6oj5.mjs → Log-DTQeRVz1.mjs} +1 -1
  4. package/chunks/{SelectUser-Ce69wfaR.mjs → SelectUser-Y-2MCvw3.mjs} +1 -1
  5. package/chunks/{custom-page-list-DNONwY-V.mjs → custom-page-list-Dkjf1nLR.mjs} +2 -2
  6. package/chunks/{page-list-DMDDWHTe.mjs → page-list-DUYDkWcj.mjs} +4 -4
  7. package/chunks/{page-query-CRbcQbQW.mjs → page-query-oFiHpSCX.mjs} +9 -6
  8. package/components/custom-page-list/index.mjs +1 -1
  9. package/components/custom-page-list/src/custom-page-list.mjs +1 -1
  10. package/components/index.mjs +3 -3
  11. package/components/page-list/index.mjs +1 -1
  12. package/components/page-list/src/page-list.d.ts +1 -1
  13. package/components/page-list/src/page-list.mjs +1 -1
  14. package/components/page-query/index.mjs +1 -1
  15. package/components/page-query/src/page-query.mjs +1 -1
  16. package/components/page-query/src/page-query.vue.d.ts +2 -2
  17. package/components/select-sys-user/src/Picker.mjs +1 -1
  18. package/package.json +1 -1
  19. package/proj-template/.cursor/skills/refactor-page-list/SKILL.md +314 -0
  20. package/proj-template/.cursor/skills/refactor-page-list/examples.md +261 -0
  21. package/proj-template/.vscode/settings.json +1 -0
  22. package/views/index.mjs +4 -0
  23. package/views/monitor/logininfor/index.mjs +151 -0
  24. package/views/monitor/logininfor/index.vue.d.ts +3 -0
  25. package/views/monitor/operlog/index.mjs +231 -0
  26. package/views/monitor/operlog/index.vue.d.ts +3 -0
  27. package/views/system/config/index.mjs +192 -0
  28. package/views/system/config/index.vue.d.ts +3 -0
  29. package/views/system/dept/index.mjs +1 -1
  30. package/views/system/dict/index.mjs +2 -2
  31. package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
  32. package/views/system/menu/index.mjs +1 -1
  33. package/views/system/notice/index.mjs +151 -0
  34. package/views/system/notice/index.vue.d.ts +3 -0
  35. package/views/system/post/index.mjs +1 -1
  36. package/views/system/role/index.mjs +2 -2
  37. package/views/system/role/modules/AssignUser.mjs +1 -1
  38. package/views/system/role/modules/SelectUser.mjs +1 -1
  39. package/views/system/user/index.mjs +1 -1
  40. package/views/tool/job/index.mjs +2 -2
  41. package/views/tool/job/modules/Log.mjs +1 -1
@@ -0,0 +1,192 @@
1
+ import { createBlock as e, defineComponent as t, mergeProps as n, openBlock as r, resolveComponent as i } from "vue";
2
+ //#endregion
3
+ //#region ../../packages/dlzn-ui/views/system/config/index.vue
4
+ var a = /* @__PURE__ */ t({
5
+ __name: "index",
6
+ setup(t) {
7
+ let a = useTemplateRef("pageListRef"), o = {
8
+ configKey: {
9
+ _label: "参数键名",
10
+ _required: !0,
11
+ component: "TInput",
12
+ model: "configKey"
13
+ },
14
+ configName: {
15
+ _label: "参数名称",
16
+ _required: !0,
17
+ component: "TInput",
18
+ model: "configName"
19
+ },
20
+ configType: {
21
+ _label: "系统内置",
22
+ component: "TRadioGroup",
23
+ dicCode: "sys_yes_no",
24
+ model: "configType"
25
+ },
26
+ configValue: {
27
+ _label: "参数键值",
28
+ _required: !0,
29
+ component: "TInput",
30
+ model: "configValue"
31
+ },
32
+ dateRange: {
33
+ _class: "col-span-2",
34
+ _label: "创建时间",
35
+ component: "TDatePicker",
36
+ model: "dateRange",
37
+ type: "daterange"
38
+ },
39
+ remark: {
40
+ _label: "备注",
41
+ component: "TTextarea",
42
+ model: "remark"
43
+ }
44
+ }, s = {
45
+ apis: {
46
+ delete: {
47
+ method: "system/config",
48
+ permission: "system:config:remove",
49
+ showBatch: !0
50
+ },
51
+ export: {
52
+ method: "system/config/export",
53
+ permission: "system:config:export"
54
+ },
55
+ list: { method: (e) => $alova.Get("system/config/list", { params: {
56
+ ...e,
57
+ dateRange: void 0,
58
+ "params[beginTime]": e.dateRange[0],
59
+ "params[endTime]": e.dateRange[1]
60
+ } }) }
61
+ },
62
+ columns: [
63
+ {
64
+ colKey: "configId",
65
+ title: "参数主键"
66
+ },
67
+ {
68
+ colKey: "configName",
69
+ title: "参数名称"
70
+ },
71
+ {
72
+ colKey: "configKey",
73
+ title: "参数键名"
74
+ },
75
+ {
76
+ colKey: "configValue",
77
+ title: "参数键值"
78
+ },
79
+ {
80
+ cell: {
81
+ component: "DicLabel",
82
+ dicCode: "sys_yes_no"
83
+ },
84
+ colKey: "configType",
85
+ title: "系统内置"
86
+ },
87
+ {
88
+ colKey: "createTime",
89
+ title: "创建时间"
90
+ },
91
+ {
92
+ colKey: "remark",
93
+ resize: { maxWidth: 300 },
94
+ title: "备注"
95
+ },
96
+ {
97
+ cell: {
98
+ buttons: [({ row: e }) => ({
99
+ default: "编辑",
100
+ onClick: () => {
101
+ let t = ref(null);
102
+ watch(t, () => {
103
+ t.value.setFormData(e);
104
+ }, { once: !0 }), $confirm({
105
+ body: () => h(TForm, {
106
+ items: [
107
+ o.configName,
108
+ o.configKey,
109
+ o.configValue,
110
+ o.configType,
111
+ o.remark
112
+ ],
113
+ labelAlign: "right",
114
+ layout: "vertical",
115
+ ref: t
116
+ }),
117
+ header: "修改参数",
118
+ onConfirmCallback: async () => {
119
+ await $alova.Put("system/config", {
120
+ ...await t.value.validate(),
121
+ configId: e.configId
122
+ }), $msg.success("参数修改成功"), a.value.query();
123
+ },
124
+ width: 460
125
+ });
126
+ },
127
+ permission: "system:config:edit"
128
+ })],
129
+ component: "Buttons"
130
+ },
131
+ colKey: "_operation",
132
+ title: "操作"
133
+ }
134
+ ],
135
+ formItems: [
136
+ o.configName,
137
+ o.configKey,
138
+ {
139
+ ...o.configType,
140
+ component: "TSelect"
141
+ },
142
+ o.dateRange
143
+ ],
144
+ operations: [{
145
+ default: "新增",
146
+ onClick: () => {
147
+ let e = ref(null);
148
+ $confirm({
149
+ body: () => h(TForm, {
150
+ data: reactive({ configType: "Y" }),
151
+ items: [
152
+ o.configName,
153
+ o.configKey,
154
+ o.configValue,
155
+ o.configType,
156
+ o.remark
157
+ ],
158
+ labelAlign: "right",
159
+ layout: "vertical",
160
+ ref: e
161
+ }),
162
+ header: "添加参数",
163
+ onConfirmCallback: async () => {
164
+ await $alova.Post("system/config", await e.value.validate()), $msg.success("参数添加成功"), a.value.query();
165
+ },
166
+ width: 460
167
+ });
168
+ },
169
+ permission: "system:config:add"
170
+ }, {
171
+ default: "刷新缓存",
172
+ permission: "system:config:remove",
173
+ popconfirm: {
174
+ content: "确定要刷新缓存吗?",
175
+ onConfirm: async () => {
176
+ await $alova.Delete("system/config/refreshCache", void 0, { meta: { useSuccessMsg: !0 } });
177
+ }
178
+ }
179
+ }],
180
+ tableOtherProps: { rowKey: "configId" }
181
+ };
182
+ return (t, o) => {
183
+ let c = i("TPageList");
184
+ return r(), e(c, n({
185
+ ref_key: "pageListRef",
186
+ ref: a
187
+ }, s), null, 16);
188
+ };
189
+ }
190
+ });
191
+ //#endregion
192
+ export { a as default };
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -2,7 +2,7 @@ import { F as e, S as t, o as n } from "../../../chunks/provider-BhFm5rvy.mjs";
2
2
  import r from "../../../plugins/autoImport/$msg/index.mjs";
3
3
  import { flatArrToTree as i } from "../../../utils/tree.mjs";
4
4
  import "../../../utils/index.mjs";
5
- import { t as a } from "../../../chunks/page-list-DMDDWHTe.mjs";
5
+ import { t as a } from "../../../chunks/page-list-DUYDkWcj.mjs";
6
6
  import "../../../components/page-list/index.mjs";
7
7
  import { deptTreeList as o, deptTreeListSend as s } from "./utils.mjs";
8
8
  import { 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, watch as _ } from "vue";
@@ -1,8 +1,8 @@
1
1
  import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-BhFm5rvy.mjs";
2
2
  import i from "../../../plugins/autoImport/$msg/index.mjs";
3
- import { t as a } from "../../../chunks/page-list-DMDDWHTe.mjs";
3
+ import { t as a } from "../../../chunks/page-list-DUYDkWcj.mjs";
4
4
  import "../../../components/page-list/index.mjs";
5
- import { t as o } from "../../../chunks/DictTypeDetail-DDv2c9JG.mjs";
5
+ import { t as o } from "../../../chunks/DictTypeDetail--OE6JJ5s.mjs";
6
6
  import { createBlock as s, defineComponent as c, h as l, mergeProps as u, openBlock as d, reactive as f, ref as p, unref as m, useTemplateRef as h, watch as g } from "vue";
7
7
  //#endregion
8
8
  //#region ../../packages/dlzn-ui/views/system/dict/index.vue
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/DictTypeDetail-DDv2c9JG.mjs";
1
+ import { t as e } from "../../../../chunks/DictTypeDetail--OE6JJ5s.mjs";
2
2
  export { e as default };
@@ -5,7 +5,7 @@ import a from "../../../plugins/autoImport/$msg/index.mjs";
5
5
  import { isFalsy as o } from "../../../utils/boolean.mjs";
6
6
  import { flatArrToTree as s } from "../../../utils/tree.mjs";
7
7
  import "../../../utils/index.mjs";
8
- import { t as c } from "../../../chunks/page-list-DMDDWHTe.mjs";
8
+ import { t as c } from "../../../chunks/page-list-DUYDkWcj.mjs";
9
9
  import "../../../components/page-list/index.mjs";
10
10
  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";
11
11
  import { useRequest as y } from "alova/client";
@@ -0,0 +1,151 @@
1
+ import { createBlock as e, defineComponent as t, mergeProps as n, openBlock as r, resolveComponent as i } from "vue";
2
+ //#endregion
3
+ //#region ../../packages/dlzn-ui/views/system/notice/index.vue
4
+ var a = /* @__PURE__ */ t({
5
+ __name: "index",
6
+ setup(t) {
7
+ let a = useTemplateRef("pageListRef"), o = {
8
+ createBy: {
9
+ _label: "操作人员",
10
+ component: "TInput",
11
+ model: "createBy"
12
+ },
13
+ noticeContent: {
14
+ _label: "公告内容",
15
+ component: "TTextarea",
16
+ model: "noticeContent"
17
+ },
18
+ noticeTitle: {
19
+ _label: "公告标题",
20
+ _required: !0,
21
+ component: "TInput",
22
+ model: "noticeTitle"
23
+ },
24
+ noticeType: {
25
+ _label: "公告类型",
26
+ _required: !0,
27
+ component: "TSelect",
28
+ dicCode: "sys_notice_type",
29
+ model: "noticeType"
30
+ },
31
+ status: {
32
+ _label: "公告状态",
33
+ component: "TRadioGroup",
34
+ dicCode: "sys_notice_status",
35
+ model: "status"
36
+ }
37
+ }, s = [
38
+ o.noticeTitle,
39
+ o.noticeType,
40
+ o.status,
41
+ o.noticeContent
42
+ ], c = {
43
+ apis: {
44
+ delete: {
45
+ method: "system/notice",
46
+ permission: "system:notice:remove",
47
+ showBatch: !0
48
+ },
49
+ list: { method: "system/notice/list" }
50
+ },
51
+ columns: [
52
+ {
53
+ colKey: "noticeTitle",
54
+ title: "公告标题"
55
+ },
56
+ {
57
+ cell: {
58
+ component: "DicLabel",
59
+ dicCode: "sys_notice_type"
60
+ },
61
+ colKey: "noticeType",
62
+ title: "公告类型"
63
+ },
64
+ {
65
+ cell: {
66
+ component: "DicLabel",
67
+ dicCode: "sys_notice_status"
68
+ },
69
+ colKey: "status",
70
+ title: "公告状态"
71
+ },
72
+ {
73
+ colKey: "createBy",
74
+ title: "创建者"
75
+ },
76
+ {
77
+ colKey: "createTime",
78
+ title: "创建时间"
79
+ },
80
+ {
81
+ cell: {
82
+ buttons: [({ row: e }) => ({
83
+ default: "编辑",
84
+ onClick: () => {
85
+ let t = ref(null);
86
+ watch(t, () => {
87
+ t.value.setFormData(e);
88
+ }, { once: !0 }), $confirm({
89
+ body: () => h(TForm, {
90
+ items: s,
91
+ labelAlign: "right",
92
+ layout: "vertical",
93
+ ref: t
94
+ }),
95
+ header: "修改公告",
96
+ onConfirmCallback: async () => {
97
+ await $alova.Put("system/notice", {
98
+ ...await t.value.validate(),
99
+ noticeId: e.noticeId
100
+ }), $msg.success("公告修改成功"), a.value.query();
101
+ },
102
+ width: 460
103
+ });
104
+ },
105
+ permission: "system:notice:edit"
106
+ })],
107
+ component: "Buttons"
108
+ },
109
+ colKey: "_operation",
110
+ title: "操作"
111
+ }
112
+ ],
113
+ formItems: [
114
+ o.noticeTitle,
115
+ o.noticeType,
116
+ o.createBy
117
+ ],
118
+ operations: [{
119
+ default: "新增",
120
+ onClick: () => {
121
+ let e = ref(null);
122
+ $confirm({
123
+ body: () => h(TForm, {
124
+ data: reactive({ status: "0" }),
125
+ items: s,
126
+ labelAlign: "right",
127
+ layout: "vertical",
128
+ ref: e
129
+ }),
130
+ header: "添加公告",
131
+ onConfirmCallback: async () => {
132
+ await $alova.Post("system/notice", await e.value.validate()), $msg.success("公告添加成功"), a.value.query();
133
+ },
134
+ width: 460
135
+ });
136
+ },
137
+ permission: "system:notice:add"
138
+ }],
139
+ tableOtherProps: { rowKey: "noticeId" }
140
+ };
141
+ return (t, o) => {
142
+ let s = i("TPageList");
143
+ return r(), e(s, n({
144
+ ref_key: "pageListRef",
145
+ ref: a
146
+ }, c), null, 16);
147
+ };
148
+ }
149
+ });
150
+ //#endregion
151
+ export { a as default };
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -1,6 +1,6 @@
1
1
  import { F as e, S as t, o as n } from "../../../chunks/provider-BhFm5rvy.mjs";
2
2
  import r from "../../../plugins/autoImport/$msg/index.mjs";
3
- import { t as i } from "../../../chunks/page-list-DMDDWHTe.mjs";
3
+ import { t as i } from "../../../chunks/page-list-DUYDkWcj.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
@@ -1,8 +1,8 @@
1
1
  import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-BhFm5rvy.mjs";
2
2
  import i from "../../../plugins/autoImport/$msg/index.mjs";
3
- import { t as a } from "../../../chunks/page-list-DMDDWHTe.mjs";
3
+ import { t as a } from "../../../chunks/page-list-DUYDkWcj.mjs";
4
4
  import "../../../components/page-list/index.mjs";
5
- import { t as o } from "../../../chunks/AssignUser-B8KO6qit.mjs";
5
+ import { t as o } from "../../../chunks/AssignUser-DZvNJ6_v.mjs";
6
6
  import { t as s } from "../../../chunks/SelectDept-BdP4Fevb.mjs";
7
7
  import { t as c } from "../../../chunks/SelectMenu-C8uTKPyO.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";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/AssignUser-B8KO6qit.mjs";
1
+ import { t as e } from "../../../../chunks/AssignUser-DZvNJ6_v.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/SelectUser-Ce69wfaR.mjs";
1
+ import { t as e } from "../../../../chunks/SelectUser-Y-2MCvw3.mjs";
2
2
  export { e as default };
@@ -4,7 +4,7 @@ import a from "../../../plugins/autoImport/$msg/index.mjs";
4
4
  import { passwordReg as o, passwordRegMessage as s } from "../../../constants/others.mjs";
5
5
  import { t as c } from "../../../chunks/table-CqT9HbMR.mjs";
6
6
  import "../../../components/table/index.mjs";
7
- import { t as l } from "../../../chunks/page-list-DMDDWHTe.mjs";
7
+ import { t as l } from "../../../chunks/page-list-DUYDkWcj.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";
@@ -1,8 +1,8 @@
1
1
  import { F as e, I as t, S as n, o as r } from "../../../chunks/provider-BhFm5rvy.mjs";
2
2
  import i from "../../../plugins/autoImport/$msg/index.mjs";
3
- import { t as a } from "../../../chunks/page-list-DMDDWHTe.mjs";
3
+ import { t as a } from "../../../chunks/page-list-DUYDkWcj.mjs";
4
4
  import "../../../components/page-list/index.mjs";
5
- import { t as o } from "../../../chunks/Log-CPni6oj5.mjs";
5
+ import { t as o } from "../../../chunks/Log-DTQeRVz1.mjs";
6
6
  import { createBlock as s, defineComponent as c, h as l, mergeProps as u, openBlock as d, reactive as f, ref as p, unref as m, useTemplateRef as h, watch as g } from "vue";
7
7
  //#endregion
8
8
  //#region ../../packages/dlzn-ui/views/tool/job/index.vue
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Log-CPni6oj5.mjs";
1
+ import { t as e } from "../../../../chunks/Log-DTQeRVz1.mjs";
2
2
  export { e as default };