@since2006/pages 2025.8.2 → 2025.8.4

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 (111) hide show
  1. package/dist/es/index.js +18 -8
  2. package/dist/es/src/app/attachment/AttachmentEdit.vue.js +181 -0
  3. package/dist/es/src/app/attachment/AttachmentEdit.vue2.js +4 -0
  4. package/dist/es/src/app/attachment/AttachmentList.vue.js +178 -0
  5. package/dist/es/src/app/attachment/AttachmentList.vue2.js +4 -0
  6. package/dist/es/src/app/attachment/api.js +28 -0
  7. package/dist/es/src/app/attachment/index.js +7 -0
  8. package/dist/es/src/app/dict/DictEdit.vue.js +159 -0
  9. package/dist/es/src/app/dict/DictEdit.vue2.js +4 -0
  10. package/dist/es/src/app/dict/DictIndex.vue.js +7 -0
  11. package/dist/es/src/app/dict/DictIndex.vue2.js +202 -0
  12. package/dist/es/src/app/dict/DictIndex.vue3.js +1 -0
  13. package/dist/es/src/app/dict/DictItemEdit.vue.js +7 -0
  14. package/dist/es/src/app/dict/DictItemEdit.vue2.js +180 -0
  15. package/dist/es/src/app/dict/DictPanel.vue.js +7 -0
  16. package/dist/es/src/app/dict/DictPanel.vue2.js +261 -0
  17. package/dist/es/src/app/dict/api.js +47 -0
  18. package/dist/es/src/app/dict/index.js +9 -0
  19. package/dist/es/src/app/log/LogIndex.vue.js +238 -0
  20. package/dist/es/src/app/log/LogIndex.vue2.js +4 -0
  21. package/dist/es/src/app/log/LogView.vue.js +7 -0
  22. package/dist/es/src/app/log/LogView.vue2.js +164 -0
  23. package/dist/es/src/app/log/api.js +11 -0
  24. package/dist/es/src/app/log/index.js +7 -0
  25. package/dist/es/src/app/log/ua-icons.vue.js +7 -0
  26. package/dist/es/src/app/log/ua-icons.vue2.js +61 -0
  27. package/dist/es/src/app/metadata/MetadataCreate.vue.js +115 -0
  28. package/dist/es/src/app/metadata/MetadataCreate.vue2.js +4 -0
  29. package/dist/es/src/app/metadata/MetadataIndex.vue.js +179 -0
  30. package/dist/es/src/app/metadata/MetadataIndex.vue2.js +4 -0
  31. package/dist/es/src/app/metadata/MetadataUpdate.vue.js +128 -0
  32. package/dist/es/src/app/metadata/MetadataUpdate.vue2.js +4 -0
  33. package/dist/es/src/app/metadata/api.js +23 -0
  34. package/dist/es/src/app/metadata/index.js +7 -0
  35. package/dist/es/src/app/module/ModuleIndex.vue.js +5 -216
  36. package/dist/es/src/app/module/ModuleIndex.vue2.js +219 -2
  37. package/dist/es/src/app/module/index.js +5 -7
  38. package/dist/es/src/app/schedule/CronTypeSelect.vue.js +513 -0
  39. package/dist/es/src/app/schedule/CronTypeSelect.vue2.js +4 -0
  40. package/dist/es/src/app/schedule/ScheduleAdd.vue.js +7 -0
  41. package/dist/es/src/app/schedule/ScheduleAdd.vue2.js +191 -0
  42. package/dist/es/src/app/schedule/ScheduleEdit.vue.js +7 -0
  43. package/dist/es/src/app/schedule/ScheduleEdit.vue2.js +203 -0
  44. package/dist/es/src/app/schedule/ScheduleIndex.vue.js +279 -0
  45. package/dist/es/src/app/schedule/ScheduleIndex.vue2.js +4 -0
  46. package/dist/es/src/app/schedule/ScheduleLogList.vue.js +153 -0
  47. package/dist/es/src/app/schedule/ScheduleLogList.vue2.js +4 -0
  48. package/dist/es/src/app/schedule/ScheduleLogView.vue.js +7 -0
  49. package/dist/es/src/app/schedule/ScheduleLogView.vue2.js +116 -0
  50. package/dist/es/src/app/schedule/api.js +38 -0
  51. package/dist/es/src/app/schedule/index.js +7 -0
  52. package/dist/es/src/app/schedule/schedule.js +58 -0
  53. package/dist/es/src/app/system/index.js +3 -5
  54. package/dist/es/src/index.js +13 -2
  55. package/dist/es/style.css +1 -1
  56. package/dist/lib/index.js +1 -1
  57. package/dist/lib/src/app/attachment/AttachmentEdit.vue.js +1 -0
  58. package/dist/lib/src/app/attachment/AttachmentEdit.vue2.js +1 -0
  59. package/dist/lib/src/app/attachment/AttachmentList.vue.js +1 -0
  60. package/dist/lib/src/app/attachment/AttachmentList.vue2.js +1 -0
  61. package/dist/lib/src/app/attachment/api.js +1 -0
  62. package/dist/lib/src/app/attachment/index.js +1 -0
  63. package/dist/lib/src/app/dict/DictEdit.vue.js +1 -0
  64. package/dist/lib/src/app/dict/DictEdit.vue2.js +1 -0
  65. package/dist/lib/src/app/dict/DictIndex.vue.js +1 -0
  66. package/dist/lib/src/app/dict/DictIndex.vue2.js +1 -0
  67. package/dist/lib/src/app/dict/DictIndex.vue3.js +1 -0
  68. package/dist/lib/src/app/dict/DictItemEdit.vue.js +1 -0
  69. package/dist/lib/src/app/dict/DictItemEdit.vue2.js +1 -0
  70. package/dist/lib/src/app/dict/DictPanel.vue.js +1 -0
  71. package/dist/lib/src/app/dict/DictPanel.vue2.js +1 -0
  72. package/dist/lib/src/app/dict/api.js +1 -0
  73. package/dist/lib/src/app/dict/index.js +1 -0
  74. package/dist/lib/src/app/log/LogIndex.vue.js +1 -0
  75. package/dist/lib/src/app/log/LogIndex.vue2.js +1 -0
  76. package/dist/lib/src/app/log/LogView.vue.js +1 -0
  77. package/dist/lib/src/app/log/LogView.vue2.js +1 -0
  78. package/dist/lib/src/app/log/api.js +1 -0
  79. package/dist/lib/src/app/log/index.js +1 -0
  80. package/dist/lib/src/app/log/ua-icons.vue.js +1 -0
  81. package/dist/lib/src/app/log/ua-icons.vue2.js +1 -0
  82. package/dist/lib/src/app/metadata/MetadataCreate.vue.js +1 -0
  83. package/dist/lib/src/app/metadata/MetadataCreate.vue2.js +1 -0
  84. package/dist/lib/src/app/metadata/MetadataIndex.vue.js +1 -0
  85. package/dist/lib/src/app/metadata/MetadataIndex.vue2.js +1 -0
  86. package/dist/lib/src/app/metadata/MetadataUpdate.vue.js +1 -0
  87. package/dist/lib/src/app/metadata/MetadataUpdate.vue2.js +1 -0
  88. package/dist/lib/src/app/metadata/api.js +1 -0
  89. package/dist/lib/src/app/metadata/index.js +1 -0
  90. package/dist/lib/src/app/module/ModuleIndex.vue.js +1 -1
  91. package/dist/lib/src/app/module/ModuleIndex.vue2.js +1 -1
  92. package/dist/lib/src/app/module/index.js +1 -1
  93. package/dist/lib/src/app/schedule/CronTypeSelect.vue.js +1 -0
  94. package/dist/lib/src/app/schedule/CronTypeSelect.vue2.js +1 -0
  95. package/dist/lib/src/app/schedule/ScheduleAdd.vue.js +1 -0
  96. package/dist/lib/src/app/schedule/ScheduleAdd.vue2.js +1 -0
  97. package/dist/lib/src/app/schedule/ScheduleEdit.vue.js +1 -0
  98. package/dist/lib/src/app/schedule/ScheduleEdit.vue2.js +1 -0
  99. package/dist/lib/src/app/schedule/ScheduleIndex.vue.js +1 -0
  100. package/dist/lib/src/app/schedule/ScheduleIndex.vue2.js +1 -0
  101. package/dist/lib/src/app/schedule/ScheduleLogList.vue.js +1 -0
  102. package/dist/lib/src/app/schedule/ScheduleLogList.vue2.js +1 -0
  103. package/dist/lib/src/app/schedule/ScheduleLogView.vue.js +1 -0
  104. package/dist/lib/src/app/schedule/ScheduleLogView.vue2.js +1 -0
  105. package/dist/lib/src/app/schedule/api.js +1 -0
  106. package/dist/lib/src/app/schedule/index.js +1 -0
  107. package/dist/lib/src/app/schedule/schedule.js +1 -0
  108. package/dist/lib/src/app/system/index.js +1 -1
  109. package/dist/lib/src/index.js +1 -1
  110. package/dist/lib/style.css +1 -1
  111. package/package.json +1 -1
@@ -0,0 +1,47 @@
1
+ import { http as i } from "@since2006/utils";
2
+ function n(t) {
3
+ return i.get("/api/1/dict/query_dictionaries", { params: t });
4
+ }
5
+ function c() {
6
+ return i.postForm("/api/1/dict/refresh_dictionaries");
7
+ }
8
+ function o(t) {
9
+ return i.postForm("/api/1/dict/remove_dictionary", { id: t });
10
+ }
11
+ function a(t) {
12
+ return i.postForm("/api/1/dict/add_dictionary", t);
13
+ }
14
+ function d(t) {
15
+ return i.get("/api/1/dict/get_dictionary", { params: { id: t } });
16
+ }
17
+ function p(t) {
18
+ return i.postForm("/api/1/dict/update_dictionary", t);
19
+ }
20
+ function u(t, e) {
21
+ return i.get("/api/1/dict/admin/get_dict_items", { params: { dictId: t, id: e } });
22
+ }
23
+ function m(t) {
24
+ return i.get("/api/1/dict/get_dict_item", { params: { id: t } });
25
+ }
26
+ function s(t) {
27
+ return i.postForm("/api/1/dict/add_dict_item", t);
28
+ }
29
+ function _(t) {
30
+ return i.postForm("/api/1/dict/update_dict_item", t);
31
+ }
32
+ function f(t) {
33
+ return i.postForm("/api/1/dict/admin/delete_dict_item", { id: t });
34
+ }
35
+ export {
36
+ s as addDictItem,
37
+ a as addDictionary,
38
+ f as deleteDictItem,
39
+ u as getAdminDictItems,
40
+ m as getDictItem,
41
+ d as getDictionary,
42
+ n as queryDictionaries,
43
+ c as refreshDictionaries,
44
+ o as removeDictionary,
45
+ _ as updateDictItem,
46
+ p as updateDictionary
47
+ };
@@ -0,0 +1,9 @@
1
+ import o from "./DictIndex.vue.js";
2
+ import e from "./DictPanel.vue.js";
3
+ import { withInstall as t } from "@since2006/utils";
4
+ const c = t(o), m = t(e);
5
+ export {
6
+ c as DictIndex,
7
+ m as DictPanel,
8
+ c as default
9
+ };
@@ -0,0 +1,238 @@
1
+ import { defineComponent as F, ref as S, reactive as g, resolveComponent as d, openBlock as s, createElementBlock as r, createElementVNode as C, createVNode as e, withCtx as t, createTextVNode as p, unref as x, Fragment as T, createBlock as f, toDisplayString as u, createCommentVNode as j } from "vue";
2
+ import { queryLogs as A } from "./api.js";
3
+ import { FxCardTable as B } from "@since2006/components";
4
+ import O from "./LogView.vue.js";
5
+ import q from "./ua-icons.vue.js";
6
+ import { SecurityScanTwoTone as z } from "@ant-design/icons-vue";
7
+ const P = { class: "ant-pro-table" }, Q = { class: "ant-pro-table-search" }, W = {
8
+ key: 0,
9
+ style: { color: "red" }
10
+ }, $ = {
11
+ key: 1,
12
+ style: { color: "orange" }
13
+ }, G = { key: 2 }, H = ["onClick"], ae = /* @__PURE__ */ F({
14
+ __name: "LogIndex",
15
+ setup(J) {
16
+ const k = S(), D = [
17
+ { label: "读取", value: "R" },
18
+ { label: "增删改", value: "U" },
19
+ { label: "登录", value: "L" }
20
+ ], R = [
21
+ {
22
+ title: "用户",
23
+ dataIndex: "userName",
24
+ width: "140px"
25
+ },
26
+ {
27
+ title: "动作",
28
+ dataIndex: "actionType",
29
+ width: "140px"
30
+ },
31
+ {
32
+ title: "资源类型",
33
+ dataIndex: "resourceType",
34
+ width: "180px"
35
+ },
36
+ {
37
+ title: "资源",
38
+ dataIndex: "resourceContent"
39
+ },
40
+ {
41
+ title: "操作系统",
42
+ width: "160px",
43
+ dataIndex: "userAgent"
44
+ },
45
+ {
46
+ title: "IP地址",
47
+ dataIndex: "ip",
48
+ width: "180px"
49
+ },
50
+ {
51
+ title: "时间",
52
+ dataIndex: "createdAt",
53
+ width: "180px"
54
+ },
55
+ {
56
+ title: "操作",
57
+ dataIndex: "action",
58
+ width: "100px"
59
+ }
60
+ ], _ = g({
61
+ open: !1,
62
+ logId: ""
63
+ }), b = {
64
+ type: void 0,
65
+ level: void 0,
66
+ dateRange: void 0,
67
+ query: void 0
68
+ }, i = g({ ...b }), I = g({
69
+ type: void 0,
70
+ level: void 0,
71
+ startDate: void 0,
72
+ endDate: void 0,
73
+ query: void 0,
74
+ sorting: void 0
75
+ }), m = () => {
76
+ Object.assign(I, h(i)), k.value.refresh();
77
+ }, Y = () => {
78
+ Object.assign(i, b), m();
79
+ }, h = (l) => ({
80
+ type: l.type,
81
+ level: l.level,
82
+ startDate: l.dateRange ? l.dateRange[0].format("YYYY-MM-DD") : null,
83
+ endDate: l.dateRange ? l.dateRange[1].format("YYYY-MM-DD") : null,
84
+ query: l.query,
85
+ sorting: l.sorting
86
+ }), U = (l) => {
87
+ _.open = !0, _.logId = l.id;
88
+ };
89
+ return (l, o) => {
90
+ const V = d("a-select"), y = d("a-form-item"), c = d("a-col"), E = d("a-range-picker"), L = d("a-input"), w = d("a-button"), M = d("a-row"), N = d("a-form"), v = d("a-tag");
91
+ return s(), r("div", null, [
92
+ C("div", P, [
93
+ C("div", Q, [
94
+ e(N, { layout: "horizontal" }, {
95
+ default: t(() => [
96
+ e(M, {
97
+ gutter: 16,
98
+ type: "flex",
99
+ justify: "start"
100
+ }, {
101
+ default: t(() => [
102
+ e(c, { flex: "160px" }, {
103
+ default: t(() => [
104
+ e(y, { label: "动作" }, {
105
+ default: t(() => [
106
+ e(V, {
107
+ options: D,
108
+ value: i.type,
109
+ "onUpdate:value": o[0] || (o[0] = (a) => i.type = a),
110
+ allowClear: ""
111
+ }, null, 8, ["value"])
112
+ ]),
113
+ _: 1
114
+ })
115
+ ]),
116
+ _: 1
117
+ }),
118
+ e(c, { flex: "300px" }, {
119
+ default: t(() => [
120
+ e(y, { label: "时间" }, {
121
+ default: t(() => [
122
+ e(E, {
123
+ value: i.dateRange,
124
+ "onUpdate:value": o[1] || (o[1] = (a) => i.dateRange = a)
125
+ }, null, 8, ["value"])
126
+ ]),
127
+ _: 1
128
+ })
129
+ ]),
130
+ _: 1
131
+ }),
132
+ e(c, { flex: "240px" }, {
133
+ default: t(() => [
134
+ e(y, { label: "搜索" }, {
135
+ default: t(() => [
136
+ e(L, {
137
+ value: i.query,
138
+ "onUpdate:value": o[2] || (o[2] = (a) => i.query = a),
139
+ placeholder: "日志内容",
140
+ onPressEnter: m
141
+ }, null, 8, ["value"])
142
+ ]),
143
+ _: 1
144
+ })
145
+ ]),
146
+ _: 1
147
+ }),
148
+ e(c, null, {
149
+ default: t(() => [
150
+ e(w, {
151
+ onClick: m,
152
+ type: "primary"
153
+ }, {
154
+ default: t(() => o[4] || (o[4] = [
155
+ p("搜索")
156
+ ])),
157
+ _: 1
158
+ }),
159
+ e(w, {
160
+ onClick: Y,
161
+ style: { "margin-left": "16px" }
162
+ }, {
163
+ default: t(() => o[5] || (o[5] = [
164
+ p("重置")
165
+ ])),
166
+ _: 1
167
+ })
168
+ ]),
169
+ _: 1
170
+ })
171
+ ]),
172
+ _: 1
173
+ })
174
+ ]),
175
+ _: 1
176
+ })
177
+ ]),
178
+ e(x(B), {
179
+ columns: R,
180
+ "load-data": x(A),
181
+ params: I,
182
+ ref_key: "tableRef",
183
+ ref: k
184
+ }, {
185
+ title: t(() => [
186
+ e(x(z)),
187
+ o[6] || (o[6] = p(" 系统日志"))
188
+ ]),
189
+ bodyCell: t(({ column: a, record: n }) => [
190
+ a.dataIndex === "actionType" ? (s(), r(T, { key: 0 }, [
191
+ n.actionType === "D" ? (s(), f(v, {
192
+ key: 0,
193
+ color: "red"
194
+ }, {
195
+ default: t(() => [
196
+ p(u(n.actionTypeDesc), 1)
197
+ ]),
198
+ _: 2
199
+ }, 1024)) : n.actionType === "L" ? (s(), f(v, {
200
+ key: 1,
201
+ color: "green"
202
+ }, {
203
+ default: t(() => [
204
+ p(u(n.actionTypeDesc), 1)
205
+ ]),
206
+ _: 2
207
+ }, 1024)) : (s(), f(v, { key: 2 }, {
208
+ default: t(() => [
209
+ p(u(n.actionTypeDesc), 1)
210
+ ]),
211
+ _: 2
212
+ }, 1024))
213
+ ], 64)) : a.dataIndex === "resourceContent" ? (s(), r(T, { key: 1 }, [
214
+ n.level === "E" || n.level === "F" ? (s(), r("span", W, u(n.resourceContent), 1)) : n.level === "W" ? (s(), r("span", $, u(n.resourceContent), 1)) : (s(), r("span", G, u(n.resourceContent), 1))
215
+ ], 64)) : a.dataIndex === "userAgent" ? (s(), f(q, {
216
+ key: 2,
217
+ os: n.os,
218
+ browser: n.browser
219
+ }, null, 8, ["os", "browser"])) : a.dataIndex === "action" ? (s(), r("a", {
220
+ key: 3,
221
+ onClick: (K) => U(n)
222
+ }, "详情", 8, H)) : j("", !0)
223
+ ]),
224
+ _: 1
225
+ }, 8, ["load-data", "params"])
226
+ ]),
227
+ e(O, {
228
+ open: _.open,
229
+ "onUpdate:open": o[3] || (o[3] = (a) => _.open = a),
230
+ "log-id": _.logId
231
+ }, null, 8, ["open", "log-id"])
232
+ ]);
233
+ };
234
+ }
235
+ });
236
+ export {
237
+ ae as default
238
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./LogIndex.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./LogView.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cec99bb6"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,164 @@
1
+ import { defineComponent as D, watch as k, reactive as v, resolveComponent as d, openBlock as c, createBlock as r, withCtx as t, createVNode as n, createTextVNode as l, toDisplayString as o, createCommentVNode as T } from "vue";
2
+ import { getLog as C } from "./api.js";
3
+ const x = /* @__PURE__ */ D({
4
+ __name: "LogView",
5
+ props: {
6
+ open: {
7
+ type: Boolean,
8
+ default: !1
9
+ },
10
+ logId: {
11
+ type: String,
12
+ default: ""
13
+ }
14
+ },
15
+ emits: ["update:open"],
16
+ setup(i, { emit: f }) {
17
+ const p = i, m = f;
18
+ k(
19
+ () => p.open,
20
+ (u) => {
21
+ u && C(p.logId).then((_) => {
22
+ Object.assign(e, _.result);
23
+ });
24
+ }
25
+ );
26
+ const e = v({}), y = () => {
27
+ m("update:open", !1);
28
+ };
29
+ return (u, _) => {
30
+ const s = d("a-tag"), a = d("a-descriptions-item"), g = d("a-descriptions"), b = d("a-modal");
31
+ return c(), r(b, {
32
+ title: "日志详情",
33
+ width: 800,
34
+ footer: null,
35
+ open: i.open,
36
+ onCancel: y
37
+ }, {
38
+ default: t(() => [
39
+ n(g, {
40
+ column: 1,
41
+ bordered: "",
42
+ size: "small"
43
+ }, {
44
+ default: t(() => [
45
+ n(a, {
46
+ label: "事件",
47
+ class: "qq"
48
+ }, {
49
+ default: t(() => [
50
+ e.actionType === "D" ? (c(), r(s, {
51
+ key: 0,
52
+ color: "red"
53
+ }, {
54
+ default: t(() => [
55
+ l(o(e.actionTypeDesc), 1)
56
+ ]),
57
+ _: 1
58
+ })) : e.actionType === "L" ? (c(), r(s, {
59
+ key: 1,
60
+ color: "green"
61
+ }, {
62
+ default: t(() => [
63
+ l(o(e.actionTypeDesc), 1)
64
+ ]),
65
+ _: 1
66
+ })) : (c(), r(s, { key: 2 }, {
67
+ default: t(() => [
68
+ l(o(e.actionTypeDesc), 1)
69
+ ]),
70
+ _: 1
71
+ }))
72
+ ]),
73
+ _: 1
74
+ }),
75
+ n(a, { label: "用户" }, {
76
+ default: t(() => [
77
+ l(o(e.userName), 1)
78
+ ]),
79
+ _: 1
80
+ }),
81
+ n(a, { label: "时间" }, {
82
+ default: t(() => [
83
+ l(o(e.createdAt), 1)
84
+ ]),
85
+ _: 1
86
+ }),
87
+ n(a, { label: "IP地址" }, {
88
+ default: t(() => [
89
+ l(o(e.ip), 1)
90
+ ]),
91
+ _: 1
92
+ }),
93
+ n(a, { label: "UserAgent" }, {
94
+ default: t(() => [
95
+ l(o(e.userAgent), 1)
96
+ ]),
97
+ _: 1
98
+ }),
99
+ n(a, { label: "操作系统" }, {
100
+ default: t(() => [
101
+ l(o(e.os) + " / " + o(e.browser), 1)
102
+ ]),
103
+ _: 1
104
+ }),
105
+ n(a, { label: "日志级别" }, {
106
+ default: t(() => [
107
+ e.level === "E" || e.level === "F" ? (c(), r(s, {
108
+ key: 0,
109
+ color: "red"
110
+ }, {
111
+ default: t(() => [
112
+ l(o(e.levelDesc), 1)
113
+ ]),
114
+ _: 1
115
+ })) : e.level === "W" ? (c(), r(s, {
116
+ key: 1,
117
+ color: "orange"
118
+ }, {
119
+ default: t(() => [
120
+ l(o(e.levelDesc), 1)
121
+ ]),
122
+ _: 1
123
+ })) : (c(), r(s, { key: 2 }, {
124
+ default: t(() => [
125
+ l(o(e.levelDesc), 1)
126
+ ]),
127
+ _: 1
128
+ }))
129
+ ]),
130
+ _: 1
131
+ }),
132
+ n(a, { label: "资源类型" }, {
133
+ default: t(() => [
134
+ l(o(e.resourceType), 1)
135
+ ]),
136
+ _: 1
137
+ }),
138
+ n(a, { label: "内容" }, {
139
+ default: t(() => [
140
+ l(o(e.resourceContent), 1)
141
+ ]),
142
+ _: 1
143
+ }),
144
+ e.resourceDetail ? (c(), r(a, {
145
+ key: 0,
146
+ label: "详情"
147
+ }, {
148
+ default: t(() => [
149
+ l(o(e.resourceDetail), 1)
150
+ ]),
151
+ _: 1
152
+ })) : T("", !0)
153
+ ]),
154
+ _: 1
155
+ })
156
+ ]),
157
+ _: 1
158
+ }, 8, ["open"]);
159
+ };
160
+ }
161
+ });
162
+ export {
163
+ x as default
164
+ };
@@ -0,0 +1,11 @@
1
+ import { http as o } from "@since2006/utils";
2
+ function r(t) {
3
+ return o.get("/api/v2/log/get_log", { params: { id: t } });
4
+ }
5
+ function e(t) {
6
+ return o.get("/api/v2/log/query_logs", { params: t });
7
+ }
8
+ export {
9
+ r as getLog,
10
+ e as queryLogs
11
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./LogIndex.vue.js";
2
+ import { withInstall as t } from "@since2006/utils";
3
+ const a = t(o);
4
+ export {
5
+ a as LogIndex,
6
+ a as default
7
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./ua-icons.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8b2a1553"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,61 @@
1
+ import { defineComponent as f, openBlock as e, createElementBlock as t, Fragment as x, createCommentVNode as d } from "vue";
2
+ const k = {
3
+ class: "ua-icon",
4
+ "aria-hidden": "true",
5
+ style: { "margin-right": "6px" }
6
+ }, l = {
7
+ key: 0,
8
+ "xlink:href": "#fx-windows-10"
9
+ }, W = {
10
+ key: 1,
11
+ "xlink:href": "#fx-windows-7"
12
+ }, _ = {
13
+ key: 2,
14
+ "xlink:href": "#fx-windows-xp"
15
+ }, w = {
16
+ key: 3,
17
+ "xlink:href": "#fx-windows-10"
18
+ }, m = {
19
+ key: 4,
20
+ "xlink:href": "#fx-os-macos"
21
+ }, y = {
22
+ class: "ua-icon",
23
+ "aria-hidden": "true"
24
+ }, b = {
25
+ key: 0,
26
+ "xlink:href": "#fx-browser-ie"
27
+ }, g = {
28
+ key: 1,
29
+ "xlink:href": "#fx-browser-chrome"
30
+ }, O = {
31
+ key: 2,
32
+ "xlink:href": "#fx-browser-firefox"
33
+ }, C = /* @__PURE__ */ f({
34
+ __name: "ua-icons",
35
+ props: {
36
+ os: {
37
+ type: String,
38
+ required: !0
39
+ },
40
+ browser: {
41
+ type: String,
42
+ required: !0
43
+ }
44
+ },
45
+ setup(s) {
46
+ return (S, I) => {
47
+ var r, o, i, n, h, a, c, u;
48
+ return e(), t(x, null, [
49
+ (e(), t("svg", k, [
50
+ (r = s.os) != null && r.startsWith("WINDOWS_10") ? (e(), t("use", l)) : (o = s.os) != null && o.startsWith("WINDOWS_7") ? (e(), t("use", W)) : (i = s.os) != null && i.startsWith("WINDOWS_XP") ? (e(), t("use", _)) : (n = s.os) != null && n.startsWith("WINDOWS") ? (e(), t("use", w)) : (h = s.os) != null && h.startsWith("MAC_OS") ? (e(), t("use", m)) : d("", !0)
51
+ ])),
52
+ (e(), t("svg", y, [
53
+ (a = s.browser) != null && a.startsWith("IE") ? (e(), t("use", b)) : (c = s.browser) != null && c.startsWith("CHROME") ? (e(), t("use", g)) : (u = s.browser) != null && u.startsWith("FIREFOX") ? (e(), t("use", O)) : d("", !0)
54
+ ]))
55
+ ], 64);
56
+ };
57
+ }
58
+ });
59
+ export {
60
+ C as default
61
+ };
@@ -0,0 +1,115 @@
1
+ import { defineComponent as j, ref as c, reactive as x, resolveComponent as n, openBlock as w, createBlock as R, withCtx as o, createVNode as t, toRaw as U } from "vue";
2
+ import { createMetadata as V } from "./api.js";
3
+ const q = /* @__PURE__ */ j({
4
+ __name: "MetadataCreate",
5
+ emits: ["success", "cancel"],
6
+ setup(D, { expose: v, emit: _ }) {
7
+ const r = c(!1);
8
+ v({ preCreate: () => {
9
+ r.value = !0, k();
10
+ } });
11
+ const d = _, f = c(), i = {
12
+ objectId: null,
13
+ metaKey: null,
14
+ metaValue: null,
15
+ remark: null
16
+ }, e = x({ ...i }), b = {
17
+ objectId: [{ required: !0, message: "请填写对象ID" }],
18
+ metaKey: [{ required: !0, message: "请填写对象KEY" }]
19
+ }, k = () => {
20
+ Object.assign(e, i);
21
+ }, m = c(!1), y = () => {
22
+ f.value.validateFields().then(() => {
23
+ m.value = !0;
24
+ const p = { ...U(e) };
25
+ V(p).then((a) => {
26
+ a.code === 200 && (r.value = !1, d("success"));
27
+ });
28
+ }).finally(() => {
29
+ m.value = !1;
30
+ });
31
+ }, I = () => {
32
+ r.value = !1, d("cancel");
33
+ };
34
+ return (p, a) => {
35
+ const u = n("a-input"), s = n("a-form-item"), K = n("a-textarea"), C = n("a-form"), g = n("a-modal");
36
+ return w(), R(g, {
37
+ title: "添加元数据",
38
+ width: 800,
39
+ open: r.value,
40
+ "mask-closable": !1,
41
+ "destroy-on-close": "",
42
+ "confirm-loading": m.value,
43
+ onOk: y,
44
+ onCancel: I
45
+ }, {
46
+ default: o(() => [
47
+ t(C, {
48
+ ref_key: "formRef",
49
+ ref: f,
50
+ model: e,
51
+ rules: b,
52
+ "label-col": { span: 5 },
53
+ "wrapper-col": { span: 12 }
54
+ }, {
55
+ default: o(() => [
56
+ t(s, {
57
+ label: "对象ID",
58
+ name: "objectId"
59
+ }, {
60
+ default: o(() => [
61
+ t(u, {
62
+ value: e.objectId,
63
+ "onUpdate:value": a[0] || (a[0] = (l) => e.objectId = l),
64
+ placeholder: "对象ID"
65
+ }, null, 8, ["value"])
66
+ ]),
67
+ _: 1
68
+ }),
69
+ t(s, {
70
+ label: "对象KEY",
71
+ name: "metaKey"
72
+ }, {
73
+ default: o(() => [
74
+ t(u, {
75
+ value: e.metaKey,
76
+ "onUpdate:value": a[1] || (a[1] = (l) => e.metaKey = l),
77
+ placeholder: "对象KEY"
78
+ }, null, 8, ["value"])
79
+ ]),
80
+ _: 1
81
+ }),
82
+ t(s, { label: "对象值" }, {
83
+ default: o(() => [
84
+ t(u, {
85
+ value: e.metaValue,
86
+ "onUpdate:value": a[2] || (a[2] = (l) => e.metaValue = l),
87
+ placeholder: "对象值"
88
+ }, null, 8, ["value"])
89
+ ]),
90
+ _: 1
91
+ }),
92
+ t(s, {
93
+ label: "描述",
94
+ name: "remark"
95
+ }, {
96
+ default: o(() => [
97
+ t(K, {
98
+ value: e.remark,
99
+ "onUpdate:value": a[3] || (a[3] = (l) => e.remark = l)
100
+ }, null, 8, ["value"])
101
+ ]),
102
+ _: 1
103
+ })
104
+ ]),
105
+ _: 1
106
+ }, 8, ["model"])
107
+ ]),
108
+ _: 1
109
+ }, 8, ["open", "confirm-loading"]);
110
+ };
111
+ }
112
+ });
113
+ export {
114
+ q as default
115
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./MetadataCreate.vue.js";
2
+ export {
3
+ f as default
4
+ };