@since2006/pages 2026.1.0 → 2026.1.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/src/app/module/ModuleAdd.vue.js +2 -2
- package/dist/es/src/app/module/ModuleAdd.vue2.js +50 -46
- package/dist/es/src/app/module/ModuleDetail.vue.js +30 -29
- package/dist/es/src/app/module/ModuleEdit.vue.js +2 -2
- package/dist/es/src/app/module/ModuleEdit.vue2.js +49 -45
- package/dist/es/src/app/module/ModuleIndex.vue.js +2 -2
- package/dist/es/src/app/module/ModuleIndex.vue2.js +76 -73
- package/dist/es/src/app/module/icon/AppIcon.vue.js +35 -0
- package/dist/es/src/app/system/StatusIndex.vue.js +1 -1
- package/dist/es/src/app/system/StatusIndex.vue2.js +33 -33
- package/dist/es/style.css +1 -1
- package/dist/lib/src/app/attachment/AttachmentIndex.vue.js +1 -1
- package/dist/lib/src/app/dict/DictIndex.vue2.js +1 -1
- package/dist/lib/src/app/dict/DictPanel.vue2.js +1 -1
- package/dist/lib/src/app/log/components/AuditLogList.vue2.js +1 -1
- package/dist/lib/src/app/log/components/ErrorLogList.vue2.js +1 -1
- package/dist/lib/src/app/log/components/LoginLogDetail.vue2.js +1 -1
- package/dist/lib/src/app/log/components/LoginLogList.vue2.js +1 -1
- package/dist/lib/src/app/log/components/OperationLogList.vue2.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/icon/AppIcon.vue.js +1 -0
- 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/system/StatusIndex.vue.js +1 -1
- package/dist/lib/src/app/system/StatusIndex.vue2.js +1 -1
- package/dist/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { message as
|
|
3
|
-
import { getModulesNoCache as
|
|
4
|
-
import { mapTreeData as
|
|
5
|
-
import { LayoutTwoTone as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
1
|
+
import { defineComponent as I, ref as f, reactive as w, resolveComponent as d, openBlock as J, createElementBlock as Q, createVNode as n, withCtx as l, createElementVNode as v, unref as y, createTextVNode as g, withDirectives as x, vShow as A } from "vue";
|
|
2
|
+
import { message as W } from "ant-design-vue";
|
|
3
|
+
import { getModulesNoCache as T, getModule as X, deleteModule as Y } from "./api.js";
|
|
4
|
+
import { mapTreeData as h } from "./utils.js";
|
|
5
|
+
import { LayoutTwoTone as Z, PlusOutlined as R, EditOutlined as ee, DeleteOutlined as oe } from "@ant-design/icons-vue";
|
|
6
|
+
import te from "./ModuleDetail.vue.js";
|
|
7
|
+
import ne from "./ModuleAdd.vue.js";
|
|
8
|
+
import ae from "./ModuleEdit.vue.js";
|
|
9
|
+
import le from "./icon/AppIcon.vue.js";
|
|
10
|
+
const de = { class: "ant-pro-table-list-toolbar" }, se = { class: "ant-pro-table-list-toolbar-container" }, ue = { class: "ant-pro-table-list-toolbar-left" }, ie = { class: "ant-pro-table-list-toolbar-title" }, re = { class: "ant-pro-table-list-toolbar-right" }, be = /* @__PURE__ */ I({
|
|
10
11
|
__name: "ModuleIndex",
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
12
|
+
setup(ce) {
|
|
13
|
+
const K = f(), s = f([]), k = f([]), i = f([]), u = w({
|
|
13
14
|
id: "",
|
|
14
15
|
cateId: "",
|
|
15
16
|
parentId: "",
|
|
@@ -19,22 +20,22 @@ const se = { class: "ant-pro-table-list-toolbar" }, ue = { class: "ant-pro-table
|
|
|
19
20
|
seqNo: "",
|
|
20
21
|
remark: "",
|
|
21
22
|
permsSummary: ""
|
|
22
|
-
}), b = f(!0),
|
|
23
|
+
}), b = f(!0), r = w({
|
|
23
24
|
openAdd: !1,
|
|
24
25
|
openEdit: !1
|
|
25
|
-
}), E = f(!1),
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
}), E = f(!1), L = () => {
|
|
27
|
+
T().then((o) => {
|
|
28
|
+
i.value = h(o.data), M(i.value[0].key);
|
|
28
29
|
});
|
|
29
|
-
},
|
|
30
|
+
}, O = (o) => {
|
|
30
31
|
s.value = o;
|
|
31
|
-
},
|
|
32
|
+
}, N = (o) => new Promise((e) => {
|
|
32
33
|
if (o.dataRef.children) {
|
|
33
34
|
e("当前节点没有子模块");
|
|
34
35
|
return;
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
-
o.dataRef.children =
|
|
37
|
+
T(o.dataRef.key).then((t) => {
|
|
38
|
+
o.dataRef.children = h(t.data), i.value = [...i.value], e("获取模块数据成功");
|
|
38
39
|
});
|
|
39
40
|
}), V = (o, e) => {
|
|
40
41
|
const t = e.node.dataRef, a = s.value.includes(t.key);
|
|
@@ -43,85 +44,85 @@ const se = { class: "ant-pro-table-list-toolbar" }, ue = { class: "ant-pro-table
|
|
|
43
44
|
const p = o[0];
|
|
44
45
|
M(p);
|
|
45
46
|
}, M = (o) => {
|
|
46
|
-
b.value = !0,
|
|
47
|
+
b.value = !0, X(o).then((e) => {
|
|
47
48
|
Object.assign(u, e.data), b.value = !1;
|
|
48
49
|
}).catch((e) => {
|
|
49
50
|
console.log(e);
|
|
50
51
|
});
|
|
52
|
+
}, B = () => {
|
|
53
|
+
E.value = !0, r.openAdd = !0;
|
|
51
54
|
}, U = () => {
|
|
52
|
-
E.value = !
|
|
53
|
-
},
|
|
54
|
-
E.value = !1, i.openAdd = !0;
|
|
55
|
-
}, q = (o) => {
|
|
55
|
+
E.value = !1, r.openAdd = !0;
|
|
56
|
+
}, $ = (o) => {
|
|
56
57
|
m(o);
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
},
|
|
58
|
+
}, j = () => {
|
|
59
|
+
r.openEdit = !0;
|
|
60
|
+
}, q = (o, e, t) => {
|
|
60
61
|
M(o), e === t || m(t), m(e);
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
}, P = () => {
|
|
63
|
+
Y(u.id).then((o) => {
|
|
64
|
+
W.success("删除成功"), m(o.data.parentId);
|
|
64
65
|
});
|
|
65
66
|
}, m = (o) => {
|
|
66
|
-
|
|
67
|
-
o ?
|
|
67
|
+
T(o).then((e) => {
|
|
68
|
+
o ? C(i.value, o, h(e.data)) : i.value = h(e.data);
|
|
68
69
|
});
|
|
69
|
-
},
|
|
70
|
+
}, C = (o, e, t) => {
|
|
70
71
|
o.forEach((a) => {
|
|
71
72
|
if (a.key === e) {
|
|
72
73
|
a.isLeaf = t.length === 0;
|
|
73
|
-
const p =
|
|
74
|
-
|
|
74
|
+
const p = D([a], 0);
|
|
75
|
+
k.value = k.value.filter((c) => !p.includes(c)), s.value = s.value.filter((c) => !p.includes(c)), a.children = t;
|
|
75
76
|
} else
|
|
76
|
-
a.children &&
|
|
77
|
+
a.children && C(a.children, e, t);
|
|
77
78
|
});
|
|
78
|
-
},
|
|
79
|
+
}, D = (o, e) => {
|
|
79
80
|
let t = [];
|
|
80
81
|
return o.forEach((a) => {
|
|
81
|
-
e > 0 && t.push(a.key), a.children && (t = t.concat(
|
|
82
|
+
e > 0 && t.push(a.key), a.children && (t = t.concat(D(a.children, ++e)));
|
|
82
83
|
}), t;
|
|
83
84
|
};
|
|
84
|
-
return
|
|
85
|
-
const t = d("a-button"), a = d("a-popconfirm"), p = d("a-button-group"), c = d("a-space"),
|
|
86
|
-
return
|
|
87
|
-
n(
|
|
85
|
+
return L(), (o, e) => {
|
|
86
|
+
const t = d("a-button"), a = d("a-popconfirm"), p = d("a-button-group"), c = d("a-space"), z = d("a-tree"), S = d("a-col"), F = d("a-skeleton"), G = d("a-row"), H = d("a-card");
|
|
87
|
+
return J(), Q("div", null, [
|
|
88
|
+
n(H, {
|
|
88
89
|
"body-style": { padding: "0 20px 20px 10px" },
|
|
89
90
|
ref_key: "fusRef",
|
|
90
|
-
ref:
|
|
91
|
+
ref: K
|
|
91
92
|
}, {
|
|
92
93
|
default: l(() => [
|
|
93
|
-
v("div",
|
|
94
|
-
v("div",
|
|
95
|
-
v("div",
|
|
94
|
+
v("div", de, [
|
|
95
|
+
v("div", se, [
|
|
96
|
+
v("div", ue, [
|
|
96
97
|
v("div", ie, [
|
|
97
|
-
n(y(
|
|
98
|
+
n(y(Z)),
|
|
98
99
|
e[2] || (e[2] = g(" 模块配置 "))
|
|
99
100
|
])
|
|
100
101
|
]),
|
|
101
|
-
v("div",
|
|
102
|
+
v("div", re, [
|
|
102
103
|
n(c, { align: "center" }, {
|
|
103
104
|
default: l(() => [
|
|
104
105
|
n(p, null, {
|
|
105
106
|
default: l(() => [
|
|
106
|
-
n(t, { onClick:
|
|
107
|
+
n(t, { onClick: B }, {
|
|
107
108
|
default: l(() => [
|
|
108
|
-
n(y(
|
|
109
|
+
n(y(R)),
|
|
109
110
|
e[3] || (e[3] = g(" 添加根模块 "))
|
|
110
111
|
]),
|
|
111
112
|
_: 1
|
|
112
113
|
}),
|
|
113
|
-
x(n(t, { onClick:
|
|
114
|
+
x(n(t, { onClick: U }, {
|
|
114
115
|
default: l(() => [
|
|
115
|
-
n(y(
|
|
116
|
+
n(y(R)),
|
|
116
117
|
e[4] || (e[4] = g(" 添加子模块 "))
|
|
117
118
|
]),
|
|
118
119
|
_: 1
|
|
119
120
|
}, 512), [
|
|
120
121
|
[A, u.id]
|
|
121
122
|
]),
|
|
122
|
-
x(n(t, { onClick:
|
|
123
|
+
x(n(t, { onClick: j }, {
|
|
123
124
|
default: l(() => [
|
|
124
|
-
n(y(
|
|
125
|
+
n(y(ee)),
|
|
125
126
|
e[5] || (e[5] = g(" 修改模块 "))
|
|
126
127
|
]),
|
|
127
128
|
_: 1
|
|
@@ -130,12 +131,12 @@ const se = { class: "ant-pro-table-list-toolbar" }, ue = { class: "ant-pro-table
|
|
|
130
131
|
]),
|
|
131
132
|
n(a, {
|
|
132
133
|
title: "是否确认删除模块?",
|
|
133
|
-
onConfirm:
|
|
134
|
+
onConfirm: P
|
|
134
135
|
}, {
|
|
135
136
|
default: l(() => [
|
|
136
137
|
x(n(t, { danger: "" }, {
|
|
137
138
|
default: l(() => [
|
|
138
|
-
n(y(
|
|
139
|
+
n(y(oe)),
|
|
139
140
|
e[6] || (e[6] = g(" 删除模块 "))
|
|
140
141
|
]),
|
|
141
142
|
_: 1
|
|
@@ -154,24 +155,26 @@ const se = { class: "ant-pro-table-list-toolbar" }, ue = { class: "ant-pro-table
|
|
|
154
155
|
])
|
|
155
156
|
])
|
|
156
157
|
]),
|
|
157
|
-
n(
|
|
158
|
+
n(G, null, {
|
|
158
159
|
default: l(() => [
|
|
159
160
|
n(S, {
|
|
160
161
|
sm: 5,
|
|
161
162
|
md: 4
|
|
162
163
|
}, {
|
|
163
164
|
default: l(() => [
|
|
164
|
-
n(
|
|
165
|
+
n(z, {
|
|
165
166
|
showIcon: !0,
|
|
166
167
|
expandedKeys: s.value,
|
|
167
|
-
loadedKeys:
|
|
168
|
-
treeData:
|
|
169
|
-
onExpand:
|
|
170
|
-
loadData:
|
|
168
|
+
loadedKeys: k.value,
|
|
169
|
+
treeData: i.value,
|
|
170
|
+
onExpand: O,
|
|
171
|
+
loadData: N,
|
|
171
172
|
onSelect: V
|
|
172
173
|
}, {
|
|
173
174
|
icon: l((_) => [
|
|
174
|
-
(
|
|
175
|
+
n(le, {
|
|
176
|
+
icon: _.iconName
|
|
177
|
+
}, null, 8, ["icon"])
|
|
175
178
|
]),
|
|
176
179
|
_: 1
|
|
177
180
|
}, 8, ["expandedKeys", "loadedKeys", "treeData"])
|
|
@@ -183,9 +186,9 @@ const se = { class: "ant-pro-table-list-toolbar" }, ue = { class: "ant-pro-table
|
|
|
183
186
|
md: 20
|
|
184
187
|
}, {
|
|
185
188
|
default: l(() => [
|
|
186
|
-
n(
|
|
189
|
+
n(F, { loading: b.value }, {
|
|
187
190
|
default: l(() => [
|
|
188
|
-
n(
|
|
191
|
+
n(te, { module: u }, null, 8, ["module"])
|
|
189
192
|
]),
|
|
190
193
|
_: 1
|
|
191
194
|
}, 8, ["loading"])
|
|
@@ -198,19 +201,19 @@ const se = { class: "ant-pro-table-list-toolbar" }, ue = { class: "ant-pro-table
|
|
|
198
201
|
]),
|
|
199
202
|
_: 1
|
|
200
203
|
}, 512),
|
|
201
|
-
n(
|
|
204
|
+
n(ne, {
|
|
202
205
|
ref: "moduleAdd",
|
|
203
|
-
open:
|
|
204
|
-
"onUpdate:open": e[0] || (e[0] = (_) =>
|
|
206
|
+
open: r.openAdd,
|
|
207
|
+
"onUpdate:open": e[0] || (e[0] = (_) => r.openAdd = _),
|
|
205
208
|
"parent-id": E.value ? null : u.id,
|
|
206
|
-
onSuccess:
|
|
209
|
+
onSuccess: $
|
|
207
210
|
}, null, 8, ["open", "parent-id"]),
|
|
208
|
-
n(
|
|
211
|
+
n(ae, {
|
|
209
212
|
ref: "moduleEdit",
|
|
210
|
-
open:
|
|
211
|
-
"onUpdate:open": e[1] || (e[1] = (_) =>
|
|
213
|
+
open: r.openEdit,
|
|
214
|
+
"onUpdate:open": e[1] || (e[1] = (_) => r.openEdit = _),
|
|
212
215
|
"module-id": u.id,
|
|
213
|
-
onSuccess:
|
|
216
|
+
onSuccess: q
|
|
214
217
|
}, null, 8, ["open", "module-id"])
|
|
215
218
|
]);
|
|
216
219
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { computed as r, isVNode as c, openBlock as l, createBlock as i, resolveDynamicComponent as u, normalizeStyle as s, createCommentVNode as f } from "vue";
|
|
2
|
+
import * as a from "@ant-design/icons-vue";
|
|
3
|
+
const y = {
|
|
4
|
+
__name: "AppIcon",
|
|
5
|
+
props: {
|
|
6
|
+
icon: {
|
|
7
|
+
type: [String, Object, Function],
|
|
8
|
+
default: null
|
|
9
|
+
},
|
|
10
|
+
size: {
|
|
11
|
+
type: [Number, String],
|
|
12
|
+
default: 16
|
|
13
|
+
},
|
|
14
|
+
color: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ""
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup(t) {
|
|
20
|
+
const o = t, n = r(() => {
|
|
21
|
+
const e = o.icon;
|
|
22
|
+
return c(e) ? () => e : typeof e == "function" || typeof e == "object" ? e : typeof e == "string" && a[e] || null;
|
|
23
|
+
});
|
|
24
|
+
return (e, m) => n.value ? (l(), i(u(n.value), {
|
|
25
|
+
key: 0,
|
|
26
|
+
style: s({
|
|
27
|
+
fontSize: typeof t.size == "number" ? t.size + "px" : t.size,
|
|
28
|
+
color: t.color
|
|
29
|
+
})
|
|
30
|
+
}, null, 8, ["style"])) : f("", !0);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
y as default
|
|
35
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./StatusIndex.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-74bb63d3"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as U, ref as V, reactive as f, resolveComponent as i, openBlock as b, createBlock as
|
|
1
|
+
import { defineComponent as U, ref as V, reactive as f, resolveComponent as i, openBlock as b, createBlock as j, withCtx as o, createVNode as n, createElementVNode as t, toDisplayString as l, unref as S, h as B, createTextVNode as M, createElementBlock as T, Fragment as $ } from "vue";
|
|
2
2
|
import { getStatus as E, getMachineCode as H } from "./api.js";
|
|
3
3
|
import { notification as O } from "ant-design-vue";
|
|
4
4
|
import { CloudUploadOutlined as X } from "@ant-design/icons-vue";
|
|
5
5
|
import { getContextPath as F, getToken as W } from "@since2006/utils";
|
|
6
|
-
const q = { class: "large-text" }, G = { class: "float-right" }, K = { style: { "margin-right": "18px", "margin-bottom": "14px" } }, 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" }, pt = { class: "float-right" }, ut = { class: "large-text" }, gt = { class: "float-right" }, ft = { class: "large-text" }, _t = { class: "float-right" },
|
|
6
|
+
const q = { class: "large-text" }, G = { class: "float-right" }, K = { style: { "margin-right": "18px", "margin-bottom": "14px" } }, 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" }, pt = { class: "float-right" }, ut = { 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" }, Ct = { class: "large-text" }, kt = { class: "float-right" }, ht = { class: "large-text" }, jt = { class: "float-right" }, St = { class: "large-text" }, Ot = { class: "float-right" }, It = { class: "large-text" }, Vt = { class: "float-right" }, Mt = { class: "large-text" }, Tt = { class: "float-right" }, Nt = { class: "large-text" }, Jt = { 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 = { class: "large-text" }, Zt = { class: "float-right" }, ct = {
|
|
7
7
|
class: "large-text",
|
|
8
8
|
style: { color: "orangered", "font-weight": "bold" }
|
|
9
9
|
}, ts = { class: "float-right" }, ss = { class: "large-text" }, ls = { class: "float-right" }, ns = { class: "large-text" }, os = { class: "float-right" }, es = { class: "large-text" }, as = { class: "float-right" }, is = { class: "float-right" }, rs = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "float-right"
|
|
12
|
-
},
|
|
12
|
+
}, xs = /* @__PURE__ */ U({
|
|
13
13
|
__name: "StatusIndex",
|
|
14
14
|
setup(ds) {
|
|
15
|
-
const N = F(), J = W(), p = V(!1), k = V(), u = f({}), e = f({}), r = f({}), a = f({}), y = f({}), _ = f({}),
|
|
15
|
+
const N = F(), J = W(), p = V(!1), k = V(), u = f({}), e = f({}), r = f({}), a = f({}), y = f({}), _ = f({}), x = f({}), I = async () => {
|
|
16
16
|
var w;
|
|
17
17
|
p.value = !0;
|
|
18
18
|
const d = await E();
|
|
19
|
-
d.code === 200 && (Object.assign(u, d.data), Object.assign(e, u.license), Object.assign(r, u.database), Object.assign(a, u.jvm), Object.assign(y, u.os), Object.assign(_, u.app), Object.assign(
|
|
19
|
+
d.code === 200 && (Object.assign(u, d.data), Object.assign(e, u.license), Object.assign(r, u.database), Object.assign(a, u.jvm), Object.assign(y, u.os), Object.assign(_, u.app), Object.assign(x, (w = u.jvm) == null ? void 0 : w.thread));
|
|
20
20
|
const s = await H();
|
|
21
21
|
k.value = s.data, p.value = !1;
|
|
22
22
|
};
|
|
@@ -31,18 +31,18 @@ const q = { class: "large-text" }, G = { class: "float-right" }, K = { style: {
|
|
|
31
31
|
}) : d.file.status === "error" && O.error({ message: "上传失败" });
|
|
32
32
|
};
|
|
33
33
|
return (d, s) => {
|
|
34
|
-
const w = i("a-progress"),
|
|
35
|
-
return b(), h
|
|
34
|
+
const w = i("a-progress"), m = i("a-skeleton"), v = i("a-card"), g = i("a-col"), C = i("a-typography-text"), h = i("a-row"), A = i("a-button"), L = i("a-upload"), P = i("a-typography-paragraph"), D = i("a-tooltip");
|
|
35
|
+
return b(), j(h, { gutter: 16 }, {
|
|
36
36
|
default: o(() => [
|
|
37
37
|
n(g, { span: 12 }, {
|
|
38
38
|
default: o(() => [
|
|
39
|
-
n(
|
|
39
|
+
n(h, { gutter: [16, 16] }, {
|
|
40
40
|
default: o(() => [
|
|
41
41
|
n(g, { span: 24 }, {
|
|
42
42
|
default: o(() => [
|
|
43
|
-
n(
|
|
43
|
+
n(v, { title: "内存线程信息" }, {
|
|
44
44
|
default: o(() => [
|
|
45
|
-
n(
|
|
45
|
+
n(m, { loading: p.value }, {
|
|
46
46
|
default: o(() => [
|
|
47
47
|
t("div", q, [
|
|
48
48
|
s[0] || (s[0] = t("span", null, "当前用量", -1)),
|
|
@@ -66,22 +66,22 @@ const q = { class: "large-text" }, G = { class: "float-right" }, K = { style: {
|
|
|
66
66
|
s[8] || (s[8] = t("br", null, null, -1)),
|
|
67
67
|
t("div", c, [
|
|
68
68
|
s[3] || (s[3] = t("span", null, "当前线程数", -1)),
|
|
69
|
-
t("span", tt, l(
|
|
69
|
+
t("span", tt, l(x.threadCount), 1)
|
|
70
70
|
]),
|
|
71
71
|
s[9] || (s[9] = t("br", null, null, -1)),
|
|
72
72
|
t("div", st, [
|
|
73
73
|
s[4] || (s[4] = t("span", null, "守护线程数", -1)),
|
|
74
|
-
t("span", lt, l(
|
|
74
|
+
t("span", lt, l(x.daemonThreadCount), 1)
|
|
75
75
|
]),
|
|
76
76
|
s[10] || (s[10] = t("br", null, null, -1)),
|
|
77
77
|
t("div", nt, [
|
|
78
78
|
s[5] || (s[5] = t("span", null, "最大线程峰值", -1)),
|
|
79
|
-
t("span", ot, l(
|
|
79
|
+
t("span", ot, l(x.peakThreadCount), 1)
|
|
80
80
|
]),
|
|
81
81
|
s[11] || (s[11] = t("br", null, null, -1)),
|
|
82
82
|
t("div", et, [
|
|
83
83
|
s[6] || (s[6] = t("span", null, "创建线程总数", -1)),
|
|
84
|
-
t("span", at, l(
|
|
84
|
+
t("span", at, l(x.totalStartedThreadCount), 1)
|
|
85
85
|
])
|
|
86
86
|
]),
|
|
87
87
|
_: 1
|
|
@@ -94,9 +94,9 @@ const q = { class: "large-text" }, G = { class: "float-right" }, K = { style: {
|
|
|
94
94
|
}),
|
|
95
95
|
n(g, { span: 24 }, {
|
|
96
96
|
default: o(() => [
|
|
97
|
-
n(
|
|
97
|
+
n(v, { title: "主数据库信息" }, {
|
|
98
98
|
default: o(() => [
|
|
99
|
-
n(
|
|
99
|
+
n(m, { loading: p.value }, {
|
|
100
100
|
default: o(() => [
|
|
101
101
|
t("div", it, [
|
|
102
102
|
s[12] || (s[12] = t("span", null, "数据库名称", -1)),
|
|
@@ -125,12 +125,12 @@ const q = { class: "large-text" }, G = { class: "float-right" }, K = { style: {
|
|
|
125
125
|
t("span", _t, l(r.poolName), 1)
|
|
126
126
|
]),
|
|
127
127
|
s[22] || (s[22] = t("br", null, null, -1)),
|
|
128
|
-
t("div",
|
|
128
|
+
t("div", xt, [
|
|
129
129
|
s[16] || (s[16] = t("span", null, "最大活跃连接数", -1)),
|
|
130
|
-
t("span",
|
|
130
|
+
t("span", mt, l(r.maxActive), 1)
|
|
131
131
|
]),
|
|
132
132
|
s[23] || (s[23] = t("br", null, null, -1)),
|
|
133
|
-
t("div",
|
|
133
|
+
t("div", vt, [
|
|
134
134
|
s[17] || (s[17] = t("span", null, "最小空闲连接数", -1)),
|
|
135
135
|
t("span", bt, l(r.minIdle), 1)
|
|
136
136
|
]),
|
|
@@ -151,18 +151,18 @@ const q = { class: "large-text" }, G = { class: "float-right" }, K = { style: {
|
|
|
151
151
|
}),
|
|
152
152
|
n(g, { span: 24 }, {
|
|
153
153
|
default: o(() => [
|
|
154
|
-
n(
|
|
154
|
+
n(v, { title: "系统信息" }, {
|
|
155
155
|
default: o(() => [
|
|
156
|
-
n(
|
|
156
|
+
n(m, { loading: p.value }, {
|
|
157
157
|
default: o(() => [
|
|
158
158
|
t("div", Ct, [
|
|
159
159
|
s[26] || (s[26] = t("span", null, "应用服务器", -1)),
|
|
160
160
|
t("span", kt, l(_.serverInfo), 1)
|
|
161
161
|
]),
|
|
162
162
|
s[30] || (s[30] = t("br", null, null, -1)),
|
|
163
|
-
t("div",
|
|
163
|
+
t("div", ht, [
|
|
164
164
|
s[27] || (s[27] = t("span", null, "工作目录", -1)),
|
|
165
|
-
t("span",
|
|
165
|
+
t("span", jt, [
|
|
166
166
|
n(C, {
|
|
167
167
|
style: { width: "300px" },
|
|
168
168
|
class: "large-text",
|
|
@@ -199,13 +199,13 @@ const q = { class: "large-text" }, G = { class: "float-right" }, K = { style: {
|
|
|
199
199
|
}),
|
|
200
200
|
n(g, { span: 12 }, {
|
|
201
201
|
default: o(() => [
|
|
202
|
-
n(
|
|
202
|
+
n(h, { gutter: [16, 16] }, {
|
|
203
203
|
default: o(() => [
|
|
204
204
|
n(g, { span: 24 }, {
|
|
205
205
|
default: o(() => [
|
|
206
|
-
n(
|
|
206
|
+
n(v, { title: "JVM信息" }, {
|
|
207
207
|
default: o(() => [
|
|
208
|
-
n(
|
|
208
|
+
n(m, { loading: p.value }, {
|
|
209
209
|
default: o(() => [
|
|
210
210
|
t("div", Mt, [
|
|
211
211
|
s[34] || (s[34] = t("span", null, "系统启动时间", -1)),
|
|
@@ -221,7 +221,7 @@ const q = { class: "large-text" }, G = { class: "float-right" }, K = { style: {
|
|
|
221
221
|
s[36] || (s[36] = t("span", null, "Java安装目录", -1)),
|
|
222
222
|
t("span", At, [
|
|
223
223
|
n(C, {
|
|
224
|
-
style: { width: "300px" },
|
|
224
|
+
style: { width: "300px", "text-align": "right" },
|
|
225
225
|
class: "large-text",
|
|
226
226
|
ellipsis: { tooltip: a.javaHome },
|
|
227
227
|
content: a.javaHome
|
|
@@ -260,7 +260,7 @@ const q = { class: "large-text" }, G = { class: "float-right" }, K = { style: {
|
|
|
260
260
|
}),
|
|
261
261
|
n(g, { span: 24 }, {
|
|
262
262
|
default: o(() => [
|
|
263
|
-
n(
|
|
263
|
+
n(v, { title: "授权信息" }, {
|
|
264
264
|
extra: o(() => [
|
|
265
265
|
n(L, {
|
|
266
266
|
name: "file",
|
|
@@ -283,7 +283,7 @@ const q = { class: "large-text" }, G = { class: "float-right" }, K = { style: {
|
|
|
283
283
|
}, 8, ["action", "headers"])
|
|
284
284
|
]),
|
|
285
285
|
default: o(() => [
|
|
286
|
-
n(
|
|
286
|
+
n(m, { loading: p.value }, {
|
|
287
287
|
default: o(() => [
|
|
288
288
|
t("div", Xt, [
|
|
289
289
|
s[49] || (s[49] = t("span", null, "当前机器码", -1)),
|
|
@@ -311,9 +311,9 @@ const q = { class: "large-text" }, G = { class: "float-right" }, K = { style: {
|
|
|
311
311
|
t("div", Qt, [
|
|
312
312
|
s[52] || (s[52] = t("span", null, "授权机器码", -1)),
|
|
313
313
|
t("span", Rt, [
|
|
314
|
-
e.machineCode ? (b(),
|
|
314
|
+
e.machineCode ? (b(), j(C, {
|
|
315
315
|
key: 0,
|
|
316
|
-
style: { width: "300px" },
|
|
316
|
+
style: { width: "300px", "text-align": "right" },
|
|
317
317
|
class: "large-text float-right",
|
|
318
318
|
ellipsis: { tooltip: e.machineCode },
|
|
319
319
|
content: e.machineCode
|
|
@@ -346,7 +346,7 @@ const q = { class: "large-text" }, G = { class: "float-right" }, K = { style: {
|
|
|
346
346
|
t("div", es, [
|
|
347
347
|
s[57] || (s[57] = t("span", null, "扩展信息", -1)),
|
|
348
348
|
t("span", as, [
|
|
349
|
-
e.extras ? (b(),
|
|
349
|
+
e.extras ? (b(), j(D, {
|
|
350
350
|
key: 0,
|
|
351
351
|
title: JSON.stringify(e.extras)
|
|
352
352
|
}, {
|
|
@@ -379,5 +379,5 @@ const q = { class: "large-text" }, G = { class: "float-right" }, K = { style: {
|
|
|
379
379
|
}
|
|
380
380
|
});
|
|
381
381
|
export {
|
|
382
|
-
|
|
382
|
+
xs as default
|
|
383
383
|
};
|
package/dist/es/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.large-text[data-v-
|
|
1
|
+
.large-text[data-v-74bb63d3]{font-size:16px}.float-right[data-v-74bb63d3]{float:right}.margin-block[data-v-74bb63d3]{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-f8a348f6]{padding-top:20px}.permission-tree[data-v-f8a348f6],.permission-tree[data-v-50a6d9f1]{overflow-y:auto;overflow-x:hidden;margin-top:10px}[data-v-4dc423f0] .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-e0685b29]{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-d74ea79a]{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-2505b1db]{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-f67f4d15]{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-47610902]{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}
|
|
@@ -1 +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"),
|
|
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"),E=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:I})=>[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(I),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(E.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("vue"),R=require("./DictEdit.vue.js"),c=require("./api.js"),u=require("@ant-design/icons-vue"),p=require("ant-design-vue"),P=require("vue-router"),$=require("@since2006/components"),O={class:"ant-pro-table"},j={class:"ant-pro-table-search"},
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),R=require("./DictEdit.vue.js"),c=require("./api.js"),u=require("@ant-design/icons-vue"),p=require("ant-design-vue"),P=require("vue-router"),$=require("@since2006/components"),O={class:"ant-pro-table"},j={class:"ant-pro-table-search"},A=["onClick"],M={key:2},z=["onClick"],F=e.defineComponent({__name:"DictIndex",setup(H){const r=e.ref(),v=[{title:"字典名称",dataIndex:"name",scopedSlots:{customRender:"name"}},{title:"字典标识",dataIndex:"keyword"},{title:"备注",dataIndex:"remark"},{title:"操作",width:"150px",dataIndex:"action"}],d=e.reactive({query:void 0}),m=()=>{r.value.refresh()},C=()=>{d.query=void 0,r.value.refresh()},x=P.useRouter(),i=e.ref(!1),o=e.reactive({open:!1,mode:"add",dictId:""}),y=()=>{o.open=!0,o.mode="add",o.dictId=""},V=()=>{i.value=!0,c.refreshDictionaries().then(()=>{i.value=!1,p.message.success("刷新字典成功")})},N=n=>{x.push({path:"/dict/panel",query:{id:n.id}})},h=n=>{o.open=!0,o.mode="edit",o.dictId=n.id},k=n=>{c.removeDictionary(n.id).then(()=>{p.message.success("删除字典成功"),r.value.refresh()})},g=n=>{let t;n==="add"?t="添加字典成功":t="编辑字典成功",o.open=!1,p.message.success(t),r.value.refresh()};return(n,t)=>{const w=e.resolveComponent("a-input"),b=e.resolveComponent("a-form-item"),_=e.resolveComponent("a-col"),l=e.resolveComponent("a-button"),q=e.resolveComponent("a-row"),I=e.resolveComponent("a-form"),E=e.resolveComponent("a-button-group"),D=e.resolveComponent("a-typography-paragraph"),T=e.resolveComponent("a-divider"),S=e.resolveComponent("a-popconfirm");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",O,[e.createElementVNode("div",j,[e.createVNode(I,{layout:"horizontal"},{default:e.withCtx(()=>[e.createVNode(q,{gutter:16,type:"flex",justify:"start"},{default:e.withCtx(()=>[e.createVNode(_,{xs:24,sm:24,md:12,lg:7},{default:e.withCtx(()=>[e.createVNode(b,{label:"搜索"},{default:e.withCtx(()=>[e.createVNode(w,{value:d.query,"onUpdate:value":t[0]||(t[0]=a=>d.query=a),placeholder:"字典名称、字典标识",onPressEnter:m},null,8,["value"])]),_:1})]),_:1}),e.createVNode(_,null,{default:e.withCtx(()=>[e.createVNode(l,{onClick:m,type:"primary"},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode("搜索")])),_:1}),e.createVNode(l,{onClick:C,style:{"margin-left":"16px"}},{default:e.withCtx(()=>t[3]||(t[3]=[e.createTextVNode("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),e.createVNode(e.unref($.FxCardTable),{columns:v,"load-data":e.unref(c.queryDictionaries),params:d,ref_key:"tableRef",ref:r},{title:e.withCtx(()=>[e.createVNode(e.unref(u.HddTwoTone)),t[4]||(t[4]=e.createTextVNode(" 数据字典 "))]),toolbar:e.withCtx(()=>[e.createVNode(E,null,{default:e.withCtx(()=>[e.createVNode(l,{type:"primary",onClick:y},{default:e.withCtx(()=>[e.createVNode(e.unref(u.PlusOutlined)),t[5]||(t[5]=e.createTextVNode(" 添加字典 "))]),_:1}),e.createVNode(l,{onClick:V,loading:i.value},{default:e.withCtx(()=>[e.createVNode(e.unref(u.SyncOutlined)),t[6]||(t[6]=e.createTextVNode(" 刷新字典 "))]),_:1},8,["loading"])]),_:1})]),bodyCell:e.withCtx(({column:a,record:s,text:B})=>[a.dataIndex==="name"?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:f=>N(s)},e.toDisplayString(s.name),9,A)):e.createCommentVNode("",!0),a.dataIndex==="keyword"?(e.openBlock(),e.createBlock(D,{key:1,copyable:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B),1)]),_:2},1024)):e.createCommentVNode("",!0),a.dataIndex==="action"?(e.openBlock(),e.createElementBlock("span",M,[e.createElementVNode("a",{onClick:f=>h(s)},"编辑",8,z),e.createVNode(T,{type:"vertical"}),e.createVNode(S,{title:"是否确认删除?",onConfirm:f=>k(s)},{default:e.withCtx(()=>t[7]||(t[7]=[e.createElementVNode("a",{href:"#"},"删除",-1)])),_:2},1032,["onConfirm"])])):e.createCommentVNode("",!0)]),_:1},8,["load-data","params"])]),e.createVNode(R.default,{ref:"dictEdit",open:o.open,mode:o.mode,"dict-id":o.dictId,onCancel:t[1]||(t[1]=a=>o.open=!1),onSuccess:g},null,8,["open","mode","dict-id"])])}}});exports.default=F;
|
|
@@ -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"),P=require("./DictItemEdit.vue.js"),f=require("./api.js"),z=require("vue-router"),j=require("ant-design-vue"),C=require("@ant-design/icons-vue"),$={class:"table-operator"},F={class:"dict-content"},G={class:"tree-container"},H=e.defineComponent({__name:"DictPanel",setup(J){const D=z.useRoute(),u=e.ref(),v=e.ref({}),T=e.ref(!1),d=e.ref(null),n=e.ref({}),r=e.ref([]),_=e.ref([]),i=e.ref([]),c=e.ref({open:!1,mode:"add",dictId:"",itemId:""}),I=t=>{r.value=t},b=t=>(d.value=t,t.dataRef.children?new Promise(a=>{a("")}):x(t.dataRef.key)),S=()=>{f.getDictionary(u.value).then(t=>{v.value=t.data})},x=async t=>f.getAdminDictItems(u.value,t).then(a=>{d.value==null?i.value=m(a.data):(d.value.dataRef.children=m(a.data),i.value=[...i.value])}),E=(t,a)=>{const o=a.node.dataRef,l=r.value.includes(o.key);o.isLeaf||(a.selected?l||r.value.push(o.key):l&&(r.value=r.value.filter(s=>s!==o.key))),t.length===0?(console.log("清空选中"),d.value=null):d.value=a.node,N(o.key)},N=t=>{T.value=!0,f.getDictItem(t).then(a=>{n.value=y(a.data)})},B=()=>{c.value={open:!0,mode:"add",dictId:u.value,itemId:d.value!==null?n.value.key:null}},q=()=>{c.value={open:!0,mode:"edit",dictId:u.value,itemId:n.value.key}},K=t=>{c.value.open=!1,V(t),n.value.key?N(n.value.key):n.value={}},L=()=>{f.deleteDictItem(n.value.key).then(t=>{j.message.success("删除字典项成功"),V(t.data.parentId),d.value=null,n.value={}})},m=t=>t.map(a=>y(a)),y=t=>({key:t.id,title:t.name,isLeaf:!t.hasChildren,value:t.value,seqNo:t.seqNo,status:t.status,remark:t.remark}),V=t=>{f.getAdminDictItems(u.value,t).then(a=>{t?h(i.value,t,m(a.data)):i.value=m(a.data)})},h=(t,a,o)=>{t.forEach(l=>{if(l.key===a){l.isLeaf=o.length===0;const s=k([l],0);_.value=_.value.filter(p=>!s.includes(p)),r.value=r.value.filter(p=>!s.includes(p)),l.children=o}else l.children&&h(l.children,a,o)})},k=(t,a)=>{let o=[];return t.forEach(l=>{a>0&&o.push(l.key),l.children&&(o=o.concat(k(l.children,++a)))}),o};return e.onBeforeMount(()=>{u.value=D.query.id,S(),x("")}),(t,a)=>{const o=e.resolveComponent("a-descriptions-item"),l=e.resolveComponent("a-descriptions"),s=e.resolveComponent("a-button"),p=e.resolveComponent("a-popconfirm"),R=e.resolveComponent("a-space"),M=e.resolveComponent("a-tree"),w=e.resolveComponent("a-col"),g=e.resolveComponent("a-tag"),A=e.resolveComponent("a-row"),O=e.resolveComponent("a-card");return e.openBlock(),e.createBlock(O,{class:"dict-card"},{default:e.withCtx(()=>[e.createVNode(l,{column:2,size:"small"},{default:e.withCtx(()=>[e.createVNode(o,{label:"字典名称"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.value.name),1)]),_:1}),e.createVNode(o,{label:"字典标识"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.value.keyword),1)]),_:1}),e.createVNode(o,{label:"是否缓存"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.value.cacheEnabled===1?"是":"否"),1)]),_:1}),e.createVNode(o,{label:"描述"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.value.remark),1)]),_:1})]),_:1}),e.createElementVNode("div",$,[e.createVNode(R,{wrap:""},{default:e.withCtx(()=>[e.createVNode(s,{type:"primary",icon:e.h(e.unref(C.PlusCircleOutlined)),onClick:B},{default:e.withCtx(()=>a[1]||(a[1]=[e.createTextVNode(" 添加字典项 ")])),_:1},8,["icon"]),d.value?(e.openBlock(),e.createBlock(s,{key:0,icon:e.h(e.unref(C.EditOutlined)),onClick:q},{default:e.withCtx(()=>a[2]||(a[2]=[e.createTextVNode(" 修改字典项 ")])),_:1},8,["icon"])):e.createCommentVNode("",!0),e.createVNode(p,{title:"是否确认删除?",onConfirm:L},{default:e.withCtx(()=>[d.value?(e.openBlock(),e.createBlock(s,{key:0,danger:"",icon:e.h(e.unref(C.DeleteOutlined))},{default:e.withCtx(()=>a[3]||(a[3]=[e.createTextVNode("删除字典项")])),_:1},8,["icon"])):e.createCommentVNode("",!0)]),_:1})]),_:1})]),e.createElementVNode("div",F,[e.createVNode(A,{gutter:24,class:"dict-row"},{default:e.withCtx(()=>[e.createVNode(w,{span:7,class:"dict-left"},{default:e.withCtx(()=>[a[4]||(a[4]=e.createElementVNode("div",null,"字典项:",-1)),e.createElementVNode("div",G,[e.createVNode(M,{showLine:"",expandedKeys:r.value,loadedKeys:_.value,treeData:i.value,onExpand:I,loadData:b,onSelect:E},null,8,["expandedKeys","loadedKeys","treeData"])])]),_:1}),e.createVNode(w,{span:17,class:"dict-right"},{default:e.withCtx(()=>[e.createVNode(l,{column:1,bordered:"",size:"small"},{default:e.withCtx(()=>[e.createVNode(o,{label:"字典名称"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.title),1)]),_:1}),e.createVNode(o,{label:"字典取值"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.value),1)]),_:1}),e.createVNode(o,{label:"排序号"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.seqNo),1)]),_:1}),e.createVNode(o,{label:"状态"},{default:e.withCtx(()=>[n.value.status===1?(e.openBlock(),e.createBlock(g,{key:0,color:"green"},{default:e.withCtx(()=>a[5]||(a[5]=[e.createTextVNode("启用")])),_:1})):n.value.status===0?(e.openBlock(),e.createBlock(g,{key:1,color:"red"},{default:e.withCtx(()=>a[6]||(a[6]=[e.createTextVNode("禁用")])),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(o,{label:"描述"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.remark),1)]),_:1})]),_:1})]),_:1})]),_:1})]),e.createVNode(P.default,{open:c.value.open,"dict-id":c.value.dictId,"item-id":c.value.itemId,mode:c.value.mode,onSuccess:K,onCancel:a[0]||(a[0]=Q=>c.value.open=!1)},null,8,["open","dict-id","item-id","mode"])]),_:1})}}});exports.default=H;
|