@since2006/pages 2025.8.1 → 2025.8.3

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 (93) hide show
  1. package/dist/es/index.js +15 -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/log/LogIndex.vue.js +238 -0
  9. package/dist/es/src/app/log/LogIndex.vue2.js +4 -0
  10. package/dist/es/src/app/log/LogView.vue.js +7 -0
  11. package/dist/es/src/app/log/LogView.vue2.js +164 -0
  12. package/dist/es/src/app/log/api.js +11 -0
  13. package/dist/es/src/app/log/index.js +7 -0
  14. package/dist/es/src/app/log/ua-icons.vue.js +7 -0
  15. package/dist/es/src/app/log/ua-icons.vue2.js +61 -0
  16. package/dist/es/src/app/metadata/MetadataCreate.vue.js +115 -0
  17. package/dist/es/src/app/metadata/MetadataCreate.vue2.js +4 -0
  18. package/dist/es/src/app/metadata/MetadataIndex.vue.js +179 -0
  19. package/dist/es/src/app/metadata/MetadataIndex.vue2.js +4 -0
  20. package/dist/es/src/app/metadata/MetadataUpdate.vue.js +128 -0
  21. package/dist/es/src/app/metadata/MetadataUpdate.vue2.js +4 -0
  22. package/dist/es/src/app/metadata/api.js +23 -0
  23. package/dist/es/src/app/metadata/index.js +7 -0
  24. package/dist/es/src/app/module/ModuleIndex.vue.js +5 -216
  25. package/dist/es/src/app/module/ModuleIndex.vue2.js +219 -2
  26. package/dist/es/src/app/module/index.js +5 -7
  27. package/dist/es/src/app/schedule/CronTypeSelect.vue.js +513 -0
  28. package/dist/es/src/app/schedule/CronTypeSelect.vue2.js +4 -0
  29. package/dist/es/src/app/schedule/ScheduleAdd.vue.js +7 -0
  30. package/dist/es/src/app/schedule/ScheduleAdd.vue2.js +191 -0
  31. package/dist/es/src/app/schedule/ScheduleEdit.vue.js +7 -0
  32. package/dist/es/src/app/schedule/ScheduleEdit.vue2.js +203 -0
  33. package/dist/es/src/app/schedule/ScheduleIndex.vue.js +279 -0
  34. package/dist/es/src/app/schedule/ScheduleIndex.vue2.js +4 -0
  35. package/dist/es/src/app/schedule/ScheduleLogList.vue.js +153 -0
  36. package/dist/es/src/app/schedule/ScheduleLogList.vue2.js +4 -0
  37. package/dist/es/src/app/schedule/ScheduleLogView.vue.js +7 -0
  38. package/dist/es/src/app/schedule/ScheduleLogView.vue2.js +116 -0
  39. package/dist/es/src/app/schedule/api.js +38 -0
  40. package/dist/es/src/app/schedule/index.js +7 -0
  41. package/dist/es/src/app/schedule/schedule.js +58 -0
  42. package/dist/es/src/app/system/StatusIndex.vue.js +2 -2
  43. package/dist/es/src/app/system/StatusIndex.vue2.js +318 -307
  44. package/dist/es/src/app/system/index.js +3 -5
  45. package/dist/es/src/index.js +10 -2
  46. package/dist/es/style.css +1 -1
  47. package/dist/lib/index.js +1 -1
  48. package/dist/lib/src/app/attachment/AttachmentEdit.vue.js +1 -0
  49. package/dist/lib/src/app/attachment/AttachmentEdit.vue2.js +1 -0
  50. package/dist/lib/src/app/attachment/AttachmentList.vue.js +1 -0
  51. package/dist/lib/src/app/attachment/AttachmentList.vue2.js +1 -0
  52. package/dist/lib/src/app/attachment/api.js +1 -0
  53. package/dist/lib/src/app/attachment/index.js +1 -0
  54. package/dist/lib/src/app/log/LogIndex.vue.js +1 -0
  55. package/dist/lib/src/app/log/LogIndex.vue2.js +1 -0
  56. package/dist/lib/src/app/log/LogView.vue.js +1 -0
  57. package/dist/lib/src/app/log/LogView.vue2.js +1 -0
  58. package/dist/lib/src/app/log/api.js +1 -0
  59. package/dist/lib/src/app/log/index.js +1 -0
  60. package/dist/lib/src/app/log/ua-icons.vue.js +1 -0
  61. package/dist/lib/src/app/log/ua-icons.vue2.js +1 -0
  62. package/dist/lib/src/app/metadata/MetadataCreate.vue.js +1 -0
  63. package/dist/lib/src/app/metadata/MetadataCreate.vue2.js +1 -0
  64. package/dist/lib/src/app/metadata/MetadataIndex.vue.js +1 -0
  65. package/dist/lib/src/app/metadata/MetadataIndex.vue2.js +1 -0
  66. package/dist/lib/src/app/metadata/MetadataUpdate.vue.js +1 -0
  67. package/dist/lib/src/app/metadata/MetadataUpdate.vue2.js +1 -0
  68. package/dist/lib/src/app/metadata/api.js +1 -0
  69. package/dist/lib/src/app/metadata/index.js +1 -0
  70. package/dist/lib/src/app/module/ModuleIndex.vue.js +1 -1
  71. package/dist/lib/src/app/module/ModuleIndex.vue2.js +1 -1
  72. package/dist/lib/src/app/module/index.js +1 -1
  73. package/dist/lib/src/app/schedule/CronTypeSelect.vue.js +1 -0
  74. package/dist/lib/src/app/schedule/CronTypeSelect.vue2.js +1 -0
  75. package/dist/lib/src/app/schedule/ScheduleAdd.vue.js +1 -0
  76. package/dist/lib/src/app/schedule/ScheduleAdd.vue2.js +1 -0
  77. package/dist/lib/src/app/schedule/ScheduleEdit.vue.js +1 -0
  78. package/dist/lib/src/app/schedule/ScheduleEdit.vue2.js +1 -0
  79. package/dist/lib/src/app/schedule/ScheduleIndex.vue.js +1 -0
  80. package/dist/lib/src/app/schedule/ScheduleIndex.vue2.js +1 -0
  81. package/dist/lib/src/app/schedule/ScheduleLogList.vue.js +1 -0
  82. package/dist/lib/src/app/schedule/ScheduleLogList.vue2.js +1 -0
  83. package/dist/lib/src/app/schedule/ScheduleLogView.vue.js +1 -0
  84. package/dist/lib/src/app/schedule/ScheduleLogView.vue2.js +1 -0
  85. package/dist/lib/src/app/schedule/api.js +1 -0
  86. package/dist/lib/src/app/schedule/index.js +1 -0
  87. package/dist/lib/src/app/schedule/schedule.js +1 -0
  88. package/dist/lib/src/app/system/StatusIndex.vue.js +1 -1
  89. package/dist/lib/src/app/system/StatusIndex.vue2.js +1 -1
  90. package/dist/lib/src/app/system/index.js +1 -1
  91. package/dist/lib/src/index.js +1 -1
  92. package/dist/lib/style.css +1 -1
  93. package/package.json +1 -1
package/dist/es/index.js CHANGED
@@ -1,14 +1,21 @@
1
- import * as e from "./src/index.js";
2
- import { StatusIndex as d } from "./src/app/system/index.js";
3
- import { ModuleIndex as a } from "./src/app/module/index.js";
1
+ import * as t from "./src/index.js";
2
+ import { StatusIndex as a } from "./src/app/system/index.js";
3
+ import { ModuleIndex as f } from "./src/app/module/index.js";
4
+ import { ScheduleIndex as p } from "./src/app/schedule/index.js";
5
+ import { AttachmentIndex as l } from "./src/app/attachment/index.js";
6
+ import { MetadataIndex as I } from "./src/app/metadata/index.js";
7
+ import { LogIndex as i } from "./src/app/log/index.js";
4
8
  const r = {
5
- install: (o) => {
6
- for (let t in e)
7
- o.use(e[t]);
9
+ install: (e) => {
10
+ Object.values(t).forEach((o) => e.use(o));
8
11
  }
9
12
  };
10
13
  export {
11
- a as ModuleIndex,
12
- d as StatusIndex,
14
+ l as AttachmentIndex,
15
+ i as LogIndex,
16
+ I as MetadataIndex,
17
+ f as ModuleIndex,
18
+ p as ScheduleIndex,
19
+ a as StatusIndex,
13
20
  r as default
14
21
  };
@@ -0,0 +1,181 @@
1
+ import { defineComponent as P, ref as d, reactive as B, resolveComponent as r, openBlock as R, createBlock as O, withCtx as n, createVNode as a, createTextVNode as y, toRaw as j } from "vue";
2
+ import { getAvailableExtensions as A, getConfig as F, createConfig as N, updateConfig as V } from "./api.js";
3
+ const I = /* @__PURE__ */ P({
4
+ __name: "AttachmentEdit",
5
+ emits: ["success", "cancel"],
6
+ setup(D, { expose: C, emit: S }) {
7
+ let m;
8
+ const u = d(!1);
9
+ C({ preCreate: () => {
10
+ u.value = !0, m = "add", c.value = "新建上传配置", g(), A().then((o) => {
11
+ const e = o.result;
12
+ v.value = b(e);
13
+ });
14
+ }, preUpdate: (o) => {
15
+ m = "edit", u.value = !0, c.value = "编辑上传配置", g(), F(o).then((e) => {
16
+ const s = e.result;
17
+ v.value = b(s.extras.extensions), s.maxSize = s.maxSize / 1024, Object.assign(t, s);
18
+ });
19
+ } });
20
+ const p = S, c = d(""), x = d(), _ = {
21
+ id: null,
22
+ name: null,
23
+ keyword: null,
24
+ storePath: null,
25
+ extension: null,
26
+ maxSize: null,
27
+ isExternal: 0
28
+ }, t = B({ ..._ }), w = {
29
+ name: [{ required: !0, message: "请填写模块描述名称" }],
30
+ keyword: [{ required: !0, message: "请填写附件标识Key" }],
31
+ storePath: [{ required: !0, message: "请填写存放路径" }],
32
+ extension: [{ required: !0, message: "请选择允许格式" }],
33
+ maxSize: [{ required: !0, message: "请填写最大值 (数字类型)" }],
34
+ isExternal: [{ required: !0, message: "请选择存储方式" }]
35
+ }, g = () => {
36
+ Object.assign(t, _);
37
+ }, f = d(!1), v = d([]), b = (o) => o.map((e) => ({
38
+ value: e.ext,
39
+ label: e.name
40
+ })), U = () => {
41
+ x.value.validateFields().then(() => {
42
+ f.value = !0;
43
+ const o = { ...j(t), extras: null };
44
+ m === "add" ? N(o).then((e) => {
45
+ e.code === 200 && (u.value = !1, p("success", m));
46
+ }) : V(o).then((e) => {
47
+ e.code === 200 && (u.value = !1, p("success", m));
48
+ });
49
+ }).finally(() => {
50
+ f.value = !1;
51
+ });
52
+ }, z = () => {
53
+ u.value = !1, p("cancel");
54
+ };
55
+ return (o, e) => {
56
+ const s = r("a-input"), i = r("a-form-item"), E = r("a-checkbox-group"), k = r("a-select-option"), q = r("a-select"), h = r("a-form"), K = r("a-modal");
57
+ return R(), O(K, {
58
+ title: c.value,
59
+ width: 800,
60
+ open: u.value,
61
+ "mask-closable": !1,
62
+ "destroy-on-close": "",
63
+ "confirm-loading": f.value,
64
+ onOk: U,
65
+ onCancel: z
66
+ }, {
67
+ default: n(() => [
68
+ a(h, {
69
+ ref_key: "formRef",
70
+ ref: x,
71
+ model: t,
72
+ rules: w,
73
+ "label-col": { span: 5 },
74
+ "wrapper-col": { span: 12 }
75
+ }, {
76
+ default: n(() => [
77
+ a(i, {
78
+ label: "模块描述名称",
79
+ name: "name"
80
+ }, {
81
+ default: n(() => [
82
+ a(s, {
83
+ value: t.name,
84
+ "onUpdate:value": e[0] || (e[0] = (l) => t.name = l),
85
+ placeholder: "模块描述名称"
86
+ }, null, 8, ["value"])
87
+ ]),
88
+ _: 1
89
+ }),
90
+ a(i, {
91
+ label: "附件标识Key",
92
+ name: "keyword"
93
+ }, {
94
+ default: n(() => [
95
+ a(s, {
96
+ value: t.keyword,
97
+ "onUpdate:value": e[1] || (e[1] = (l) => t.keyword = l),
98
+ placeholder: "附件标识Key"
99
+ }, null, 8, ["value"])
100
+ ]),
101
+ _: 1
102
+ }),
103
+ a(i, {
104
+ label: "存储路径",
105
+ name: "storePath"
106
+ }, {
107
+ default: n(() => [
108
+ a(s, {
109
+ value: t.storePath,
110
+ "onUpdate:value": e[2] || (e[2] = (l) => t.storePath = l),
111
+ placeholder: "存储路径"
112
+ }, null, 8, ["value"])
113
+ ]),
114
+ _: 1
115
+ }),
116
+ a(i, {
117
+ label: "允许格式",
118
+ name: "extension"
119
+ }, {
120
+ default: n(() => [
121
+ a(E, {
122
+ value: t.extension,
123
+ "onUpdate:value": e[3] || (e[3] = (l) => t.extension = l),
124
+ options: v.value
125
+ }, null, 8, ["value", "options"])
126
+ ]),
127
+ _: 1
128
+ }),
129
+ a(i, {
130
+ label: "最大值 (KB)",
131
+ name: "maxSize"
132
+ }, {
133
+ default: n(() => [
134
+ a(s, {
135
+ value: t.maxSize,
136
+ "onUpdate:value": e[4] || (e[4] = (l) => t.maxSize = l),
137
+ placeholder: "最大值 (KB)"
138
+ }, null, 8, ["value"])
139
+ ]),
140
+ _: 1
141
+ }),
142
+ a(i, {
143
+ label: "存储方式",
144
+ name: "isExternal"
145
+ }, {
146
+ default: n(() => [
147
+ a(q, {
148
+ value: t.isExternal,
149
+ "onUpdate:value": e[5] || (e[5] = (l) => t.isExternal = l)
150
+ }, {
151
+ default: n(() => [
152
+ a(k, { value: 0 }, {
153
+ default: n(() => e[6] || (e[6] = [
154
+ y("本地存储")
155
+ ])),
156
+ _: 1
157
+ }),
158
+ a(k, { value: 1 }, {
159
+ default: n(() => e[7] || (e[7] = [
160
+ y("云存储")
161
+ ])),
162
+ _: 1
163
+ })
164
+ ]),
165
+ _: 1
166
+ }, 8, ["value"])
167
+ ]),
168
+ _: 1
169
+ })
170
+ ]),
171
+ _: 1
172
+ }, 8, ["model"])
173
+ ]),
174
+ _: 1
175
+ }, 8, ["title", "open", "confirm-loading"]);
176
+ };
177
+ }
178
+ });
179
+ export {
180
+ I as default
181
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./AttachmentEdit.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,178 @@
1
+ import { defineComponent as F, ref as b, reactive as P, resolveComponent as n, openBlock as u, createElementBlock as p, createElementVNode as c, createVNode as t, withCtx as o, createTextVNode as s, unref as d, toDisplayString as g, createCommentVNode as I, Fragment as h } from "vue";
2
+ import { CloudTwoTone as B, PlusOutlined as O } from "@ant-design/icons-vue";
3
+ import { queryConfigs as j, deleteConfig as A } from "./api.js";
4
+ import { message as w } from "ant-design-vue";
5
+ import K from "./AttachmentEdit.vue.js";
6
+ import { FxCardTable as L, ClickCopy as G } from "@since2006/components";
7
+ const H = { class: "ant-pro-table" }, J = { class: "ant-pro-table-search" }, M = ["onClick"], Q = ["onClick"], ne = /* @__PURE__ */ F({
8
+ __name: "AttachmentList",
9
+ setup(W) {
10
+ const l = b(), q = [
11
+ {
12
+ title: "模块名称",
13
+ dataIndex: "name"
14
+ },
15
+ {
16
+ title: "附件标识Key",
17
+ dataIndex: "keyword"
18
+ },
19
+ {
20
+ title: "允许类型",
21
+ dataIndex: "extensionDesc"
22
+ },
23
+ {
24
+ title: "大小",
25
+ dataIndex: "maxSizeDesc",
26
+ sorter: !0,
27
+ sortDirections: ["descend", "ascend"],
28
+ sortField: "max_size"
29
+ },
30
+ {
31
+ title: "操作",
32
+ dataIndex: "action",
33
+ width: "150px"
34
+ }
35
+ ], i = P({
36
+ query: void 0
37
+ }), y = () => {
38
+ l.value.refresh();
39
+ }, D = () => {
40
+ i.query = void 0, l.value.refresh();
41
+ }, R = (a) => {
42
+ A(a.id).then(() => {
43
+ w.success("删除附件配置成功"), l.value.refresh();
44
+ });
45
+ }, f = b(), N = () => {
46
+ f.value.preCreate();
47
+ }, v = (a) => {
48
+ f.value.preUpdate(a.id);
49
+ }, S = (a) => {
50
+ let e;
51
+ a === "add" ? e = "添加附件配置成功" : e = "编辑附件配置成功", w.success(e), l.value.refresh();
52
+ };
53
+ return (a, e) => {
54
+ const T = n("a-input"), U = n("a-form-item"), C = n("a-col"), _ = n("a-button"), V = n("a-row"), $ = n("a-form"), z = n("a-divider"), E = n("a-popconfirm");
55
+ return u(), p("div", null, [
56
+ c("div", H, [
57
+ c("div", J, [
58
+ t($, { layout: "horizontal" }, {
59
+ default: o(() => [
60
+ t(V, {
61
+ gutter: 16,
62
+ type: "flex",
63
+ justify: "start"
64
+ }, {
65
+ default: o(() => [
66
+ t(C, {
67
+ xs: 24,
68
+ sm: 24,
69
+ md: 12,
70
+ lg: 7
71
+ }, {
72
+ default: o(() => [
73
+ t(U, { label: "搜索" }, {
74
+ default: o(() => [
75
+ t(T, {
76
+ value: i.query,
77
+ "onUpdate:value": e[0] || (e[0] = (r) => i.query = r),
78
+ placeholder: "模块名称、附件标识",
79
+ onPressEnter: y
80
+ }, null, 8, ["value"])
81
+ ]),
82
+ _: 1
83
+ })
84
+ ]),
85
+ _: 1
86
+ }),
87
+ t(C, null, {
88
+ default: o(() => [
89
+ t(_, {
90
+ onClick: y,
91
+ type: "primary"
92
+ }, {
93
+ default: o(() => e[1] || (e[1] = [
94
+ s("搜索")
95
+ ])),
96
+ _: 1
97
+ }),
98
+ t(_, {
99
+ onClick: D,
100
+ style: { "margin-left": "16px" }
101
+ }, {
102
+ default: o(() => e[2] || (e[2] = [
103
+ s("重置")
104
+ ])),
105
+ _: 1
106
+ })
107
+ ]),
108
+ _: 1
109
+ })
110
+ ]),
111
+ _: 1
112
+ })
113
+ ]),
114
+ _: 1
115
+ })
116
+ ]),
117
+ t(d(L), {
118
+ columns: q,
119
+ "load-data": d(j),
120
+ params: i,
121
+ ref_key: "tableRef",
122
+ ref: l
123
+ }, {
124
+ title: o(() => [
125
+ t(d(B)),
126
+ e[3] || (e[3] = s(" 附件上传"))
127
+ ]),
128
+ toolbar: o(() => [
129
+ t(_, {
130
+ type: "primary",
131
+ onClick: N
132
+ }, {
133
+ default: o(() => [
134
+ t(d(O)),
135
+ e[4] || (e[4] = s(" 新建 "))
136
+ ]),
137
+ _: 1
138
+ })
139
+ ]),
140
+ bodyCell: o(({ column: r, record: m, text: x }) => [
141
+ r.dataIndex === "name" ? (u(), p("a", {
142
+ key: 0,
143
+ onClick: (k) => v(m)
144
+ }, g(m.name), 9, M)) : I("", !0),
145
+ r.dataIndex === "keyword" ? (u(), p(h, { key: 1 }, [
146
+ s(g(x) + " ", 1),
147
+ t(d(G), { value: x }, null, 8, ["value"])
148
+ ], 64)) : r.dataIndex === "action" ? (u(), p(h, { key: 2 }, [
149
+ c("a", {
150
+ onClick: (k) => v(m)
151
+ }, "编辑", 8, Q),
152
+ t(z, { type: "vertical" }),
153
+ t(E, {
154
+ title: "确定要删除吗?",
155
+ onConfirm: (k) => R(m)
156
+ }, {
157
+ default: o(() => e[5] || (e[5] = [
158
+ c("a", null, "删除", -1)
159
+ ])),
160
+ _: 2
161
+ }, 1032, ["onConfirm"])
162
+ ], 64)) : I("", !0)
163
+ ]),
164
+ _: 1
165
+ }, 8, ["load-data", "params"])
166
+ ]),
167
+ t(K, {
168
+ ref_key: "modalRef",
169
+ ref: f,
170
+ onSuccess: S
171
+ }, null, 512)
172
+ ]);
173
+ };
174
+ }
175
+ });
176
+ export {
177
+ ne as default
178
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./AttachmentList.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,28 @@
1
+ import { http as e } from "@since2006/utils";
2
+ function i(t) {
3
+ return e.get("/api/v2/attachment/query_configs", { params: t });
4
+ }
5
+ function o(t) {
6
+ const n = { id: t };
7
+ return e.post("/api/v2/attachment/delete_config", n);
8
+ }
9
+ function c() {
10
+ return e.get("/api/v2/attachment/get_available_extensions");
11
+ }
12
+ function r(t) {
13
+ return e.post("/api/v2/attachment/create_config", t);
14
+ }
15
+ function f(t) {
16
+ return e.get("/api/v2/attachment/get_config?id=" + t);
17
+ }
18
+ function g(t) {
19
+ return e.post("/api/v2/attachment/update_config", t);
20
+ }
21
+ export {
22
+ r as createConfig,
23
+ o as deleteConfig,
24
+ c as getAvailableExtensions,
25
+ f as getConfig,
26
+ i as queryConfigs,
27
+ g as updateConfig
28
+ };
@@ -0,0 +1,7 @@
1
+ import t from "./AttachmentList.vue.js";
2
+ import { withInstall as m } from "@since2006/utils";
3
+ const n = m(t);
4
+ export {
5
+ n as AttachmentIndex,
6
+ n as default
7
+ };
@@ -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
+ };