smart-admin-web 10.23.0 → 10.24.0
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/createSmartAdmin.d.ts +2 -0
- package/dist/createSmartAdmin.js +41 -39
- package/dist/createSmartAdmin.js.map +1 -1
- package/dist/lib/runtime.js +1 -1
- package/dist/style.css +1 -1
- package/dist/theme/naive-theme.js +152 -136
- package/dist/theme/naive-theme.js.map +1 -1
- package/dist/utils/tree.d.ts +1 -2
- package/dist/utils/tree.js.map +1 -1
- package/dist/views/system/menu/index.vue.js +1 -1
- package/dist/views/system/menu/index2.vue.js +151 -161
- package/dist/views/system/menu/index2.vue.js.map +1 -1
- package/dist/views/system/org/index.vue.js +2 -2
- package/dist/views/system/org/index2.vue.js +176 -182
- package/dist/views/system/org/index2.vue.js.map +1 -1
- package/package.json +3 -3
- package/dist/utils/treeCard.d.ts +0 -6
- package/dist/utils/treeCard.js +0 -9
- package/dist/utils/treeCard.js.map +0 -1
|
@@ -1,69 +1,65 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useMessage as
|
|
3
|
-
import { SmartTable as
|
|
4
|
-
import { useI18n as
|
|
1
|
+
import { defineComponent as se, ref as s, shallowRef as H, computed as de, reactive as ue, h as d, resolveDirective as ce, openBlock as F, createElementBlock as me, createVNode as a, unref as o, withCtx as n, createTextVNode as x, toDisplayString as m, withDirectives as pe, createBlock as fe, createSlots as ve, createElementVNode as j } from "vue";
|
|
2
|
+
import { useMessage as ye, NSpace as M, NButton as p, NDropdown as ge, NForm as V, NFormItem as c, NInput as E, NInputNumber as he, NSwitch as be, NModal as we } from "naive-ui";
|
|
3
|
+
import { SmartTable as ke } from "smart-naive-table";
|
|
4
|
+
import { useI18n as _e } from "vue-i18n";
|
|
5
5
|
import I from "../../../components/AppIcon.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import xe from "../../../components/DictSelect/index.vue.js";
|
|
7
|
+
import Ie from "../../../components/DictTag/index.vue.js";
|
|
8
|
+
import Ce from "../../../components/FormContainer/index.vue.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useConfirm as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
import { filterTreeByParams as He } from "../../../utils/treeFilter.js";
|
|
22
|
-
const Fe = { class: "view fill-page" }, je = { class: "form-hint" }, Me = { class: "copy-tip" }, vo = /* @__PURE__ */ me({
|
|
10
|
+
import Ne from "../../../components/OrgTreeSelect/index.vue.js";
|
|
11
|
+
import Te from "../../../components/StatusSwitch/index.vue.js";
|
|
12
|
+
import { useConfirm as Se } from "../../../composables/useConfirm.js";
|
|
13
|
+
import { orgApi as f } from "../../../api/index.js";
|
|
14
|
+
import { useAuthStore as Ee } from "../../../stores/auth.js";
|
|
15
|
+
import { translateError as K } from "../../../utils/error.js";
|
|
16
|
+
import { SEARCH_ACTIONS as G, deriveHeaderFilters as Pe } from "../../../utils/tableFilter.js";
|
|
17
|
+
import { TABLE_MIN_ROW_HEIGHT as Ae, TABLE_TOOLBAR as Ue } from "../../../utils/tableToolbar.js";
|
|
18
|
+
import { expandableIds as W, buildTree as Oe } from "../../../utils/tree.js";
|
|
19
|
+
import { filterTreeByParams as ze } from "../../../utils/treeFilter.js";
|
|
20
|
+
const Re = { class: "view fill-page" }, Be = { class: "form-hint" }, De = { class: "copy-tip" }, ro = /* @__PURE__ */ se({
|
|
23
21
|
__name: "index",
|
|
24
|
-
setup(
|
|
25
|
-
const { t } =
|
|
26
|
-
async function
|
|
22
|
+
setup(Le) {
|
|
23
|
+
const { t: l } = _e(), C = ye(), { run: J, confirm: Q } = Se(), v = Ee(), N = s(!1), P = H([]);
|
|
24
|
+
async function X() {
|
|
27
25
|
N.value = !0;
|
|
28
26
|
try {
|
|
29
|
-
|
|
27
|
+
P.value = Oe(await f.list());
|
|
30
28
|
} catch (e) {
|
|
31
|
-
C.error(
|
|
29
|
+
C.error(K(e));
|
|
32
30
|
} finally {
|
|
33
31
|
N.value = !1;
|
|
34
32
|
}
|
|
35
33
|
}
|
|
36
|
-
const
|
|
34
|
+
const A = s(), h = () => {
|
|
37
35
|
var e;
|
|
38
|
-
return (e =
|
|
39
|
-
},
|
|
36
|
+
return (e = A.value) == null ? void 0 : e.refresh();
|
|
37
|
+
}, Y = {
|
|
40
38
|
name: (e) => e.name,
|
|
41
39
|
code: (e) => e.code
|
|
42
|
-
},
|
|
43
|
-
await
|
|
44
|
-
const
|
|
45
|
-
return { items:
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
function ae(e) {
|
|
50
|
-
z.value = e, h.value = X(e);
|
|
40
|
+
}, Z = async (e) => {
|
|
41
|
+
await X();
|
|
42
|
+
const t = ze(P.value, e, Y);
|
|
43
|
+
return { items: t, total: t.length };
|
|
44
|
+
}, y = s([]), U = H([]);
|
|
45
|
+
function ee(e) {
|
|
46
|
+
U.value = e, y.value = W(e);
|
|
51
47
|
}
|
|
52
|
-
const
|
|
48
|
+
const T = de(() => y.value.length > 0), oe = () => y.value = T.value ? [] : W(U.value), b = s(!1), O = s(null), u = s(null), le = {
|
|
53
49
|
name: {
|
|
54
50
|
required: !0,
|
|
55
51
|
whitespace: !0,
|
|
56
|
-
message: () =>
|
|
52
|
+
message: () => l("org.nameRequired"),
|
|
57
53
|
trigger: ["input", "blur"]
|
|
58
54
|
}
|
|
59
|
-
},
|
|
55
|
+
}, z = () => ({
|
|
60
56
|
parentId: 0,
|
|
61
57
|
name: "",
|
|
62
58
|
code: "",
|
|
63
59
|
category: null,
|
|
64
60
|
sort: 0,
|
|
65
61
|
enabled: !0
|
|
66
|
-
}), i =
|
|
62
|
+
}), i = ue(z()), R = (e) => ({
|
|
67
63
|
parentId: e.parentId,
|
|
68
64
|
name: e.name,
|
|
69
65
|
code: e.code,
|
|
@@ -71,42 +67,42 @@ const Fe = { class: "view fill-page" }, je = { class: "form-hint" }, Me = { clas
|
|
|
71
67
|
sort: e.sort,
|
|
72
68
|
enabled: e.enabled
|
|
73
69
|
});
|
|
74
|
-
function
|
|
75
|
-
|
|
70
|
+
function B(e = 0) {
|
|
71
|
+
u.value = null, Object.assign(i, z(), { parentId: e }), b.value = !0;
|
|
76
72
|
}
|
|
77
|
-
function
|
|
78
|
-
|
|
73
|
+
function te(e) {
|
|
74
|
+
u.value = e.id, Object.assign(i, R(e)), b.value = !0;
|
|
79
75
|
}
|
|
80
|
-
async function
|
|
76
|
+
async function ae() {
|
|
81
77
|
var e;
|
|
82
|
-
await ((e =
|
|
78
|
+
await ((e = O.value) == null ? void 0 : e.validate());
|
|
83
79
|
try {
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
} catch (
|
|
87
|
-
return C.error(
|
|
80
|
+
const t = { ...i, parentId: i.parentId ?? 0 };
|
|
81
|
+
u.value === null ? await f.add(t) : await f.update(u.value, t), C.success(l("org.saved")), await h();
|
|
82
|
+
} catch (t) {
|
|
83
|
+
return C.error(K(t)), !1;
|
|
88
84
|
}
|
|
89
85
|
}
|
|
90
|
-
const
|
|
91
|
-
function
|
|
92
|
-
|
|
86
|
+
const g = s(!1), D = s(0), L = s(""), w = s("");
|
|
87
|
+
function re(e) {
|
|
88
|
+
D.value = e.id, L.value = e.name, w.value = e.name + l("common.copySuffix"), g.value = !0;
|
|
93
89
|
}
|
|
94
|
-
async function
|
|
95
|
-
await
|
|
90
|
+
async function ne() {
|
|
91
|
+
await J(() => f.copy(D.value, { name: w.value }), l("org.copied")) && (g.value = !1, h());
|
|
96
92
|
}
|
|
97
|
-
const
|
|
98
|
-
content:
|
|
93
|
+
const ie = (e) => Q({
|
|
94
|
+
content: l("org.deleteConfirm", { name: e.name }),
|
|
99
95
|
type: "error",
|
|
100
|
-
action: () =>
|
|
101
|
-
successMsg:
|
|
102
|
-
}).then((
|
|
103
|
-
|
|
104
|
-
}),
|
|
96
|
+
action: () => f.remove(e.id),
|
|
97
|
+
successMsg: l("org.deleted")
|
|
98
|
+
}).then((t) => {
|
|
99
|
+
t && h();
|
|
100
|
+
}), S = (e) => () => d(I, { icon: e, size: 16 }), $ = [
|
|
105
101
|
// 序号与树列同固定左侧:固定列必须在最左连续,否则横向滚动时树列会压在序号列上。
|
|
106
|
-
{ type: "index", title: () =>
|
|
102
|
+
{ type: "index", title: () => l("common.rowNo"), width: 64, align: "center", fixed: "left" },
|
|
107
103
|
// 树列左对齐,展开缩进才好读;fixed 是为了横向滚动时不丢失「这是哪一行」。
|
|
108
104
|
{
|
|
109
|
-
title: () =>
|
|
105
|
+
title: () => l("org.name"),
|
|
110
106
|
key: "name",
|
|
111
107
|
// 树的缩进和展开箭头落在这一列:不指定时 Naive 取第一个没有 type 的列,正好是 64px 宽的序号列,
|
|
112
108
|
// 层级一深序号就被缩进挤出列外
|
|
@@ -115,81 +111,80 @@ const Fe = { class: "view fill-page" }, je = { class: "form-hint" }, Me = { clas
|
|
|
115
111
|
width: 260,
|
|
116
112
|
fixed: "left",
|
|
117
113
|
ellipsis: { tooltip: !0 },
|
|
118
|
-
|
|
119
|
-
search: { actions: Q.fuzzy }
|
|
114
|
+
search: { actions: G.fuzzy }
|
|
120
115
|
},
|
|
121
116
|
{
|
|
122
|
-
title: () =>
|
|
117
|
+
title: () => l("org.code"),
|
|
123
118
|
key: "code",
|
|
124
119
|
ellipsis: { tooltip: !0 },
|
|
125
120
|
render: (e) => d("span", { class: "mono muted" }, e.code),
|
|
126
|
-
search: { actions:
|
|
121
|
+
search: { actions: G.fuzzy }
|
|
127
122
|
},
|
|
128
123
|
{
|
|
129
|
-
title: () =>
|
|
124
|
+
title: () => l("org.category"),
|
|
130
125
|
key: "category",
|
|
131
126
|
width: 100,
|
|
132
|
-
render: (e) => d(
|
|
127
|
+
render: (e) => d(Ie, { typeCode: "org_category", value: e.category })
|
|
133
128
|
},
|
|
134
129
|
{
|
|
135
|
-
title: () =>
|
|
130
|
+
title: () => l("org.sort"),
|
|
136
131
|
key: "sort",
|
|
137
132
|
width: 80,
|
|
138
133
|
render: (e) => d("span", { class: "num muted" }, e.sort)
|
|
139
134
|
},
|
|
140
135
|
{
|
|
141
|
-
title: () =>
|
|
136
|
+
title: () => l("common.status"),
|
|
142
137
|
key: "enabled",
|
|
143
138
|
width: 90,
|
|
144
|
-
render: (e) => d(
|
|
139
|
+
render: (e) => d(Te, {
|
|
145
140
|
value: e.enabled,
|
|
146
|
-
disabled: !
|
|
147
|
-
request: (
|
|
141
|
+
disabled: !v.hasPerm("PUT:/api/v1/sys/org/{id}"),
|
|
142
|
+
request: (t) => f.update(e.id, { ...R(e), enabled: t }),
|
|
148
143
|
// 重拉而非往行对象上写:搜索态下的祖先行是 filterTree 的浅拷贝,写它不会回到源树(开关会弹回去)。
|
|
149
144
|
// StatusSwitch 是悲观更新(请求成功才 emit),所以这里重拉一次就是最终态,和本页其余变更的做法一致。
|
|
150
|
-
"onUpdate:value": () =>
|
|
145
|
+
"onUpdate:value": () => h()
|
|
151
146
|
})
|
|
152
147
|
},
|
|
153
148
|
// 操作收敛成「编辑 + 更多▾」:4 个操作塞 260px 会换行、行高参差,且没 fixed 时横向滚动够不着。
|
|
154
149
|
{
|
|
155
|
-
title: () =>
|
|
150
|
+
title: () => l("common.operation"),
|
|
156
151
|
key: "op",
|
|
157
152
|
width: 150,
|
|
158
153
|
fixed: "right",
|
|
159
154
|
render: (e) => {
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
(
|
|
164
|
-
|
|
155
|
+
const t = v.hasPerm("POST:/api/v1/sys/org/add"), k = v.hasPerm("POST:/api/v1/sys/org/{id}/copy"), r = v.hasPerm("DELETE:/api/v1/sys/org/{id}"), q = [
|
|
156
|
+
t ? { key: "addChild", label: l("org.addChild"), icon: S("ph:plus") } : null,
|
|
157
|
+
k ? { key: "copy", label: l("org.copy"), icon: S("ph:copy") } : null,
|
|
158
|
+
(t || k) && r ? { type: "divider", key: "divider" } : null,
|
|
159
|
+
r ? {
|
|
165
160
|
key: "delete",
|
|
166
|
-
label:
|
|
167
|
-
icon:
|
|
161
|
+
label: l("common.delete"),
|
|
162
|
+
icon: S("ph:trash"),
|
|
168
163
|
props: { style: "color: var(--err)" }
|
|
169
164
|
} : null
|
|
170
165
|
].filter(
|
|
171
166
|
(_) => _ !== null
|
|
172
167
|
);
|
|
173
|
-
return d(
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
{ size: "small", quaternary: !0, type: "primary", onClick: () =>
|
|
177
|
-
() =>
|
|
168
|
+
return d(M, { size: 2, wrapItem: !1, justify: "center" }, () => [
|
|
169
|
+
v.hasPerm("PUT:/api/v1/sys/org/{id}") ? d(
|
|
170
|
+
p,
|
|
171
|
+
{ size: "small", quaternary: !0, type: "primary", onClick: () => te(e) },
|
|
172
|
+
() => l("common.edit")
|
|
178
173
|
) : null,
|
|
179
|
-
|
|
180
|
-
|
|
174
|
+
q.length ? d(
|
|
175
|
+
ge,
|
|
181
176
|
{
|
|
182
177
|
trigger: "click",
|
|
183
|
-
options:
|
|
178
|
+
options: q,
|
|
184
179
|
onSelect: (_) => {
|
|
185
|
-
_ === "addChild" ?
|
|
180
|
+
_ === "addChild" ? B(e.id) : _ === "copy" ? re(e) : ie(e);
|
|
186
181
|
}
|
|
187
182
|
},
|
|
188
183
|
() => d(
|
|
189
|
-
|
|
184
|
+
p,
|
|
190
185
|
{ size: "small", quaternary: !0, type: "primary", iconPlacement: "right" },
|
|
191
186
|
{
|
|
192
|
-
default: () =>
|
|
187
|
+
default: () => l("common.more"),
|
|
193
188
|
icon: () => d(I, { icon: "ph:caret-down", size: 12 })
|
|
194
189
|
}
|
|
195
190
|
)
|
|
@@ -198,164 +193,163 @@ const Fe = { class: "view fill-page" }, je = { class: "form-hint" }, Me = { clas
|
|
|
198
193
|
}
|
|
199
194
|
}
|
|
200
195
|
];
|
|
201
|
-
return
|
|
202
|
-
const
|
|
203
|
-
return
|
|
204
|
-
|
|
196
|
+
return Pe($), (e, t) => {
|
|
197
|
+
const k = ce("auth");
|
|
198
|
+
return F(), me("div", Re, [
|
|
199
|
+
a(o(ke), {
|
|
205
200
|
ref_key: "tableRef",
|
|
206
|
-
ref:
|
|
207
|
-
columns:
|
|
208
|
-
fetcher:
|
|
201
|
+
ref: A,
|
|
202
|
+
columns: $,
|
|
203
|
+
fetcher: Z,
|
|
209
204
|
loading: N.value,
|
|
210
205
|
"row-key": "id",
|
|
211
206
|
pagination: !1,
|
|
212
207
|
search: { container: "table" },
|
|
213
|
-
toolbar: o(
|
|
208
|
+
toolbar: o(Ue),
|
|
214
209
|
"fill-height": "",
|
|
215
|
-
"min-row-height": o(
|
|
210
|
+
"min-row-height": o(Ae),
|
|
216
211
|
"card-on-narrow": "",
|
|
217
212
|
"storage-key": "sys-org",
|
|
218
|
-
"expanded-row-keys":
|
|
219
|
-
"onUpdate:expandedRowKeys":
|
|
220
|
-
onLoaded:
|
|
213
|
+
"expanded-row-keys": y.value,
|
|
214
|
+
"onUpdate:expandedRowKeys": t[1] || (t[1] = (r) => y.value = r),
|
|
215
|
+
onLoaded: ee
|
|
221
216
|
}, {
|
|
222
217
|
"toolbar-right": n(() => [
|
|
223
|
-
|
|
224
|
-
key: 0,
|
|
218
|
+
a(o(p), {
|
|
225
219
|
secondary: "",
|
|
226
|
-
onClick:
|
|
220
|
+
onClick: oe
|
|
227
221
|
}, {
|
|
228
222
|
icon: n(() => [
|
|
229
|
-
|
|
230
|
-
icon:
|
|
223
|
+
a(I, {
|
|
224
|
+
icon: T.value ? "ph:arrows-in-line-vertical" : "ph:arrows-out-line-vertical",
|
|
231
225
|
size: 16
|
|
232
226
|
}, null, 8, ["icon"])
|
|
233
227
|
]),
|
|
234
228
|
default: n(() => [
|
|
235
|
-
x(" " +
|
|
229
|
+
x(" " + m(T.value ? o(l)("common.collapseAll") : o(l)("common.expandAll")), 1)
|
|
236
230
|
]),
|
|
237
231
|
_: 1
|
|
238
|
-
})
|
|
239
|
-
|
|
232
|
+
}),
|
|
233
|
+
pe((F(), fe(o(p), {
|
|
240
234
|
type: "primary",
|
|
241
|
-
onClick:
|
|
235
|
+
onClick: t[0] || (t[0] = (r) => B(0))
|
|
242
236
|
}, {
|
|
243
237
|
icon: n(() => [
|
|
244
|
-
|
|
238
|
+
a(I, {
|
|
245
239
|
icon: "ph:plus",
|
|
246
240
|
size: 16
|
|
247
241
|
})
|
|
248
242
|
]),
|
|
249
243
|
default: n(() => [
|
|
250
|
-
x(" " +
|
|
244
|
+
x(" " + m(o(l)("common.add")), 1)
|
|
251
245
|
]),
|
|
252
246
|
_: 1
|
|
253
247
|
})), [
|
|
254
|
-
[
|
|
248
|
+
[k, "POST:/api/v1/sys/org/add"]
|
|
255
249
|
])
|
|
256
250
|
]),
|
|
257
251
|
_: 1
|
|
258
252
|
}, 8, ["loading", "toolbar", "min-row-height", "expanded-row-keys"]),
|
|
259
|
-
|
|
260
|
-
show:
|
|
261
|
-
"onUpdate:show":
|
|
262
|
-
title:
|
|
253
|
+
a(Ce, {
|
|
254
|
+
show: b.value,
|
|
255
|
+
"onUpdate:show": t[8] || (t[8] = (r) => b.value = r),
|
|
256
|
+
title: u.value === null ? o(l)("org.addTitle") : o(l)("org.editTitle"),
|
|
263
257
|
width: 480,
|
|
264
|
-
"on-confirm":
|
|
265
|
-
"confirm-text": o(
|
|
258
|
+
"on-confirm": ae,
|
|
259
|
+
"confirm-text": o(l)("common.save")
|
|
266
260
|
}, {
|
|
267
261
|
default: n(() => [
|
|
268
|
-
|
|
262
|
+
a(o(V), {
|
|
269
263
|
ref_key: "formRef",
|
|
270
|
-
ref:
|
|
264
|
+
ref: O,
|
|
271
265
|
model: i,
|
|
272
|
-
rules:
|
|
266
|
+
rules: le,
|
|
273
267
|
"label-placement": "left",
|
|
274
268
|
"label-width": 80
|
|
275
269
|
}, {
|
|
276
270
|
default: n(() => [
|
|
277
|
-
|
|
278
|
-
label: o(
|
|
271
|
+
a(o(c), {
|
|
272
|
+
label: o(l)("org.parent")
|
|
279
273
|
}, {
|
|
280
274
|
default: n(() => [
|
|
281
|
-
|
|
275
|
+
a(Ne, {
|
|
282
276
|
value: i.parentId,
|
|
283
|
-
"onUpdate:value":
|
|
277
|
+
"onUpdate:value": t[2] || (t[2] = (r) => i.parentId = r),
|
|
284
278
|
clearable: "",
|
|
285
|
-
"exclude-subtree-of":
|
|
286
|
-
placeholder: o(
|
|
279
|
+
"exclude-subtree-of": u.value,
|
|
280
|
+
placeholder: o(l)("org.parentPlaceholder")
|
|
287
281
|
}, null, 8, ["value", "exclude-subtree-of", "placeholder"])
|
|
288
282
|
]),
|
|
289
283
|
_: 1
|
|
290
284
|
}, 8, ["label"]),
|
|
291
|
-
|
|
292
|
-
label: o(
|
|
285
|
+
a(o(c), {
|
|
286
|
+
label: o(l)("org.name"),
|
|
293
287
|
path: "name"
|
|
294
288
|
}, {
|
|
295
289
|
default: n(() => [
|
|
296
|
-
|
|
290
|
+
a(o(E), {
|
|
297
291
|
value: i.name,
|
|
298
|
-
"onUpdate:value":
|
|
299
|
-
placeholder: o(
|
|
292
|
+
"onUpdate:value": t[3] || (t[3] = (r) => i.name = r),
|
|
293
|
+
placeholder: o(l)("org.name")
|
|
300
294
|
}, null, 8, ["value", "placeholder"])
|
|
301
295
|
]),
|
|
302
296
|
_: 1
|
|
303
297
|
}, 8, ["label"]),
|
|
304
|
-
|
|
305
|
-
label: o(
|
|
306
|
-
},
|
|
298
|
+
a(o(c), {
|
|
299
|
+
label: o(l)("org.code")
|
|
300
|
+
}, ve({
|
|
307
301
|
default: n(() => [
|
|
308
|
-
|
|
302
|
+
a(o(E), {
|
|
309
303
|
value: i.code,
|
|
310
|
-
"onUpdate:value":
|
|
311
|
-
placeholder: o(
|
|
312
|
-
disabled:
|
|
304
|
+
"onUpdate:value": t[4] || (t[4] = (r) => i.code = r),
|
|
305
|
+
placeholder: o(l)("org.codePlaceholder"),
|
|
306
|
+
disabled: u.value !== null
|
|
313
307
|
}, null, 8, ["value", "placeholder", "disabled"])
|
|
314
308
|
]),
|
|
315
309
|
_: 2
|
|
316
310
|
}, [
|
|
317
|
-
|
|
311
|
+
u.value !== null ? {
|
|
318
312
|
name: "feedback",
|
|
319
313
|
fn: n(() => [
|
|
320
|
-
|
|
314
|
+
j("span", Be, m(o(l)("org.codeImmutableHint")), 1)
|
|
321
315
|
]),
|
|
322
316
|
key: "0"
|
|
323
317
|
} : void 0
|
|
324
318
|
]), 1032, ["label"]),
|
|
325
|
-
|
|
326
|
-
label: o(
|
|
319
|
+
a(o(c), {
|
|
320
|
+
label: o(l)("org.category")
|
|
327
321
|
}, {
|
|
328
322
|
default: n(() => [
|
|
329
|
-
|
|
323
|
+
a(xe, {
|
|
330
324
|
value: i.category,
|
|
331
|
-
"onUpdate:value":
|
|
325
|
+
"onUpdate:value": t[5] || (t[5] = (r) => i.category = r),
|
|
332
326
|
"type-code": "org_category",
|
|
333
327
|
clearable: "",
|
|
334
|
-
placeholder: o(
|
|
328
|
+
placeholder: o(l)("org.categoryPlaceholder")
|
|
335
329
|
}, null, 8, ["value", "placeholder"])
|
|
336
330
|
]),
|
|
337
331
|
_: 1
|
|
338
332
|
}, 8, ["label"]),
|
|
339
|
-
|
|
340
|
-
label: o(
|
|
333
|
+
a(o(c), {
|
|
334
|
+
label: o(l)("org.sort")
|
|
341
335
|
}, {
|
|
342
336
|
default: n(() => [
|
|
343
|
-
|
|
337
|
+
a(o(he), {
|
|
344
338
|
value: i.sort,
|
|
345
|
-
"onUpdate:value":
|
|
339
|
+
"onUpdate:value": t[6] || (t[6] = (r) => i.sort = r),
|
|
346
340
|
min: 0,
|
|
347
341
|
style: { width: "160px" }
|
|
348
342
|
}, null, 8, ["value"])
|
|
349
343
|
]),
|
|
350
344
|
_: 1
|
|
351
345
|
}, 8, ["label"]),
|
|
352
|
-
|
|
353
|
-
label: o(
|
|
346
|
+
a(o(c), {
|
|
347
|
+
label: o(l)("common.status")
|
|
354
348
|
}, {
|
|
355
349
|
default: n(() => [
|
|
356
|
-
|
|
350
|
+
a(o(be), {
|
|
357
351
|
value: i.enabled,
|
|
358
|
-
"onUpdate:value":
|
|
352
|
+
"onUpdate:value": t[7] || (t[7] = (r) => i.enabled = r)
|
|
359
353
|
}, null, 8, ["value"])
|
|
360
354
|
]),
|
|
361
355
|
_: 1
|
|
@@ -366,34 +360,34 @@ const Fe = { class: "view fill-page" }, je = { class: "form-hint" }, Me = { clas
|
|
|
366
360
|
]),
|
|
367
361
|
_: 1
|
|
368
362
|
}, 8, ["show", "title", "confirm-text"]),
|
|
369
|
-
|
|
370
|
-
show:
|
|
371
|
-
"onUpdate:show":
|
|
363
|
+
a(o(we), {
|
|
364
|
+
show: g.value,
|
|
365
|
+
"onUpdate:show": t[11] || (t[11] = (r) => g.value = r),
|
|
372
366
|
preset: "card",
|
|
373
|
-
title: o(
|
|
367
|
+
title: o(l)("org.copyTitle"),
|
|
374
368
|
style: { width: "min(420px, calc(100vw - 24px))" },
|
|
375
369
|
bordered: !1,
|
|
376
370
|
"mask-closable": !1,
|
|
377
371
|
segmented: { footer: "soft" }
|
|
378
372
|
}, {
|
|
379
373
|
footer: n(() => [
|
|
380
|
-
|
|
374
|
+
a(o(M), { justify: "end" }, {
|
|
381
375
|
default: n(() => [
|
|
382
|
-
|
|
376
|
+
a(o(p), {
|
|
383
377
|
secondary: "",
|
|
384
|
-
onClick:
|
|
378
|
+
onClick: t[10] || (t[10] = (r) => g.value = !1)
|
|
385
379
|
}, {
|
|
386
380
|
default: n(() => [
|
|
387
|
-
x(
|
|
381
|
+
x(m(o(l)("common.cancel")), 1)
|
|
388
382
|
]),
|
|
389
383
|
_: 1
|
|
390
384
|
}),
|
|
391
|
-
|
|
385
|
+
a(o(p), {
|
|
392
386
|
type: "primary",
|
|
393
|
-
onClick:
|
|
387
|
+
onClick: ne
|
|
394
388
|
}, {
|
|
395
389
|
default: n(() => [
|
|
396
|
-
x(
|
|
390
|
+
x(m(o(l)("common.confirm")), 1)
|
|
397
391
|
]),
|
|
398
392
|
_: 1
|
|
399
393
|
})
|
|
@@ -402,20 +396,20 @@ const Fe = { class: "view fill-page" }, je = { class: "form-hint" }, Me = { clas
|
|
|
402
396
|
})
|
|
403
397
|
]),
|
|
404
398
|
default: n(() => [
|
|
405
|
-
|
|
406
|
-
|
|
399
|
+
j("p", De, m(o(l)("org.copyConfirm", { name: L.value })), 1),
|
|
400
|
+
a(o(V), {
|
|
407
401
|
"label-placement": "top",
|
|
408
402
|
"require-mark-placement": "left"
|
|
409
403
|
}, {
|
|
410
404
|
default: n(() => [
|
|
411
|
-
|
|
412
|
-
label: o(
|
|
405
|
+
a(o(c), {
|
|
406
|
+
label: o(l)("org.copyNameLabel")
|
|
413
407
|
}, {
|
|
414
408
|
default: n(() => [
|
|
415
|
-
|
|
416
|
-
value:
|
|
417
|
-
"onUpdate:value":
|
|
418
|
-
placeholder: o(
|
|
409
|
+
a(o(E), {
|
|
410
|
+
value: w.value,
|
|
411
|
+
"onUpdate:value": t[9] || (t[9] = (r) => w.value = r),
|
|
412
|
+
placeholder: o(l)("org.copyNameLabel")
|
|
419
413
|
}, null, 8, ["value", "placeholder"])
|
|
420
414
|
]),
|
|
421
415
|
_: 1
|
|
@@ -431,6 +425,6 @@ const Fe = { class: "view fill-page" }, je = { class: "form-hint" }, Me = { clas
|
|
|
431
425
|
}
|
|
432
426
|
});
|
|
433
427
|
export {
|
|
434
|
-
|
|
428
|
+
ro as default
|
|
435
429
|
};
|
|
436
430
|
//# sourceMappingURL=index2.vue.js.map
|