dlzn-ui 2.0.57 → 2.0.59

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 (158) hide show
  1. package/assets/{provider-DIrGVGOU.css → provider-B7Qp92IB.css} +1 -1
  2. package/chunks/{AssignUser-DtER_ejJ.mjs → AssignUser-bMazhfbV.mjs} +3 -3
  3. package/chunks/{BasicInfo-BUMKRgQJ.mjs → BasicInfo-gyjQU2uO.mjs} +1 -1
  4. package/chunks/{ColumnInfo-Db_V0RdZ.mjs → ColumnInfo-CFYZ5hWe.mjs} +2 -2
  5. package/chunks/{Common-C50CJzOp.mjs → Common-DBSYg1d6.mjs} +1 -1
  6. package/chunks/{Day-Ca12so8o.mjs → Day-ChCPxAyN.mjs} +1 -1
  7. package/chunks/{DictTypeDetail-48OfCZLN.mjs → DictTypeDetail-ndBNKRnJ.mjs} +2 -2
  8. package/chunks/{GenInfo-yGFmqWPU.mjs → GenInfo-Cu9r0CWu.mjs} +1 -1
  9. package/chunks/{Hour-DsNBBlc4.mjs → Hour-DliOctKJ.mjs} +1 -1
  10. package/chunks/{Import-DuiyoZya.mjs → Import-Bzr5ifWR.mjs} +2 -2
  11. package/chunks/{Index-Bwa9roLv.mjs → Index-BTzAo7cI.mjs} +1 -1
  12. package/chunks/{Index-3OTZvoEG.mjs → Index-BlMeGYHt.mjs} +1 -1
  13. package/chunks/{Index-Z6v1V3J6.mjs → Index-DkdDlFEM.mjs} +1 -1
  14. package/chunks/{Index-oBN7hDRt.mjs → Index-MqUf5ZDu.mjs} +1 -1
  15. package/chunks/{IndexItem-DNEqAAjM.mjs → IndexItem-A_Ovo4M5.mjs} +1 -1
  16. package/chunks/{Log-CNy8LPBX.mjs → Log-BDGXwssd.mjs} +2 -2
  17. package/chunks/{LoginBg-R2KrvisY.mjs → LoginBg-DKefXcPd.mjs} +1 -1
  18. package/chunks/{Minute-DsOjDKJw.mjs → Minute-COzGc3ad.mjs} +1 -1
  19. package/chunks/{Month-tFXTN8o3.mjs → Month-Dx81Eaal.mjs} +1 -1
  20. package/chunks/{Preview-Bjjy5QvH.mjs → Preview-ChIMapuV.mjs} +1 -1
  21. package/chunks/{Second-BDd95Jav.mjs → Second-BWbEhs38.mjs} +1 -1
  22. package/chunks/{SelectDept-BSOcrk6_.mjs → SelectDept-DbVJHioK.mjs} +1 -1
  23. package/chunks/{SelectMenu-G_Toehs6.mjs → SelectMenu-C7L1sfLX.mjs} +1 -1
  24. package/chunks/{SelectUser-CIOnHIpt.mjs → SelectUser-C43-AOq3.mjs} +2 -2
  25. package/chunks/{UserInfo-CLKPzdpf.mjs → UserInfo-BhTJ0uFN.mjs} +1 -1
  26. package/chunks/{app-C2GscqOQ.mjs → app-Ch2PbR-W.mjs} +1 -1
  27. package/chunks/{custom-page-list-BEwJFbop.mjs → custom-page-list-C_Ls1OqQ.mjs} +4 -4
  28. package/chunks/{custom-page-table-97Xi_m_P.mjs → custom-page-table-DD3RNBZW.mjs} +2 -2
  29. package/chunks/job-DcKHJj9d.mjs +297 -0
  30. package/chunks/{overview-DXgHrRkH.mjs → overview-CtHQkWg4.mjs} +1 -1
  31. package/chunks/{page-list-9ShvLAqK.mjs → page-list-BwtbLllw.mjs} +3 -3
  32. package/chunks/{page-query-Bo30X-Np.mjs → page-query-21MkVjW-.mjs} +1 -1
  33. package/chunks/{page-table-HHguazH_.mjs → page-table-CNXoo8NE.mjs} +3 -3
  34. package/chunks/{pagination-BJfw8dU3.mjs → pagination-D9t3wPwB.mjs} +1 -1
  35. package/chunks/{provider-CH9EHEA4.mjs → provider-BPshoiNR.mjs} +373 -359
  36. package/chunks/{table-8T5HDisC.mjs → table-CZTzoYO4.mjs} +1 -1
  37. package/components/app/index.mjs +1 -1
  38. package/components/app/src/app.mjs +1 -1
  39. package/components/button/index.mjs +1 -1
  40. package/components/button/src/button.mjs +1 -1
  41. package/components/checkbox-group/index.mjs +1 -1
  42. package/components/checkbox-group/src/checkbox-group.mjs +1 -1
  43. package/components/cron/index.mjs +1 -1
  44. package/components/cron/src/Common.mjs +1 -1
  45. package/components/cron/src/Day.mjs +1 -1
  46. package/components/cron/src/Hour.mjs +1 -1
  47. package/components/cron/src/Minute.mjs +1 -1
  48. package/components/cron/src/Month.mjs +1 -1
  49. package/components/cron/src/Picker.mjs +6 -6
  50. package/components/cron/src/Second.mjs +1 -1
  51. package/components/cron/src/cron.mjs +1 -1
  52. package/components/custom-page-list/index.mjs +1 -1
  53. package/components/custom-page-list/src/custom-page-list.mjs +1 -1
  54. package/components/custom-page-table/index.mjs +1 -1
  55. package/components/custom-page-table/src/custom-page-table.mjs +1 -1
  56. package/components/form/index.mjs +1 -1
  57. package/components/form/src/form.mjs +1 -1
  58. package/components/index.mjs +9 -9
  59. package/components/overview/index.mjs +1 -1
  60. package/components/overview/src/DicLabel/Index.mjs +1 -1
  61. package/components/overview/src/IndexItem.mjs +1 -1
  62. package/components/overview/src/overview.mjs +1 -1
  63. package/components/page-list/index.mjs +1 -1
  64. package/components/page-list/src/page-list.d.ts +1 -3
  65. package/components/page-list/src/page-list.mjs +1 -1
  66. package/components/page-query/index.mjs +1 -1
  67. package/components/page-query/src/page-query.mjs +1 -1
  68. package/components/page-table/index.mjs +1 -1
  69. package/components/page-table/src/page-table.mjs +1 -1
  70. package/components/pagination/index.mjs +1 -1
  71. package/components/pagination/src/pagination.mjs +1 -1
  72. package/components/provider/index.mjs +1 -1
  73. package/components/provider/src/Provider.mjs +1 -1
  74. package/components/radio-group/index.mjs +1 -1
  75. package/components/radio-group/src/radio-group.mjs +1 -1
  76. package/components/select/index.mjs +1 -1
  77. package/components/select/src/select.mjs +1 -1
  78. package/components/select-sys-user/index.mjs +1 -1
  79. package/components/select-sys-user/src/Picker.mjs +2 -2
  80. package/components/select-sys-user/src/select-sys-user.mjs +1 -1
  81. package/components/table/index.mjs +1 -1
  82. package/components/table/src/table.mjs +1 -1
  83. package/components/tree/index.mjs +1 -1
  84. package/components/tree/src/tree.mjs +1 -1
  85. package/components/tree-select/index.mjs +1 -1
  86. package/components/tree-select/src/tree-select.mjs +1 -1
  87. package/components/upload/index.mjs +1 -1
  88. package/components/upload/src/upload.d.ts +1 -3
  89. package/components/upload/src/upload.mjs +1 -1
  90. package/hooks/useDicOptions/index.mjs +1 -1
  91. package/hooks/useSysUser/index.mjs +1 -1
  92. package/index.html +1 -1
  93. package/layout/Entry.mjs +1 -1
  94. package/layout/Home.mjs +1 -1
  95. package/layout/Home1.mjs +2 -2
  96. package/layout/Login.mjs +2 -2
  97. package/layout/NotFound.mjs +1 -1
  98. package/layout/modules/Aside.mjs +1 -1
  99. package/layout/modules/Breadcrumb.mjs +1 -1
  100. package/layout/modules/Header.mjs +1 -1
  101. package/layout/modules/LoginBg.mjs +1 -1
  102. package/layout/profile/Index.mjs +2 -2
  103. package/layout/profile/ResetPwd.mjs +1 -1
  104. package/layout/profile/UserInfo.mjs +1 -1
  105. package/main.mjs +2 -2
  106. package/package.json +1 -1
  107. package/plugins/autoImport/$alova/index.mjs +1 -1
  108. package/plugins/autoImport/$confirm/index.mjs +1 -1
  109. package/plugins/autoImport/$dialog/index.mjs +1 -1
  110. package/plugins/autoImport/$drawer/index.mjs +1 -1
  111. package/plugins/captcha/captcha.mjs +1 -1
  112. package/plugins/captcha/index.mjs +1 -1
  113. package/plugins/initialize/webUpdateNotify.mjs +1 -1
  114. package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
  115. package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
  116. package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
  117. package/plugins/tableRenders/cell/index.mjs +3 -3
  118. package/router/index.mjs +1 -1
  119. package/store/modules/common.mjs +1 -1
  120. package/store/modules/login.mjs +1 -1
  121. package/store/modules/recentRouters.mjs +1 -1
  122. package/store/modules/router.mjs +1 -1
  123. package/store/modules/user.mjs +1 -1
  124. package/views/index.mjs +1 -0
  125. package/views/monitor/cache/index.mjs +2 -2
  126. package/views/monitor/cacheList/index.mjs +2 -2
  127. package/views/monitor/job/index.mjs +12 -0
  128. package/views/monitor/job/index.vue.d.ts +3 -0
  129. package/views/monitor/logininfor/index.mjs +2 -2
  130. package/views/monitor/online/index.mjs +2 -2
  131. package/views/monitor/operlog/index.mjs +2 -2
  132. package/views/monitor/server/index.mjs +2 -2
  133. package/views/system/config/index.mjs +2 -2
  134. package/views/system/dept/index.mjs +2 -2
  135. package/views/system/dept/utils.mjs +1 -1
  136. package/views/system/dict/index.mjs +3 -3
  137. package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
  138. package/views/system/menu/index.mjs +2 -2
  139. package/views/system/menu/utils.mjs +1 -1
  140. package/views/system/notice/index.mjs +2 -2
  141. package/views/system/post/index.mjs +2 -2
  142. package/views/system/role/index.mjs +5 -5
  143. package/views/system/role/modules/AssignUser.mjs +1 -1
  144. package/views/system/role/modules/SelectDept.mjs +1 -1
  145. package/views/system/role/modules/SelectMenu.mjs +1 -1
  146. package/views/system/role/modules/SelectUser.mjs +1 -1
  147. package/views/system/user/index.mjs +142 -116
  148. package/views/system/user/index.vue.d.ts +5 -1
  149. package/views/tool/gen/editTable/index.mjs +4 -4
  150. package/views/tool/gen/editTable/modules/BasicInfo.mjs +1 -1
  151. package/views/tool/gen/editTable/modules/ColumnInfo.mjs +1 -1
  152. package/views/tool/gen/editTable/modules/GenInfo.mjs +1 -1
  153. package/views/tool/gen/index.mjs +4 -4
  154. package/views/tool/gen/modules/Import.mjs +1 -1
  155. package/views/tool/gen/modules/Preview.mjs +1 -1
  156. package/views/tool/job/index.mjs +2 -297
  157. package/views/tool/job/modules/Log.mjs +1 -1
  158. package/README.md +0 -137
@@ -1,9 +1,13 @@
1
1
  import { FormItem } from '../../../components/form';
2
+ import { PageListProps } from '../../../components/page-list';
2
3
  import { TableCol } from '../../../components/table';
3
4
  type __VLS_Props = {
4
5
  formItemMap?: Record<string, FormItem>;
6
+ operations?: PageListProps['operations'];
5
7
  tableColumns?: TableCol[];
6
8
  };
7
- declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
10
+ query: () => void;
11
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
12
  declare const _default: typeof __VLS_export;
9
13
  export default _default;
@@ -1,8 +1,8 @@
1
- import { S as e, n as t, z as n } from "../../../../chunks/provider-CH9EHEA4.mjs";
1
+ import { S as e, n as t, z as n } from "../../../../chunks/provider-BPshoiNR.mjs";
2
2
  import r from "../../../../store/modules/excludeKPname.mjs";
3
- import { t as i } from "../../../../chunks/BasicInfo-BUMKRgQJ.mjs";
4
- import { t as a } from "../../../../chunks/ColumnInfo-Db_V0RdZ.mjs";
5
- import { t as o } from "../../../../chunks/GenInfo-yGFmqWPU.mjs";
3
+ import { t as i } from "../../../../chunks/BasicInfo-gyjQU2uO.mjs";
4
+ import { t as a } from "../../../../chunks/ColumnInfo-CFYZ5hWe.mjs";
5
+ import { t as o } from "../../../../chunks/GenInfo-Cu9r0CWu.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
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../../chunks/BasicInfo-BUMKRgQJ.mjs";
1
+ import { t as e } from "../../../../../chunks/BasicInfo-gyjQU2uO.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../../chunks/ColumnInfo-Db_V0RdZ.mjs";
1
+ import { t as e } from "../../../../../chunks/ColumnInfo-CFYZ5hWe.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../../chunks/GenInfo-yGFmqWPU.mjs";
1
+ import { t as e } from "../../../../../chunks/GenInfo-Cu9r0CWu.mjs";
2
2
  export { e as default };
@@ -1,9 +1,9 @@
1
- import { H as e, S as t, V as n } from "../../../chunks/provider-CH9EHEA4.mjs";
1
+ import { H as e, S as t, V as n } from "../../../chunks/provider-BPshoiNR.mjs";
2
2
  import { n as r } from "../../../chunks/useAppContext-D47amIp5.mjs";
3
- import { t as i } from "../../../chunks/page-list-9ShvLAqK.mjs";
3
+ import { t as i } from "../../../chunks/page-list-BwtbLllw.mjs";
4
4
  import "../../../components/page-list/index.mjs";
5
- import { t as a } from "../../../chunks/Import-DuiyoZya.mjs";
6
- import { t as o } from "../../../chunks/Preview-Bjjy5QvH.mjs";
5
+ import { t as a } from "../../../chunks/Import-Bzr5ifWR.mjs";
6
+ import { t as o } from "../../../chunks/Preview-ChIMapuV.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
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Import-DuiyoZya.mjs";
1
+ import { t as e } from "../../../../chunks/Import-Bzr5ifWR.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Preview-Bjjy5QvH.mjs";
1
+ import { t as e } from "../../../../chunks/Preview-ChIMapuV.mjs";
2
2
  export { e as default };
@@ -1,297 +1,2 @@
1
- import { H as e, S as t, V as n, o as r } from "../../../chunks/provider-CH9EHEA4.mjs";
2
- import i from "../../../plugins/autoImport/$msg/index.mjs";
3
- import { t as a } from "../../../chunks/page-list-9ShvLAqK.mjs";
4
- import "../../../components/page-list/index.mjs";
5
- import { t as o } from "../../../chunks/Log-CNy8LPBX.mjs";
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
- //#endregion
8
- //#region ../../packages/dlzn-ui/views/tool/job/index.vue
9
- var _ = /* @__PURE__ */ c({
10
- __name: "index",
11
- setup(c) {
12
- let _ = h("pageListRef"), v = {
13
- concurrent: {
14
- _label: "是否并发",
15
- component: "TRadioGroup",
16
- model: "concurrent",
17
- options: [{
18
- label: "允许",
19
- value: "0"
20
- }, {
21
- label: "禁止",
22
- value: "1"
23
- }]
24
- },
25
- createTime: {
26
- _label: "创建时间",
27
- component: "TInput",
28
- model: "createTime"
29
- },
30
- cronExpression: {
31
- _label: "cron表达式",
32
- _required: !0,
33
- component: "TCron",
34
- model: "cronExpression"
35
- },
36
- invokeTarget: {
37
- _class: "col-span-full",
38
- _label: "调用方法",
39
- _required: !0,
40
- component: "TTextarea",
41
- model: "invokeTarget",
42
- placeholder: "Bean调用示例:ryTask.ryParams('ry')\nClass类调用示例:com.ruoyi.quartz.task.RyTask.ryParams('ry')\n参数说明:支持字符串,布尔类型,长整型,浮点型,整型"
43
- },
44
- jobGroup: {
45
- _label: "任务组名",
46
- component: "TSelect",
47
- dicCode: "sys_job_group",
48
- model: "jobGroup"
49
- },
50
- jobId: {
51
- _label: "任务编号",
52
- component: "TInput",
53
- model: "jobId"
54
- },
55
- jobName: {
56
- _label: "任务名称",
57
- _required: !0,
58
- component: "TInput",
59
- model: "jobName"
60
- },
61
- misfirePolicy: {
62
- _label: "执行策略",
63
- component: "TRadioGroup",
64
- model: "misfirePolicy",
65
- options: [
66
- {
67
- label: "立即执行",
68
- value: "1"
69
- },
70
- {
71
- label: "执行一次",
72
- value: "2"
73
- },
74
- {
75
- label: "放弃执行",
76
- value: "3"
77
- }
78
- ]
79
- },
80
- nextValidTime: {
81
- _label: "下次执行时间",
82
- component: "TInput",
83
- model: "nextValidTime"
84
- },
85
- status: {
86
- _label: "状态",
87
- component: "TRadioGroup",
88
- dicCode: "sys_job_status",
89
- model: "status"
90
- }
91
- }, y = {
92
- apis: {
93
- delete: {
94
- method: "monitor/job",
95
- permission: "monitor:job:remove"
96
- },
97
- export: {
98
- method: "monitor/job/export",
99
- permission: "monitor:job:export"
100
- },
101
- list: { method: "monitor/job/list" }
102
- },
103
- columns: [
104
- {
105
- colKey: "jobId",
106
- title: "任务编号"
107
- },
108
- {
109
- colKey: "jobName",
110
- title: "任务名称"
111
- },
112
- {
113
- cell: {
114
- component: "DicLabel",
115
- dicCode: "sys_job_group"
116
- },
117
- colKey: "jobGroup",
118
- title: "任务组名"
119
- },
120
- {
121
- colKey: "invokeTarget",
122
- title: "调用目标字符串"
123
- },
124
- {
125
- colKey: "cronExpression",
126
- title: "cron执行表达式"
127
- },
128
- {
129
- cell: (e, { row: r }) => ({
130
- beforeChange: async () => {
131
- let e = r.status === "1" ? "启用" : "停用";
132
- return await n(`确认${e}${r.jobName}任务吗?`), await t.Put("monitor/job/changeStatus", {
133
- jobId: r.jobId,
134
- status: r.status === "1" ? "0" : "1"
135
- }, { meta: { useSuccessMsg: !0 } }), _.value.query(), !0;
136
- },
137
- component: "Switch",
138
- customValue: ["0", "1"]
139
- }),
140
- colKey: "status",
141
- title: "状态"
142
- },
143
- {
144
- cell: {
145
- buttons: [
146
- ({ row: e }) => ({
147
- default: "编辑",
148
- onClick: () => {
149
- let a = p(null);
150
- g(a, () => {
151
- a.value.setFormData(e);
152
- }, { once: !0 }), n({
153
- body: () => l(r, {
154
- items: [
155
- v.jobName,
156
- v.jobGroup,
157
- v.invokeTarget,
158
- v.cronExpression,
159
- v.status,
160
- v.misfirePolicy,
161
- v.concurrent
162
- ],
163
- ref: a
164
- }),
165
- header: "修改任务",
166
- onConfirmCallback: async () => {
167
- await t.Put("monitor/job", {
168
- ...await a.value.validate(),
169
- jobId: e.jobId
170
- }), i.success("任务修改成功"), _.value.query();
171
- },
172
- width: 730
173
- });
174
- },
175
- permission: "monitor:job:edit"
176
- }),
177
- ({ row: e }) => ({
178
- default: "执行一次",
179
- permission: "monitor:job:changeStatus",
180
- popconfirm: {
181
- content: `确认要立即执行一次${e.jobName}任务吗?`,
182
- onConfirm: async () => {
183
- await t.Put("monitor/job/run", {
184
- jobGroup: e.jobGroup,
185
- jobId: e.jobId
186
- }, { meta: { useSuccessMsg: !0 } });
187
- }
188
- }
189
- }),
190
- ({ row: e }) => ({
191
- default: "任务详细",
192
- onClick: () => {
193
- let t = p(null);
194
- g(t, () => {
195
- t.value.setFormData(e);
196
- }, { once: !0 }), n({
197
- body: () => l(r, {
198
- items: [
199
- v.jobId,
200
- v.jobName,
201
- v.jobGroup,
202
- v.createTime,
203
- v.cronExpression,
204
- v.nextValidTime,
205
- v.invokeTarget,
206
- v.status,
207
- v.misfirePolicy,
208
- v.concurrent
209
- ],
210
- readonly: !0,
211
- ref: t
212
- }),
213
- footer: !1,
214
- header: "任务详细",
215
- width: 730
216
- });
217
- },
218
- permission: "monitor:job:query"
219
- }),
220
- ({ row: t }) => ({
221
- default: "调度日志",
222
- onClick: () => {
223
- e({
224
- body: () => l(o, { id: t.jobId }),
225
- footer: !1,
226
- header: "查看调度日志",
227
- width: 1500
228
- });
229
- },
230
- permission: "monitor:job:query"
231
- })
232
- ],
233
- component: "Buttons"
234
- },
235
- colKey: "_operation",
236
- title: "操作"
237
- }
238
- ],
239
- formItems: [
240
- v.jobName,
241
- v.jobGroup,
242
- {
243
- ...v.status,
244
- component: "TSelect"
245
- }
246
- ],
247
- operations: [{
248
- default: "新增",
249
- onClick: () => {
250
- let e = p(null);
251
- n({
252
- body: () => l(r, {
253
- data: f({
254
- concurrent: "1",
255
- misfirePolicy: "1",
256
- status: "0"
257
- }),
258
- items: [
259
- v.jobName,
260
- v.jobGroup,
261
- v.invokeTarget,
262
- v.cronExpression,
263
- v.misfirePolicy,
264
- v.concurrent
265
- ],
266
- ref: e
267
- }),
268
- header: "新增任务",
269
- onConfirmCallback: async () => {
270
- await t.Post("monitor/job", await e.value.validate()), i.success("任务新增成功"), _.value.query();
271
- },
272
- width: 730
273
- });
274
- },
275
- permission: "monitor:job:add"
276
- }, {
277
- default: "日志",
278
- onClick: () => {
279
- e({
280
- body: () => l(o),
281
- footer: !1,
282
- header: "查看调度日志",
283
- width: 1500
284
- });
285
- },
286
- permission: "monitor:job:query"
287
- }],
288
- tableOtherProps: { rowKey: "jobId" }
289
- };
290
- return (e, t) => (d(), s(m(a), u({
291
- ref_key: "pageListRef",
292
- ref: _
293
- }, y), null, 16));
294
- }
295
- });
296
- //#endregion
297
- export { _ as default };
1
+ import { t as e } from "../../../chunks/job-DcKHJj9d.mjs";
2
+ export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../../chunks/Log-CNy8LPBX.mjs";
1
+ import { t as e } from "../../../../chunks/Log-BDGXwssd.mjs";
2
2
  export { e as default };
package/README.md DELETED
@@ -1,137 +0,0 @@
1
- - 当在 workspace(工作区)中发布包时,工作区根目录的 LICENSE 文件将与包一起打包(除非包本身有自己的许可证)
2
- - pnpm build
3
- │
4
- ├─ ① pnpm 11 默认 verifyDepsBeforeRun: install
5
- │ 发现 package.json / lockfile 和 node_modules 不一致
6
- │ → 自动执行 pnpm install
7
- │ → Scope: all 11 workspace projects
8
- │ → 根目录 postinstall: pnpm stub
9
- │
10
- └─ ② 才执行 package.json 里的 build
11
- → pnpm run -C internal/build start
12
- → jiti buildfile.ts(clean / vite / copy)
13
-
14
- - icons
15
- - 选择地址[https://icon-sets.iconify.design/?category=UI+24px](https://icon-sets.iconify.design/?category=UI+24px)
16
- - 使用方法
17
-
18
- ```vue
19
- <template>
20
- <TIcon icon="material-symbols-light:refresh"></TIcon>
21
- </template>
22
- ```
23
-
24
- ## 注意
25
-
26
- - 重要的通知用 $notify, 需用户手动关闭
27
- - 轻提示用 $msg
28
- - 升级 tdesign 组件库时,手动对比 `node_modules/tdesign-vue-next/global.d.ts`
29
- - 升级 omi 文件时看看 patch 还有没有必要
30
- - 若依 新建同级同名称的菜单才会校验报错,但是name不会校验
31
- - vue-component-type-helpers 作用 [泛型](https://cn.vuejs.org/api/sfc-script-setup#generics)
32
- - 不要手动导入非类型 from 'tdesign-vue-next' 会引入额外的重复文件
33
- - `<Transition mode="out-in" name="fade">` 会改变内部组件的挂在顺序?
34
- - 进一步提高表格性能
35
- - 禁用 直接从 tdesign 导入,可以导入type
36
-
37
- ```ts
38
- // v2
39
- useWatcher(() => method, [xxx], { sendable: () => sendable })
40
-
41
- // v3
42
- useWatcher(() => method, [xxx], {
43
- async middleware(_, next) {
44
- if (sendable) {
45
- return next()
46
- }
47
- },
48
- })
49
- ```
50
-
51
- - method.transformData 简化为 method.transform
52
-
53
- ```ts
54
- // v2
55
- alova.Get('/api/profile', {
56
- transformData(data) {
57
- return data.detail
58
- },
59
- })
60
-
61
- // v3
62
- alova.Get('/api/profile', {
63
- transform(data) {
64
- return data.detail
65
- },
66
- })
67
- ```
68
-
69
- - method.localCache 更改为 method.cacheFor:
70
-
71
- ```ts
72
- // v2
73
- alova.Get('/api/profile', {
74
- localCache: 1000 * 60 * 60,
75
- })
76
-
77
- // v3
78
- alova.Get('/api/profile', {
79
- cacheFor: 1000 * 60 * 60,
80
- })
81
- ```
82
-
83
- - 所有的 sendArgs 更改为 args
84
-
85
- ```ts
86
- // v2
87
- onSuccess(({ sendArgs }) => {
88
- // ...
89
- })
90
-
91
- // v3
92
- onSuccess(({ args }) => {
93
- // ...
94
- })
95
- ```
96
-
97
- - 事件绑定函数返回自身对象,支持链式调用
98
-
99
- ```ts
100
- // v2
101
- const { onSuccess, loading, data } = useRequest(method)
102
- onSuccess(() => {
103
- /*...*/
104
- })
105
-
106
- // v3
107
- const { loading, data } = useRequest(method).onSuccess(() => {
108
- /*...*/
109
- })
110
- ```
111
-
112
- ## todo
113
-
114
- - 上传用户图片
115
- - ($fileView)[https://github.com/flyfish-dev/file-viewer]
116
- - 开发 (使用adornment)numberRange 小数
117
-
118
- ## todo 项目对比
119
-
120
- - 用户管理:品牌
121
- - 手机号码和邮箱不必填(有一个项目,是不是所有项目都这样)
122
-
123
- ## todo 后端
124
-
125
- - 删除 字典管理-字典数据 这个菜单
126
- - 删除 用户管理-分配角色 这个菜单
127
- - 删除 角色管理-分配用户 这个菜单
128
- - 删除 系统工具-定时任务-调度日志 这个菜单
129
- - 菜单表 图标字段
130
- - 添加 角色权限范围 role_data_scope 这个字典
131
- - 删除 system/user/deptTree 接口
132
- - monitor/job/index --> tool/job/index
133
- - 新增 /system/user/listByIds 接口
134
-
135
- ## 分析包大小
136
-
137
- `**/*runtime-core.esm-bundler.js,**/*vue-router.mjs,**/*reactivity.esm-bundler.js`