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