ss-component-new 1.3.696 → 1.3.697
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/config.js +1 -1
- package/dist/{index-BHtNKL1L.js → index-BKK_dL6t.js} +1 -1
- package/dist/{index-ChNfRlIP.js → index-BKoAuSBh.js} +223 -18
- package/dist/index-D7JA6c9V.js +53058 -0
- package/dist/index-Dh-XsS5U.js +1044 -0
- package/dist/index-DpYqhPhA.js +182 -0
- package/dist/index-Q71ALCnS.js +213 -0
- package/dist/index-z0_YrIG2.js +50 -0
- package/dist/menu-BwJj321q.js +5217 -0
- package/dist/origin-eVVoOCRz.js +11430 -0
- package/dist/ss-component.css +2 -8
- package/dist/ss-component.js +28 -64
- package/dist/ss-component2.js +15 -75
- package/dist/ss-component3.js +1 -1
- package/package.json +8 -6
- package/public/config.js +1 -1
- package/dist/JSEncrypt-B36c1iN5.js +0 -1983
- package/dist/MTLLoader-DzQM5Czw.js +0 -657
- package/dist/URDFLoader-CPXooEPU.js +0 -2299
- package/dist/animationData-DOIhMG9C.js +0 -83
- package/dist/array-CLHtElDn.js +0 -1045
- package/dist/clone-Dp_gc9ll.js +0 -8
- package/dist/eleIcon-qStmsM1q.js +0 -29
- package/dist/fileUtil-UOt_otFo.js +0 -20
- package/dist/iconfont-DmEA4YvX.js +0 -1018
- package/dist/icons/svg/functionList.svg +0 -1
- package/dist/icons/svg/method.svg +0 -1
- package/dist/index-11kpzK0A.js +0 -209
- package/dist/index-1izAkRXf.js +0 -572
- package/dist/index-B0H3C7WG.js +0 -103
- package/dist/index-B25qk008.js +0 -470
- package/dist/index-BJLCuYEK.js +0 -84
- package/dist/index-BbyrFzEO.js +0 -93
- package/dist/index-BooO2Bml.js +0 -78
- package/dist/index-Bw3sTXPI.js +0 -8993
- package/dist/index-C7sOKXGv.js +0 -48
- package/dist/index-C8Ap8ZMv.js +0 -873
- package/dist/index-CGi0g-VN.js +0 -627
- package/dist/index-CKem1G5u.js +0 -63004
- package/dist/index-CV_jQDcg.js +0 -9
- package/dist/index-CWOXvFfD.js +0 -44
- package/dist/index-CmdNsQMw.js +0 -93
- package/dist/index-CydXQbtX.js +0 -622
- package/dist/index-D9XVxZlg.js +0 -411
- package/dist/index-DAJxL40d.js +0 -55
- package/dist/index-DBsEVMiM.js +0 -201
- package/dist/index-DG4hoOWt.js +0 -665
- package/dist/index-DH6bfbMC.js +0 -119
- package/dist/index-DUbk5m5P.js +0 -99
- package/dist/index-DashTaLW.js +0 -30
- package/dist/index-DbPvKW8Q.js +0 -98
- package/dist/index-Ds6m_4JJ.js +0 -28500
- package/dist/index-DupTchhl.js +0 -1000
- package/dist/index-DyCq_odP.js +0 -331
- package/dist/index-N6DWelhz.js +0 -20549
- package/dist/index-UB_oCdlo.js +0 -62
- package/dist/index-YjBTGOkO.js +0 -61
- package/dist/index-_H190mm4.js +0 -83
- package/dist/index-jbOjjV0j.js +0 -447
- package/dist/index-mBAa1AXl.js +0 -107
- package/dist/index-qSuG4S8O.js +0 -25297
- package/dist/index-rlStojTL.js +0 -52
- package/dist/index-uF-ibwG0.js +0 -9
- package/dist/index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-Mr9QL-WU.js +0 -137877
- package/dist/isString-0ZglyOfu.js +0 -8
- package/dist/localIcon-D5UoFBU5.js +0 -76
- package/dist/main-Cs0nFQEQ.js +0 -502
- package/dist/menuIndex-BB0uVPRX.js +0 -159
- package/dist/request-1RPa2bBn.js +0 -9048
- package/dist/threeModel-BJjbCDpj.js +0 -1108
- package/dist/threePreview-Bfo24URW.js +0 -2259
- package/dist/threeSceneView-CHiKXhnX.js +0 -1290
- package/dist/threeSceneViewForCPMPIP-KLFT3AYb.js +0 -539
- package/dist/threeTrackPathView-DOy0uuLZ.js +0 -620
- package/dist/threeViewerHost-D1mrtsv3.js +0 -233
- package/dist/urdfTree-C6mx4T9t.js +0 -254
- package/dist/workpieceTreePanel-CnO3zz7U.js +0 -559
- package/public/icons/svg/functionList.svg +0 -1
- package/public/icons/svg/method.svg +0 -1
- /package/dist/icons/svg/{tableClose.svg → table-close.svg} +0 -0
- /package/dist/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
- /package/dist/icons/svg/{Update.svg → update.svg} +0 -0
- /package/public/icons/svg/{tableClose.svg → table-close.svg} +0 -0
- /package/public/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
- /package/public/icons/svg/{Update.svg → update.svg} +0 -0
package/dist/index-CydXQbtX.js
DELETED
|
@@ -1,622 +0,0 @@
|
|
|
1
|
-
import { ref as v, computed as Ce, defineComponent as Ve, onMounted as Ae, reactive as ze, resolveComponent as u, createElementBlock as P, openBlock as _, createElementVNode as s, createVNode as o, unref as c, withCtx as i, createTextVNode as N, toDisplayString as le, Fragment as oe, renderList as se, withModifiers as xe, createBlock as re, createCommentVNode as qe } from "vue";
|
|
2
|
-
import { g as Ue, d as Ge, u as Oe, c as Me, a as Re, b as Fe } from "./index-BooO2Bml.js";
|
|
3
|
-
import { B as Qe, E as $e, K as we, c as Ye, r as je, u as Ke, p as Ze } from "./index-Bw3sTXPI.js";
|
|
4
|
-
import { _ as he } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
5
|
-
import { s as He } from "./index-11kpzK0A.js";
|
|
6
|
-
import { _ as Je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
const G = {
|
|
8
|
-
COMPANY: {
|
|
9
|
-
label: "公司",
|
|
10
|
-
value: "company"
|
|
11
|
-
},
|
|
12
|
-
DEPARTMENT: {
|
|
13
|
-
label: "部门",
|
|
14
|
-
value: "department"
|
|
15
|
-
},
|
|
16
|
-
ORGANIZATION: {
|
|
17
|
-
label: "组织",
|
|
18
|
-
value: "organization"
|
|
19
|
-
}
|
|
20
|
-
}, We = Object.values(G), Xe = [
|
|
21
|
-
{
|
|
22
|
-
label: "编辑",
|
|
23
|
-
value: "edit"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
label: "删除",
|
|
27
|
-
value: "delete"
|
|
28
|
-
}
|
|
29
|
-
], f = {
|
|
30
|
-
ENABLE: {
|
|
31
|
-
value: "enable",
|
|
32
|
-
label: "启用",
|
|
33
|
-
tag: "primary"
|
|
34
|
-
},
|
|
35
|
-
DISABLED: {
|
|
36
|
-
value: "disabled",
|
|
37
|
-
label: "禁用",
|
|
38
|
-
tag: "info"
|
|
39
|
-
}
|
|
40
|
-
}, et = {
|
|
41
|
-
EDITABLE: {
|
|
42
|
-
value: "editable"
|
|
43
|
-
}
|
|
44
|
-
}, tt = () => {
|
|
45
|
-
const { platId: b, userId: O, isSuperAdmin: d } = Qe(), k = (e) => {
|
|
46
|
-
const t = e.toUpperCase(), n = f == null ? void 0 : f[t];
|
|
47
|
-
return (n == null ? void 0 : n.label) || e;
|
|
48
|
-
}, M = (e) => {
|
|
49
|
-
const t = e.toUpperCase(), n = f == null ? void 0 : f[t];
|
|
50
|
-
return (n == null ? void 0 : n.tag) || "info";
|
|
51
|
-
}, T = v({}), R = Ce(() => {
|
|
52
|
-
var t;
|
|
53
|
-
return d.value ? !0 : ((t = T.value) == null ? void 0 : t.status) === et.EDITABLE.value;
|
|
54
|
-
}), h = async () => {
|
|
55
|
-
var m, w;
|
|
56
|
-
const t = {
|
|
57
|
-
pageName: "系统管理/部门管理",
|
|
58
|
-
platId: b.value,
|
|
59
|
-
userId: O.value
|
|
60
|
-
}, n = await je(t);
|
|
61
|
-
return (w = (m = n == null ? void 0 : n.data) == null ? void 0 : m.result) == null ? void 0 : w[0];
|
|
62
|
-
}, F = async () => {
|
|
63
|
-
if (!d.value)
|
|
64
|
-
return T.value = await h(), T;
|
|
65
|
-
}, S = () => ({
|
|
66
|
-
name: ""
|
|
67
|
-
}), L = v(S()), B = () => {
|
|
68
|
-
L.value = S();
|
|
69
|
-
}, g = v({
|
|
70
|
-
pageNum: 1,
|
|
71
|
-
pageSize: 10,
|
|
72
|
-
total: 0,
|
|
73
|
-
pageSizes: [5, 10, 20, 50, 100]
|
|
74
|
-
}), Q = (e) => {
|
|
75
|
-
g.value.pageNum = e;
|
|
76
|
-
}, V = (e) => {
|
|
77
|
-
g.value.pageSize = e;
|
|
78
|
-
}, A = (e) => ({
|
|
79
|
-
platId: b.value,
|
|
80
|
-
department_id: e,
|
|
81
|
-
pageNum: g.value.pageNum,
|
|
82
|
-
pageSize: g.value.pageSize,
|
|
83
|
-
filter: {
|
|
84
|
-
...L.value
|
|
85
|
-
}
|
|
86
|
-
}), $ = async (e) => {
|
|
87
|
-
var n;
|
|
88
|
-
const t = await Fe(e);
|
|
89
|
-
return (n = t == null ? void 0 : t.data) == null ? void 0 : n.result;
|
|
90
|
-
}, Y = async (e) => {
|
|
91
|
-
const t = A(e), n = await $(t), { total: m } = n || {};
|
|
92
|
-
return g.value.total = m, n || {};
|
|
93
|
-
}, E = v([]), j = async (e) => {
|
|
94
|
-
var n;
|
|
95
|
-
const t = await Re(e);
|
|
96
|
-
return ((n = t == null ? void 0 : t.data) == null ? void 0 : n.result) || [];
|
|
97
|
-
}, K = async () => {
|
|
98
|
-
const e = {
|
|
99
|
-
platId: b.value
|
|
100
|
-
}, t = await j(e);
|
|
101
|
-
E.value = t;
|
|
102
|
-
}, C = (e) => {
|
|
103
|
-
const t = we(Date.now()), n = Ye(e);
|
|
104
|
-
return n.update_time = t, n;
|
|
105
|
-
}, Z = (e) => {
|
|
106
|
-
const t = we(Date.now());
|
|
107
|
-
let n = {
|
|
108
|
-
name: "",
|
|
109
|
-
type: G.COMPANY.value,
|
|
110
|
-
parent_id: "",
|
|
111
|
-
status: f.ENABLE.value,
|
|
112
|
-
create_time: t,
|
|
113
|
-
update_time: t
|
|
114
|
-
};
|
|
115
|
-
if (e) {
|
|
116
|
-
const m = C(e);
|
|
117
|
-
n = {
|
|
118
|
-
...n,
|
|
119
|
-
...m
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
return n;
|
|
123
|
-
}, z = (e) => {
|
|
124
|
-
const t = [e];
|
|
125
|
-
return {
|
|
126
|
-
platId: b.value,
|
|
127
|
-
changeDepartmentData: t
|
|
128
|
-
};
|
|
129
|
-
}, x = async (e) => {
|
|
130
|
-
delete e.department_id;
|
|
131
|
-
const t = z(e);
|
|
132
|
-
await Me(t);
|
|
133
|
-
}, H = async (e) => {
|
|
134
|
-
await x(e);
|
|
135
|
-
}, y = async (e) => {
|
|
136
|
-
const t = z(e);
|
|
137
|
-
await Oe(t);
|
|
138
|
-
}, J = async (e) => {
|
|
139
|
-
await y(e);
|
|
140
|
-
}, W = async (e) => {
|
|
141
|
-
const { department_id: t } = e, n = {
|
|
142
|
-
platId: b.value,
|
|
143
|
-
department_id: [t]
|
|
144
|
-
};
|
|
145
|
-
await Ge(n);
|
|
146
|
-
}, X = async (e) => {
|
|
147
|
-
await $e.confirm("是否确认要删除", "", {
|
|
148
|
-
showClose: !1,
|
|
149
|
-
confirmButtonText: "确认",
|
|
150
|
-
cancelButtonText: "取消",
|
|
151
|
-
type: "warning",
|
|
152
|
-
modalClass: "delete-department-message-modal",
|
|
153
|
-
confirmButtonClass: "delete-department-confirm"
|
|
154
|
-
}), await W(e);
|
|
155
|
-
}, D = async (e) => {
|
|
156
|
-
var n;
|
|
157
|
-
const t = await Ue(e);
|
|
158
|
-
return ((n = t == null ? void 0 : t.data) == null ? void 0 : n.result) || {};
|
|
159
|
-
};
|
|
160
|
-
return {
|
|
161
|
-
queryInfo: L,
|
|
162
|
-
resetQuery: B,
|
|
163
|
-
pageInfo: g,
|
|
164
|
-
setPageNum: Q,
|
|
165
|
-
setPageSize: V,
|
|
166
|
-
convertPageInfoToRequestData: A,
|
|
167
|
-
initGetByPage: Y,
|
|
168
|
-
departmentTree: E,
|
|
169
|
-
initDepartmentTree: K,
|
|
170
|
-
hasDepartmentEditAuth: R,
|
|
171
|
-
initDepartmentConfig: F,
|
|
172
|
-
initDepartmentItem: Z,
|
|
173
|
-
initCreate: H,
|
|
174
|
-
initUpdate: J,
|
|
175
|
-
initDelete: X,
|
|
176
|
-
initGetParentByType: async (e) => {
|
|
177
|
-
const t = {
|
|
178
|
-
platId: b.value,
|
|
179
|
-
type: e
|
|
180
|
-
}, n = await D(t);
|
|
181
|
-
return (n == null ? void 0 : n.departmentData) || [];
|
|
182
|
-
},
|
|
183
|
-
getTypeLabel: (e) => {
|
|
184
|
-
var w;
|
|
185
|
-
const t = e == null ? void 0 : e.type, n = t == null ? void 0 : t.toUpperCase();
|
|
186
|
-
return ((w = G[n]) == null ? void 0 : w.label) || "";
|
|
187
|
-
},
|
|
188
|
-
isCompany: (e) => e === G.COMPANY.value,
|
|
189
|
-
getStatusLabelByValue: k,
|
|
190
|
-
getStatusTagByValue: M
|
|
191
|
-
};
|
|
192
|
-
}, at = { class: "department-management" }, nt = { class: "body" }, lt = { class: "body-left" }, ot = { class: "body-right" }, st = { class: "common-wrapper" }, rt = { class: "query-wrapper" }, it = { class: "operate-wrapper" }, dt = { class: "table-wrapper" }, pt = { class: "operate-list" }, ut = ["onClick"], ct = { class: "pagination-wrapper" }, mt = { class: "department-management-wrapper" }, gt = { class: "department-management-body" }, ft = { class: "department-form-wrapper" }, vt = { class: "edit-footer" }, yt = { class: "footer-right" }, _t = /* @__PURE__ */ Ve({
|
|
193
|
-
__name: "index",
|
|
194
|
-
setup(b) {
|
|
195
|
-
const O = {
|
|
196
|
-
value: "department_id",
|
|
197
|
-
label: "name",
|
|
198
|
-
children: "children"
|
|
199
|
-
}, d = Ke(Ze), {
|
|
200
|
-
queryInfo: k,
|
|
201
|
-
resetQuery: M,
|
|
202
|
-
departmentTree: T,
|
|
203
|
-
initDepartmentTree: R,
|
|
204
|
-
pageInfo: h,
|
|
205
|
-
setPageNum: F,
|
|
206
|
-
setPageSize: S,
|
|
207
|
-
initGetByPage: L,
|
|
208
|
-
hasDepartmentEditAuth: B,
|
|
209
|
-
initDepartmentConfig: ie,
|
|
210
|
-
initDepartmentItem: g,
|
|
211
|
-
initCreate: Q,
|
|
212
|
-
initUpdate: V,
|
|
213
|
-
initDelete: A,
|
|
214
|
-
initGetParentByType: $,
|
|
215
|
-
getTypeLabel: Y,
|
|
216
|
-
isCompany: E,
|
|
217
|
-
getStatusLabelByValue: j,
|
|
218
|
-
getStatusTagByValue: K
|
|
219
|
-
} = tt(), C = v(), Z = Ce(() => {
|
|
220
|
-
var l;
|
|
221
|
-
return (l = C.value) == null ? void 0 : l.department_id;
|
|
222
|
-
}), z = (l) => {
|
|
223
|
-
C.value = l, d.setImportLoading(!0), y().finally(() => {
|
|
224
|
-
d.setImportLoading(!1);
|
|
225
|
-
});
|
|
226
|
-
}, x = v([]), H = async () => {
|
|
227
|
-
var p;
|
|
228
|
-
const l = await L((p = C.value) == null ? void 0 : p.department_id), { departmentData: a = [] } = l;
|
|
229
|
-
return a;
|
|
230
|
-
}, y = async () => {
|
|
231
|
-
x.value = await H();
|
|
232
|
-
}, J = (l) => {
|
|
233
|
-
F(l), d.setImportLoading(!0), y().finally(() => {
|
|
234
|
-
d.setImportLoading(!1);
|
|
235
|
-
});
|
|
236
|
-
}, W = (l) => {
|
|
237
|
-
S(l), d.setImportLoading(!0), y().finally(() => {
|
|
238
|
-
d.setImportLoading(!1);
|
|
239
|
-
});
|
|
240
|
-
}, X = async () => {
|
|
241
|
-
C.value = void 0, M(), d.setImportLoading(!0), await y().finally(() => {
|
|
242
|
-
d.setImportLoading(!1);
|
|
243
|
-
});
|
|
244
|
-
}, D = async () => {
|
|
245
|
-
await ie(), await R(), await y();
|
|
246
|
-
};
|
|
247
|
-
Ae(async () => {
|
|
248
|
-
d.setImportLoading(!0), await D().finally(() => {
|
|
249
|
-
d.setImportLoading(!1);
|
|
250
|
-
});
|
|
251
|
-
});
|
|
252
|
-
const de = async (l, a) => {
|
|
253
|
-
if (!B.value)
|
|
254
|
-
return;
|
|
255
|
-
const { value: p } = l, I = a.row;
|
|
256
|
-
if (p === "edit") {
|
|
257
|
-
d.setImportLoading(!0), await n(I.type).finally(() => {
|
|
258
|
-
d.setImportLoading(!1);
|
|
259
|
-
}), ce(I);
|
|
260
|
-
return;
|
|
261
|
-
}
|
|
262
|
-
if (p === "delete") {
|
|
263
|
-
d.setImportLoading(!0), await Le(I).finally(() => {
|
|
264
|
-
d.setImportLoading(!1);
|
|
265
|
-
});
|
|
266
|
-
return;
|
|
267
|
-
}
|
|
268
|
-
}, ee = v(), pe = ze({
|
|
269
|
-
name: [
|
|
270
|
-
{ required: !0, message: "请输入部门名称", trigger: "blur" }
|
|
271
|
-
],
|
|
272
|
-
type: [
|
|
273
|
-
{ required: !0, message: "请选择部门分类", trigger: "change" }
|
|
274
|
-
],
|
|
275
|
-
parent_id: [
|
|
276
|
-
{
|
|
277
|
-
validator: (l, a, p) => {
|
|
278
|
-
e.value.type && !E(e.value.type) && !a ? p(new Error("请选择上级部门")) : p();
|
|
279
|
-
},
|
|
280
|
-
trigger: "change"
|
|
281
|
-
}
|
|
282
|
-
]
|
|
283
|
-
}), e = v(g()), t = v([]), n = async (l) => {
|
|
284
|
-
e.value.parent_id = "";
|
|
285
|
-
let a = await $(l);
|
|
286
|
-
e.value.department_id && (a = a.filter((p) => p.department_id !== e.value.department_id)), t.value = a;
|
|
287
|
-
}, m = v(!1), w = () => {
|
|
288
|
-
m.value = !0;
|
|
289
|
-
}, ue = () => {
|
|
290
|
-
m.value = !1;
|
|
291
|
-
}, ce = async (l) => {
|
|
292
|
-
B.value && (e.value = g(l), w());
|
|
293
|
-
}, me = () => {
|
|
294
|
-
e.value = g(), ue();
|
|
295
|
-
}, Ie = async () => {
|
|
296
|
-
await Q(e.value), await D();
|
|
297
|
-
}, Te = async () => {
|
|
298
|
-
await V(e.value), await D();
|
|
299
|
-
}, Le = async (l) => {
|
|
300
|
-
await A(l), await D();
|
|
301
|
-
}, Be = async () => {
|
|
302
|
-
var a, p;
|
|
303
|
-
await ((p = (a = ee.value) == null ? void 0 : a.validate) == null ? void 0 : p.call(a));
|
|
304
|
-
const { department_id: l } = e.value;
|
|
305
|
-
d.setImportLoading(!0), l ? await Te().finally(() => {
|
|
306
|
-
d.setImportLoading(!1);
|
|
307
|
-
}) : await Ie().finally(() => {
|
|
308
|
-
d.setImportLoading(!1);
|
|
309
|
-
}), me();
|
|
310
|
-
}, Ee = async (l) => {
|
|
311
|
-
if (!B.value)
|
|
312
|
-
return;
|
|
313
|
-
const { status: a } = l;
|
|
314
|
-
f.ENABLE.value === a ? l.status = f.DISABLED.value : l.status = f.ENABLE.value, await V(l), await D();
|
|
315
|
-
};
|
|
316
|
-
return (l, a) => {
|
|
317
|
-
var ye, _e, be, De;
|
|
318
|
-
const p = u("el-tree"), I = u("el-input"), te = u("el-button"), q = u("el-table-column"), Pe = u("el-tag"), Ne = u("el-table"), ke = u("el-pagination"), ae = u("el-form-item"), ne = u("el-col"), ge = u("el-option"), fe = u("el-select"), ve = u("el-row"), Se = u("el-form");
|
|
319
|
-
return _(), P("div", at, [
|
|
320
|
-
a[11] || (a[11] = s("div", { class: "header" }, [
|
|
321
|
-
s("div", { class: "header-left" }),
|
|
322
|
-
s("div", { class: "header-right" })
|
|
323
|
-
], -1)),
|
|
324
|
-
s("div", nt, [
|
|
325
|
-
s("div", lt, [
|
|
326
|
-
o(p, {
|
|
327
|
-
ref: "treeRef",
|
|
328
|
-
class: "department-tree",
|
|
329
|
-
data: c(T),
|
|
330
|
-
props: O,
|
|
331
|
-
"node-key": "department_id",
|
|
332
|
-
"default-expand-all": "",
|
|
333
|
-
"expand-on-click-node": !1,
|
|
334
|
-
"highlight-current": "",
|
|
335
|
-
"current-node-key": Z.value,
|
|
336
|
-
onNodeClick: z
|
|
337
|
-
}, null, 8, ["data", "current-node-key"])
|
|
338
|
-
]),
|
|
339
|
-
s("div", ot, [
|
|
340
|
-
s("div", st, [
|
|
341
|
-
s("div", rt, [
|
|
342
|
-
o(I, {
|
|
343
|
-
modelValue: c(k).name,
|
|
344
|
-
"onUpdate:modelValue": a[0] || (a[0] = (r) => c(k).name = r),
|
|
345
|
-
style: { width: "240px" },
|
|
346
|
-
placeholder: "请输入名称"
|
|
347
|
-
}, null, 8, ["modelValue"]),
|
|
348
|
-
o(te, {
|
|
349
|
-
type: "primary",
|
|
350
|
-
onClick: y
|
|
351
|
-
}, {
|
|
352
|
-
default: i(() => a[5] || (a[5] = [
|
|
353
|
-
N("查询")
|
|
354
|
-
])),
|
|
355
|
-
_: 1,
|
|
356
|
-
__: [5]
|
|
357
|
-
}),
|
|
358
|
-
o(te, {
|
|
359
|
-
type: "primary",
|
|
360
|
-
plain: "",
|
|
361
|
-
onClick: X
|
|
362
|
-
}, {
|
|
363
|
-
default: i(() => a[6] || (a[6] = [
|
|
364
|
-
N("重置")
|
|
365
|
-
])),
|
|
366
|
-
_: 1,
|
|
367
|
-
__: [6]
|
|
368
|
-
})
|
|
369
|
-
]),
|
|
370
|
-
s("div", it, [
|
|
371
|
-
o(te, {
|
|
372
|
-
type: "primary",
|
|
373
|
-
onClick: a[1] || (a[1] = (r) => ce())
|
|
374
|
-
}, {
|
|
375
|
-
default: i(() => a[7] || (a[7] = [
|
|
376
|
-
N("新增部门")
|
|
377
|
-
])),
|
|
378
|
-
_: 1,
|
|
379
|
-
__: [7]
|
|
380
|
-
})
|
|
381
|
-
])
|
|
382
|
-
]),
|
|
383
|
-
s("div", dt, [
|
|
384
|
-
o(Ne, {
|
|
385
|
-
class: "department-table",
|
|
386
|
-
data: x.value,
|
|
387
|
-
"empty-text": ""
|
|
388
|
-
}, {
|
|
389
|
-
default: i(() => [
|
|
390
|
-
o(q, {
|
|
391
|
-
prop: "name",
|
|
392
|
-
label: "名称",
|
|
393
|
-
align: "center"
|
|
394
|
-
}),
|
|
395
|
-
o(q, {
|
|
396
|
-
prop: "type",
|
|
397
|
-
label: "分类",
|
|
398
|
-
align: "center"
|
|
399
|
-
}, {
|
|
400
|
-
default: i((r) => [
|
|
401
|
-
N(le(c(Y)(r.row)), 1)
|
|
402
|
-
]),
|
|
403
|
-
_: 1
|
|
404
|
-
}),
|
|
405
|
-
o(q, {
|
|
406
|
-
prop: "status",
|
|
407
|
-
label: "状态",
|
|
408
|
-
align: "center"
|
|
409
|
-
}, {
|
|
410
|
-
default: i((r) => [
|
|
411
|
-
o(Pe, {
|
|
412
|
-
class: "status-tag",
|
|
413
|
-
type: c(K)(r.row.status),
|
|
414
|
-
title: "点击切换",
|
|
415
|
-
onClick: (U) => Ee(r.row)
|
|
416
|
-
}, {
|
|
417
|
-
default: i(() => [
|
|
418
|
-
N(le(c(j)(r.row.status)), 1)
|
|
419
|
-
]),
|
|
420
|
-
_: 2
|
|
421
|
-
}, 1032, ["type", "onClick"])
|
|
422
|
-
]),
|
|
423
|
-
_: 1
|
|
424
|
-
}),
|
|
425
|
-
o(q, {
|
|
426
|
-
label: "操作",
|
|
427
|
-
align: "center"
|
|
428
|
-
}, {
|
|
429
|
-
default: i((r) => [
|
|
430
|
-
s("div", pt, [
|
|
431
|
-
(_(!0), P(oe, null, se(c(Xe), (U) => (_(), P("div", {
|
|
432
|
-
class: "operate-item",
|
|
433
|
-
key: U.value,
|
|
434
|
-
onClick: xe((bt) => de(U, r), ["stop"])
|
|
435
|
-
}, le(U.label), 9, ut))), 128))
|
|
436
|
-
])
|
|
437
|
-
]),
|
|
438
|
-
_: 1
|
|
439
|
-
})
|
|
440
|
-
]),
|
|
441
|
-
_: 1
|
|
442
|
-
}, 8, ["data"]),
|
|
443
|
-
s("div", ct, [
|
|
444
|
-
a[8] || (a[8] = s("div", null, null, -1)),
|
|
445
|
-
o(ke, {
|
|
446
|
-
onSizeChange: W,
|
|
447
|
-
onCurrentChange: J,
|
|
448
|
-
"current-page": (ye = c(h)) == null ? void 0 : ye.pageNum,
|
|
449
|
-
"page-sizes": (_e = c(h)) == null ? void 0 : _e.pageSizes,
|
|
450
|
-
"page-size": ((be = c(h)) == null ? void 0 : be.pageSize) ?? 10,
|
|
451
|
-
layout: "total, sizes, prev, pager, next, jumper",
|
|
452
|
-
total: ((De = c(h)) == null ? void 0 : De.total) ?? 0
|
|
453
|
-
}, null, 8, ["current-page", "page-sizes", "page-size", "total"])
|
|
454
|
-
])
|
|
455
|
-
])
|
|
456
|
-
])
|
|
457
|
-
]),
|
|
458
|
-
a[12] || (a[12] = s("div", { class: "footer" }, [
|
|
459
|
-
s("div", { class: "footer-left" }),
|
|
460
|
-
s("div", { class: "footer-right" })
|
|
461
|
-
], -1)),
|
|
462
|
-
o(He, {
|
|
463
|
-
class: "department-edit-dialog",
|
|
464
|
-
visible: m.value,
|
|
465
|
-
title: "部门信息",
|
|
466
|
-
onBeforeDestroy: ue,
|
|
467
|
-
showClose: !0,
|
|
468
|
-
closeOnClickModal: !1,
|
|
469
|
-
closeOnPressEscape: !1,
|
|
470
|
-
modalClass: "department-edit-modal",
|
|
471
|
-
alignCenter: !0,
|
|
472
|
-
appendToBody: !1
|
|
473
|
-
}, {
|
|
474
|
-
default: i(() => [
|
|
475
|
-
s("div", mt, [
|
|
476
|
-
a[9] || (a[9] = s("div", { class: "department-management-header" }, [
|
|
477
|
-
s("div", { class: "header-left" }),
|
|
478
|
-
s("div", { class: "header-right" })
|
|
479
|
-
], -1)),
|
|
480
|
-
s("div", gt, [
|
|
481
|
-
s("div", ft, [
|
|
482
|
-
o(Se, {
|
|
483
|
-
class: "department-edit-form",
|
|
484
|
-
ref_key: "departmentFormRef",
|
|
485
|
-
ref: ee,
|
|
486
|
-
model: e.value,
|
|
487
|
-
rules: pe
|
|
488
|
-
}, {
|
|
489
|
-
default: i(() => [
|
|
490
|
-
o(ve, { gutter: 20 }, {
|
|
491
|
-
default: i(() => [
|
|
492
|
-
o(ne, { span: 12 }, {
|
|
493
|
-
default: i(() => [
|
|
494
|
-
o(ae, {
|
|
495
|
-
prop: "name",
|
|
496
|
-
label: "部门名称",
|
|
497
|
-
"label-position": "top"
|
|
498
|
-
}, {
|
|
499
|
-
default: i(() => [
|
|
500
|
-
o(I, {
|
|
501
|
-
modelValue: e.value.name,
|
|
502
|
-
"onUpdate:modelValue": a[2] || (a[2] = (r) => e.value.name = r),
|
|
503
|
-
"aria-label": "部门名称",
|
|
504
|
-
placeholder: "部门名称"
|
|
505
|
-
}, null, 8, ["modelValue"])
|
|
506
|
-
]),
|
|
507
|
-
_: 1
|
|
508
|
-
})
|
|
509
|
-
]),
|
|
510
|
-
_: 1
|
|
511
|
-
}),
|
|
512
|
-
o(ne, { span: 12 }, {
|
|
513
|
-
default: i(() => [
|
|
514
|
-
o(ae, {
|
|
515
|
-
prop: "type",
|
|
516
|
-
label: "部门分类",
|
|
517
|
-
"label-position": "top"
|
|
518
|
-
}, {
|
|
519
|
-
default: i(() => [
|
|
520
|
-
o(fe, {
|
|
521
|
-
modelValue: e.value.type,
|
|
522
|
-
"onUpdate:modelValue": a[3] || (a[3] = (r) => e.value.type = r),
|
|
523
|
-
"aria-label": "部门分类",
|
|
524
|
-
placeholder: "",
|
|
525
|
-
clearable: "",
|
|
526
|
-
filterable: "",
|
|
527
|
-
onChange: n
|
|
528
|
-
}, {
|
|
529
|
-
default: i(() => [
|
|
530
|
-
(_(!0), P(oe, null, se(c(We), (r) => (_(), re(ge, {
|
|
531
|
-
key: r.value,
|
|
532
|
-
label: r.label,
|
|
533
|
-
value: r.value
|
|
534
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
535
|
-
]),
|
|
536
|
-
_: 1
|
|
537
|
-
}, 8, ["modelValue"])
|
|
538
|
-
]),
|
|
539
|
-
_: 1
|
|
540
|
-
})
|
|
541
|
-
]),
|
|
542
|
-
_: 1
|
|
543
|
-
})
|
|
544
|
-
]),
|
|
545
|
-
_: 1
|
|
546
|
-
}),
|
|
547
|
-
o(ve, { gutter: 20 }, {
|
|
548
|
-
default: i(() => [
|
|
549
|
-
e.value.type && !c(E)(e.value.type) ? (_(), re(ne, {
|
|
550
|
-
key: 0,
|
|
551
|
-
span: 12
|
|
552
|
-
}, {
|
|
553
|
-
default: i(() => [
|
|
554
|
-
o(ae, {
|
|
555
|
-
prop: "parent_id",
|
|
556
|
-
label: "上级部门",
|
|
557
|
-
"label-position": "top"
|
|
558
|
-
}, {
|
|
559
|
-
default: i(() => [
|
|
560
|
-
o(fe, {
|
|
561
|
-
modelValue: e.value.parent_id,
|
|
562
|
-
"onUpdate:modelValue": a[4] || (a[4] = (r) => e.value.parent_id = r),
|
|
563
|
-
"aria-label": "上级部门",
|
|
564
|
-
placeholder: "",
|
|
565
|
-
clearable: "",
|
|
566
|
-
filterable: ""
|
|
567
|
-
}, {
|
|
568
|
-
default: i(() => [
|
|
569
|
-
(_(!0), P(oe, null, se(t.value, (r) => (_(), re(ge, {
|
|
570
|
-
key: r.department_id,
|
|
571
|
-
label: r.name,
|
|
572
|
-
value: r.department_id
|
|
573
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
574
|
-
]),
|
|
575
|
-
_: 1
|
|
576
|
-
}, 8, ["modelValue"])
|
|
577
|
-
]),
|
|
578
|
-
_: 1
|
|
579
|
-
})
|
|
580
|
-
]),
|
|
581
|
-
_: 1
|
|
582
|
-
})) : qe("", !0)
|
|
583
|
-
]),
|
|
584
|
-
_: 1
|
|
585
|
-
})
|
|
586
|
-
]),
|
|
587
|
-
_: 1
|
|
588
|
-
}, 8, ["model", "rules"])
|
|
589
|
-
])
|
|
590
|
-
])
|
|
591
|
-
])
|
|
592
|
-
]),
|
|
593
|
-
footer: i(() => [
|
|
594
|
-
s("div", vt, [
|
|
595
|
-
a[10] || (a[10] = s("div", { class: "footer-left" }, null, -1)),
|
|
596
|
-
s("div", yt, [
|
|
597
|
-
o(he, {
|
|
598
|
-
class: "cancel",
|
|
599
|
-
emptyColor: !0,
|
|
600
|
-
onClickTrigger: me,
|
|
601
|
-
modelValue: "取消",
|
|
602
|
-
buttonType: "info"
|
|
603
|
-
}),
|
|
604
|
-
o(he, {
|
|
605
|
-
class: "confirm",
|
|
606
|
-
emptyColor: !0,
|
|
607
|
-
onClickTrigger: Be,
|
|
608
|
-
modelValue: "确定",
|
|
609
|
-
buttonType: "primary"
|
|
610
|
-
})
|
|
611
|
-
])
|
|
612
|
-
])
|
|
613
|
-
]),
|
|
614
|
-
_: 1
|
|
615
|
-
}, 8, ["visible"])
|
|
616
|
-
]);
|
|
617
|
-
};
|
|
618
|
-
}
|
|
619
|
-
}), Lt = /* @__PURE__ */ Je(_t, [["__scopeId", "data-v-80962709"]]);
|
|
620
|
-
export {
|
|
621
|
-
Lt as default
|
|
622
|
-
};
|