@since2006/pages 2026.1.2 → 2026.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/src/app/dict/DictItemEdit.vue.js +1 -1
- package/dist/es/src/app/dict/DictItemEdit.vue2.js +95 -69
- package/dist/es/src/app/dict/DictPanel.vue.js +2 -2
- package/dist/es/src/app/dict/DictPanel.vue2.js +45 -38
- package/dist/es/style.css +1 -1
- package/dist/lib/src/app/dict/DictItemEdit.vue.js +1 -1
- package/dist/lib/src/app/dict/DictItemEdit.vue2.js +1 -1
- package/dist/lib/src/app/dict/DictPanel.vue.js +1 -1
- package/dist/lib/src/app/dict/DictPanel.vue2.js +1 -1
- package/dist/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./DictItemEdit.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const i = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const i = /* @__PURE__ */ o(t, [["__scopeId", "data-v-1d93855a"]]);
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getDictItem as
|
|
3
|
-
import { message as
|
|
4
|
-
|
|
1
|
+
import { defineComponent as V, ref as i, watch as E, resolveComponent as r, openBlock as g, createBlock as y, withCtx as u, createVNode as t, createTextVNode as F, toDisplayString as L, createCommentVNode as O, unref as A } from "vue";
|
|
2
|
+
import { getDictItem as v, createDictItem as M, updateDictItem as Q } from "./api.js";
|
|
3
|
+
import { message as T } from "ant-design-vue";
|
|
4
|
+
import { QuestionCircleOutlined as j } from "@ant-design/icons-vue";
|
|
5
|
+
const K = /* @__PURE__ */ V({
|
|
5
6
|
__name: "DictItemEdit",
|
|
6
7
|
props: {
|
|
7
8
|
open: {
|
|
@@ -22,146 +23,171 @@ const G = /* @__PURE__ */ R({
|
|
|
22
23
|
}
|
|
23
24
|
},
|
|
24
25
|
emits: ["success", "cancel"],
|
|
25
|
-
setup(f, { emit:
|
|
26
|
-
const
|
|
26
|
+
setup(f, { emit: h }) {
|
|
27
|
+
const c = i(""), p = i(!1), s = i(null), _ = i(), o = f, k = h, I = {
|
|
27
28
|
id: null,
|
|
28
29
|
parentId: null,
|
|
29
30
|
name: null,
|
|
31
|
+
keyword: null,
|
|
30
32
|
value: null,
|
|
31
33
|
seqNo: null,
|
|
32
34
|
status: !0,
|
|
33
35
|
remark: null
|
|
34
|
-
}, e =
|
|
36
|
+
}, e = i({ ...I }), b = {
|
|
35
37
|
name: [{ required: !0, message: "请填写字典项名称" }],
|
|
38
|
+
keyword: [{ required: !0, message: "请填写字典项编码" }],
|
|
36
39
|
value: [{ required: !0, message: "请填写字典项取值" }],
|
|
37
40
|
seqNo: [{ required: !0, message: "请填写数字类型顺序号" }],
|
|
38
41
|
status: [{ required: !0, message: "请选择字典项状态" }]
|
|
39
|
-
},
|
|
40
|
-
e.value = { ...
|
|
42
|
+
}, q = () => {
|
|
43
|
+
e.value = { ...I };
|
|
41
44
|
};
|
|
42
|
-
|
|
43
|
-
() =>
|
|
44
|
-
(
|
|
45
|
-
|
|
45
|
+
E(
|
|
46
|
+
() => o.open,
|
|
47
|
+
(a) => {
|
|
48
|
+
a && (q(), o.mode === "add" ? w() : N());
|
|
46
49
|
}
|
|
47
50
|
);
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}) :
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
e.value =
|
|
55
|
-
|
|
56
|
-
}) :
|
|
51
|
+
const w = () => {
|
|
52
|
+
c.value = "添加字典项", o.itemId !== null ? v(o.itemId).then((a) => {
|
|
53
|
+
s.value = a.data;
|
|
54
|
+
}) : s.value = null;
|
|
55
|
+
}, N = () => {
|
|
56
|
+
c.value = "修改字典项", e.value.id = o.itemId, v(o.itemId).then((a) => {
|
|
57
|
+
e.value = a.data, e.value.status = a.data.status === 1, e.value.parentId != null ? v(e.value.parentId).then((l) => {
|
|
58
|
+
s.value = l.data;
|
|
59
|
+
}) : s.value = null;
|
|
57
60
|
});
|
|
58
|
-
},
|
|
61
|
+
}, S = () => {
|
|
59
62
|
_.value.validateFields().then(() => {
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
let
|
|
63
|
-
if (
|
|
64
|
-
|
|
65
|
-
else if (
|
|
66
|
-
|
|
63
|
+
const a = { ...e.value, dictId: o.dictId };
|
|
64
|
+
s.value !== null && (a.parentId = s.value.id), a.status = a.status ? 1 : 0;
|
|
65
|
+
let l = null;
|
|
66
|
+
if (o.mode === "add")
|
|
67
|
+
l = M;
|
|
68
|
+
else if (o.mode === "edit")
|
|
69
|
+
l = Q;
|
|
67
70
|
else
|
|
68
71
|
return !1;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}).finally(() =>
|
|
72
|
+
p.value = !0, l(a).then((d) => {
|
|
73
|
+
T.success("操作成功"), k("success", d.data.parentId);
|
|
74
|
+
}).finally(() => p.value = !1);
|
|
72
75
|
});
|
|
73
76
|
}, C = () => {
|
|
74
|
-
|
|
77
|
+
k("cancel");
|
|
75
78
|
};
|
|
76
|
-
return (
|
|
77
|
-
const
|
|
78
|
-
return g(),
|
|
79
|
+
return (a, l) => {
|
|
80
|
+
const d = r("a-form-item"), m = r("a-input"), U = r("a-tooltip"), x = r("a-input-number"), D = r("a-switch"), B = r("a-form"), R = r("a-modal");
|
|
81
|
+
return g(), y(R, {
|
|
79
82
|
open: f.open,
|
|
80
|
-
title:
|
|
83
|
+
title: c.value,
|
|
81
84
|
width: 800,
|
|
82
|
-
confirmLoading:
|
|
85
|
+
confirmLoading: p.value,
|
|
83
86
|
"mask-closable": !1,
|
|
84
|
-
onOk:
|
|
87
|
+
onOk: S,
|
|
85
88
|
onCancel: C
|
|
86
89
|
}, {
|
|
87
|
-
default:
|
|
88
|
-
|
|
90
|
+
default: u(() => [
|
|
91
|
+
t(B, {
|
|
89
92
|
ref_key: "formRef",
|
|
90
93
|
ref: _,
|
|
91
94
|
model: e.value,
|
|
92
|
-
rules:
|
|
95
|
+
rules: b,
|
|
93
96
|
"label-col": { span: 5 },
|
|
94
97
|
"wrapper-col": { span: 12 }
|
|
95
98
|
}, {
|
|
96
|
-
default:
|
|
97
|
-
|
|
99
|
+
default: u(() => [
|
|
100
|
+
s.value ? (g(), y(d, {
|
|
98
101
|
key: 0,
|
|
99
102
|
label: "所属上级",
|
|
100
103
|
class: "notice"
|
|
101
104
|
}, {
|
|
102
|
-
default:
|
|
103
|
-
|
|
105
|
+
default: u(() => [
|
|
106
|
+
F(L(s.value.name), 1)
|
|
104
107
|
]),
|
|
105
108
|
_: 1
|
|
106
|
-
})) :
|
|
107
|
-
|
|
109
|
+
})) : O("", !0),
|
|
110
|
+
t(d, {
|
|
108
111
|
label: "字典项名称",
|
|
109
112
|
name: "name"
|
|
110
113
|
}, {
|
|
111
|
-
default:
|
|
112
|
-
|
|
114
|
+
default: u(() => [
|
|
115
|
+
t(m, {
|
|
113
116
|
value: e.value.name,
|
|
114
|
-
"onUpdate:value":
|
|
117
|
+
"onUpdate:value": l[0] || (l[0] = (n) => e.value.name = n),
|
|
115
118
|
placeholder: "字典项名称"
|
|
116
119
|
}, null, 8, ["value"])
|
|
117
120
|
]),
|
|
118
121
|
_: 1
|
|
119
122
|
}),
|
|
120
|
-
|
|
123
|
+
t(d, {
|
|
124
|
+
label: "字典项编码",
|
|
125
|
+
name: "keyword"
|
|
126
|
+
}, {
|
|
127
|
+
default: u(() => [
|
|
128
|
+
t(m, {
|
|
129
|
+
value: e.value.keyword,
|
|
130
|
+
"onUpdate:value": l[1] || (l[1] = (n) => e.value.keyword = n),
|
|
131
|
+
placeholder: "字典项编码"
|
|
132
|
+
}, {
|
|
133
|
+
suffix: u(() => [
|
|
134
|
+
t(U, { title: "用于实现国际化(i18n)时使用" }, {
|
|
135
|
+
default: u(() => [
|
|
136
|
+
t(A(j), { style: { color: "orange" } })
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
})
|
|
140
|
+
]),
|
|
141
|
+
_: 1
|
|
142
|
+
}, 8, ["value"])
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
}),
|
|
146
|
+
t(d, {
|
|
121
147
|
label: "字典项取值",
|
|
122
148
|
name: "value"
|
|
123
149
|
}, {
|
|
124
|
-
default:
|
|
125
|
-
|
|
150
|
+
default: u(() => [
|
|
151
|
+
t(m, {
|
|
126
152
|
value: e.value.value,
|
|
127
|
-
"onUpdate:value":
|
|
153
|
+
"onUpdate:value": l[2] || (l[2] = (n) => e.value.value = n),
|
|
128
154
|
placeholder: "字典项取值"
|
|
129
155
|
}, null, 8, ["value"])
|
|
130
156
|
]),
|
|
131
157
|
_: 1
|
|
132
158
|
}),
|
|
133
|
-
|
|
159
|
+
t(d, {
|
|
134
160
|
label: "顺序号",
|
|
135
161
|
name: "seqNo"
|
|
136
162
|
}, {
|
|
137
|
-
default:
|
|
138
|
-
|
|
163
|
+
default: u(() => [
|
|
164
|
+
t(x, {
|
|
139
165
|
value: e.value.seqNo,
|
|
140
|
-
"onUpdate:value":
|
|
166
|
+
"onUpdate:value": l[3] || (l[3] = (n) => e.value.seqNo = n),
|
|
141
167
|
placeholder: "顺序号"
|
|
142
168
|
}, null, 8, ["value"])
|
|
143
169
|
]),
|
|
144
170
|
_: 1
|
|
145
171
|
}),
|
|
146
|
-
|
|
172
|
+
t(d, {
|
|
147
173
|
label: "状态",
|
|
148
174
|
name: "state"
|
|
149
175
|
}, {
|
|
150
|
-
default:
|
|
151
|
-
|
|
176
|
+
default: u(() => [
|
|
177
|
+
t(D, {
|
|
152
178
|
checked: e.value.status,
|
|
153
|
-
"onUpdate:checked":
|
|
179
|
+
"onUpdate:checked": l[4] || (l[4] = (n) => e.value.status = n),
|
|
154
180
|
"checked-children": "启用",
|
|
155
181
|
"un-checked-children": "禁用"
|
|
156
182
|
}, null, 8, ["checked"])
|
|
157
183
|
]),
|
|
158
184
|
_: 1
|
|
159
185
|
}),
|
|
160
|
-
|
|
161
|
-
default:
|
|
162
|
-
|
|
186
|
+
t(d, { label: "描述" }, {
|
|
187
|
+
default: u(() => [
|
|
188
|
+
t(m, {
|
|
163
189
|
value: e.value.remark,
|
|
164
|
-
"onUpdate:value":
|
|
190
|
+
"onUpdate:value": l[5] || (l[5] = (n) => e.value.remark = n),
|
|
165
191
|
placeholder: "字典描述"
|
|
166
192
|
}, null, 8, ["value"])
|
|
167
193
|
]),
|
|
@@ -177,5 +203,5 @@ const G = /* @__PURE__ */ R({
|
|
|
177
203
|
}
|
|
178
204
|
});
|
|
179
205
|
export {
|
|
180
|
-
|
|
206
|
+
K as default
|
|
181
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-d604435e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as W, ref as r, onBeforeMount as X, resolveComponent as s, openBlock as D, createBlock as g, withCtx as l, createVNode as o, createTextVNode as u, toDisplayString as
|
|
1
|
+
import { defineComponent as W, ref as r, onBeforeMount as X, resolveComponent as s, openBlock as D, createBlock as g, withCtx as l, createVNode as o, createTextVNode as u, toDisplayString as i, createElementVNode as b, h as w, unref as C, createCommentVNode as x } 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 ae } from "vue-router";
|
|
@@ -7,44 +7,44 @@ import { PlusCircleOutlined as oe, EditOutlined as ne, DeleteOutlined as de } fr
|
|
|
7
7
|
const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { class: "tree-container" }, ke = /* @__PURE__ */ W({
|
|
8
8
|
__name: "DictPanel",
|
|
9
9
|
setup(re) {
|
|
10
|
-
const B = ae(), p = r(), y = r({}), M = r(!1), c = r(null), d = r({}),
|
|
10
|
+
const B = ae(), p = r(), y = r({}), M = r(!1), c = r(null), d = r({}), v = r([]), h = r([]), _ = r([]), f = r({
|
|
11
11
|
open: !1,
|
|
12
12
|
mode: "add",
|
|
13
13
|
dictId: "",
|
|
14
14
|
itemId: ""
|
|
15
15
|
}), O = (e) => {
|
|
16
|
-
|
|
16
|
+
v.value = e;
|
|
17
17
|
}, P = (e) => (c.value = e, e.dataRef.children ? new Promise((t) => {
|
|
18
18
|
t("");
|
|
19
|
-
}) :
|
|
19
|
+
}) : E(e.dataRef.key)), z = () => {
|
|
20
20
|
Z(p.value).then((e) => {
|
|
21
21
|
y.value = e.data;
|
|
22
22
|
});
|
|
23
|
-
},
|
|
23
|
+
}, E = async (e) => V(p.value, e).then((t) => {
|
|
24
24
|
c.value == null ? _.value = I(t.data) : (c.value.dataRef.children = I(t.data), _.value = [..._.value]);
|
|
25
25
|
}), A = (e, t) => {
|
|
26
|
-
const a = t.node.dataRef, n =
|
|
27
|
-
a.isLeaf || (t.selected ? n ||
|
|
28
|
-
},
|
|
26
|
+
const a = t.node.dataRef, n = v.value.includes(a.key);
|
|
27
|
+
a.isLeaf || (t.selected ? n || v.value.push(a.key) : n && (v.value = v.value.filter((m) => m !== a.key))), e.length === 0 ? (console.log("清空选中"), c.value = null) : c.value = t.node, T(a.key);
|
|
28
|
+
}, T = (e) => {
|
|
29
29
|
M.value = !0, ee(e).then((t) => {
|
|
30
30
|
d.value = K(t.data);
|
|
31
31
|
});
|
|
32
32
|
}, $ = () => {
|
|
33
|
-
|
|
33
|
+
f.value = {
|
|
34
34
|
open: !0,
|
|
35
35
|
mode: "add",
|
|
36
36
|
dictId: p.value,
|
|
37
37
|
itemId: c.value !== null ? d.value.key : null
|
|
38
38
|
};
|
|
39
39
|
}, j = () => {
|
|
40
|
-
|
|
40
|
+
f.value = {
|
|
41
41
|
open: !0,
|
|
42
42
|
mode: "edit",
|
|
43
43
|
dictId: p.value,
|
|
44
44
|
itemId: d.value.key
|
|
45
45
|
};
|
|
46
46
|
}, F = (e) => {
|
|
47
|
-
|
|
47
|
+
f.value.open = !1, L(e), d.value.key ? T(d.value.key) : d.value = {};
|
|
48
48
|
}, G = () => {
|
|
49
49
|
te(d.value.key).then((e) => {
|
|
50
50
|
le.success("删除字典项成功"), L(e.data.parentId), c.value = null, d.value = {};
|
|
@@ -52,6 +52,7 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
|
|
|
52
52
|
}, I = (e) => e.map((t) => K(t)), K = (e) => ({
|
|
53
53
|
key: e.id,
|
|
54
54
|
title: e.name,
|
|
55
|
+
keyword: e.keyword,
|
|
55
56
|
isLeaf: !e.hasChildren,
|
|
56
57
|
value: e.value,
|
|
57
58
|
seqNo: e.seqNo,
|
|
@@ -65,8 +66,8 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
|
|
|
65
66
|
e.forEach((n) => {
|
|
66
67
|
if (n.key === t) {
|
|
67
68
|
n.isLeaf = a.length === 0;
|
|
68
|
-
const
|
|
69
|
-
h.value = h.value.filter((k) => !
|
|
69
|
+
const m = R([n], 0);
|
|
70
|
+
h.value = h.value.filter((k) => !m.includes(k)), v.value = v.value.filter((k) => !m.includes(k)), n.children = a;
|
|
70
71
|
} else
|
|
71
72
|
n.children && N(n.children, t, a);
|
|
72
73
|
});
|
|
@@ -77,9 +78,9 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
|
|
|
77
78
|
}), a;
|
|
78
79
|
};
|
|
79
80
|
return X(() => {
|
|
80
|
-
p.value = B.query.id, z(),
|
|
81
|
+
p.value = B.query.id, z(), E("");
|
|
81
82
|
}), (e, t) => {
|
|
82
|
-
const a = s("a-descriptions-item"), n = s("a-descriptions"),
|
|
83
|
+
const a = s("a-descriptions-item"), n = s("a-descriptions"), m = s("a-button"), k = s("a-popconfirm"), H = s("a-space"), J = s("a-tree"), S = s("a-col"), q = s("a-tag"), Q = s("a-row"), U = s("a-card");
|
|
83
84
|
return D(), g(U, { class: "dict-card" }, {
|
|
84
85
|
default: l(() => [
|
|
85
86
|
o(n, {
|
|
@@ -89,25 +90,25 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
|
|
|
89
90
|
default: l(() => [
|
|
90
91
|
o(a, { label: "字典名称" }, {
|
|
91
92
|
default: l(() => [
|
|
92
|
-
u(
|
|
93
|
+
u(i(y.value.name), 1)
|
|
93
94
|
]),
|
|
94
95
|
_: 1
|
|
95
96
|
}),
|
|
96
97
|
o(a, { label: "字典标识" }, {
|
|
97
98
|
default: l(() => [
|
|
98
|
-
u(
|
|
99
|
+
u(i(y.value.keyword), 1)
|
|
99
100
|
]),
|
|
100
101
|
_: 1
|
|
101
102
|
}),
|
|
102
103
|
o(a, { label: "是否缓存" }, {
|
|
103
104
|
default: l(() => [
|
|
104
|
-
u(
|
|
105
|
+
u(i(y.value.cacheEnabled === 1 ? "是" : "否"), 1)
|
|
105
106
|
]),
|
|
106
107
|
_: 1
|
|
107
108
|
}),
|
|
108
109
|
o(a, { label: "描述" }, {
|
|
109
110
|
default: l(() => [
|
|
110
|
-
u(
|
|
111
|
+
u(i(y.value.remark), 1)
|
|
111
112
|
]),
|
|
112
113
|
_: 1
|
|
113
114
|
})
|
|
@@ -117,9 +118,9 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
|
|
|
117
118
|
b("div", ue, [
|
|
118
119
|
o(H, { wrap: "" }, {
|
|
119
120
|
default: l(() => [
|
|
120
|
-
o(
|
|
121
|
+
o(m, {
|
|
121
122
|
type: "primary",
|
|
122
|
-
icon: C(
|
|
123
|
+
icon: w(C(oe)),
|
|
123
124
|
onClick: $
|
|
124
125
|
}, {
|
|
125
126
|
default: l(() => t[1] || (t[1] = [
|
|
@@ -127,31 +128,31 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
|
|
|
127
128
|
])),
|
|
128
129
|
_: 1
|
|
129
130
|
}, 8, ["icon"]),
|
|
130
|
-
c.value ? (D(), g(
|
|
131
|
+
c.value ? (D(), g(m, {
|
|
131
132
|
key: 0,
|
|
132
|
-
icon: C(
|
|
133
|
+
icon: w(C(ne)),
|
|
133
134
|
onClick: j
|
|
134
135
|
}, {
|
|
135
136
|
default: l(() => t[2] || (t[2] = [
|
|
136
137
|
u(" 修改字典项 ")
|
|
137
138
|
])),
|
|
138
139
|
_: 1
|
|
139
|
-
}, 8, ["icon"])) :
|
|
140
|
+
}, 8, ["icon"])) : x("", !0),
|
|
140
141
|
o(k, {
|
|
141
142
|
title: "是否确认删除?",
|
|
142
143
|
onConfirm: G
|
|
143
144
|
}, {
|
|
144
145
|
default: l(() => [
|
|
145
|
-
c.value ? (D(), g(
|
|
146
|
+
c.value ? (D(), g(m, {
|
|
146
147
|
key: 0,
|
|
147
148
|
danger: "",
|
|
148
|
-
icon: C(
|
|
149
|
+
icon: w(C(de))
|
|
149
150
|
}, {
|
|
150
151
|
default: l(() => t[3] || (t[3] = [
|
|
151
152
|
u("删除字典项")
|
|
152
153
|
])),
|
|
153
154
|
_: 1
|
|
154
|
-
}, 8, ["icon"])) :
|
|
155
|
+
}, 8, ["icon"])) : x("", !0)
|
|
155
156
|
]),
|
|
156
157
|
_: 1
|
|
157
158
|
})
|
|
@@ -174,7 +175,7 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
|
|
|
174
175
|
b("div", ce, [
|
|
175
176
|
o(J, {
|
|
176
177
|
showLine: "",
|
|
177
|
-
expandedKeys:
|
|
178
|
+
expandedKeys: v.value,
|
|
178
179
|
loadedKeys: h.value,
|
|
179
180
|
treeData: _.value,
|
|
180
181
|
onExpand: O,
|
|
@@ -198,19 +199,25 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
|
|
|
198
199
|
default: l(() => [
|
|
199
200
|
o(a, { label: "字典名称" }, {
|
|
200
201
|
default: l(() => [
|
|
201
|
-
u(
|
|
202
|
+
u(i(d.value.title), 1)
|
|
203
|
+
]),
|
|
204
|
+
_: 1
|
|
205
|
+
}),
|
|
206
|
+
o(a, { label: "字典标识" }, {
|
|
207
|
+
default: l(() => [
|
|
208
|
+
u(i(d.value.keyword), 1)
|
|
202
209
|
]),
|
|
203
210
|
_: 1
|
|
204
211
|
}),
|
|
205
212
|
o(a, { label: "字典取值" }, {
|
|
206
213
|
default: l(() => [
|
|
207
|
-
u(
|
|
214
|
+
u(i(d.value.value), 1)
|
|
208
215
|
]),
|
|
209
216
|
_: 1
|
|
210
217
|
}),
|
|
211
218
|
o(a, { label: "排序号" }, {
|
|
212
219
|
default: l(() => [
|
|
213
|
-
u(
|
|
220
|
+
u(i(d.value.seqNo), 1)
|
|
214
221
|
]),
|
|
215
222
|
_: 1
|
|
216
223
|
}),
|
|
@@ -232,13 +239,13 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
|
|
|
232
239
|
u("禁用")
|
|
233
240
|
])),
|
|
234
241
|
_: 1
|
|
235
|
-
})) :
|
|
242
|
+
})) : x("", !0)
|
|
236
243
|
]),
|
|
237
244
|
_: 1
|
|
238
245
|
}),
|
|
239
246
|
o(a, { label: "描述" }, {
|
|
240
247
|
default: l(() => [
|
|
241
|
-
u(
|
|
248
|
+
u(i(d.value.remark), 1)
|
|
242
249
|
]),
|
|
243
250
|
_: 1
|
|
244
251
|
})
|
|
@@ -253,12 +260,12 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
|
|
|
253
260
|
})
|
|
254
261
|
]),
|
|
255
262
|
o(Y, {
|
|
256
|
-
open:
|
|
257
|
-
"dict-id":
|
|
258
|
-
"item-id":
|
|
259
|
-
mode:
|
|
263
|
+
open: f.value.open,
|
|
264
|
+
"dict-id": f.value.dictId,
|
|
265
|
+
"item-id": f.value.itemId,
|
|
266
|
+
mode: f.value.mode,
|
|
260
267
|
onSuccess: F,
|
|
261
|
-
onCancel: t[0] || (t[0] = (ie) =>
|
|
268
|
+
onCancel: t[0] || (t[0] = (ie) => f.value.open = !1)
|
|
262
269
|
}, null, 8, ["open", "dict-id", "item-id", "mode"])
|
|
263
270
|
]),
|
|
264
271
|
_: 1
|
package/dist/es/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
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-
|
|
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-1d93855a]{color:#ff4d4f;font-size:18px}.table-operator[data-v-d604435e]{margin:10px 14px 20px 0}[data-v-d604435e] .ant-descriptions-item-label{width:140px}.tree-container[data-v-d604435e] .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("./DictItemEdit.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("./DictItemEdit.vue2.js");;/* empty css */const t=require("../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-1d93855a"]]);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"),d=require("./api.js"),b=require("ant-design-vue"),S=require("@ant-design/icons-vue"),D=e.defineComponent({__name:"DictItemEdit",props:{open:{type:Boolean,default:!1},mode:{type:String,default:"add"},dictId:{type:String,default:null},itemId:{type:String,default:null}},emits:["success","cancel"],setup(m,{emit:_}){const i=e.ref(""),c=e.ref(!1),r=e.ref(null),v=e.ref(),n=m,p=_,f={id:null,parentId:null,name:null,keyword:null,value:null,seqNo:null,status:!0,remark:null},t=e.ref({...f}),h={name:[{required:!0,message:"请填写字典项名称"}],keyword:[{required:!0,message:"请填写字典项编码"}],value:[{required:!0,message:"请填写字典项取值"}],seqNo:[{required:!0,message:"请填写数字类型顺序号"}],status:[{required:!0,message:"请选择字典项状态"}]},C=()=>{t.value={...f}};e.watch(()=>n.open,l=>{l&&(C(),n.mode==="add"?N():k())});const N=()=>{i.value="添加字典项",n.itemId!==null?d.getDictItem(n.itemId).then(l=>{r.value=l.data}):r.value=null},k=()=>{i.value="修改字典项",t.value.id=n.itemId,d.getDictItem(n.itemId).then(l=>{t.value=l.data,t.value.status=l.data.status===1,t.value.parentId!=null?d.getDictItem(t.value.parentId).then(a=>{r.value=a.data}):r.value=null})},w=()=>{v.value.validateFields().then(()=>{const l={...t.value,dictId:n.dictId};r.value!==null&&(l.parentId=r.value.id),l.status=l.status?1:0;let a=null;if(n.mode==="add")a=d.createDictItem;else if(n.mode==="edit")a=d.updateDictItem;else return!1;c.value=!0,a(l).then(u=>{b.message.success("操作成功"),p("success",u.data.parentId)}).finally(()=>c.value=!1)})},g=()=>{p("cancel")};return(l,a)=>{const u=e.resolveComponent("a-form-item"),s=e.resolveComponent("a-input"),I=e.resolveComponent("a-tooltip"),V=e.resolveComponent("a-input-number"),q=e.resolveComponent("a-switch"),y=e.resolveComponent("a-form"),x=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(x,{open:m.open,title:i.value,width:800,confirmLoading:c.value,"mask-closable":!1,onOk:w,onCancel:g},{default:e.withCtx(()=>[e.createVNode(y,{ref_key:"formRef",ref:v,model:t.value,rules:h,"label-col":{span:5},"wrapper-col":{span:12}},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createBlock(u,{key:0,label:"所属上级",class:"notice"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value.name),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(u,{label:"字典项名称",name:"name"},{default:e.withCtx(()=>[e.createVNode(s,{value:t.value.name,"onUpdate:value":a[0]||(a[0]=o=>t.value.name=o),placeholder:"字典项名称"},null,8,["value"])]),_:1}),e.createVNode(u,{label:"字典项编码",name:"keyword"},{default:e.withCtx(()=>[e.createVNode(s,{value:t.value.keyword,"onUpdate:value":a[1]||(a[1]=o=>t.value.keyword=o),placeholder:"字典项编码"},{suffix:e.withCtx(()=>[e.createVNode(I,{title:"用于实现国际化(i18n)时使用"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.QuestionCircleOutlined),{style:{color:"orange"}})]),_:1})]),_:1},8,["value"])]),_:1}),e.createVNode(u,{label:"字典项取值",name:"value"},{default:e.withCtx(()=>[e.createVNode(s,{value:t.value.value,"onUpdate:value":a[2]||(a[2]=o=>t.value.value=o),placeholder:"字典项取值"},null,8,["value"])]),_:1}),e.createVNode(u,{label:"顺序号",name:"seqNo"},{default:e.withCtx(()=>[e.createVNode(V,{value:t.value.seqNo,"onUpdate:value":a[3]||(a[3]=o=>t.value.seqNo=o),placeholder:"顺序号"},null,8,["value"])]),_:1}),e.createVNode(u,{label:"状态",name:"state"},{default:e.withCtx(()=>[e.createVNode(q,{checked:t.value.status,"onUpdate:checked":a[4]||(a[4]=o=>t.value.status=o),"checked-children":"启用","un-checked-children":"禁用"},null,8,["checked"])]),_:1}),e.createVNode(u,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(s,{value:t.value.remark,"onUpdate:value":a[5]||(a[5]=o=>t.value.remark=o),placeholder:"字典描述"},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["open","title","confirmLoading"])}}});exports.default=D;
|
|
@@ -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-d604435e"]]);exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
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"),
|
|
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"),y=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,C(o.key)},C=t=>{T.value=!0,f.getDictItem(t).then(a=>{n.value=N(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?C(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=>N(a)),N=t=>({key:t.id,title:t.name,keyword:t.keyword,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(y.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(y.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(y.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.keyword),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;
|
package/dist/lib/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
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-
|
|
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-1d93855a]{color:#ff4d4f;font-size:18px}.table-operator[data-v-d604435e]{margin:10px 14px 20px 0}[data-v-d604435e] .ant-descriptions-item-label{width:140px}.tree-container[data-v-d604435e] .ant-tree{max-height:520px;overflow:auto}
|