@since2006/pages 2025.8.7 → 2025.11.1
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/dist/es/index.js +18 -14
- package/dist/es/src/app/attachment/AttachmentEdit.vue.js +43 -40
- package/dist/es/src/app/attachment/{AttachmentList.vue.js → AttachmentIndex.vue.js} +21 -21
- package/dist/es/src/app/attachment/AttachmentIndex.vue2.js +4 -0
- package/dist/es/src/app/attachment/api.js +6 -6
- package/dist/es/src/app/attachment/index.js +1 -1
- package/dist/es/src/app/dict/DictEdit.vue.js +46 -46
- package/dist/es/src/app/dict/DictIndex.vue.js +2 -2
- package/dist/es/src/app/dict/DictItemEdit.vue.js +1 -1
- package/dist/es/src/app/dict/DictItemEdit.vue2.js +39 -38
- package/dist/es/src/app/dict/DictPanel.vue.js +2 -2
- package/dist/es/src/app/dict/DictPanel.vue2.js +80 -80
- package/dist/es/src/app/dict/api.js +22 -20
- package/dist/es/src/app/log/api.js +39 -7
- package/dist/es/src/app/log/components/AccessLogDetail.vue.js +7 -0
- package/dist/es/src/app/log/components/AccessLogDetail.vue2.js +240 -0
- package/dist/es/src/app/log/components/AccessLogList.vue.js +7 -0
- package/dist/es/src/app/log/components/AccessLogList.vue2.js +452 -0
- package/dist/es/src/app/log/components/AuditLogDetail.vue.js +7 -0
- package/dist/es/src/app/log/components/AuditLogDetail.vue2.js +163 -0
- package/dist/es/src/app/log/components/AuditLogList.vue.js +7 -0
- package/dist/es/src/app/log/components/AuditLogList.vue2.js +325 -0
- package/dist/es/src/app/log/components/ErrorLogDetail.vue.js +7 -0
- package/dist/es/src/app/log/components/ErrorLogDetail.vue2.js +187 -0
- package/dist/es/src/app/log/components/ErrorLogList.vue.js +7 -0
- package/dist/es/src/app/log/components/ErrorLogList.vue2.js +310 -0
- package/dist/es/src/app/log/components/LoginLogDetail.vue.js +7 -0
- package/dist/es/src/app/log/components/LoginLogDetail.vue2.js +182 -0
- package/dist/es/src/app/log/components/LoginLogList.vue.js +7 -0
- package/dist/es/src/app/log/components/LoginLogList.vue2.js +303 -0
- package/dist/es/src/app/log/components/OperationLogDetail.vue.js +7 -0
- package/dist/es/src/app/log/components/OperationLogDetail.vue2.js +229 -0
- package/dist/es/src/app/log/components/OperationLogList.vue.js +7 -0
- package/dist/es/src/app/log/components/OperationLogList.vue2.js +333 -0
- package/dist/es/src/app/log/index.js +12 -5
- package/dist/es/src/app/log/ua-icons.vue.js +2 -2
- package/dist/es/src/app/log/ua-icons.vue2.js +58 -26
- package/dist/es/src/app/metadata/MetadataIndex.vue.js +1 -1
- package/dist/es/src/app/metadata/MetadataUpdate.vue.js +1 -1
- package/dist/es/src/app/metadata/api.js +5 -5
- package/dist/es/src/app/module/ModuleAdd.vue.js +1 -1
- package/dist/es/src/app/module/ModuleAdd.vue2.js +70 -66
- package/dist/es/src/app/module/ModuleDetail.vue.js +10 -10
- package/dist/es/src/app/module/ModuleEdit.vue.js +2 -2
- package/dist/es/src/app/module/ModuleEdit.vue2.js +74 -70
- package/dist/es/src/app/module/ModuleIndex.vue.js +2 -2
- package/dist/es/src/app/module/ModuleIndex.vue2.js +35 -35
- package/dist/es/src/app/module/api.js +10 -6
- package/dist/es/src/app/module/icon/IconSelectorModal.vue.js +2 -2
- package/dist/es/src/app/schedule/CronTypeSelect.vue.js +32 -32
- package/dist/es/src/app/schedule/ScheduleAdd.vue.js +3 -3
- package/dist/es/src/app/schedule/ScheduleAdd.vue2.js +38 -38
- package/dist/es/src/app/schedule/ScheduleEdit.vue.js +1 -1
- package/dist/es/src/app/schedule/ScheduleEdit.vue2.js +56 -56
- package/dist/es/src/app/schedule/ScheduleIndex.vue.js +18 -18
- package/dist/es/src/app/schedule/ScheduleLogList.vue.js +26 -26
- package/dist/es/src/app/schedule/ScheduleLogView.vue.js +3 -3
- package/dist/es/src/app/schedule/ScheduleLogView.vue2.js +7 -7
- package/dist/es/src/app/schedule/api.js +14 -14
- package/dist/es/src/app/system/StatusIndex.vue.js +1 -1
- package/dist/es/src/app/system/StatusIndex.vue2.js +109 -111
- package/dist/es/src/app/system/api.js +2 -3
- package/dist/es/src/index.js +17 -13
- package/dist/es/style.css +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/lib/src/app/attachment/AttachmentEdit.vue.js +1 -1
- package/dist/lib/src/app/attachment/AttachmentIndex.vue.js +1 -0
- package/dist/lib/src/app/attachment/{AttachmentList.vue2.js → AttachmentIndex.vue2.js} +1 -1
- package/dist/lib/src/app/attachment/api.js +1 -1
- package/dist/lib/src/app/attachment/index.js +1 -1
- package/dist/lib/src/app/dict/DictEdit.vue.js +1 -1
- package/dist/lib/src/app/dict/DictIndex.vue.js +1 -1
- package/dist/lib/src/app/dict/DictItemEdit.vue.js +1 -1
- package/dist/lib/src/app/dict/DictItemEdit.vue2.js +1 -1
- package/dist/lib/src/app/dict/DictPanel.vue.js +1 -1
- package/dist/lib/src/app/dict/DictPanel.vue2.js +1 -1
- package/dist/lib/src/app/dict/api.js +1 -1
- package/dist/lib/src/app/log/api.js +1 -1
- package/dist/lib/src/app/log/components/AccessLogDetail.vue.js +1 -0
- package/dist/lib/src/app/log/components/AccessLogDetail.vue2.js +1 -0
- package/dist/lib/src/app/log/components/AccessLogList.vue.js +1 -0
- package/dist/lib/src/app/log/components/AccessLogList.vue2.js +1 -0
- package/dist/lib/src/app/log/components/AuditLogDetail.vue.js +1 -0
- package/dist/lib/src/app/log/components/AuditLogDetail.vue2.js +1 -0
- package/dist/lib/src/app/log/components/AuditLogList.vue.js +1 -0
- package/dist/lib/src/app/log/components/AuditLogList.vue2.js +1 -0
- package/dist/lib/src/app/log/components/ErrorLogDetail.vue.js +1 -0
- package/dist/lib/src/app/log/components/ErrorLogDetail.vue2.js +1 -0
- package/dist/lib/src/app/log/components/ErrorLogList.vue.js +1 -0
- package/dist/lib/src/app/log/components/ErrorLogList.vue2.js +1 -0
- package/dist/lib/src/app/log/components/LoginLogDetail.vue.js +1 -0
- package/dist/lib/src/app/log/components/LoginLogDetail.vue2.js +1 -0
- package/dist/lib/src/app/log/components/LoginLogList.vue.js +1 -0
- package/dist/lib/src/app/log/components/LoginLogList.vue2.js +1 -0
- package/dist/lib/src/app/log/components/OperationLogDetail.vue.js +1 -0
- package/dist/lib/src/app/log/components/OperationLogDetail.vue2.js +1 -0
- package/dist/lib/src/app/log/components/OperationLogList.vue.js +1 -0
- package/dist/lib/src/app/log/components/OperationLogList.vue2.js +1 -0
- package/dist/lib/src/app/log/index.js +1 -1
- package/dist/lib/src/app/log/ua-icons.vue.js +1 -1
- package/dist/lib/src/app/log/ua-icons.vue2.js +1 -1
- package/dist/lib/src/app/metadata/MetadataIndex.vue.js +1 -1
- package/dist/lib/src/app/metadata/MetadataUpdate.vue.js +1 -1
- package/dist/lib/src/app/metadata/api.js +1 -1
- package/dist/lib/src/app/module/ModuleAdd.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleAdd.vue2.js +1 -1
- package/dist/lib/src/app/module/ModuleDetail.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleEdit.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleEdit.vue2.js +1 -1
- package/dist/lib/src/app/module/ModuleIndex.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleIndex.vue2.js +1 -1
- package/dist/lib/src/app/module/api.js +1 -1
- package/dist/lib/src/app/module/icon/IconSelectorModal.vue.js +1 -1
- package/dist/lib/src/app/schedule/CronTypeSelect.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleAdd.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleAdd.vue2.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleEdit.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleEdit.vue2.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleIndex.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleLogList.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleLogView.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleLogView.vue2.js +1 -1
- package/dist/lib/src/app/schedule/api.js +1 -1
- package/dist/lib/src/app/system/StatusIndex.vue.js +1 -1
- package/dist/lib/src/app/system/StatusIndex.vue2.js +1 -1
- package/dist/lib/src/app/system/api.js +1 -1
- package/dist/lib/src/index.js +1 -1
- package/dist/lib/style.css +1 -1
- package/package.json +4 -1
- package/dist/es/src/app/attachment/AttachmentList.vue2.js +0 -4
- package/dist/es/src/app/log/LogIndex.vue.js +0 -238
- package/dist/es/src/app/log/LogIndex.vue2.js +0 -4
- package/dist/es/src/app/log/LogView.vue.js +0 -7
- package/dist/es/src/app/log/LogView.vue2.js +0 -164
- package/dist/lib/src/app/attachment/AttachmentList.vue.js +0 -1
- package/dist/lib/src/app/log/LogIndex.vue.js +0 -1
- package/dist/lib/src/app/log/LogIndex.vue2.js +0 -1
- package/dist/lib/src/app/log/LogView.vue.js +0 -1
- package/dist/lib/src/app/log/LogView.vue2.js +0 -1
|
@@ -1,87 +1,85 @@
|
|
|
1
|
-
import { defineComponent as D, ref as
|
|
2
|
-
import {
|
|
3
|
-
import { notification as
|
|
4
|
-
import { CloudUploadOutlined as
|
|
5
|
-
import { getContextPath as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as D, ref as V, reactive as f, resolveComponent as r, openBlock as y, createBlock as j, withCtx as o, createVNode as n, createElementVNode as s, toDisplayString as l, unref as C, h as U, createTextVNode as T, createElementBlock as h, Fragment as B } from "vue";
|
|
2
|
+
import { getStatus as $ } from "./api.js";
|
|
3
|
+
import { notification as S } from "ant-design-vue";
|
|
4
|
+
import { CloudUploadOutlined as E } from "@ant-design/icons-vue";
|
|
5
|
+
import { getContextPath as H, getToken as X } from "@since2006/utils";
|
|
6
|
+
const F = { class: "large-text" }, W = { class: "float-right" }, q = { style: { "margin-right": "18px", "margin-bottom": "14px" } }, G = { class: "large-text" }, K = { class: "float-right" }, Q = { class: "large-text" }, R = { class: "float-right" }, Y = { class: "large-text" }, Z = { class: "float-right" }, c = { class: "large-text" }, tt = { class: "float-right" }, st = { class: "large-text" }, lt = { class: "float-right" }, nt = { class: "large-text" }, ot = { class: "float-right" }, et = { class: "large-text" }, at = { class: "float-right" }, it = { class: "large-text" }, rt = { class: "float-right" }, dt = { class: "large-text" }, ut = { class: "float-right" }, pt = { class: "large-text" }, gt = { class: "float-right" }, ft = { class: "large-text" }, _t = { class: "float-right" }, xt = { class: "large-text" }, mt = { class: "float-right" }, vt = { class: "large-text" }, bt = { class: "float-right" }, yt = { class: "large-text" }, wt = { class: "float-right" }, kt = { class: "large-text" }, jt = { class: "float-right" }, Ct = { class: "large-text" }, St = { class: "float-right" }, Ot = { class: "large-text" }, It = { class: "float-right" }, Vt = { class: "large-text" }, Tt = { class: "float-right" }, ht = { class: "large-text" }, Nt = { class: "float-right" }, Jt = { class: "large-text" }, Mt = { class: "float-right" }, zt = { class: "large-text" }, At = { class: "float-right" }, Lt = { class: "large-text" }, Pt = { class: "float-right" }, Dt = { class: "large-text" }, Ut = { class: "float-right" }, Bt = { class: "large-text" }, $t = { class: "float-right" }, Et = { class: "large-text" }, Ht = { class: "float-right" }, Xt = { class: "large-text" }, Ft = { class: "float-right" }, Wt = { class: "large-text" }, qt = { class: "float-right" }, Gt = { class: "large-text" }, Kt = { class: "float-right" }, Qt = { class: "large-text" }, Rt = { class: "float-right" }, Yt = {
|
|
7
7
|
class: "large-text",
|
|
8
8
|
style: { color: "orangered", "font-weight": "bold" }
|
|
9
|
-
},
|
|
9
|
+
}, Zt = { class: "float-right" }, ct = { class: "large-text" }, ts = { class: "float-right" }, ss = { class: "large-text" }, ls = { class: "float-right" }, ns = { class: "large-text" }, os = { class: "float-right" }, es = { class: "float-right" }, as = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "float-right"
|
|
12
|
-
},
|
|
12
|
+
}, fs = /* @__PURE__ */ D({
|
|
13
13
|
__name: "StatusIndex",
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
14
|
+
setup(is) {
|
|
15
|
+
const N = H(), J = X(), u = V(!1), O = V(), p = f({}), e = f({}), i = f({}), a = f({}), w = f({}), _ = f({}), x = f({}), I = async () => {
|
|
16
16
|
var t;
|
|
17
17
|
u.value = !0;
|
|
18
|
-
const
|
|
19
|
-
|
|
18
|
+
const d = await $();
|
|
19
|
+
d.code === 200 && (Object.assign(p, d.data), Object.assign(e, p.license), Object.assign(i, p.database), Object.assign(a, p.jvm), Object.assign(w, p.os), Object.assign(_, p.app), Object.assign(x, (t = p.jvm) == null ? void 0 : t.thread)), u.value = !1;
|
|
20
20
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const J = (i) => {
|
|
25
|
-
i.file.status === "done" ? i.file.response.code === 200 ? (O.success({
|
|
21
|
+
I();
|
|
22
|
+
const M = (d) => {
|
|
23
|
+
d.file.status === "done" ? d.file.response.code === 200 ? (S.success({
|
|
26
24
|
message: "License 更新成功",
|
|
27
25
|
description: "将重新加载 License 信息,请确认是否正确"
|
|
28
|
-
}),
|
|
29
|
-
message:
|
|
26
|
+
}), I()) : S.error({
|
|
27
|
+
message: d.file.response.msg,
|
|
30
28
|
description: "请检查 License 文件是否正确"
|
|
31
|
-
}) :
|
|
29
|
+
}) : d.file.status === "error" && S.error({ message: "上传失败" });
|
|
32
30
|
};
|
|
33
|
-
return (
|
|
34
|
-
const z =
|
|
35
|
-
return y(), j(
|
|
31
|
+
return (d, t) => {
|
|
32
|
+
const z = r("a-progress"), m = r("a-skeleton"), v = r("a-card"), g = r("a-col"), b = r("a-typography-text"), k = r("a-row"), A = r("a-button"), L = r("a-upload"), P = r("a-tooltip");
|
|
33
|
+
return y(), j(k, { gutter: 16 }, {
|
|
36
34
|
default: o(() => [
|
|
37
35
|
n(g, { span: 12 }, {
|
|
38
36
|
default: o(() => [
|
|
39
|
-
n(
|
|
37
|
+
n(k, { gutter: [16, 16] }, {
|
|
40
38
|
default: o(() => [
|
|
41
39
|
n(g, { span: 24 }, {
|
|
42
40
|
default: o(() => [
|
|
43
|
-
n(
|
|
41
|
+
n(v, { title: "内存线程信息" }, {
|
|
44
42
|
default: o(() => [
|
|
45
|
-
n(
|
|
43
|
+
n(m, { loading: u.value }, {
|
|
46
44
|
default: o(() => [
|
|
47
|
-
s("div",
|
|
45
|
+
s("div", F, [
|
|
48
46
|
t[0] || (t[0] = s("span", null, "当前用量", -1)),
|
|
49
|
-
s("span",
|
|
50
|
-
s("div",
|
|
47
|
+
s("span", W, l(a.usedMemorySize) + " / " + l(a.totalMemorySize), 1),
|
|
48
|
+
s("div", q, [
|
|
51
49
|
n(z, {
|
|
52
50
|
percent: a.memoryUsage,
|
|
53
51
|
size: 12
|
|
54
52
|
}, null, 8, ["percent"])
|
|
55
53
|
])
|
|
56
54
|
]),
|
|
57
|
-
s("div",
|
|
55
|
+
s("div", G, [
|
|
58
56
|
t[1] || (t[1] = s("span", null, "当前可用", -1)),
|
|
59
|
-
s("span",
|
|
57
|
+
s("span", K, l(a.freeMemorySize), 1)
|
|
60
58
|
]),
|
|
61
59
|
t[7] || (t[7] = s("br", null, null, -1)),
|
|
62
|
-
s("div",
|
|
60
|
+
s("div", Q, [
|
|
63
61
|
t[2] || (t[2] = s("span", null, "最大堆(-Xmx)", -1)),
|
|
64
|
-
s("span",
|
|
62
|
+
s("span", R, l(a.maxMemorySize), 1)
|
|
65
63
|
]),
|
|
66
64
|
t[8] || (t[8] = s("br", null, null, -1)),
|
|
67
|
-
s("div",
|
|
65
|
+
s("div", Y, [
|
|
68
66
|
t[3] || (t[3] = s("span", null, "当前线程数", -1)),
|
|
69
|
-
s("span",
|
|
67
|
+
s("span", Z, l(x.threadCount), 1)
|
|
70
68
|
]),
|
|
71
69
|
t[9] || (t[9] = s("br", null, null, -1)),
|
|
72
|
-
s("div",
|
|
70
|
+
s("div", c, [
|
|
73
71
|
t[4] || (t[4] = s("span", null, "守护线程数", -1)),
|
|
74
|
-
s("span",
|
|
72
|
+
s("span", tt, l(x.daemonThreadCount), 1)
|
|
75
73
|
]),
|
|
76
74
|
t[10] || (t[10] = s("br", null, null, -1)),
|
|
77
|
-
s("div",
|
|
75
|
+
s("div", st, [
|
|
78
76
|
t[5] || (t[5] = s("span", null, "最大线程峰值", -1)),
|
|
79
|
-
s("span",
|
|
77
|
+
s("span", lt, l(x.peakThreadCount), 1)
|
|
80
78
|
]),
|
|
81
79
|
t[11] || (t[11] = s("br", null, null, -1)),
|
|
82
|
-
s("div",
|
|
80
|
+
s("div", nt, [
|
|
83
81
|
t[6] || (t[6] = s("span", null, "创建线程总数", -1)),
|
|
84
|
-
s("span",
|
|
82
|
+
s("span", ot, l(x.totalStartedThreadCount), 1)
|
|
85
83
|
])
|
|
86
84
|
]),
|
|
87
85
|
_: 1
|
|
@@ -94,50 +92,50 @@ const W = { class: "large-text" }, q = { class: "float-right" }, G = { style: {
|
|
|
94
92
|
}),
|
|
95
93
|
n(g, { span: 24 }, {
|
|
96
94
|
default: o(() => [
|
|
97
|
-
n(
|
|
95
|
+
n(v, { title: "主数据库信息" }, {
|
|
98
96
|
default: o(() => [
|
|
99
|
-
n(
|
|
97
|
+
n(m, { loading: u.value }, {
|
|
100
98
|
default: o(() => [
|
|
101
|
-
s("div",
|
|
99
|
+
s("div", et, [
|
|
102
100
|
t[12] || (t[12] = s("span", null, "数据库名称", -1)),
|
|
103
|
-
s("span",
|
|
101
|
+
s("span", at, l(i.productName), 1)
|
|
104
102
|
]),
|
|
105
103
|
t[19] || (t[19] = s("br", null, null, -1)),
|
|
106
|
-
s("div",
|
|
104
|
+
s("div", it, [
|
|
107
105
|
t[13] || (t[13] = s("span", null, "数据库版本", -1)),
|
|
108
|
-
s("span",
|
|
106
|
+
s("span", rt, l(i.productVersion), 1)
|
|
109
107
|
]),
|
|
110
108
|
t[20] || (t[20] = s("br", null, null, -1)),
|
|
111
|
-
s("div",
|
|
109
|
+
s("div", dt, [
|
|
112
110
|
t[14] || (t[14] = s("span", null, "驱动名称", -1)),
|
|
113
|
-
s("span",
|
|
111
|
+
s("span", ut, [
|
|
114
112
|
n(b, {
|
|
115
113
|
style: { width: "300px" },
|
|
116
114
|
class: "large-text",
|
|
117
|
-
ellipsis: { tooltip:
|
|
118
|
-
content:
|
|
115
|
+
ellipsis: { tooltip: i.driverVersion },
|
|
116
|
+
content: i.driverVersion
|
|
119
117
|
}, null, 8, ["ellipsis", "content"])
|
|
120
118
|
])
|
|
121
119
|
]),
|
|
122
120
|
t[21] || (t[21] = s("br", null, null, -1)),
|
|
123
|
-
s("div",
|
|
121
|
+
s("div", pt, [
|
|
124
122
|
t[15] || (t[15] = s("span", null, "数据库连接池", -1)),
|
|
125
|
-
s("span",
|
|
123
|
+
s("span", gt, l(i.poolName), 1)
|
|
126
124
|
]),
|
|
127
125
|
t[22] || (t[22] = s("br", null, null, -1)),
|
|
128
|
-
s("div",
|
|
126
|
+
s("div", ft, [
|
|
129
127
|
t[16] || (t[16] = s("span", null, "最大活跃连接数", -1)),
|
|
130
|
-
s("span",
|
|
128
|
+
s("span", _t, l(i.maxActive), 1)
|
|
131
129
|
]),
|
|
132
130
|
t[23] || (t[23] = s("br", null, null, -1)),
|
|
133
131
|
s("div", xt, [
|
|
134
132
|
t[17] || (t[17] = s("span", null, "最小空闲连接数", -1)),
|
|
135
|
-
s("span", mt, l(
|
|
133
|
+
s("span", mt, l(i.minIdle), 1)
|
|
136
134
|
]),
|
|
137
135
|
t[24] || (t[24] = s("br", null, null, -1)),
|
|
138
|
-
s("div",
|
|
136
|
+
s("div", vt, [
|
|
139
137
|
t[18] || (t[18] = s("span", null, "获取连接等待时间", -1)),
|
|
140
|
-
s("span",
|
|
138
|
+
s("span", bt, l(i.maxWait) + "ms", 1)
|
|
141
139
|
]),
|
|
142
140
|
t[25] || (t[25] = s("br", null, null, -1))
|
|
143
141
|
]),
|
|
@@ -151,16 +149,16 @@ const W = { class: "large-text" }, q = { class: "float-right" }, G = { style: {
|
|
|
151
149
|
}),
|
|
152
150
|
n(g, { span: 24 }, {
|
|
153
151
|
default: o(() => [
|
|
154
|
-
n(
|
|
152
|
+
n(v, { title: "系统信息" }, {
|
|
155
153
|
default: o(() => [
|
|
156
|
-
n(
|
|
154
|
+
n(m, { loading: u.value }, {
|
|
157
155
|
default: o(() => [
|
|
158
|
-
s("div",
|
|
156
|
+
s("div", yt, [
|
|
159
157
|
t[26] || (t[26] = s("span", null, "应用服务器", -1)),
|
|
160
|
-
s("span",
|
|
158
|
+
s("span", wt, l(_.serverInfo), 1)
|
|
161
159
|
]),
|
|
162
160
|
t[30] || (t[30] = s("br", null, null, -1)),
|
|
163
|
-
s("div",
|
|
161
|
+
s("div", kt, [
|
|
164
162
|
t[27] || (t[27] = s("span", null, "工作目录", -1)),
|
|
165
163
|
s("span", jt, [
|
|
166
164
|
n(b, {
|
|
@@ -172,12 +170,12 @@ const W = { class: "large-text" }, q = { class: "float-right" }, G = { style: {
|
|
|
172
170
|
])
|
|
173
171
|
]),
|
|
174
172
|
t[31] || (t[31] = s("br", null, null, -1)),
|
|
175
|
-
s("div",
|
|
173
|
+
s("div", Ct, [
|
|
176
174
|
t[28] || (t[28] = s("span", null, "会话超时(Session Timeout)", -1)),
|
|
177
|
-
s("span",
|
|
175
|
+
s("span", St, l(_.maxInactiveInterval / 60) + "分钟", 1)
|
|
178
176
|
]),
|
|
179
177
|
t[32] || (t[32] = s("br", null, null, -1)),
|
|
180
|
-
s("div",
|
|
178
|
+
s("div", Ot, [
|
|
181
179
|
t[29] || (t[29] = s("span", null, "缓存管理", -1)),
|
|
182
180
|
s("span", It, l(_.cacheManager), 1)
|
|
183
181
|
]),
|
|
@@ -199,27 +197,27 @@ const W = { class: "large-text" }, q = { class: "float-right" }, G = { style: {
|
|
|
199
197
|
}),
|
|
200
198
|
n(g, { span: 12 }, {
|
|
201
199
|
default: o(() => [
|
|
202
|
-
n(
|
|
200
|
+
n(k, { gutter: [16, 16] }, {
|
|
203
201
|
default: o(() => [
|
|
204
202
|
n(g, { span: 24 }, {
|
|
205
203
|
default: o(() => [
|
|
206
|
-
n(
|
|
204
|
+
n(v, { title: "JVM信息" }, {
|
|
207
205
|
default: o(() => [
|
|
208
|
-
n(
|
|
206
|
+
n(m, { loading: u.value }, {
|
|
209
207
|
default: o(() => [
|
|
210
208
|
s("div", Vt, [
|
|
211
209
|
t[34] || (t[34] = s("span", null, "系统启动时间", -1)),
|
|
212
210
|
s("span", Tt, l(a.startTimeDisplay), 1)
|
|
213
211
|
]),
|
|
214
212
|
t[41] || (t[41] = s("br", null, null, -1)),
|
|
215
|
-
s("div",
|
|
213
|
+
s("div", ht, [
|
|
216
214
|
t[35] || (t[35] = s("span", null, "系统运行时长", -1)),
|
|
217
215
|
s("span", Nt, l(a.uptimeDisplay), 1)
|
|
218
216
|
]),
|
|
219
217
|
t[42] || (t[42] = s("br", null, null, -1)),
|
|
220
218
|
s("div", Jt, [
|
|
221
219
|
t[36] || (t[36] = s("span", null, "Java安装目录", -1)),
|
|
222
|
-
s("span",
|
|
220
|
+
s("span", Mt, [
|
|
223
221
|
n(b, {
|
|
224
222
|
style: { width: "300px" },
|
|
225
223
|
class: "large-text",
|
|
@@ -229,24 +227,24 @@ const W = { class: "large-text" }, q = { class: "float-right" }, G = { style: {
|
|
|
229
227
|
])
|
|
230
228
|
]),
|
|
231
229
|
t[43] || (t[43] = s("br", null, null, -1)),
|
|
232
|
-
s("div",
|
|
230
|
+
s("div", zt, [
|
|
233
231
|
t[37] || (t[37] = s("span", null, "Java版本", -1)),
|
|
234
|
-
s("span",
|
|
232
|
+
s("span", At, l(a.javaVersion), 1)
|
|
235
233
|
]),
|
|
236
234
|
t[44] || (t[44] = s("br", null, null, -1)),
|
|
237
|
-
s("div",
|
|
235
|
+
s("div", Lt, [
|
|
238
236
|
t[38] || (t[38] = s("span", null, "Java供应商", -1)),
|
|
239
|
-
s("span",
|
|
237
|
+
s("span", Pt, l(a.javaVendor), 1)
|
|
240
238
|
]),
|
|
241
239
|
t[45] || (t[45] = s("br", null, null, -1)),
|
|
242
|
-
s("div",
|
|
240
|
+
s("div", Dt, [
|
|
243
241
|
t[39] || (t[39] = s("span", null, "操作系统", -1)),
|
|
244
|
-
s("span",
|
|
242
|
+
s("span", Ut, l(w.name) + " " + l(w.version), 1)
|
|
245
243
|
]),
|
|
246
244
|
t[46] || (t[46] = s("br", null, null, -1)),
|
|
247
|
-
s("div",
|
|
245
|
+
s("div", Bt, [
|
|
248
246
|
t[40] || (t[40] = s("span", null, "系统核心数", -1)),
|
|
249
|
-
s("span",
|
|
247
|
+
s("span", $t, l(w.availableProcessors), 1)
|
|
250
248
|
]),
|
|
251
249
|
t[47] || (t[47] = s("br", null, null, -1))
|
|
252
250
|
]),
|
|
@@ -260,21 +258,21 @@ const W = { class: "large-text" }, q = { class: "float-right" }, G = { style: {
|
|
|
260
258
|
}),
|
|
261
259
|
n(g, { span: 24 }, {
|
|
262
260
|
default: o(() => [
|
|
263
|
-
n(
|
|
261
|
+
n(v, { title: "授权信息" }, {
|
|
264
262
|
extra: o(() => [
|
|
265
263
|
n(L, {
|
|
266
264
|
name: "file",
|
|
267
|
-
action: `${
|
|
268
|
-
headers: { "X-Auth-Token":
|
|
265
|
+
action: `${C(N)}/api/v2/license/update_license`,
|
|
266
|
+
headers: { "X-Auth-Token": C(J) },
|
|
269
267
|
showUploadList: !1,
|
|
270
|
-
onChange:
|
|
268
|
+
onChange: M
|
|
271
269
|
}, {
|
|
272
270
|
default: o(() => [
|
|
273
271
|
n(A, {
|
|
274
|
-
icon: U(
|
|
272
|
+
icon: U(C(E))
|
|
275
273
|
}, {
|
|
276
274
|
default: o(() => t[48] || (t[48] = [
|
|
277
|
-
|
|
275
|
+
T("更新")
|
|
278
276
|
])),
|
|
279
277
|
_: 1
|
|
280
278
|
}, 8, ["icon"])
|
|
@@ -283,77 +281,77 @@ const W = { class: "large-text" }, q = { class: "float-right" }, G = { style: {
|
|
|
283
281
|
}, 8, ["action", "headers"])
|
|
284
282
|
]),
|
|
285
283
|
default: o(() => [
|
|
286
|
-
n(
|
|
284
|
+
n(m, { loading: u.value }, {
|
|
287
285
|
default: o(() => [
|
|
288
|
-
s("div",
|
|
286
|
+
s("div", Et, [
|
|
289
287
|
t[49] || (t[49] = s("span", null, "当前机器码", -1)),
|
|
290
|
-
s("span",
|
|
288
|
+
s("span", Ht, [
|
|
291
289
|
n(b, {
|
|
292
290
|
style: { width: "300px", color: "brown" },
|
|
293
291
|
class: "large-text",
|
|
294
|
-
ellipsis: { tooltip:
|
|
295
|
-
content:
|
|
292
|
+
ellipsis: { tooltip: O.value },
|
|
293
|
+
content: O.value
|
|
296
294
|
}, null, 8, ["ellipsis", "content"])
|
|
297
295
|
])
|
|
298
296
|
]),
|
|
299
297
|
t[58] || (t[58] = s("br", null, null, -1)),
|
|
300
|
-
s("div",
|
|
298
|
+
s("div", Xt, [
|
|
301
299
|
t[50] || (t[50] = s("span", null, "授权使用", -1)),
|
|
302
|
-
s("span",
|
|
300
|
+
s("span", Ft, l(e.company), 1)
|
|
303
301
|
]),
|
|
304
302
|
t[59] || (t[59] = s("br", null, null, -1)),
|
|
305
|
-
s("div",
|
|
303
|
+
s("div", Wt, [
|
|
306
304
|
t[51] || (t[51] = s("span", null, "授权IP", -1)),
|
|
307
|
-
s("span",
|
|
305
|
+
s("span", qt, l(e.ip ? e.ip : "无限制"), 1)
|
|
308
306
|
]),
|
|
309
307
|
t[60] || (t[60] = s("br", null, null, -1)),
|
|
310
|
-
s("div",
|
|
308
|
+
s("div", Gt, [
|
|
311
309
|
t[52] || (t[52] = s("span", null, "授权机器码", -1)),
|
|
312
|
-
s("span",
|
|
310
|
+
s("span", Kt, [
|
|
313
311
|
e.machineCode ? (y(), j(b, {
|
|
314
312
|
key: 0,
|
|
315
313
|
style: { width: "300px" },
|
|
316
314
|
class: "large-text float-right",
|
|
317
315
|
ellipsis: { tooltip: e.machineCode },
|
|
318
316
|
content: e.machineCode
|
|
319
|
-
}, null, 8, ["ellipsis", "content"])) : (y(),
|
|
320
|
-
|
|
317
|
+
}, null, 8, ["ellipsis", "content"])) : (y(), h(B, { key: 1 }, [
|
|
318
|
+
T("无限制")
|
|
321
319
|
], 64))
|
|
322
320
|
])
|
|
323
321
|
]),
|
|
324
322
|
t[61] || (t[61] = s("br", null, null, -1)),
|
|
325
|
-
s("div",
|
|
323
|
+
s("div", Qt, [
|
|
326
324
|
t[53] || (t[53] = s("span", null, "授权日期", -1)),
|
|
327
|
-
s("span",
|
|
325
|
+
s("span", Rt, l(e.createdAt), 1)
|
|
328
326
|
]),
|
|
329
327
|
t[62] || (t[62] = s("br", null, null, -1)),
|
|
330
|
-
s("div",
|
|
328
|
+
s("div", Yt, [
|
|
331
329
|
t[54] || (t[54] = s("span", null, "结束日期", -1)),
|
|
332
|
-
s("span",
|
|
330
|
+
s("span", Zt, l(e.expiresAt ? e.expiresAt : "无限制"), 1)
|
|
333
331
|
]),
|
|
334
332
|
t[63] || (t[63] = s("br", null, null, -1)),
|
|
335
|
-
s("div",
|
|
333
|
+
s("div", ct, [
|
|
336
334
|
t[55] || (t[55] = s("span", null, "最大用户数", -1)),
|
|
337
|
-
s("span",
|
|
335
|
+
s("span", ts, l(e.users ? `${e.users} 人` : "无限制"), 1)
|
|
338
336
|
]),
|
|
339
337
|
t[64] || (t[64] = s("br", null, null, -1)),
|
|
340
|
-
s("div",
|
|
338
|
+
s("div", ss, [
|
|
341
339
|
t[56] || (t[56] = s("span", null, "最大流程实例数", -1)),
|
|
342
|
-
s("span",
|
|
340
|
+
s("span", ls, l(e.workflowInstances ? `${e.workflowInstances} 条` : "无限制"), 1)
|
|
343
341
|
]),
|
|
344
342
|
t[65] || (t[65] = s("br", null, null, -1)),
|
|
345
|
-
s("div",
|
|
343
|
+
s("div", ns, [
|
|
346
344
|
t[57] || (t[57] = s("span", null, "扩展信息", -1)),
|
|
347
|
-
s("span",
|
|
345
|
+
s("span", os, [
|
|
348
346
|
e.extras ? (y(), j(P, {
|
|
349
347
|
key: 0,
|
|
350
348
|
title: JSON.stringify(e.extras)
|
|
351
349
|
}, {
|
|
352
350
|
default: o(() => [
|
|
353
|
-
s("span",
|
|
351
|
+
s("span", es, l(JSON.stringify(e.extras)), 1)
|
|
354
352
|
]),
|
|
355
353
|
_: 1
|
|
356
|
-
}, 8, ["title"])) : (y(),
|
|
354
|
+
}, 8, ["title"])) : (y(), h("span", as, "无"))
|
|
357
355
|
])
|
|
358
356
|
])
|
|
359
357
|
]),
|
|
@@ -378,5 +376,5 @@ const W = { class: "large-text" }, q = { class: "float-right" }, G = { style: {
|
|
|
378
376
|
}
|
|
379
377
|
});
|
|
380
378
|
export {
|
|
381
|
-
|
|
379
|
+
fs as default
|
|
382
380
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { http as t } from "@since2006/utils";
|
|
2
|
-
const
|
|
2
|
+
const e = () => t.get("/api/v1/status/get_status");
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
s as getStatus
|
|
4
|
+
e as getStatus
|
|
6
5
|
};
|
package/dist/es/src/index.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import { StatusIndex as
|
|
1
|
+
import { StatusIndex as e } from "./app/system/index.js";
|
|
2
2
|
import { ModuleIndex as x } from "./app/module/index.js";
|
|
3
|
-
import { ScheduleIndex as
|
|
4
|
-
import { AttachmentIndex as
|
|
5
|
-
import { MetadataIndex as
|
|
6
|
-
import {
|
|
7
|
-
import { DictIndex as
|
|
3
|
+
import { ScheduleIndex as d } from "./app/schedule/index.js";
|
|
4
|
+
import { AttachmentIndex as n } from "./app/attachment/index.js";
|
|
5
|
+
import { MetadataIndex as p } from "./app/metadata/index.js";
|
|
6
|
+
import { AccessLogList as a, AuditLogList as f, ErrorLogList as c, LoginLogList as g, OperationLogList as I } from "./app/log/index.js";
|
|
7
|
+
import { DictIndex as l, DictPanel as A } from "./app/dict/index.js";
|
|
8
8
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
a as AccessLogList,
|
|
10
|
+
n as AttachmentIndex,
|
|
11
|
+
f as AuditLogList,
|
|
12
|
+
l as DictIndex,
|
|
13
|
+
A as DictPanel,
|
|
14
|
+
c as ErrorLogList,
|
|
15
|
+
g as LoginLogList,
|
|
16
|
+
p as MetadataIndex,
|
|
14
17
|
x as ModuleIndex,
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
I as OperationLogList,
|
|
19
|
+
d as ScheduleIndex,
|
|
20
|
+
e as StatusIndex
|
|
17
21
|
};
|
package/dist/es/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.large-text[data-v-
|
|
1
|
+
.large-text[data-v-83e399db]{font-size:16px}.float-right[data-v-83e399db]{float:right}.margin-block[data-v-83e399db]{margin-top:14px}.icon-selector deep(ul) li.active[data-v-a47fcf40],.icon-selector deep(ul) li[data-v-a47fcf40]:hover{border-radius:2px;border-color:#4a4a48;background-color:#4a4a48;color:#fff;transition:all .3s;box-shadow:none}.icon-selector deep(ul) i[data-v-a47fcf40]{font-size:1.5rem;border:1px solid #f1f1f1;padding:.02rem;margin:.03rem;cursor:pointer}.ant-form[data-v-233e6305]{padding-top:20px}.permission-tree[data-v-233e6305],.permission-tree[data-v-89600073]{overflow-y:auto;overflow-x:hidden;margin-top:10px}[data-v-995a937c] .ant-pro-table-list-toolbar-container{padding-left:6px}.cron-detail[data-v-dd4b2211]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-dd4b2211]{width:70px}.cron-detail .ant-input[data-v-dd4b2211]{width:280px}.cron-detail[data-v-3b943880]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-3b943880]{width:70px}.cron-detail .ant-input[data-v-3b943880]{width:280px}[data-v-418f353d] .ant-descriptions-item-label{width:140px}.text-ellipsis[data-v-c407c636]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-c407c636] .ant-descriptions-item-label{width:120px}.ua-icon[data-v-f846ecbb]{width:1.2em;height:1.2em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.login-log-list .text-ellipsis[data-v-3744022f]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.method-text[data-v-8d1c9637]{background:#f5f5f5;padding:2px 6px;border-radius:3px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px}.json-container[data-v-8d1c9637]{max-height:300px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-8d1c9637]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}[data-v-8d1c9637] .ant-descriptions-item-label{width:120px}.operation-log-list .text-ellipsis[data-v-044829f6]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-bdeeb034] .ant-descriptions-item-label{width:120px}.audit-log-list .text-ellipsis[data-v-13310236]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.text-ellipsis[data-v-7436a600]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.performance-analysis[data-v-7436a600]{padding:16px;background:#fafafa;border-radius:6px}.performance-analysis[data-v-7436a600] .ant-statistic{text-align:center}[data-v-7436a600] .ant-descriptions-item-label{width:120px}.access-log-list .text-ellipsis[data-v-43cad169]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.json-container[data-v-793d348e]{max-height:200px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}.stack-container[data-v-793d348e]{max-height:400px;overflow:auto;background:#fff2f0;border:1px solid #ffccc7;padding:12px;border-radius:4px}.stack-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:11px;line-height:1.4;color:#a8071a}[data-v-793d348e] .ant-descriptions-item-label{width:120px}.error-log-list .text-ellipsis[data-v-57854e76]{display:inline-block;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.notice[data-v-864b567f]{color:#ff4d4f;font-size:18px}.table-operator[data-v-1cbc3d31]{margin:10px 14px 20px 0}[data-v-1cbc3d31] .ant-descriptions-item-label{width:140px}.tree-container[data-v-1cbc3d31] .ant-tree{max-height:520px;overflow:auto}
|
package/dist/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("./src/index.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("./src/index.js"),o=require("./src/app/system/index.js"),s=require("./src/app/module/index.js"),r=require("./src/app/schedule/index.js"),c=require("./src/app/attachment/index.js"),u=require("./src/app/metadata/index.js"),e=require("./src/app/log/index.js"),t=require("./src/app/dict/index.js"),L={install:i=>{Object.values(d).forEach(n=>i.use(n))}};exports.StatusIndex=o.StatusIndex;exports.ModuleIndex=s.ModuleIndex;exports.ScheduleIndex=r.ScheduleIndex;exports.AttachmentIndex=c.AttachmentIndex;exports.MetadataIndex=u.MetadataIndex;exports.AccessLogList=e.AccessLogList;exports.AuditLogList=e.AuditLogList;exports.ErrorLogList=e.ErrorLogList;exports.LoginLogList=e.LoginLogList;exports.OperationLogList=e.OperationLogList;exports.DictIndex=t.DictIndex;exports.DictPanel=t.DictPanel;exports.default=L;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("./api.js"),q=e.defineComponent({__name:"AttachmentEdit",emits:["success","cancel"],setup(
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("./api.js"),q=e.defineComponent({__name:"AttachmentEdit",emits:["success","cancel"],setup(E,{expose:g,emit:b}){let u;const s=e.ref(!1);g({preCreate:()=>{s.value=!0,u="add",c.value="新建上传配置",x(),i.getAvailableExtensions().then(n=>{const t=n.data;p.value=_(t)})},preUpdate:n=>{u="edit",s.value=!0,c.value="编辑上传配置",x(),i.getAvailableExtensions().then(t=>{const l=t.data;p.value=_(l)}),i.getConfig(n).then(t=>{const l=t.data;l.extensions=l.extensions.split(","),Object.assign(a,l)})}});const d=b,c=e.ref(""),v=e.ref(),f={id:null,name:null,keyword:null,storePath:null,extensions:null,maxSize:null,isExternal:0},a=e.reactive({...f}),w={name:[{required:!0,message:"请填写模块描述名称"}],keyword:[{required:!0,message:"请填写附件标识Key"}],storePath:[{required:!0,message:"请填写存放路径"}],extensions:[{required:!0,message:"请选择允许格式"}],maxSize:[{required:!0,message:"请填写最大值 (数字类型)"}],isExternal:[{required:!0,message:"请选择存储方式"}]},x=()=>{Object.assign(a,f)},m=e.ref(!1),p=e.ref([]),_=n=>n.map(t=>({value:t.ext,label:t.name})),N=()=>{v.value.validateFields().then(()=>{m.value=!0;const n={...e.toRaw(a)};u==="add"?i.createConfig(n).then(t=>{t.code===200&&(s.value=!1,d("success",u))}):i.updateConfig(n).then(t=>{t.code===200&&(s.value=!1,d("success",u))})}).finally(()=>{m.value=!1})},V=()=>{s.value=!1,d("cancel")};return(n,t)=>{const l=e.resolveComponent("a-input"),r=e.resolveComponent("a-form-item"),h=e.resolveComponent("a-checkbox-group"),C=e.resolveComponent("a-select-option"),k=e.resolveComponent("a-select"),y=e.resolveComponent("a-form"),S=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(S,{title:c.value,width:800,open:s.value,"mask-closable":!1,"destroy-on-close":"","confirm-loading":m.value,onOk:N,onCancel:V},{default:e.withCtx(()=>[e.createVNode(y,{ref_key:"formRef",ref:v,model:a,rules:w,"label-col":{span:5},"wrapper-col":{span:12}},{default:e.withCtx(()=>[e.createVNode(r,{label:"模块描述名称",name:"name"},{default:e.withCtx(()=>[e.createVNode(l,{value:a.name,"onUpdate:value":t[0]||(t[0]=o=>a.name=o),placeholder:"模块描述名称"},null,8,["value"])]),_:1}),e.createVNode(r,{label:"附件标识Key",name:"keyword"},{default:e.withCtx(()=>[e.createVNode(l,{value:a.keyword,"onUpdate:value":t[1]||(t[1]=o=>a.keyword=o),placeholder:"附件标识Key"},null,8,["value"])]),_:1}),e.createVNode(r,{label:"存储路径",name:"storePath"},{default:e.withCtx(()=>[e.createVNode(l,{value:a.storePath,"onUpdate:value":t[2]||(t[2]=o=>a.storePath=o),placeholder:"存储路径"},null,8,["value"])]),_:1}),e.createVNode(r,{label:"允许格式",name:"extension"},{default:e.withCtx(()=>[e.createVNode(h,{value:a.extensions,"onUpdate:value":t[3]||(t[3]=o=>a.extensions=o),options:p.value},null,8,["value","options"])]),_:1}),e.createVNode(r,{label:"最大值 (KB)",name:"maxSize"},{default:e.withCtx(()=>[e.createVNode(l,{value:a.maxSize,"onUpdate:value":t[4]||(t[4]=o=>a.maxSize=o),placeholder:"最大值 (KB)"},null,8,["value"])]),_:1}),e.createVNode(r,{label:"存储方式",name:"isExternal"},{default:e.withCtx(()=>[e.createVNode(k,{value:a.isExternal,"onUpdate:value":t[5]||(t[5]=o=>a.isExternal=o)},{default:e.withCtx(()=>[e.createVNode(C,{value:0},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode("本地存储")])),_:1}),e.createVNode(C,{value:1},{default:e.withCtx(()=>t[7]||(t[7]=[e.createTextVNode("云存储")])),_:1})]),_:1},8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["title","open","confirm-loading"])}}});exports.default=q;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("@ant-design/icons-vue"),_=require("./api.js"),f=require("ant-design-vue"),I=require("./AttachmentEdit.vue.js"),T=require("@since2006/components"),B={class:"ant-pro-table"},S={class:"ant-pro-table-search"},D=["onClick"],R=["onClick"],P=e.defineComponent({__name:"AttachmentIndex",setup(U){const n=e.ref(),C=[{title:"模块名称",dataIndex:"name"},{title:"附件标识Key",dataIndex:"keyword"},{title:"允许类型",dataIndex:"extensions"},{title:"大小",dataIndex:"maxSizeDesc",sorter:!0,sortDirections:["descend","ascend"],sortField:"max_size"},{title:"操作",dataIndex:"action",width:"150px"}],r=e.reactive({query:void 0}),c=()=>{n.value.refresh()},x=()=>{r.query=void 0,n.value.refresh()},v=o=>{_.deleteConfig(o.id).then(()=>{f.message.success("删除附件配置成功"),n.value.refresh()})},s=e.ref(),y=()=>{s.value.preCreate()},i=o=>{s.value.preUpdate(o.id)},V=o=>{let t;o==="add"?t="添加附件配置成功":t="编辑附件配置成功",f.message.success(t),n.value.refresh()};return(o,t)=>{const N=e.resolveComponent("a-input"),h=e.resolveComponent("a-form-item"),u=e.resolveComponent("a-col"),d=e.resolveComponent("a-button"),k=e.resolveComponent("a-row"),g=e.resolveComponent("a-form"),w=e.resolveComponent("a-typography-paragraph"),b=e.resolveComponent("a-divider"),q=e.resolveComponent("a-popconfirm");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",B,[e.createElementVNode("div",S,[e.createVNode(g,{layout:"horizontal"},{default:e.withCtx(()=>[e.createVNode(k,{gutter:16,type:"flex",justify:"start"},{default:e.withCtx(()=>[e.createVNode(u,{xs:24,sm:24,md:12,lg:7},{default:e.withCtx(()=>[e.createVNode(h,{label:"搜索"},{default:e.withCtx(()=>[e.createVNode(N,{value:r.query,"onUpdate:value":t[0]||(t[0]=a=>r.query=a),placeholder:"模块名称、附件标识",onPressEnter:c},null,8,["value"])]),_:1})]),_:1}),e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(d,{onClick:c,type:"primary"},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("搜索")])),_:1}),e.createVNode(d,{onClick:x,style:{"margin-left":"16px"}},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),e.createVNode(e.unref(T.FxCardTable),{columns:C,"load-data":e.unref(_.queryConfigs),params:r,ref_key:"tableRef",ref:n},{title:e.withCtx(()=>[e.createVNode(e.unref(m.CloudTwoTone)),t[3]||(t[3]=e.createTextVNode(" 附件上传 "))]),toolbar:e.withCtx(()=>[e.createVNode(d,{type:"primary",onClick:y},{default:e.withCtx(()=>[e.createVNode(e.unref(m.PlusOutlined)),t[4]||(t[4]=e.createTextVNode(" 新建 "))]),_:1})]),bodyCell:e.withCtx(({column:a,record:l,text:E})=>[a.dataIndex==="name"?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:p=>i(l)},e.toDisplayString(l.name),9,D)):e.createCommentVNode("",!0),a.dataIndex==="keyword"?(e.openBlock(),e.createBlock(w,{key:1,copyable:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E),1)]),_:2},1024)):a.dataIndex==="action"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("a",{onClick:p=>i(l)},"编辑",8,R),e.createVNode(b,{type:"vertical"}),e.createVNode(q,{title:"确定要删除吗?",onConfirm:p=>v(l)},{default:e.withCtx(()=>t[5]||(t[5]=[e.createElementVNode("a",null,"删除",-1)])),_:2},1032,["onConfirm"])],64)):e.createCommentVNode("",!0)]),_:1},8,["load-data","params"])]),e.createVNode(I.default,{ref_key:"modalRef",ref:s,onSuccess:V},null,512)])}}});exports.default=P;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./AttachmentIndex.vue.js");exports.default=e.default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@since2006/utils");function i(t){return e.http.get("/api/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@since2006/utils");function i(t){return e.http.get("/api/v1/attachment/query_configs",{params:t})}function a(t){const n={id:t};return e.http.post("/api/v1/attachment/delete_config",n)}function o(){return e.http.get("/api/v1/attachment/get_available_extensions")}function g(t){return e.http.post("/api/v1/attachment/create_config",t)}function c(t){return e.http.get("/api/v1/attachment/get_config?id="+t)}function r(t){return e.http.post("/api/v1/attachment/update_config",t)}exports.createConfig=g;exports.deleteConfig=a;exports.getAvailableExtensions=o;exports.getConfig=c;exports.queryConfigs=i;exports.updateConfig=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./AttachmentIndex.vue.js"),u=require("@since2006/utils"),e=u.withInstall(t.default);exports.AttachmentIndex=e;exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("./api.js"),g=e.defineComponent({__name:"DictEdit",props:{open:{type:Boolean,default:!1},mode:{type:String,default:"add"},dictId:{type:String,default:null}},emits:["success","cancel"],setup(m,{emit:_}){const l=m,u=_,s=e.ref(),n=e.ref(!1),v=e.ref(),p={name:"",keyword:"",cacheEnabled:1,remark:""},a=e.ref({...p}),w={name:[{required:!0,message:"请输入字典名称"}],keyword:[{required:!0,message:"请填写字典标识"}],cacheEnabled:[{required:!0,message:"请选择是否缓存"}]},C=()=>{a.value={...p}};e.watch(()=>l.open,r=>{r&&(C(),l.mode==="add"?y():b(l.dictId))});const y=()=>{s.value="添加字典"},b=r=>{s.value="编辑字典",n.value=!0,i.getDictionary(r).then(t=>{a.value=t.data}).finally(()=>n.value=!1)},h=()=>{v.value.validateFields().then(()=>{if(n.value=!0,l.mode==="add")i.createDictionary({...a.value}).then(()=>{u("success",l.mode)}).finally(()=>n.value=!1);else{const r={...a.value,id:l.dictId};i.updateDictionary(r).then(()=>{u("success",l.mode)}).finally(()=>n.value=!1)}})},k=()=>{u("cancel")};return(r,t)=>{const c=e.resolveComponent("a-input"),d=e.resolveComponent("a-form-item"),f=e.resolveComponent("a-select-option"),x=e.resolveComponent("a-select"),N=e.resolveComponent("a-form"),V=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(V,{open:m.open,title:s.value,width:800,confirmLoading:n.value,"mask-closable":!1,onOk:h,onCancel:k},{default:e.withCtx(()=>[e.createVNode(N,{ref_key:"formRef",ref:v,model:a.value,rules:w,"label-col":{span:5},"wrapper-col":{span:12}},{default:e.withCtx(()=>[e.createVNode(d,{label:"字典名称",name:"name"},{default:e.withCtx(()=>[e.createVNode(c,{value:a.value.name,"onUpdate:value":t[0]||(t[0]=o=>a.value.name=o),placeholder:"字典名称"},null,8,["value"])]),_:1}),e.createVNode(d,{label:"字典标识",name:"keyword"},{default:e.withCtx(()=>[e.createVNode(c,{value:a.value.keyword,"onUpdate:value":t[1]||(t[1]=o=>a.value.keyword=o),placeholder:"字典标识"},null,8,["value"])]),_:1}),e.createVNode(d,{label:"是否缓存",name:"cacheEnabled"},{default:e.withCtx(()=>[e.createVNode(x,{value:a.value.cacheEnabled,"onUpdate:value":t[2]||(t[2]=o=>a.value.cacheEnabled=o),style:{width:"170px"},allowClear:""},{default:e.withCtx(()=>[e.createVNode(f,{value:1},{default:e.withCtx(()=>t[4]||(t[4]=[e.createTextVNode("是")])),_:1}),e.createVNode(f,{value:0},{default:e.withCtx(()=>t[5]||(t[5]=[e.createTextVNode("否")])),_:1})]),_:1},8,["value"])]),_:1}),e.createVNode(d,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(c,{value:a.value.remark,"onUpdate:value":t[3]||(t[3]=o=>a.value.remark=o),placeholder:"字典描述"},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["open","title","confirmLoading"])}}});exports.default=g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./DictIndex.vue2.js");require("./DictIndex.vue3.js");const t=require("../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./DictIndex.vue2.js");require("./DictIndex.vue3.js");const t=require("../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-c36e3212"]]);exports.default=u;
|