ss-component-new 1.3.658 → 1.3.660
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/_plugin-vue_export-helper-BZ_eTSzz.js +16638 -0
- package/dist/config.js +1 -1
- package/dist/{index-ChNfRlIP.js → index-BofWylNB.js} +42 -18
- package/dist/index-C5rFKP3J.js +1042 -0
- package/dist/index-CLw1Ncst.js +181 -0
- package/dist/index-Cz0F1nRr.js +8236 -0
- package/dist/index-p2dYw5GI.js +49 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js → index.vue_vue_type_script_setup_true_lang-DRzriV-s.js} +2 -2
- package/dist/ss-component.css +2 -8
- package/dist/ss-component.js +214 -67
- package/dist/ss-component2.js +15 -75
- package/dist/ss-component3.js +785 -9
- package/package.json +4 -4
- package/public/config.js +1 -1
- package/dist/MTLLoader-DI0avKtj.js +0 -657
- package/dist/URDFLoader-PUxvYFDe.js +0 -2304
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/animationData-05aVUytq.js +0 -83
- package/dist/array-ZM04o_us.js +0 -1044
- package/dist/clone-Ddn1p6-1.js +0 -8
- package/dist/eleIcon-BWVKfp5t.js +0 -29
- package/dist/iconfont-BNdGaGPn.js +0 -1018
- package/dist/icons/svg/Update.svg +0 -1
- package/dist/icons/svg/functionList.svg +0 -1
- package/dist/icons/svg/uploadCopy.svg +0 -1
- package/dist/index-9ruiIh9Q.js +0 -30
- package/dist/index-BAenzdfB.js +0 -83
- package/dist/index-BDhIWgKn.js +0 -658
- package/dist/index-BFqUz4pN.js +0 -52
- package/dist/index-BIAWyba9.js +0 -2623
- package/dist/index-BKJ5SfU0.js +0 -98
- package/dist/index-BMr09Ruf.js +0 -107
- package/dist/index-BOGJMjxF.js +0 -117
- package/dist/index-BP1mKUQP.js +0 -627
- package/dist/index-BczRQX8N.js +0 -407
- package/dist/index-BnrvtCYj.js +0 -55
- package/dist/index-Bpr501oZ.js +0 -78
- package/dist/index-Bs7vFXNW.js +0 -93
- package/dist/index-BvbZiTVB.js +0 -342
- package/dist/index-Bvvz41NY.js +0 -44
- package/dist/index-C2YKgxwc.js +0 -61990
- package/dist/index-C9DBY1gg.js +0 -103
- package/dist/index-CFFbhR3G.js +0 -996
- package/dist/index-COr2mcbl.js +0 -48
- package/dist/index-CV_jQDcg.js +0 -9
- package/dist/index-CXe4q28L.js +0 -447
- package/dist/index-CsxH-GEh.js +0 -24847
- package/dist/index-D-5v1Jx7.js +0 -93
- package/dist/index-D4LcEpQ7.js +0 -619
- package/dist/index-DGObzWyL.js +0 -8984
- package/dist/index-DJ59jXR0.js +0 -28483
- package/dist/index-DJrzqi4-.js +0 -209
- package/dist/index-D_kI6aHR.js +0 -98
- package/dist/index-Ddhx18T9.js +0 -864
- package/dist/index-Dr9Wt5nC.js +0 -84
- package/dist/index-Dwt0Wlg_.js +0 -201
- package/dist/index-EGwObkob.js +0 -468
- package/dist/index-WPJbEuld.js +0 -62
- package/dist/index-YVR3acYT.js +0 -61
- package/dist/index-dD-mKgue.js +0 -27
- package/dist/index-lHjuVdOp.js +0 -11773
- package/dist/index-uF-ibwG0.js +0 -9
- package/dist/index.vue_vue_type_style_index_0_scoped_39e1db95_lang-CG9X8aa2.js +0 -137728
- package/dist/isString-CoCw_sp3.js +0 -8
- package/dist/localIcon-CoJHw5ss.js +0 -76
- package/dist/main-Bs7Y7gDm.js +0 -502
- package/dist/menuIndex-Dt0NyAyE.js +0 -159
- package/dist/request-DiogHwkN.js +0 -9465
- package/dist/threeModel-C3x2TmUN.js +0 -1108
- package/dist/threePreview-BHLSA5YS.js +0 -2259
- package/dist/threeSceneView-mfAIunaw.js +0 -1289
- package/dist/threeSceneViewForCPMPIP-DrnsTNPv.js +0 -538
- package/dist/threeTrackPathView-BR8-g2Tr.js +0 -620
- package/dist/threeViewerHost-DbJCLcbz.js +0 -233
- package/dist/urdfTree-IEJgkVzs.js +0 -254
- package/dist/workpieceTreePanel-aZV2ut3W.js +0 -555
- package/public/icons/svg/Update.svg +0 -1
- package/public/icons/svg/functionList.svg +0 -1
- package/public/icons/svg/uploadCopy.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/public/icons/svg/{tableClose.svg → table-close.svg} +0 -0
- /package/public/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
package/dist/index-D-5v1Jx7.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { ref as P, computed as c, onMounted as _ } from "vue";
|
|
2
|
-
import { useRouter as C } from "vue-router";
|
|
3
|
-
import { u as g, p as h, A as R, c as b, q as S, w as E } from "./index-DGObzWyL.js";
|
|
4
|
-
const l = {
|
|
5
|
-
ALLOW: {
|
|
6
|
-
value: "允许"
|
|
7
|
-
},
|
|
8
|
-
DENY: {
|
|
9
|
-
value: "不允许"
|
|
10
|
-
}
|
|
11
|
-
}, M = "系统管理/用户管理", N = "用户列表", D = {
|
|
12
|
-
title: "个人中心",
|
|
13
|
-
path: "/个人中心",
|
|
14
|
-
level: 1,
|
|
15
|
-
show: !0,
|
|
16
|
-
icon: "个人中心",
|
|
17
|
-
carryData: !0,
|
|
18
|
-
isPenultimate: !0,
|
|
19
|
-
isRouter: !0,
|
|
20
|
-
children: [],
|
|
21
|
-
childMenus: []
|
|
22
|
-
}, K = {
|
|
23
|
-
BASE: {
|
|
24
|
-
label: "基础信息",
|
|
25
|
-
value: "base"
|
|
26
|
-
},
|
|
27
|
-
RESET_PASSWORD_BY_FACE_RECOGNITION: {
|
|
28
|
-
label: "修改密码",
|
|
29
|
-
value: "reset-password-by-face-recognition"
|
|
30
|
-
}
|
|
31
|
-
}, T = () => {
|
|
32
|
-
const u = C(), s = g(h), { platId: o, isSuperAdmin: i } = R(), p = (e) => {
|
|
33
|
-
const { id: t } = e;
|
|
34
|
-
return {
|
|
35
|
-
id: t,
|
|
36
|
-
password: "",
|
|
37
|
-
allow_reset_password: l.DENY.value
|
|
38
|
-
};
|
|
39
|
-
}, r = P([]), d = c(() => {
|
|
40
|
-
var t, a;
|
|
41
|
-
const e = (a = (t = r.value) == null ? void 0 : t.find) == null ? void 0 : a.call(t, (n) => n.property_name === N);
|
|
42
|
-
return e == null ? void 0 : e.object_id;
|
|
43
|
-
}), w = async () => {
|
|
44
|
-
var a;
|
|
45
|
-
const e = {
|
|
46
|
-
pageName: M,
|
|
47
|
-
platId: o.value
|
|
48
|
-
}, t = await S(e);
|
|
49
|
-
return ((a = t == null ? void 0 : t.data) == null ? void 0 : a.result) || [];
|
|
50
|
-
}, f = async () => {
|
|
51
|
-
const e = await w();
|
|
52
|
-
r.value = e || [];
|
|
53
|
-
};
|
|
54
|
-
_(async () => {
|
|
55
|
-
await f();
|
|
56
|
-
});
|
|
57
|
-
const y = c(() => `content_${d.value}`), m = async (e) => ({
|
|
58
|
-
platId: o.value,
|
|
59
|
-
changeContents: [
|
|
60
|
-
{
|
|
61
|
-
tableContents: [e],
|
|
62
|
-
tableName: y.value
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
}), I = (e) => {
|
|
66
|
-
const { allow_reset_password: t } = e;
|
|
67
|
-
return t === l.ALLOW.value;
|
|
68
|
-
}, v = async (e) => {
|
|
69
|
-
const { id: t, password: a, allow_reset_password: n } = e;
|
|
70
|
-
return m({
|
|
71
|
-
id: t,
|
|
72
|
-
password: a,
|
|
73
|
-
allow_reset_password: n
|
|
74
|
-
});
|
|
75
|
-
}, A = async (e) => {
|
|
76
|
-
const t = await v(e);
|
|
77
|
-
return await E(t);
|
|
78
|
-
};
|
|
79
|
-
return {
|
|
80
|
-
isSuperAdmin: i,
|
|
81
|
-
toPersonalCenter: () => {
|
|
82
|
-
const e = b(D);
|
|
83
|
-
s.setAsideMenus([e]), s.setActiveMenuPath(e == null ? void 0 : e.path), s.setActiveAsideMenu(e), u.push(e.path);
|
|
84
|
-
},
|
|
85
|
-
isAllowReplacePassword: I,
|
|
86
|
-
initReplacePassword: async (e) => await A(e),
|
|
87
|
-
initEditForm: p
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
export {
|
|
91
|
-
K as t,
|
|
92
|
-
T as u
|
|
93
|
-
};
|
package/dist/index-D4LcEpQ7.js
DELETED
|
@@ -1,619 +0,0 @@
|
|
|
1
|
-
import { ref as v, computed as Ce, defineComponent as Ve, onMounted as Ae, reactive as ze, resolveComponent as u, openBlock as _, createElementBlock as P, 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 qe, createBlock as re, createCommentVNode as xe } from "vue";
|
|
2
|
-
import { g as Ue, d as Ge, u as Oe, c as Me, a as Re, b as Fe } from "./index-Bpr501oZ.js";
|
|
3
|
-
import { A as Qe, E as $e, J as we, c as Ye, q as je, u as Je, p as Ze } from "./index-DGObzWyL.js";
|
|
4
|
-
import { _ as he } from "./index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js";
|
|
5
|
-
import { s as He } from "./index-DJrzqi4-.js";
|
|
6
|
-
import { _ as Ke } 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
|
-
}, J = 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
|
-
}, q = async (e) => {
|
|
130
|
-
delete e.department_id;
|
|
131
|
-
const t = z(e);
|
|
132
|
-
await Me(t);
|
|
133
|
-
}, H = async (e) => {
|
|
134
|
-
await q(e);
|
|
135
|
-
}, y = async (e) => {
|
|
136
|
-
const t = z(e);
|
|
137
|
-
await Oe(t);
|
|
138
|
-
}, K = 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: J,
|
|
170
|
-
hasDepartmentEditAuth: R,
|
|
171
|
-
initDepartmentConfig: F,
|
|
172
|
-
initDepartmentItem: Z,
|
|
173
|
-
initCreate: H,
|
|
174
|
-
initUpdate: K,
|
|
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 = Je(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: J
|
|
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
|
-
}, q = 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
|
-
q.value = await H();
|
|
232
|
-
}, K = (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"), x = 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("查询", -1)
|
|
354
|
-
])]),
|
|
355
|
-
_: 1
|
|
356
|
-
}),
|
|
357
|
-
o(te, {
|
|
358
|
-
type: "primary",
|
|
359
|
-
plain: "",
|
|
360
|
-
onClick: X
|
|
361
|
-
}, {
|
|
362
|
-
default: i(() => [...a[6] || (a[6] = [
|
|
363
|
-
N("重置", -1)
|
|
364
|
-
])]),
|
|
365
|
-
_: 1
|
|
366
|
-
})
|
|
367
|
-
]),
|
|
368
|
-
s("div", it, [
|
|
369
|
-
o(te, {
|
|
370
|
-
type: "primary",
|
|
371
|
-
onClick: a[1] || (a[1] = (r) => ce())
|
|
372
|
-
}, {
|
|
373
|
-
default: i(() => [...a[7] || (a[7] = [
|
|
374
|
-
N("新增部门", -1)
|
|
375
|
-
])]),
|
|
376
|
-
_: 1
|
|
377
|
-
})
|
|
378
|
-
])
|
|
379
|
-
]),
|
|
380
|
-
s("div", dt, [
|
|
381
|
-
o(Ne, {
|
|
382
|
-
class: "department-table",
|
|
383
|
-
data: q.value,
|
|
384
|
-
"empty-text": ""
|
|
385
|
-
}, {
|
|
386
|
-
default: i(() => [
|
|
387
|
-
o(x, {
|
|
388
|
-
prop: "name",
|
|
389
|
-
label: "名称",
|
|
390
|
-
align: "center"
|
|
391
|
-
}),
|
|
392
|
-
o(x, {
|
|
393
|
-
prop: "type",
|
|
394
|
-
label: "分类",
|
|
395
|
-
align: "center"
|
|
396
|
-
}, {
|
|
397
|
-
default: i((r) => [
|
|
398
|
-
N(le(c(Y)(r.row)), 1)
|
|
399
|
-
]),
|
|
400
|
-
_: 1
|
|
401
|
-
}),
|
|
402
|
-
o(x, {
|
|
403
|
-
prop: "status",
|
|
404
|
-
label: "状态",
|
|
405
|
-
align: "center"
|
|
406
|
-
}, {
|
|
407
|
-
default: i((r) => [
|
|
408
|
-
o(Pe, {
|
|
409
|
-
class: "status-tag",
|
|
410
|
-
type: c(J)(r.row.status),
|
|
411
|
-
title: "点击切换",
|
|
412
|
-
onClick: (U) => Ee(r.row)
|
|
413
|
-
}, {
|
|
414
|
-
default: i(() => [
|
|
415
|
-
N(le(c(j)(r.row.status)), 1)
|
|
416
|
-
]),
|
|
417
|
-
_: 2
|
|
418
|
-
}, 1032, ["type", "onClick"])
|
|
419
|
-
]),
|
|
420
|
-
_: 1
|
|
421
|
-
}),
|
|
422
|
-
o(x, {
|
|
423
|
-
label: "操作",
|
|
424
|
-
align: "center"
|
|
425
|
-
}, {
|
|
426
|
-
default: i((r) => [
|
|
427
|
-
s("div", pt, [
|
|
428
|
-
(_(!0), P(oe, null, se(c(Xe), (U) => (_(), P("div", {
|
|
429
|
-
class: "operate-item",
|
|
430
|
-
key: U.value,
|
|
431
|
-
onClick: qe((bt) => de(U, r), ["stop"])
|
|
432
|
-
}, le(U.label), 9, ut))), 128))
|
|
433
|
-
])
|
|
434
|
-
]),
|
|
435
|
-
_: 1
|
|
436
|
-
})
|
|
437
|
-
]),
|
|
438
|
-
_: 1
|
|
439
|
-
}, 8, ["data"]),
|
|
440
|
-
s("div", ct, [
|
|
441
|
-
a[8] || (a[8] = s("div", null, null, -1)),
|
|
442
|
-
o(ke, {
|
|
443
|
-
onSizeChange: W,
|
|
444
|
-
onCurrentChange: K,
|
|
445
|
-
"current-page": (ye = c(h)) == null ? void 0 : ye.pageNum,
|
|
446
|
-
"page-sizes": (_e = c(h)) == null ? void 0 : _e.pageSizes,
|
|
447
|
-
"page-size": ((be = c(h)) == null ? void 0 : be.pageSize) ?? 10,
|
|
448
|
-
layout: "total, sizes, prev, pager, next, jumper",
|
|
449
|
-
total: ((De = c(h)) == null ? void 0 : De.total) ?? 0
|
|
450
|
-
}, null, 8, ["current-page", "page-sizes", "page-size", "total"])
|
|
451
|
-
])
|
|
452
|
-
])
|
|
453
|
-
])
|
|
454
|
-
]),
|
|
455
|
-
a[12] || (a[12] = s("div", { class: "footer" }, [
|
|
456
|
-
s("div", { class: "footer-left" }),
|
|
457
|
-
s("div", { class: "footer-right" })
|
|
458
|
-
], -1)),
|
|
459
|
-
o(He, {
|
|
460
|
-
class: "department-edit-dialog",
|
|
461
|
-
visible: m.value,
|
|
462
|
-
title: "部门信息",
|
|
463
|
-
onBeforeDestroy: ue,
|
|
464
|
-
showClose: !0,
|
|
465
|
-
closeOnClickModal: !1,
|
|
466
|
-
closeOnPressEscape: !1,
|
|
467
|
-
modalClass: "department-edit-modal",
|
|
468
|
-
alignCenter: !0,
|
|
469
|
-
appendToBody: !1
|
|
470
|
-
}, {
|
|
471
|
-
default: i(() => [
|
|
472
|
-
s("div", mt, [
|
|
473
|
-
a[9] || (a[9] = s("div", { class: "department-management-header" }, [
|
|
474
|
-
s("div", { class: "header-left" }),
|
|
475
|
-
s("div", { class: "header-right" })
|
|
476
|
-
], -1)),
|
|
477
|
-
s("div", gt, [
|
|
478
|
-
s("div", ft, [
|
|
479
|
-
o(Se, {
|
|
480
|
-
class: "department-edit-form",
|
|
481
|
-
ref_key: "departmentFormRef",
|
|
482
|
-
ref: ee,
|
|
483
|
-
model: e.value,
|
|
484
|
-
rules: pe
|
|
485
|
-
}, {
|
|
486
|
-
default: i(() => [
|
|
487
|
-
o(ve, { gutter: 20 }, {
|
|
488
|
-
default: i(() => [
|
|
489
|
-
o(ne, { span: 12 }, {
|
|
490
|
-
default: i(() => [
|
|
491
|
-
o(ae, {
|
|
492
|
-
prop: "name",
|
|
493
|
-
label: "部门名称",
|
|
494
|
-
"label-position": "top"
|
|
495
|
-
}, {
|
|
496
|
-
default: i(() => [
|
|
497
|
-
o(I, {
|
|
498
|
-
modelValue: e.value.name,
|
|
499
|
-
"onUpdate:modelValue": a[2] || (a[2] = (r) => e.value.name = r),
|
|
500
|
-
"aria-label": "部门名称",
|
|
501
|
-
placeholder: "部门名称"
|
|
502
|
-
}, null, 8, ["modelValue"])
|
|
503
|
-
]),
|
|
504
|
-
_: 1
|
|
505
|
-
})
|
|
506
|
-
]),
|
|
507
|
-
_: 1
|
|
508
|
-
}),
|
|
509
|
-
o(ne, { span: 12 }, {
|
|
510
|
-
default: i(() => [
|
|
511
|
-
o(ae, {
|
|
512
|
-
prop: "type",
|
|
513
|
-
label: "部门分类",
|
|
514
|
-
"label-position": "top"
|
|
515
|
-
}, {
|
|
516
|
-
default: i(() => [
|
|
517
|
-
o(fe, {
|
|
518
|
-
modelValue: e.value.type,
|
|
519
|
-
"onUpdate:modelValue": a[3] || (a[3] = (r) => e.value.type = r),
|
|
520
|
-
"aria-label": "部门分类",
|
|
521
|
-
placeholder: "",
|
|
522
|
-
clearable: "",
|
|
523
|
-
filterable: "",
|
|
524
|
-
onChange: n
|
|
525
|
-
}, {
|
|
526
|
-
default: i(() => [
|
|
527
|
-
(_(!0), P(oe, null, se(c(We), (r) => (_(), re(ge, {
|
|
528
|
-
key: r.value,
|
|
529
|
-
label: r.label,
|
|
530
|
-
value: r.value
|
|
531
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
532
|
-
]),
|
|
533
|
-
_: 1
|
|
534
|
-
}, 8, ["modelValue"])
|
|
535
|
-
]),
|
|
536
|
-
_: 1
|
|
537
|
-
})
|
|
538
|
-
]),
|
|
539
|
-
_: 1
|
|
540
|
-
})
|
|
541
|
-
]),
|
|
542
|
-
_: 1
|
|
543
|
-
}),
|
|
544
|
-
o(ve, { gutter: 20 }, {
|
|
545
|
-
default: i(() => [
|
|
546
|
-
e.value.type && !c(E)(e.value.type) ? (_(), re(ne, {
|
|
547
|
-
key: 0,
|
|
548
|
-
span: 12
|
|
549
|
-
}, {
|
|
550
|
-
default: i(() => [
|
|
551
|
-
o(ae, {
|
|
552
|
-
prop: "parent_id",
|
|
553
|
-
label: "上级部门",
|
|
554
|
-
"label-position": "top"
|
|
555
|
-
}, {
|
|
556
|
-
default: i(() => [
|
|
557
|
-
o(fe, {
|
|
558
|
-
modelValue: e.value.parent_id,
|
|
559
|
-
"onUpdate:modelValue": a[4] || (a[4] = (r) => e.value.parent_id = r),
|
|
560
|
-
"aria-label": "上级部门",
|
|
561
|
-
placeholder: "",
|
|
562
|
-
clearable: "",
|
|
563
|
-
filterable: ""
|
|
564
|
-
}, {
|
|
565
|
-
default: i(() => [
|
|
566
|
-
(_(!0), P(oe, null, se(t.value, (r) => (_(), re(ge, {
|
|
567
|
-
key: r.department_id,
|
|
568
|
-
label: r.name,
|
|
569
|
-
value: r.department_id
|
|
570
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
571
|
-
]),
|
|
572
|
-
_: 1
|
|
573
|
-
}, 8, ["modelValue"])
|
|
574
|
-
]),
|
|
575
|
-
_: 1
|
|
576
|
-
})
|
|
577
|
-
]),
|
|
578
|
-
_: 1
|
|
579
|
-
})) : xe("", !0)
|
|
580
|
-
]),
|
|
581
|
-
_: 1
|
|
582
|
-
})
|
|
583
|
-
]),
|
|
584
|
-
_: 1
|
|
585
|
-
}, 8, ["model", "rules"])
|
|
586
|
-
])
|
|
587
|
-
])
|
|
588
|
-
])
|
|
589
|
-
]),
|
|
590
|
-
footer: i(() => [
|
|
591
|
-
s("div", vt, [
|
|
592
|
-
a[10] || (a[10] = s("div", { class: "footer-left" }, null, -1)),
|
|
593
|
-
s("div", yt, [
|
|
594
|
-
o(he, {
|
|
595
|
-
class: "cancel",
|
|
596
|
-
emptyColor: !0,
|
|
597
|
-
onClickTrigger: me,
|
|
598
|
-
modelValue: "取消",
|
|
599
|
-
buttonType: "info"
|
|
600
|
-
}),
|
|
601
|
-
o(he, {
|
|
602
|
-
class: "confirm",
|
|
603
|
-
emptyColor: !0,
|
|
604
|
-
onClickTrigger: Be,
|
|
605
|
-
modelValue: "确定",
|
|
606
|
-
buttonType: "primary"
|
|
607
|
-
})
|
|
608
|
-
])
|
|
609
|
-
])
|
|
610
|
-
]),
|
|
611
|
-
_: 1
|
|
612
|
-
}, 8, ["visible"])
|
|
613
|
-
]);
|
|
614
|
-
};
|
|
615
|
-
}
|
|
616
|
-
}), Lt = /* @__PURE__ */ Ke(_t, [["__scopeId", "data-v-80962709"]]);
|
|
617
|
-
export {
|
|
618
|
-
Lt as default
|
|
619
|
-
};
|