@since2006/pages 2025.8.5 → 2025.8.7
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/attachment/AttachmentList.vue.js +66 -61
- package/dist/es/src/app/dict/DictIndex.vue.js +2 -2
- package/dist/es/src/app/dict/DictIndex.vue2.js +76 -71
- package/dist/es/src/app/dict/DictPanel.vue.js +2 -2
- package/dist/es/src/app/metadata/MetadataIndex.vue.js +85 -80
- package/dist/es/src/app/module/ModuleDetail.vue.js +68 -63
- package/dist/es/style.css +1 -1
- package/dist/lib/src/app/attachment/AttachmentList.vue.js +1 -1
- package/dist/lib/src/app/dict/DictIndex.vue.js +1 -1
- package/dist/lib/src/app/dict/DictIndex.vue2.js +1 -1
- package/dist/lib/src/app/dict/DictPanel.vue.js +1 -1
- package/dist/lib/src/app/metadata/MetadataIndex.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleDetail.vue.js +1 -1
- package/dist/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { CloudTwoTone as
|
|
3
|
-
import { queryConfigs as
|
|
4
|
-
import { message as
|
|
5
|
-
import
|
|
6
|
-
import { FxCardTable as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as E, ref as k, reactive as F, resolveComponent as a, openBlock as m, createElementBlock as f, createElementVNode as p, createVNode as t, withCtx as o, createTextVNode as s, unref as c, toDisplayString as g, createCommentVNode as b, createBlock as P, Fragment as O } from "vue";
|
|
2
|
+
import { CloudTwoTone as j, PlusOutlined as A } from "@ant-design/icons-vue";
|
|
3
|
+
import { queryConfigs as K, deleteConfig as L } from "./api.js";
|
|
4
|
+
import { message as h } from "ant-design-vue";
|
|
5
|
+
import G from "./AttachmentEdit.vue.js";
|
|
6
|
+
import { FxCardTable as H } from "@since2006/components";
|
|
7
|
+
const J = { class: "ant-pro-table" }, M = { class: "ant-pro-table-search" }, Q = ["onClick"], W = ["onClick"], ne = /* @__PURE__ */ E({
|
|
8
8
|
__name: "AttachmentList",
|
|
9
|
-
setup(
|
|
10
|
-
const
|
|
9
|
+
setup(X) {
|
|
10
|
+
const r = k(), I = [
|
|
11
11
|
{
|
|
12
12
|
title: "模块名称",
|
|
13
13
|
dataIndex: "name"
|
|
@@ -32,32 +32,32 @@ const H = { class: "ant-pro-table" }, J = { class: "ant-pro-table-search" }, M =
|
|
|
32
32
|
dataIndex: "action",
|
|
33
33
|
width: "150px"
|
|
34
34
|
}
|
|
35
|
-
],
|
|
35
|
+
], d = F({
|
|
36
36
|
query: void 0
|
|
37
37
|
}), y = () => {
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
r.value.refresh();
|
|
39
|
+
}, w = () => {
|
|
40
|
+
d.query = void 0, r.value.refresh();
|
|
41
|
+
}, q = (n) => {
|
|
42
|
+
L(n.id).then(() => {
|
|
43
|
+
h.success("删除附件配置成功"), r.value.refresh();
|
|
44
44
|
});
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
}, v = (
|
|
48
|
-
|
|
49
|
-
},
|
|
45
|
+
}, u = k(), D = () => {
|
|
46
|
+
u.value.preCreate();
|
|
47
|
+
}, v = (n) => {
|
|
48
|
+
u.value.preUpdate(n.id);
|
|
49
|
+
}, R = (n) => {
|
|
50
50
|
let e;
|
|
51
|
-
|
|
51
|
+
n === "add" ? e = "添加附件配置成功" : e = "编辑附件配置成功", h.success(e), r.value.refresh();
|
|
52
52
|
};
|
|
53
|
-
return (
|
|
54
|
-
const
|
|
55
|
-
return
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
t(
|
|
53
|
+
return (n, e) => {
|
|
54
|
+
const N = a("a-input"), S = a("a-form-item"), C = a("a-col"), _ = a("a-button"), T = a("a-row"), U = a("a-form"), V = a("a-typography-paragraph"), $ = a("a-divider"), z = a("a-popconfirm");
|
|
55
|
+
return m(), f("div", null, [
|
|
56
|
+
p("div", J, [
|
|
57
|
+
p("div", M, [
|
|
58
|
+
t(U, { layout: "horizontal" }, {
|
|
59
59
|
default: o(() => [
|
|
60
|
-
t(
|
|
60
|
+
t(T, {
|
|
61
61
|
gutter: 16,
|
|
62
62
|
type: "flex",
|
|
63
63
|
justify: "start"
|
|
@@ -70,11 +70,11 @@ const H = { class: "ant-pro-table" }, J = { class: "ant-pro-table-search" }, M =
|
|
|
70
70
|
lg: 7
|
|
71
71
|
}, {
|
|
72
72
|
default: o(() => [
|
|
73
|
-
t(
|
|
73
|
+
t(S, { label: "搜索" }, {
|
|
74
74
|
default: o(() => [
|
|
75
|
-
t(
|
|
76
|
-
value:
|
|
77
|
-
"onUpdate:value": e[0] || (e[0] = (
|
|
75
|
+
t(N, {
|
|
76
|
+
value: d.query,
|
|
77
|
+
"onUpdate:value": e[0] || (e[0] = (l) => d.query = l),
|
|
78
78
|
placeholder: "模块名称、附件标识",
|
|
79
79
|
onPressEnter: y
|
|
80
80
|
}, null, 8, ["value"])
|
|
@@ -96,7 +96,7 @@ const H = { class: "ant-pro-table" }, J = { class: "ant-pro-table-search" }, M =
|
|
|
96
96
|
_: 1
|
|
97
97
|
}),
|
|
98
98
|
t(_, {
|
|
99
|
-
onClick:
|
|
99
|
+
onClick: w,
|
|
100
100
|
style: { "margin-left": "16px" }
|
|
101
101
|
}, {
|
|
102
102
|
default: o(() => e[2] || (e[2] = [
|
|
@@ -114,60 +114,65 @@ const H = { class: "ant-pro-table" }, J = { class: "ant-pro-table-search" }, M =
|
|
|
114
114
|
_: 1
|
|
115
115
|
})
|
|
116
116
|
]),
|
|
117
|
-
t(
|
|
118
|
-
columns:
|
|
119
|
-
"load-data":
|
|
120
|
-
params:
|
|
117
|
+
t(c(H), {
|
|
118
|
+
columns: I,
|
|
119
|
+
"load-data": c(K),
|
|
120
|
+
params: d,
|
|
121
121
|
ref_key: "tableRef",
|
|
122
|
-
ref:
|
|
122
|
+
ref: r
|
|
123
123
|
}, {
|
|
124
124
|
title: o(() => [
|
|
125
|
-
t(
|
|
125
|
+
t(c(j)),
|
|
126
126
|
e[3] || (e[3] = s(" 附件上传"))
|
|
127
127
|
]),
|
|
128
128
|
toolbar: o(() => [
|
|
129
129
|
t(_, {
|
|
130
130
|
type: "primary",
|
|
131
|
-
onClick:
|
|
131
|
+
onClick: D
|
|
132
132
|
}, {
|
|
133
133
|
default: o(() => [
|
|
134
|
-
t(
|
|
134
|
+
t(c(A)),
|
|
135
135
|
e[4] || (e[4] = s(" 新建 "))
|
|
136
136
|
]),
|
|
137
137
|
_: 1
|
|
138
138
|
})
|
|
139
139
|
]),
|
|
140
|
-
bodyCell: o(({ column:
|
|
141
|
-
|
|
140
|
+
bodyCell: o(({ column: l, record: i, text: B }) => [
|
|
141
|
+
l.dataIndex === "name" ? (m(), f("a", {
|
|
142
142
|
key: 0,
|
|
143
|
-
onClick: (
|
|
144
|
-
}, g(
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
143
|
+
onClick: (x) => v(i)
|
|
144
|
+
}, g(i.name), 9, Q)) : b("", !0),
|
|
145
|
+
l.dataIndex === "keyword" ? (m(), P(V, {
|
|
146
|
+
key: 1,
|
|
147
|
+
copyable: ""
|
|
148
|
+
}, {
|
|
149
|
+
default: o(() => [
|
|
150
|
+
s(g(B), 1)
|
|
151
|
+
]),
|
|
152
|
+
_: 2
|
|
153
|
+
}, 1024)) : l.dataIndex === "action" ? (m(), f(O, { key: 2 }, [
|
|
154
|
+
p("a", {
|
|
155
|
+
onClick: (x) => v(i)
|
|
156
|
+
}, "编辑", 8, W),
|
|
157
|
+
t($, { type: "vertical" }),
|
|
158
|
+
t(z, {
|
|
154
159
|
title: "确定要删除吗?",
|
|
155
|
-
onConfirm: (
|
|
160
|
+
onConfirm: (x) => q(i)
|
|
156
161
|
}, {
|
|
157
162
|
default: o(() => e[5] || (e[5] = [
|
|
158
|
-
|
|
163
|
+
p("a", null, "删除", -1)
|
|
159
164
|
])),
|
|
160
165
|
_: 2
|
|
161
166
|
}, 1032, ["onConfirm"])
|
|
162
|
-
], 64)) :
|
|
167
|
+
], 64)) : b("", !0)
|
|
163
168
|
]),
|
|
164
169
|
_: 1
|
|
165
170
|
}, 8, ["load-data", "params"])
|
|
166
171
|
]),
|
|
167
|
-
t(
|
|
172
|
+
t(G, {
|
|
168
173
|
ref_key: "modalRef",
|
|
169
|
-
ref:
|
|
170
|
-
onSuccess:
|
|
174
|
+
ref: u,
|
|
175
|
+
onSuccess: R
|
|
171
176
|
}, null, 512)
|
|
172
177
|
]);
|
|
173
178
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DictIndex.vue2.js";
|
|
2
2
|
import "./DictIndex.vue3.js";
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dab314f5"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { queryDictionaries as
|
|
4
|
-
import { HddTwoTone as
|
|
5
|
-
import { message as
|
|
6
|
-
import { useRouter as
|
|
7
|
-
import { FxCardTable as
|
|
8
|
-
const ee = { class: "ant-pro-table" }, te = { class: "ant-pro-table-search" }, oe = ["onClick"], ne = { key: 2 }, ae = ["onClick"],
|
|
1
|
+
import { defineComponent as U, ref as h, reactive as b, resolveComponent as a, openBlock as c, createElementBlock as y, createElementVNode as f, createVNode as t, withCtx as o, createTextVNode as l, unref as i, toDisplayString as I, createCommentVNode as v, createBlock as G } from "vue";
|
|
2
|
+
import J from "./DictEdit.vue.js";
|
|
3
|
+
import { queryDictionaries as K, refreshDictionaries as L, removeDictionary as M } from "./api.js";
|
|
4
|
+
import { HddTwoTone as Q, PlusOutlined as W, SyncOutlined as X } from "@ant-design/icons-vue";
|
|
5
|
+
import { message as k } from "ant-design-vue";
|
|
6
|
+
import { useRouter as Y } from "vue-router";
|
|
7
|
+
import { FxCardTable as Z } from "@since2006/components";
|
|
8
|
+
const ee = { class: "ant-pro-table" }, te = { class: "ant-pro-table-search" }, oe = ["onClick"], ne = { key: 2 }, ae = ["onClick"], ce = /* @__PURE__ */ U({
|
|
9
9
|
__name: "DictIndex",
|
|
10
10
|
setup(re) {
|
|
11
|
-
const s =
|
|
11
|
+
const s = h(), w = [
|
|
12
12
|
{
|
|
13
13
|
title: "字典名称",
|
|
14
14
|
dataIndex: "name",
|
|
@@ -27,48 +27,48 @@ const ee = { class: "ant-pro-table" }, te = { class: "ant-pro-table-search" }, o
|
|
|
27
27
|
width: "150px",
|
|
28
28
|
dataIndex: "action"
|
|
29
29
|
}
|
|
30
|
-
],
|
|
30
|
+
], p = b({
|
|
31
31
|
query: void 0
|
|
32
|
-
}),
|
|
32
|
+
}), x = () => {
|
|
33
33
|
s.value.refresh();
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
},
|
|
34
|
+
}, q = () => {
|
|
35
|
+
p.query = void 0, s.value.refresh();
|
|
36
|
+
}, D = Y(), _ = h(!1), n = b({
|
|
37
37
|
open: !1,
|
|
38
38
|
mode: "add",
|
|
39
39
|
dictId: ""
|
|
40
|
-
}),
|
|
40
|
+
}), R = () => {
|
|
41
41
|
n.open = !0, n.mode = "add", n.dictId = "";
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
}, S = () => {
|
|
43
|
+
_.value = !0, L().then(() => {
|
|
44
|
+
_.value = !1, k.success("刷新字典成功");
|
|
45
45
|
});
|
|
46
|
+
}, E = (r) => {
|
|
47
|
+
D.push({ path: "/dict/panel", query: { id: r.id } });
|
|
46
48
|
}, V = (r) => {
|
|
47
|
-
R.push({ path: "/dict/panel", query: { id: r.id } });
|
|
48
|
-
}, $ = (r) => {
|
|
49
49
|
n.open = !0, n.mode = "edit", n.dictId = r.id;
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
}, $ = (r) => {
|
|
51
|
+
M(r.id).then(() => {
|
|
52
|
+
k.success("删除字典成功"), s.value.refresh();
|
|
53
53
|
});
|
|
54
|
-
},
|
|
54
|
+
}, N = (r) => {
|
|
55
55
|
let e;
|
|
56
|
-
r === "add" ? e = "添加字典成功" : e = "编辑字典成功", n.open = !1,
|
|
56
|
+
r === "add" ? e = "添加字典成功" : e = "编辑字典成功", n.open = !1, k.success(e), s.value.refresh();
|
|
57
57
|
};
|
|
58
58
|
return (r, e) => {
|
|
59
|
-
const
|
|
60
|
-
return
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
const T = a("a-input"), B = a("a-form-item"), C = a("a-col"), u = a("a-button"), P = a("a-row"), O = a("a-form"), j = a("a-button-group"), z = a("a-typography-paragraph"), A = a("a-divider"), F = a("a-popconfirm");
|
|
60
|
+
return c(), y("div", null, [
|
|
61
|
+
f("div", ee, [
|
|
62
|
+
f("div", te, [
|
|
63
63
|
t(O, { layout: "horizontal" }, {
|
|
64
64
|
default: o(() => [
|
|
65
|
-
t(
|
|
65
|
+
t(P, {
|
|
66
66
|
gutter: 16,
|
|
67
67
|
type: "flex",
|
|
68
68
|
justify: "start"
|
|
69
69
|
}, {
|
|
70
70
|
default: o(() => [
|
|
71
|
-
t(
|
|
71
|
+
t(C, {
|
|
72
72
|
xs: 24,
|
|
73
73
|
sm: 24,
|
|
74
74
|
md: 12,
|
|
@@ -77,11 +77,11 @@ const ee = { class: "ant-pro-table" }, te = { class: "ant-pro-table-search" }, o
|
|
|
77
77
|
default: o(() => [
|
|
78
78
|
t(B, { label: "搜索" }, {
|
|
79
79
|
default: o(() => [
|
|
80
|
-
t(
|
|
81
|
-
value:
|
|
82
|
-
"onUpdate:value": e[0] || (e[0] = (d) =>
|
|
80
|
+
t(T, {
|
|
81
|
+
value: p.query,
|
|
82
|
+
"onUpdate:value": e[0] || (e[0] = (d) => p.query = d),
|
|
83
83
|
placeholder: "字典名称、字典标识",
|
|
84
|
-
onPressEnter:
|
|
84
|
+
onPressEnter: x
|
|
85
85
|
}, null, 8, ["value"])
|
|
86
86
|
]),
|
|
87
87
|
_: 1
|
|
@@ -89,10 +89,10 @@ const ee = { class: "ant-pro-table" }, te = { class: "ant-pro-table-search" }, o
|
|
|
89
89
|
]),
|
|
90
90
|
_: 1
|
|
91
91
|
}),
|
|
92
|
-
t(
|
|
92
|
+
t(C, null, {
|
|
93
93
|
default: o(() => [
|
|
94
|
-
t(
|
|
95
|
-
onClick:
|
|
94
|
+
t(u, {
|
|
95
|
+
onClick: x,
|
|
96
96
|
type: "primary"
|
|
97
97
|
}, {
|
|
98
98
|
default: o(() => e[2] || (e[2] = [
|
|
@@ -100,8 +100,8 @@ const ee = { class: "ant-pro-table" }, te = { class: "ant-pro-table-search" }, o
|
|
|
100
100
|
])),
|
|
101
101
|
_: 1
|
|
102
102
|
}),
|
|
103
|
-
t(
|
|
104
|
-
onClick:
|
|
103
|
+
t(u, {
|
|
104
|
+
onClick: q,
|
|
105
105
|
style: { "margin-left": "16px" }
|
|
106
106
|
}, {
|
|
107
107
|
default: o(() => e[3] || (e[3] = [
|
|
@@ -119,36 +119,36 @@ const ee = { class: "ant-pro-table" }, te = { class: "ant-pro-table-search" }, o
|
|
|
119
119
|
_: 1
|
|
120
120
|
})
|
|
121
121
|
]),
|
|
122
|
-
t(i(
|
|
123
|
-
columns:
|
|
124
|
-
"load-data": i(
|
|
125
|
-
params:
|
|
122
|
+
t(i(Z), {
|
|
123
|
+
columns: w,
|
|
124
|
+
"load-data": i(K),
|
|
125
|
+
params: p,
|
|
126
126
|
ref_key: "tableRef",
|
|
127
127
|
ref: s
|
|
128
128
|
}, {
|
|
129
129
|
title: o(() => [
|
|
130
|
-
t(i(
|
|
130
|
+
t(i(Q)),
|
|
131
131
|
e[4] || (e[4] = l(" 数据字典 "))
|
|
132
132
|
]),
|
|
133
133
|
toolbar: o(() => [
|
|
134
134
|
t(j, null, {
|
|
135
135
|
default: o(() => [
|
|
136
|
-
t(
|
|
136
|
+
t(u, {
|
|
137
137
|
type: "primary",
|
|
138
|
-
onClick:
|
|
138
|
+
onClick: R
|
|
139
139
|
}, {
|
|
140
140
|
default: o(() => [
|
|
141
|
-
t(i(
|
|
141
|
+
t(i(W)),
|
|
142
142
|
e[5] || (e[5] = l(" 添加字典 "))
|
|
143
143
|
]),
|
|
144
144
|
_: 1
|
|
145
145
|
}),
|
|
146
|
-
t(
|
|
147
|
-
onClick:
|
|
148
|
-
loading:
|
|
146
|
+
t(u, {
|
|
147
|
+
onClick: S,
|
|
148
|
+
loading: _.value
|
|
149
149
|
}, {
|
|
150
150
|
default: o(() => [
|
|
151
|
-
t(i(
|
|
151
|
+
t(i(X)),
|
|
152
152
|
e[6] || (e[6] = l(" 刷新字典 "))
|
|
153
153
|
]),
|
|
154
154
|
_: 1
|
|
@@ -157,46 +157,51 @@ const ee = { class: "ant-pro-table" }, te = { class: "ant-pro-table-search" }, o
|
|
|
157
157
|
_: 1
|
|
158
158
|
})
|
|
159
159
|
]),
|
|
160
|
-
bodyCell: o(({ column: d, record:
|
|
161
|
-
d.dataIndex === "name" ? (
|
|
160
|
+
bodyCell: o(({ column: d, record: m, text: H }) => [
|
|
161
|
+
d.dataIndex === "name" ? (c(), y("a", {
|
|
162
162
|
key: 0,
|
|
163
|
-
onClick: (g) =>
|
|
164
|
-
},
|
|
165
|
-
d.dataIndex === "keyword" ? (
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
163
|
+
onClick: (g) => E(m)
|
|
164
|
+
}, I(m.name), 9, oe)) : v("", !0),
|
|
165
|
+
d.dataIndex === "keyword" ? (c(), G(z, {
|
|
166
|
+
key: 1,
|
|
167
|
+
copyable: ""
|
|
168
|
+
}, {
|
|
169
|
+
default: o(() => [
|
|
170
|
+
l(I(H), 1)
|
|
171
|
+
]),
|
|
172
|
+
_: 2
|
|
173
|
+
}, 1024)) : v("", !0),
|
|
174
|
+
d.dataIndex === "action" ? (c(), y("span", ne, [
|
|
175
|
+
f("a", {
|
|
176
|
+
onClick: (g) => V(m)
|
|
172
177
|
}, "编辑", 8, ae),
|
|
173
|
-
t(
|
|
174
|
-
t(
|
|
178
|
+
t(A, { type: "vertical" }),
|
|
179
|
+
t(F, {
|
|
175
180
|
title: "是否确认删除?",
|
|
176
|
-
onConfirm: (g) =>
|
|
181
|
+
onConfirm: (g) => $(m)
|
|
177
182
|
}, {
|
|
178
183
|
default: o(() => e[7] || (e[7] = [
|
|
179
|
-
|
|
184
|
+
f("a", { href: "#" }, "删除", -1)
|
|
180
185
|
])),
|
|
181
186
|
_: 2
|
|
182
187
|
}, 1032, ["onConfirm"])
|
|
183
|
-
])) :
|
|
188
|
+
])) : v("", !0)
|
|
184
189
|
]),
|
|
185
190
|
_: 1
|
|
186
191
|
}, 8, ["load-data", "params"])
|
|
187
192
|
]),
|
|
188
|
-
t(
|
|
193
|
+
t(J, {
|
|
189
194
|
ref: "dictEdit",
|
|
190
195
|
open: n.open,
|
|
191
196
|
mode: n.mode,
|
|
192
197
|
"dict-id": n.dictId,
|
|
193
198
|
onCancel: e[1] || (e[1] = (d) => n.open = !1),
|
|
194
|
-
onSuccess:
|
|
199
|
+
onSuccess: N
|
|
195
200
|
}, null, 8, ["open", "mode", "dict-id"])
|
|
196
201
|
]);
|
|
197
202
|
};
|
|
198
203
|
}
|
|
199
204
|
});
|
|
200
205
|
export {
|
|
201
|
-
|
|
206
|
+
ce as default
|
|
202
207
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DictPanel.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-47d8452e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ProfileTwoTone as
|
|
3
|
-
import { queryMetadatas as
|
|
4
|
-
import { message as
|
|
5
|
-
import { FxCardTable as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as B, ref as u, reactive as M, resolveComponent as o, openBlock as f, createElementBlock as k, createElementVNode as m, createVNode as e, withCtx as t, createTextVNode as l, unref as i, createBlock as j, toDisplayString as F, createCommentVNode as b, Fragment as Y } from "vue";
|
|
2
|
+
import { ProfileTwoTone as z, PlusOutlined as O } from "@ant-design/icons-vue";
|
|
3
|
+
import { queryMetadatas as A, deleteMetadata as G } from "./api.js";
|
|
4
|
+
import { message as _ } from "ant-design-vue";
|
|
5
|
+
import { FxCardTable as H } from "@since2006/components";
|
|
6
|
+
import J from "./MetadataCreate.vue.js";
|
|
7
|
+
import L from "./MetadataUpdate.vue.js";
|
|
8
|
+
const Q = { class: "ant-pro-table" }, W = { class: "ant-pro-table-search" }, X = ["onClick"], se = /* @__PURE__ */ B({
|
|
9
9
|
__name: "MetadataIndex",
|
|
10
|
-
setup(
|
|
11
|
-
const n =
|
|
10
|
+
setup(Z) {
|
|
11
|
+
const n = u(), I = [
|
|
12
12
|
{
|
|
13
13
|
title: "对象ID",
|
|
14
14
|
dataIndex: "objectId"
|
|
@@ -30,52 +30,52 @@ const L = { class: "ant-pro-table" }, Q = { class: "ant-pro-table-search" }, W =
|
|
|
30
30
|
dataIndex: "action",
|
|
31
31
|
width: 150
|
|
32
32
|
}
|
|
33
|
-
],
|
|
33
|
+
], s = M({
|
|
34
34
|
query: void 0
|
|
35
|
-
}),
|
|
35
|
+
}), p = () => {
|
|
36
36
|
n.value.refresh();
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
}, g = () => {
|
|
38
|
+
s.query = void 0, p();
|
|
39
|
+
}, h = (d) => {
|
|
40
|
+
G(d.id).then(() => {
|
|
41
|
+
_.success("删除元数据成功"), n.value.refresh();
|
|
42
42
|
});
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
|
|
43
|
+
}, y = u(), v = u(), R = () => {
|
|
44
|
+
y.value.preCreate();
|
|
45
|
+
}, q = (d) => {
|
|
46
|
+
v.value.preUpdate(d.id);
|
|
47
|
+
}, S = () => {
|
|
48
|
+
_.success("添加元数据成功"), n.value.refresh();
|
|
49
|
+
}, U = () => {
|
|
50
|
+
_.success("编辑元数据成功"), n.value.refresh();
|
|
51
51
|
};
|
|
52
|
-
return (
|
|
53
|
-
const
|
|
54
|
-
return
|
|
55
|
-
m("div",
|
|
56
|
-
m("div",
|
|
57
|
-
e(
|
|
58
|
-
default:
|
|
59
|
-
e(
|
|
52
|
+
return (d, a) => {
|
|
53
|
+
const V = o("a-input"), w = o("a-form-item"), C = o("a-col"), c = o("a-button"), E = o("a-row"), D = o("a-form"), K = o("a-typography-paragraph"), N = o("a-divider"), P = o("a-popconfirm");
|
|
54
|
+
return f(), k("div", null, [
|
|
55
|
+
m("div", Q, [
|
|
56
|
+
m("div", W, [
|
|
57
|
+
e(D, { layout: "horizontal" }, {
|
|
58
|
+
default: t(() => [
|
|
59
|
+
e(E, {
|
|
60
60
|
gutter: 16,
|
|
61
61
|
type: "flex",
|
|
62
62
|
justify: "start"
|
|
63
63
|
}, {
|
|
64
|
-
default:
|
|
65
|
-
e(
|
|
64
|
+
default: t(() => [
|
|
65
|
+
e(C, {
|
|
66
66
|
xs: 24,
|
|
67
67
|
sm: 24,
|
|
68
68
|
md: 12,
|
|
69
69
|
lg: 7
|
|
70
70
|
}, {
|
|
71
|
-
default:
|
|
72
|
-
e(
|
|
73
|
-
default:
|
|
74
|
-
e(
|
|
75
|
-
value:
|
|
76
|
-
"onUpdate:value":
|
|
71
|
+
default: t(() => [
|
|
72
|
+
e(w, { label: "搜索" }, {
|
|
73
|
+
default: t(() => [
|
|
74
|
+
e(V, {
|
|
75
|
+
value: s.query,
|
|
76
|
+
"onUpdate:value": a[0] || (a[0] = (r) => s.query = r),
|
|
77
77
|
placeholder: "对象ID、对象KEY、备注",
|
|
78
|
-
onPressEnter:
|
|
78
|
+
onPressEnter: p
|
|
79
79
|
}, null, 8, ["value"])
|
|
80
80
|
]),
|
|
81
81
|
_: 1
|
|
@@ -83,22 +83,22 @@ const L = { class: "ant-pro-table" }, Q = { class: "ant-pro-table-search" }, W =
|
|
|
83
83
|
]),
|
|
84
84
|
_: 1
|
|
85
85
|
}),
|
|
86
|
-
e(
|
|
87
|
-
default:
|
|
86
|
+
e(C, null, {
|
|
87
|
+
default: t(() => [
|
|
88
88
|
e(c, {
|
|
89
|
-
onClick:
|
|
89
|
+
onClick: p,
|
|
90
90
|
type: "primary"
|
|
91
91
|
}, {
|
|
92
|
-
default:
|
|
92
|
+
default: t(() => a[1] || (a[1] = [
|
|
93
93
|
l("搜索")
|
|
94
94
|
])),
|
|
95
95
|
_: 1
|
|
96
96
|
}),
|
|
97
97
|
e(c, {
|
|
98
|
-
onClick:
|
|
98
|
+
onClick: g,
|
|
99
99
|
style: { "margin-left": "16px" }
|
|
100
100
|
}, {
|
|
101
|
-
default:
|
|
101
|
+
default: t(() => a[2] || (a[2] = [
|
|
102
102
|
l("重置")
|
|
103
103
|
])),
|
|
104
104
|
_: 1
|
|
@@ -113,67 +113,72 @@ const L = { class: "ant-pro-table" }, Q = { class: "ant-pro-table-search" }, W =
|
|
|
113
113
|
_: 1
|
|
114
114
|
})
|
|
115
115
|
]),
|
|
116
|
-
e(
|
|
117
|
-
columns:
|
|
118
|
-
"load-data":
|
|
119
|
-
params:
|
|
116
|
+
e(i(H), {
|
|
117
|
+
columns: I,
|
|
118
|
+
"load-data": i(A),
|
|
119
|
+
params: s,
|
|
120
120
|
ref_key: "tableRef",
|
|
121
121
|
ref: n
|
|
122
122
|
}, {
|
|
123
|
-
title:
|
|
124
|
-
e(
|
|
125
|
-
|
|
123
|
+
title: t(() => [
|
|
124
|
+
e(i(z)),
|
|
125
|
+
a[3] || (a[3] = l(" 元数据配置"))
|
|
126
126
|
]),
|
|
127
|
-
toolbar:
|
|
127
|
+
toolbar: t(() => [
|
|
128
128
|
e(c, {
|
|
129
129
|
type: "primary",
|
|
130
|
-
onClick:
|
|
130
|
+
onClick: R
|
|
131
131
|
}, {
|
|
132
|
-
default:
|
|
133
|
-
e(
|
|
134
|
-
|
|
132
|
+
default: t(() => [
|
|
133
|
+
e(i(O)),
|
|
134
|
+
a[4] || (a[4] = l(" 新建 "))
|
|
135
135
|
]),
|
|
136
136
|
_: 1
|
|
137
137
|
})
|
|
138
138
|
]),
|
|
139
|
-
bodyCell:
|
|
140
|
-
r.dataIndex === "metaKey" || r.dataIndex === "metaValue" ? (
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
139
|
+
bodyCell: t(({ column: r, record: x, text: T }) => [
|
|
140
|
+
r.dataIndex === "metaKey" || r.dataIndex === "metaValue" ? (f(), j(K, {
|
|
141
|
+
key: 0,
|
|
142
|
+
copyable: ""
|
|
143
|
+
}, {
|
|
144
|
+
default: t(() => [
|
|
145
|
+
l(F(T), 1)
|
|
146
|
+
]),
|
|
147
|
+
_: 2
|
|
148
|
+
}, 1024)) : b("", !0),
|
|
149
|
+
r.dataIndex === "action" ? (f(), k(Y, { key: 1 }, [
|
|
145
150
|
m("a", {
|
|
146
|
-
onClick: ($) =>
|
|
147
|
-
}, "编辑", 8,
|
|
148
|
-
e(
|
|
149
|
-
e(
|
|
151
|
+
onClick: ($) => q(x)
|
|
152
|
+
}, "编辑", 8, X),
|
|
153
|
+
e(N, { type: "vertical" }),
|
|
154
|
+
e(P, {
|
|
150
155
|
title: "确定要删除吗?",
|
|
151
|
-
onConfirm: ($) =>
|
|
156
|
+
onConfirm: ($) => h(x)
|
|
152
157
|
}, {
|
|
153
|
-
default:
|
|
158
|
+
default: t(() => a[5] || (a[5] = [
|
|
154
159
|
m("a", null, "删除", -1)
|
|
155
160
|
])),
|
|
156
161
|
_: 2
|
|
157
162
|
}, 1032, ["onConfirm"])
|
|
158
|
-
], 64)) :
|
|
163
|
+
], 64)) : b("", !0)
|
|
159
164
|
]),
|
|
160
165
|
_: 1
|
|
161
166
|
}, 8, ["load-data", "params"])
|
|
162
167
|
]),
|
|
163
|
-
e(
|
|
168
|
+
e(J, {
|
|
164
169
|
ref_key: "modalCreateRef",
|
|
165
|
-
ref:
|
|
166
|
-
onSuccess:
|
|
170
|
+
ref: y,
|
|
171
|
+
onSuccess: S
|
|
167
172
|
}, null, 512),
|
|
168
|
-
e(
|
|
173
|
+
e(L, {
|
|
169
174
|
ref_key: "modalUpdateRef",
|
|
170
|
-
ref:
|
|
171
|
-
onSuccess:
|
|
175
|
+
ref: v,
|
|
176
|
+
onSuccess: U
|
|
172
177
|
}, null, 512)
|
|
173
178
|
]);
|
|
174
179
|
};
|
|
175
180
|
}
|
|
176
181
|
});
|
|
177
182
|
export {
|
|
178
|
-
|
|
183
|
+
se as default
|
|
179
184
|
};
|
|
@@ -1,124 +1,129 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
const v = { style: { color: "#a6a6a6", "margin-left": "4px" } }, D = /* @__PURE__ */ _({
|
|
1
|
+
import { defineComponent as g, resolveComponent as p, openBlock as d, createBlock as m, withCtx as e, createVNode as l, createTextVNode as a, toDisplayString as r, resolveDynamicComponent as c, createCommentVNode as s, createElementVNode as k, createElementBlock as y, Fragment as _ } from "vue";
|
|
2
|
+
const C = { style: { color: "#a6a6a6", "margin-left": "4px" } }, B = /* @__PURE__ */ g({
|
|
4
3
|
__name: "ModuleDetail",
|
|
5
4
|
props: {
|
|
6
5
|
module: {}
|
|
7
6
|
},
|
|
8
7
|
setup(N) {
|
|
9
|
-
return (
|
|
10
|
-
const t =
|
|
11
|
-
return
|
|
8
|
+
return (o, n) => {
|
|
9
|
+
const t = p("a-descriptions-item"), i = p("a-typography-paragraph"), u = p("a-tag"), b = p("a-descriptions");
|
|
10
|
+
return d(), m(b, {
|
|
12
11
|
bordered: "",
|
|
13
12
|
column: 1,
|
|
14
13
|
labelStyle: { width: "140px", textAlign: "center" }
|
|
15
14
|
}, {
|
|
16
|
-
default:
|
|
17
|
-
|
|
18
|
-
default:
|
|
19
|
-
|
|
15
|
+
default: e(() => [
|
|
16
|
+
l(t, { label: "模块名称" }, {
|
|
17
|
+
default: e(() => [
|
|
18
|
+
a(r(o.module.name), 1)
|
|
20
19
|
]),
|
|
21
20
|
_: 1
|
|
22
21
|
}),
|
|
23
|
-
|
|
24
|
-
default:
|
|
25
|
-
var
|
|
22
|
+
l(t, { label: "文档类别" }, {
|
|
23
|
+
default: e(() => {
|
|
24
|
+
var f;
|
|
26
25
|
return [
|
|
27
|
-
|
|
26
|
+
a(r((f = o.module.cate) == null ? void 0 : f.name), 1)
|
|
28
27
|
];
|
|
29
28
|
}),
|
|
30
29
|
_: 1
|
|
31
30
|
}),
|
|
32
|
-
|
|
33
|
-
default:
|
|
34
|
-
|
|
31
|
+
l(t, { label: "模块图标" }, {
|
|
32
|
+
default: e(() => [
|
|
33
|
+
o.module.icon ? (d(), m(c(o.module.icon), {
|
|
35
34
|
key: 0,
|
|
36
35
|
style: { "font-size": "16px" }
|
|
37
|
-
})) :
|
|
38
|
-
|
|
36
|
+
})) : s("", !0),
|
|
37
|
+
k("span", C, r(o.module.icon), 1)
|
|
39
38
|
]),
|
|
40
39
|
_: 1
|
|
41
40
|
}),
|
|
42
|
-
|
|
43
|
-
default:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
41
|
+
l(t, { label: "访问路径" }, {
|
|
42
|
+
default: e(() => [
|
|
43
|
+
l(i, {
|
|
44
|
+
copyable: !!o.module.path
|
|
45
|
+
}, {
|
|
46
|
+
default: e(() => [
|
|
47
|
+
a(r(o.module.path), 1)
|
|
48
|
+
]),
|
|
49
|
+
_: 1
|
|
50
|
+
}, 8, ["copyable"])
|
|
49
51
|
]),
|
|
50
52
|
_: 1
|
|
51
53
|
}),
|
|
52
|
-
|
|
53
|
-
default:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
l(t, { label: "模板文件" }, {
|
|
55
|
+
default: e(() => [
|
|
56
|
+
l(i, {
|
|
57
|
+
copyable: !!o.module.component
|
|
58
|
+
}, {
|
|
59
|
+
default: e(() => [
|
|
60
|
+
a(r(o.module.component), 1)
|
|
61
|
+
]),
|
|
62
|
+
_: 1
|
|
63
|
+
}, 8, ["copyable"])
|
|
59
64
|
]),
|
|
60
65
|
_: 1
|
|
61
66
|
}),
|
|
62
|
-
|
|
63
|
-
default:
|
|
64
|
-
|
|
65
|
-
|
|
67
|
+
l(t, { label: "打开方式" }, {
|
|
68
|
+
default: e(() => [
|
|
69
|
+
o.module.target != null ? (d(), y(_, { key: 0 }, [
|
|
70
|
+
o.module.target === 1 ? (d(), m(u, {
|
|
66
71
|
key: 0,
|
|
67
72
|
color: "red"
|
|
68
73
|
}, {
|
|
69
|
-
default:
|
|
70
|
-
|
|
74
|
+
default: e(() => n[0] || (n[0] = [
|
|
75
|
+
a("新开窗口")
|
|
71
76
|
])),
|
|
72
77
|
_: 1
|
|
73
|
-
})) : (
|
|
74
|
-
default:
|
|
75
|
-
|
|
78
|
+
})) : (d(), m(u, { key: 1 }, {
|
|
79
|
+
default: e(() => n[1] || (n[1] = [
|
|
80
|
+
a("默认")
|
|
76
81
|
])),
|
|
77
82
|
_: 1
|
|
78
83
|
}))
|
|
79
|
-
], 64)) :
|
|
84
|
+
], 64)) : s("", !0)
|
|
80
85
|
]),
|
|
81
86
|
_: 1
|
|
82
87
|
}),
|
|
83
|
-
|
|
84
|
-
default:
|
|
85
|
-
|
|
88
|
+
l(t, { label: "排序" }, {
|
|
89
|
+
default: e(() => [
|
|
90
|
+
a(r(o.module.seqNo), 1)
|
|
86
91
|
]),
|
|
87
92
|
_: 1
|
|
88
93
|
}),
|
|
89
|
-
|
|
90
|
-
default:
|
|
91
|
-
|
|
92
|
-
|
|
94
|
+
l(t, { label: "是否显示" }, {
|
|
95
|
+
default: e(() => [
|
|
96
|
+
o.module.state ? (d(), y(_, { key: 0 }, [
|
|
97
|
+
o.module.state === "1" ? (d(), m(u, {
|
|
93
98
|
key: 0,
|
|
94
99
|
color: "green"
|
|
95
100
|
}, {
|
|
96
|
-
default:
|
|
97
|
-
|
|
101
|
+
default: e(() => n[2] || (n[2] = [
|
|
102
|
+
a("显示")
|
|
98
103
|
])),
|
|
99
104
|
_: 1
|
|
100
|
-
})) : (
|
|
105
|
+
})) : (d(), m(u, {
|
|
101
106
|
key: 1,
|
|
102
107
|
color: "red"
|
|
103
108
|
}, {
|
|
104
|
-
default:
|
|
105
|
-
|
|
109
|
+
default: e(() => n[3] || (n[3] = [
|
|
110
|
+
a("隐藏")
|
|
106
111
|
])),
|
|
107
112
|
_: 1
|
|
108
113
|
}))
|
|
109
|
-
], 64)) :
|
|
114
|
+
], 64)) : s("", !0)
|
|
110
115
|
]),
|
|
111
116
|
_: 1
|
|
112
117
|
}),
|
|
113
|
-
|
|
114
|
-
default:
|
|
115
|
-
|
|
118
|
+
l(t, { label: "访问权限" }, {
|
|
119
|
+
default: e(() => [
|
|
120
|
+
a(r(o.module.permsSummary), 1)
|
|
116
121
|
]),
|
|
117
122
|
_: 1
|
|
118
123
|
}),
|
|
119
|
-
|
|
120
|
-
default:
|
|
121
|
-
|
|
124
|
+
l(t, { label: "描述" }, {
|
|
125
|
+
default: e(() => [
|
|
126
|
+
a(r(o.module.remark), 1)
|
|
122
127
|
]),
|
|
123
128
|
_: 1
|
|
124
129
|
})
|
|
@@ -129,5 +134,5 @@ const v = { style: { color: "#a6a6a6", "margin-left": "4px" } }, D = /* @__PURE_
|
|
|
129
134
|
}
|
|
130
135
|
});
|
|
131
136
|
export {
|
|
132
|
-
|
|
137
|
+
B as default
|
|
133
138
|
};
|
package/dist/es/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.large-text[data-v-92532804]{font-size:16px}.float-right[data-v-92532804]{float:right}.margin-block[data-v-92532804]{margin-top:14px}.icon-selector deep(ul) li.active[data-v-33554e43],.icon-selector deep(ul) li[data-v-33554e43]: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-33554e43]{font-size:1.5rem;border:1px solid #f1f1f1;padding:.02rem;margin:.03rem;cursor:pointer}.ant-form[data-v-cd92ee31]{padding-top:20px}.permission-tree[data-v-cd92ee31],.permission-tree[data-v-266daf0e]{overflow-y:auto;overflow-x:hidden;margin-top:10px}[data-v-ae963ea6] .ant-pro-table-list-toolbar-container{padding-left:6px}.cron-detail[data-v-f256dc3c]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-f256dc3c]{width:70px}.cron-detail .ant-input[data-v-f256dc3c]{width:280px}.cron-detail[data-v-50931e68]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-50931e68]{width:70px}.cron-detail .ant-input[data-v-50931e68]{width:280px}[data-v-de0bbc9f] .ant-descriptions-item-label,[data-v-cec99bb6] .ant-descriptions-item-label{width:140px}.ua-icon[data-v-8b2a1553]{width:1.2em;height:1.2em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.notice[data-v-112d54e0]{color:#ff4d4f;font-size:18px}.table-operator[data-v-
|
|
1
|
+
.large-text[data-v-92532804]{font-size:16px}.float-right[data-v-92532804]{float:right}.margin-block[data-v-92532804]{margin-top:14px}.icon-selector deep(ul) li.active[data-v-33554e43],.icon-selector deep(ul) li[data-v-33554e43]: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-33554e43]{font-size:1.5rem;border:1px solid #f1f1f1;padding:.02rem;margin:.03rem;cursor:pointer}.ant-form[data-v-cd92ee31]{padding-top:20px}.permission-tree[data-v-cd92ee31],.permission-tree[data-v-266daf0e]{overflow-y:auto;overflow-x:hidden;margin-top:10px}[data-v-ae963ea6] .ant-pro-table-list-toolbar-container{padding-left:6px}.cron-detail[data-v-f256dc3c]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-f256dc3c]{width:70px}.cron-detail .ant-input[data-v-f256dc3c]{width:280px}.cron-detail[data-v-50931e68]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-50931e68]{width:70px}.cron-detail .ant-input[data-v-50931e68]{width:280px}[data-v-de0bbc9f] .ant-descriptions-item-label,[data-v-cec99bb6] .ant-descriptions-item-label{width:140px}.ua-icon[data-v-8b2a1553]{width:1.2em;height:1.2em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.notice[data-v-112d54e0]{color:#ff4d4f;font-size:18px}.table-operator[data-v-47d8452e]{margin:10px 14px 20px 0}[data-v-47d8452e] .ant-descriptions-item-label{width:140px}.tree-container[data-v-47d8452e] .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"),
|
|
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"),T=require("./AttachmentEdit.vue.js"),B=require("@since2006/components"),I={class:"ant-pro-table"},D={class:"ant-pro-table-search"},S=["onClick"],R=["onClick"],P=e.defineComponent({__name:"AttachmentList",setup(U){const n=e.ref(),C=[{title:"模块名称",dataIndex:"name"},{title:"附件标识Key",dataIndex:"keyword"},{title:"允许类型",dataIndex:"extensionDesc"},{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()},v=()=>{r.query=void 0,n.value.refresh()},x=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",I,[e.createElementVNode("div",D,[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:v,style:{"margin-left":"16px"}},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),e.createVNode(e.unref(B.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,S)):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=>x(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(T.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("./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-dab314f5"]]);exports.default=u;
|
|
@@ -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"),
|
|
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"},M=["onClick"],z={key:2},A=["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,M)):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",z,[e.createElementVNode("a",{onClick:f=>h(s)},"编辑",8,A),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("./DictPanel.vue2.js");;/* empty css */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("./DictPanel.vue2.js");;/* empty css */const t=require("../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-47d8452e"]]);exports.default=u;
|
|
@@ -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"),m=require("@ant-design/icons-vue"),_=require("./api.js"),d=require("ant-design-vue"),S=require("@since2006/components"),M=require("./MetadataCreate.vue.js"),R=require("./MetadataUpdate.vue.js"),U={class:"ant-pro-table"},B={class:"ant-pro-table-search"},D=["onClick"],P=e.defineComponent({__name:"MetadataIndex",setup(K){const o=e.ref(),f=[{title:"对象ID",dataIndex:"objectId"},{title:"对象KEY",dataIndex:"metaKey"},{title:"对象值",dataIndex:"metaValue"},{title:"描述",dataIndex:"remark"},{title:"操作",dataIndex:"action",width:150}],n=e.reactive({query:void 0}),l=()=>{o.value.refresh()},C=()=>{n.query=void 0,l()},v=r=>{_.deleteMetadata(r.id).then(()=>{d.message.success("删除元数据成功"),o.value.refresh()})},c=e.ref(),u=e.ref(),x=()=>{c.value.preCreate()},y=r=>{u.value.preUpdate(r.id)},V=()=>{d.message.success("添加元数据成功"),o.value.refresh()},N=()=>{d.message.success("编辑元数据成功"),o.value.refresh()};return(r,t)=>{const h=e.resolveComponent("a-input"),g=e.resolveComponent("a-form-item"),i=e.resolveComponent("a-col"),s=e.resolveComponent("a-button"),k=e.resolveComponent("a-row"),w=e.resolveComponent("a-form"),b=e.resolveComponent("a-typography-paragraph"),q=e.resolveComponent("a-divider"),I=e.resolveComponent("a-popconfirm");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",U,[e.createElementVNode("div",B,[e.createVNode(w,{layout:"horizontal"},{default:e.withCtx(()=>[e.createVNode(k,{gutter:16,type:"flex",justify:"start"},{default:e.withCtx(()=>[e.createVNode(i,{xs:24,sm:24,md:12,lg:7},{default:e.withCtx(()=>[e.createVNode(g,{label:"搜索"},{default:e.withCtx(()=>[e.createVNode(h,{value:n.query,"onUpdate:value":t[0]||(t[0]=a=>n.query=a),placeholder:"对象ID、对象KEY、备注",onPressEnter:l},null,8,["value"])]),_:1})]),_:1}),e.createVNode(i,null,{default:e.withCtx(()=>[e.createVNode(s,{onClick:l,type:"primary"},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("搜索")])),_:1}),e.createVNode(s,{onClick:C,style:{"margin-left":"16px"}},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),e.createVNode(e.unref(S.FxCardTable),{columns:f,"load-data":e.unref(_.queryMetadatas),params:n,ref_key:"tableRef",ref:o},{title:e.withCtx(()=>[e.createVNode(e.unref(m.ProfileTwoTone)),t[3]||(t[3]=e.createTextVNode(" 元数据配置"))]),toolbar:e.withCtx(()=>[e.createVNode(s,{type:"primary",onClick:x},{default:e.withCtx(()=>[e.createVNode(e.unref(m.PlusOutlined)),t[4]||(t[4]=e.createTextVNode(" 新建 "))]),_:1})]),bodyCell:e.withCtx(({column:a,record:p,text:E})=>[a.dataIndex==="metaKey"||a.dataIndex==="metaValue"?(e.openBlock(),e.createBlock(b,{key:0,copyable:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E),1)]),_:2},1024)):e.createCommentVNode("",!0),a.dataIndex==="action"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("a",{onClick:T=>y(p)},"编辑",8,D),e.createVNode(q,{type:"vertical"}),e.createVNode(I,{title:"确定要删除吗?",onConfirm:T=>v(p)},{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(M.default,{ref_key:"modalCreateRef",ref:c,onSuccess:V},null,512),e.createVNode(R.default,{ref_key:"modalUpdateRef",ref:u,onSuccess:N},null,512)])}}});exports.default=P;
|
|
@@ -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={style:{color:"#a6a6a6","margin-left":"4px"}},c=e.defineComponent({__name:"ModuleDetail",props:{module:{}},setup(p){return(t,a)=>{const o=e.resolveComponent("a-descriptions-item"),r=e.resolveComponent("a-typography-paragraph"),l=e.resolveComponent("a-tag"),d=e.resolveComponent("a-descriptions");return e.openBlock(),e.createBlock(d,{bordered:"",column:1,labelStyle:{width:"140px",textAlign:"center"}},{default:e.withCtx(()=>[e.createVNode(o,{label:"模块名称"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.module.name),1)]),_:1}),e.createVNode(o,{label:"文档类别"},{default:e.withCtx(()=>{var n;return[e.createTextVNode(e.toDisplayString((n=t.module.cate)==null?void 0:n.name),1)]}),_:1}),e.createVNode(o,{label:"模块图标"},{default:e.withCtx(()=>[t.module.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.module.icon),{key:0,style:{"font-size":"16px"}})):e.createCommentVNode("",!0),e.createElementVNode("span",i,e.toDisplayString(t.module.icon),1)]),_:1}),e.createVNode(o,{label:"访问路径"},{default:e.withCtx(()=>[e.createVNode(r,{copyable:!!t.module.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.module.path),1)]),_:1},8,["copyable"])]),_:1}),e.createVNode(o,{label:"模板文件"},{default:e.withCtx(()=>[e.createVNode(r,{copyable:!!t.module.component},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.module.component),1)]),_:1},8,["copyable"])]),_:1}),e.createVNode(o,{label:"打开方式"},{default:e.withCtx(()=>[t.module.target!=null?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.module.target===1?(e.openBlock(),e.createBlock(l,{key:0,color:"red"},{default:e.withCtx(()=>a[0]||(a[0]=[e.createTextVNode("新开窗口")])),_:1})):(e.openBlock(),e.createBlock(l,{key:1},{default:e.withCtx(()=>a[1]||(a[1]=[e.createTextVNode("默认")])),_:1}))],64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(o,{label:"排序"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.module.seqNo),1)]),_:1}),e.createVNode(o,{label:"是否显示"},{default:e.withCtx(()=>[t.module.state?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.module.state==="1"?(e.openBlock(),e.createBlock(l,{key:0,color:"green"},{default:e.withCtx(()=>a[2]||(a[2]=[e.createTextVNode("显示")])),_:1})):(e.openBlock(),e.createBlock(l,{key:1,color:"red"},{default:e.withCtx(()=>a[3]||(a[3]=[e.createTextVNode("隐藏")])),_:1}))],64)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(o,{label:"访问权限"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.module.permsSummary),1)]),_:1}),e.createVNode(o,{label:"描述"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.module.remark),1)]),_:1})]),_:1})}}});exports.default=c;
|
package/dist/lib/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.large-text[data-v-92532804]{font-size:16px}.float-right[data-v-92532804]{float:right}.margin-block[data-v-92532804]{margin-top:14px}.icon-selector deep(ul) li.active[data-v-33554e43],.icon-selector deep(ul) li[data-v-33554e43]: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-33554e43]{font-size:1.5rem;border:1px solid #f1f1f1;padding:.02rem;margin:.03rem;cursor:pointer}.ant-form[data-v-cd92ee31]{padding-top:20px}.permission-tree[data-v-cd92ee31],.permission-tree[data-v-266daf0e]{overflow-y:auto;overflow-x:hidden;margin-top:10px}[data-v-ae963ea6] .ant-pro-table-list-toolbar-container{padding-left:6px}.cron-detail[data-v-f256dc3c]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-f256dc3c]{width:70px}.cron-detail .ant-input[data-v-f256dc3c]{width:280px}.cron-detail[data-v-50931e68]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-50931e68]{width:70px}.cron-detail .ant-input[data-v-50931e68]{width:280px}[data-v-de0bbc9f] .ant-descriptions-item-label,[data-v-cec99bb6] .ant-descriptions-item-label{width:140px}.ua-icon[data-v-8b2a1553]{width:1.2em;height:1.2em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.notice[data-v-112d54e0]{color:#ff4d4f;font-size:18px}.table-operator[data-v-
|
|
1
|
+
.large-text[data-v-92532804]{font-size:16px}.float-right[data-v-92532804]{float:right}.margin-block[data-v-92532804]{margin-top:14px}.icon-selector deep(ul) li.active[data-v-33554e43],.icon-selector deep(ul) li[data-v-33554e43]: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-33554e43]{font-size:1.5rem;border:1px solid #f1f1f1;padding:.02rem;margin:.03rem;cursor:pointer}.ant-form[data-v-cd92ee31]{padding-top:20px}.permission-tree[data-v-cd92ee31],.permission-tree[data-v-266daf0e]{overflow-y:auto;overflow-x:hidden;margin-top:10px}[data-v-ae963ea6] .ant-pro-table-list-toolbar-container{padding-left:6px}.cron-detail[data-v-f256dc3c]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-f256dc3c]{width:70px}.cron-detail .ant-input[data-v-f256dc3c]{width:280px}.cron-detail[data-v-50931e68]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-50931e68]{width:70px}.cron-detail .ant-input[data-v-50931e68]{width:280px}[data-v-de0bbc9f] .ant-descriptions-item-label,[data-v-cec99bb6] .ant-descriptions-item-label{width:140px}.ua-icon[data-v-8b2a1553]{width:1.2em;height:1.2em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.notice[data-v-112d54e0]{color:#ff4d4f;font-size:18px}.table-operator[data-v-47d8452e]{margin:10px 14px 20px 0}[data-v-47d8452e] .ant-descriptions-item-label{width:140px}.tree-container[data-v-47d8452e] .ant-tree{max-height:520px;overflow:auto}
|