@since2006/pages 2025.8.4 → 2025.8.6
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/dict/DictPanel.vue2.js +133 -123
- 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/dict/DictPanel.vue2.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 W, ref as c, onBeforeMount as X, resolveComponent as
|
|
1
|
+
import { defineComponent as W, ref as c, onBeforeMount as X, resolveComponent as d, openBlock as D, createBlock as g, withCtx as a, createVNode as o, createTextVNode as s, toDisplayString as m, createElementVNode as b, h as C, unref as x, createCommentVNode as E } from "vue";
|
|
2
2
|
import Y from "./DictItemEdit.vue.js";
|
|
3
3
|
import { getDictionary as Z, getAdminDictItems as V, getDictItem as ee, deleteDictItem as te } from "./api.js";
|
|
4
4
|
import { useRoute as le } from "vue-router";
|
|
5
5
|
import { message as ae } from "ant-design-vue";
|
|
6
6
|
import { PlusCircleOutlined as oe, EditOutlined as ne, DeleteOutlined as ue } from "@ant-design/icons-vue";
|
|
7
|
-
const
|
|
7
|
+
const se = { class: "table-operator" }, de = { class: "dict-content" }, re = { class: "tree-container" }, ke = /* @__PURE__ */ W({
|
|
8
8
|
__name: "DictPanel",
|
|
9
|
-
setup(
|
|
10
|
-
const B = le(), p = c(), y = c({}), M = c(!1), r = c(null), u = c({}), i = c([]),
|
|
9
|
+
setup(ce) {
|
|
10
|
+
const B = le(), p = c(), y = c({}), M = c(!1), r = c(null), u = c({}), i = c([]), h = c([]), _ = c([]), v = c({
|
|
11
11
|
open: !1,
|
|
12
12
|
mode: "add",
|
|
13
13
|
dictId: "",
|
|
@@ -16,16 +16,16 @@ const de = { class: "table-operator" }, _e = /* @__PURE__ */ W({
|
|
|
16
16
|
i.value = e;
|
|
17
17
|
}, P = (e) => (r.value = e, e.dataRef.children ? new Promise((t) => {
|
|
18
18
|
t("");
|
|
19
|
-
}) :
|
|
19
|
+
}) : T(e.dataRef.key)), z = () => {
|
|
20
20
|
Z(p.value).then((e) => {
|
|
21
21
|
y.value = e.result;
|
|
22
22
|
});
|
|
23
|
-
},
|
|
24
|
-
r.value == null ? _.value =
|
|
23
|
+
}, T = async (e) => V(p.value, e).then((t) => {
|
|
24
|
+
r.value == null ? _.value = I(t.result) : (r.value.dataRef.children = I(t.result), _.value = [..._.value]);
|
|
25
25
|
}), A = (e, t) => {
|
|
26
26
|
const l = t.node.dataRef, n = i.value.includes(l.key);
|
|
27
|
-
l.isLeaf || (t.selected ? n || i.value.push(l.key) : n && (i.value = i.value.filter((f) => f !== l.key))), e.length === 0 ? (console.log("清空选中"), r.value = null) : r.value = t.node,
|
|
28
|
-
},
|
|
27
|
+
l.isLeaf || (t.selected ? n || i.value.push(l.key) : n && (i.value = i.value.filter((f) => f !== l.key))), e.length === 0 ? (console.log("清空选中"), r.value = null) : r.value = t.node, w(l.key);
|
|
28
|
+
}, w = (e) => {
|
|
29
29
|
M.value = !0, ee(e).then((t) => {
|
|
30
30
|
u.value = K(t.result);
|
|
31
31
|
});
|
|
@@ -44,12 +44,12 @@ const de = { class: "table-operator" }, _e = /* @__PURE__ */ W({
|
|
|
44
44
|
itemId: u.value.key
|
|
45
45
|
};
|
|
46
46
|
}, F = (e) => {
|
|
47
|
-
v.value.open = !1,
|
|
47
|
+
v.value.open = !1, L(e), u.value.key ? w(u.value.key) : u.value = {};
|
|
48
48
|
}, G = () => {
|
|
49
49
|
te(u.value.key).then((e) => {
|
|
50
|
-
ae.success("删除字典项成功"),
|
|
50
|
+
ae.success("删除字典项成功"), L(e.result.parentId), r.value = null, u.value = {};
|
|
51
51
|
});
|
|
52
|
-
},
|
|
52
|
+
}, I = (e) => e.map((t) => K(t)), K = (e) => ({
|
|
53
53
|
key: e.id,
|
|
54
54
|
title: e.name,
|
|
55
55
|
isLeaf: !e.hasChildren,
|
|
@@ -57,30 +57,30 @@ const de = { class: "table-operator" }, _e = /* @__PURE__ */ W({
|
|
|
57
57
|
seqNo: e.seqNo,
|
|
58
58
|
state: e.state,
|
|
59
59
|
remark: e.remark
|
|
60
|
-
}),
|
|
60
|
+
}), L = (e) => {
|
|
61
61
|
V(p.value, e).then((t) => {
|
|
62
|
-
e ?
|
|
62
|
+
e ? N(_.value, e, I(t.result)) : _.value = I(t.result);
|
|
63
63
|
});
|
|
64
|
-
},
|
|
64
|
+
}, N = (e, t, l) => {
|
|
65
65
|
e.forEach((n) => {
|
|
66
66
|
if (n.key === t) {
|
|
67
67
|
n.isLeaf = l.length === 0;
|
|
68
|
-
const f =
|
|
69
|
-
|
|
68
|
+
const f = R([n], 0);
|
|
69
|
+
h.value = h.value.filter((k) => !f.includes(k)), i.value = i.value.filter((k) => !f.includes(k)), n.children = l;
|
|
70
70
|
} else
|
|
71
|
-
n.children &&
|
|
71
|
+
n.children && N(n.children, t, l);
|
|
72
72
|
});
|
|
73
|
-
},
|
|
73
|
+
}, R = (e, t) => {
|
|
74
74
|
let l = [];
|
|
75
75
|
return e.forEach((n) => {
|
|
76
|
-
t > 0 && l.push(n.key), n.children && (l = l.concat(
|
|
76
|
+
t > 0 && l.push(n.key), n.children && (l = l.concat(R(n.children, ++t)));
|
|
77
77
|
}), l;
|
|
78
78
|
};
|
|
79
79
|
return X(() => {
|
|
80
|
-
p.value = B.query.id, z(),
|
|
80
|
+
p.value = B.query.id, z(), T("");
|
|
81
81
|
}), (e, t) => {
|
|
82
|
-
const l =
|
|
83
|
-
return D(),
|
|
82
|
+
const l = d("a-descriptions-item"), n = d("a-descriptions"), f = d("a-button"), k = d("a-popconfirm"), H = d("a-space"), J = d("a-tree"), S = d("a-col"), q = d("a-tag"), Q = d("a-row"), U = d("a-card");
|
|
83
|
+
return D(), g(U, { class: "dict-card" }, {
|
|
84
84
|
default: a(() => [
|
|
85
85
|
o(n, {
|
|
86
86
|
column: 2,
|
|
@@ -89,69 +89,162 @@ const de = { class: "table-operator" }, _e = /* @__PURE__ */ W({
|
|
|
89
89
|
default: a(() => [
|
|
90
90
|
o(l, { label: "字典名称" }, {
|
|
91
91
|
default: a(() => [
|
|
92
|
-
|
|
92
|
+
s(m(y.value.name), 1)
|
|
93
93
|
]),
|
|
94
94
|
_: 1
|
|
95
95
|
}),
|
|
96
96
|
o(l, { label: "字典标识" }, {
|
|
97
97
|
default: a(() => [
|
|
98
|
-
|
|
98
|
+
s(m(y.value.keyword), 1)
|
|
99
99
|
]),
|
|
100
100
|
_: 1
|
|
101
101
|
}),
|
|
102
102
|
o(l, { label: "是否缓存" }, {
|
|
103
103
|
default: a(() => [
|
|
104
|
-
|
|
104
|
+
s(m(y.value.enableCache === 1 ? "是" : "否"), 1)
|
|
105
105
|
]),
|
|
106
106
|
_: 1
|
|
107
107
|
}),
|
|
108
108
|
o(l, { label: "描述" }, {
|
|
109
109
|
default: a(() => [
|
|
110
|
-
|
|
110
|
+
s(m(y.value.remark), 1)
|
|
111
111
|
]),
|
|
112
112
|
_: 1
|
|
113
113
|
})
|
|
114
114
|
]),
|
|
115
115
|
_: 1
|
|
116
116
|
}),
|
|
117
|
-
|
|
117
|
+
b("div", se, [
|
|
118
118
|
o(H, { wrap: "" }, {
|
|
119
119
|
default: a(() => [
|
|
120
120
|
o(f, {
|
|
121
121
|
type: "primary",
|
|
122
|
-
icon: C(
|
|
122
|
+
icon: C(x(oe)),
|
|
123
123
|
onClick: $
|
|
124
124
|
}, {
|
|
125
125
|
default: a(() => t[1] || (t[1] = [
|
|
126
|
-
|
|
126
|
+
s("添加字典项")
|
|
127
127
|
])),
|
|
128
128
|
_: 1
|
|
129
129
|
}, 8, ["icon"]),
|
|
130
|
-
r.value ? (D(),
|
|
130
|
+
r.value ? (D(), g(f, {
|
|
131
131
|
key: 0,
|
|
132
|
-
icon: C(
|
|
132
|
+
icon: C(x(ne)),
|
|
133
133
|
onClick: j
|
|
134
134
|
}, {
|
|
135
135
|
default: a(() => t[2] || (t[2] = [
|
|
136
|
-
|
|
136
|
+
s(" 修改字典项 ")
|
|
137
137
|
])),
|
|
138
138
|
_: 1
|
|
139
|
-
}, 8, ["icon"])) :
|
|
139
|
+
}, 8, ["icon"])) : E("", !0),
|
|
140
140
|
o(k, {
|
|
141
141
|
title: "是否确认删除?",
|
|
142
142
|
onConfirm: G
|
|
143
143
|
}, {
|
|
144
144
|
default: a(() => [
|
|
145
|
-
r.value ? (D(),
|
|
145
|
+
r.value ? (D(), g(f, {
|
|
146
146
|
key: 0,
|
|
147
147
|
danger: "",
|
|
148
|
-
icon: C(
|
|
148
|
+
icon: C(x(ue))
|
|
149
149
|
}, {
|
|
150
150
|
default: a(() => t[3] || (t[3] = [
|
|
151
|
-
|
|
151
|
+
s(" 删除字典项 ")
|
|
152
152
|
])),
|
|
153
153
|
_: 1
|
|
154
|
-
}, 8, ["icon"])) :
|
|
154
|
+
}, 8, ["icon"])) : E("", !0)
|
|
155
|
+
]),
|
|
156
|
+
_: 1
|
|
157
|
+
})
|
|
158
|
+
]),
|
|
159
|
+
_: 1
|
|
160
|
+
})
|
|
161
|
+
]),
|
|
162
|
+
b("div", de, [
|
|
163
|
+
o(Q, {
|
|
164
|
+
gutter: 24,
|
|
165
|
+
class: "dict-row"
|
|
166
|
+
}, {
|
|
167
|
+
default: a(() => [
|
|
168
|
+
o(S, {
|
|
169
|
+
span: 7,
|
|
170
|
+
class: "dict-left"
|
|
171
|
+
}, {
|
|
172
|
+
default: a(() => [
|
|
173
|
+
t[4] || (t[4] = b("div", null, "字典项:", -1)),
|
|
174
|
+
b("div", re, [
|
|
175
|
+
o(J, {
|
|
176
|
+
showLine: "",
|
|
177
|
+
expandedKeys: i.value,
|
|
178
|
+
loadedKeys: h.value,
|
|
179
|
+
treeData: _.value,
|
|
180
|
+
onExpand: O,
|
|
181
|
+
loadData: P,
|
|
182
|
+
onSelect: A
|
|
183
|
+
}, null, 8, ["expandedKeys", "loadedKeys", "treeData"])
|
|
184
|
+
])
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
}),
|
|
188
|
+
o(S, {
|
|
189
|
+
span: 17,
|
|
190
|
+
class: "dict-right"
|
|
191
|
+
}, {
|
|
192
|
+
default: a(() => [
|
|
193
|
+
o(n, {
|
|
194
|
+
column: 1,
|
|
195
|
+
bordered: "",
|
|
196
|
+
size: "small"
|
|
197
|
+
}, {
|
|
198
|
+
default: a(() => [
|
|
199
|
+
o(l, { label: "字典名称" }, {
|
|
200
|
+
default: a(() => [
|
|
201
|
+
s(m(u.value.title), 1)
|
|
202
|
+
]),
|
|
203
|
+
_: 1
|
|
204
|
+
}),
|
|
205
|
+
o(l, { label: "字典取值" }, {
|
|
206
|
+
default: a(() => [
|
|
207
|
+
s(m(u.value.value), 1)
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
}),
|
|
211
|
+
o(l, { label: "排序号" }, {
|
|
212
|
+
default: a(() => [
|
|
213
|
+
s(m(u.value.seqNo), 1)
|
|
214
|
+
]),
|
|
215
|
+
_: 1
|
|
216
|
+
}),
|
|
217
|
+
o(l, { label: "状态" }, {
|
|
218
|
+
default: a(() => [
|
|
219
|
+
u.value.state === "E" ? (D(), g(q, {
|
|
220
|
+
key: 0,
|
|
221
|
+
color: "green"
|
|
222
|
+
}, {
|
|
223
|
+
default: a(() => t[5] || (t[5] = [
|
|
224
|
+
s("启用")
|
|
225
|
+
])),
|
|
226
|
+
_: 1
|
|
227
|
+
})) : u.value.state === "D" ? (D(), g(q, {
|
|
228
|
+
key: 1,
|
|
229
|
+
color: "red"
|
|
230
|
+
}, {
|
|
231
|
+
default: a(() => t[6] || (t[6] = [
|
|
232
|
+
s("禁用")
|
|
233
|
+
])),
|
|
234
|
+
_: 1
|
|
235
|
+
})) : E("", !0)
|
|
236
|
+
]),
|
|
237
|
+
_: 1
|
|
238
|
+
}),
|
|
239
|
+
o(l, { label: "描述" }, {
|
|
240
|
+
default: a(() => [
|
|
241
|
+
s(m(u.value.remark), 1)
|
|
242
|
+
]),
|
|
243
|
+
_: 1
|
|
244
|
+
})
|
|
245
|
+
]),
|
|
246
|
+
_: 1
|
|
247
|
+
})
|
|
155
248
|
]),
|
|
156
249
|
_: 1
|
|
157
250
|
})
|
|
@@ -159,96 +252,13 @@ const de = { class: "table-operator" }, _e = /* @__PURE__ */ W({
|
|
|
159
252
|
_: 1
|
|
160
253
|
})
|
|
161
254
|
]),
|
|
162
|
-
o(Q, { class: "tree-container" }, {
|
|
163
|
-
default: a(() => [
|
|
164
|
-
o(R, { span: 7 }, {
|
|
165
|
-
default: a(() => [
|
|
166
|
-
t[4] || (t[4] = q("div", null, "字典项:", -1)),
|
|
167
|
-
o(J, {
|
|
168
|
-
showLine: "",
|
|
169
|
-
expandedKeys: i.value,
|
|
170
|
-
loadedKeys: b.value,
|
|
171
|
-
treeData: _.value,
|
|
172
|
-
onExpand: O,
|
|
173
|
-
loadData: P,
|
|
174
|
-
onSelect: A
|
|
175
|
-
}, null, 8, ["expandedKeys", "loadedKeys", "treeData"])
|
|
176
|
-
]),
|
|
177
|
-
_: 1
|
|
178
|
-
}),
|
|
179
|
-
o(R, {
|
|
180
|
-
span: 17,
|
|
181
|
-
class: "tree-detail"
|
|
182
|
-
}, {
|
|
183
|
-
default: a(() => [
|
|
184
|
-
o(n, {
|
|
185
|
-
column: 1,
|
|
186
|
-
bordered: "",
|
|
187
|
-
size: "small"
|
|
188
|
-
}, {
|
|
189
|
-
default: a(() => [
|
|
190
|
-
o(l, { label: "字典名称" }, {
|
|
191
|
-
default: a(() => [
|
|
192
|
-
d(m(u.value.title), 1)
|
|
193
|
-
]),
|
|
194
|
-
_: 1
|
|
195
|
-
}),
|
|
196
|
-
o(l, { label: "字典取值" }, {
|
|
197
|
-
default: a(() => [
|
|
198
|
-
d(m(u.value.value), 1)
|
|
199
|
-
]),
|
|
200
|
-
_: 1
|
|
201
|
-
}),
|
|
202
|
-
o(l, { label: "排序号" }, {
|
|
203
|
-
default: a(() => [
|
|
204
|
-
d(m(u.value.seqNo), 1)
|
|
205
|
-
]),
|
|
206
|
-
_: 1
|
|
207
|
-
}),
|
|
208
|
-
o(l, { label: "状态" }, {
|
|
209
|
-
default: a(() => [
|
|
210
|
-
u.value.state === "E" ? (D(), I(S, {
|
|
211
|
-
key: 0,
|
|
212
|
-
color: "green"
|
|
213
|
-
}, {
|
|
214
|
-
default: a(() => t[5] || (t[5] = [
|
|
215
|
-
d("启用")
|
|
216
|
-
])),
|
|
217
|
-
_: 1
|
|
218
|
-
})) : u.value.state === "D" ? (D(), I(S, {
|
|
219
|
-
key: 1,
|
|
220
|
-
color: "red"
|
|
221
|
-
}, {
|
|
222
|
-
default: a(() => t[6] || (t[6] = [
|
|
223
|
-
d("禁用")
|
|
224
|
-
])),
|
|
225
|
-
_: 1
|
|
226
|
-
})) : x("", !0)
|
|
227
|
-
]),
|
|
228
|
-
_: 1
|
|
229
|
-
}),
|
|
230
|
-
o(l, { label: "描述" }, {
|
|
231
|
-
default: a(() => [
|
|
232
|
-
d(m(u.value.remark), 1)
|
|
233
|
-
]),
|
|
234
|
-
_: 1
|
|
235
|
-
})
|
|
236
|
-
]),
|
|
237
|
-
_: 1
|
|
238
|
-
})
|
|
239
|
-
]),
|
|
240
|
-
_: 1
|
|
241
|
-
})
|
|
242
|
-
]),
|
|
243
|
-
_: 1
|
|
244
|
-
}),
|
|
245
255
|
o(Y, {
|
|
246
256
|
open: v.value.open,
|
|
247
257
|
"dict-id": v.value.dictId,
|
|
248
258
|
"item-id": v.value.itemId,
|
|
249
259
|
mode: v.value.mode,
|
|
250
260
|
onSuccess: F,
|
|
251
|
-
onCancel: t[0] || (t[0] = (
|
|
261
|
+
onCancel: t[0] || (t[0] = (ie) => v.value.open = !1)
|
|
252
262
|
}, null, 8, ["open", "dict-id", "item-id", "mode"])
|
|
253
263
|
]),
|
|
254
264
|
_: 1
|
|
@@ -257,5 +267,5 @@ const de = { class: "table-operator" }, _e = /* @__PURE__ */ W({
|
|
|
257
267
|
}
|
|
258
268
|
});
|
|
259
269
|
export {
|
|
260
|
-
|
|
270
|
+
ke as default
|
|
261
271
|
};
|
|
@@ -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
|
};
|