ss-component-new 1.3.665 → 1.3.666
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/MTLLoader-DI0avKtj.js +657 -0
- package/dist/URDFLoader-PUxvYFDe.js +2304 -0
- package/dist/animationData-05aVUytq.js +83 -0
- package/dist/array-BHRYnJKv.js +1044 -0
- package/dist/clone-Ddn1p6-1.js +8 -0
- package/dist/config.js +1 -1
- package/dist/eleIcon-BWVKfp5t.js +29 -0
- package/dist/iconfont-BNdGaGPn.js +1018 -0
- package/dist/icons/svg/Update.svg +1 -0
- package/dist/icons/svg/functionList.svg +1 -0
- package/dist/icons/svg/uploadCopy.svg +1 -0
- package/dist/index-7mFTFA3-.js +107 -0
- package/dist/index-BDhIWgKn.js +658 -0
- package/dist/index-BFqUz4pN.js +52 -0
- package/dist/index-BP1mKUQP.js +627 -0
- package/dist/index-BczRQX8N.js +407 -0
- package/dist/index-BnrvtCYj.js +55 -0
- package/dist/index-Bpr501oZ.js +78 -0
- package/dist/index-BvbZiTVB.js +342 -0
- package/dist/index-Bvvz41NY.js +44 -0
- package/dist/index-C2M8MGB3.js +83 -0
- package/dist/index-C67QqPPT.js +24865 -0
- package/dist/index-C85-PeF1.js +11773 -0
- package/dist/index-C9DBY1gg.js +103 -0
- package/dist/index-CFFbhR3G.js +996 -0
- package/dist/index-COr2mcbl.js +48 -0
- package/dist/index-CQ8DCGnJ.js +98 -0
- package/dist/index-CV2cha0T.js +864 -0
- package/dist/index-CV_jQDcg.js +9 -0
- package/dist/index-CXe4q28L.js +447 -0
- package/dist/{index-BobGeNMx.js → index-ChNfRlIP.js} +5 -5
- package/dist/index-CqNlqFQ5.js +117 -0
- package/dist/index-D-5v1Jx7.js +93 -0
- package/dist/index-D4LcEpQ7.js +619 -0
- package/dist/index-D9w3QWuY.js +468 -0
- package/dist/index-DGObzWyL.js +8984 -0
- package/dist/index-DJ59jXR0.js +28483 -0
- package/dist/index-DJrzqi4-.js +209 -0
- package/dist/index-D_kI6aHR.js +98 -0
- package/dist/index-DhQcwkOc.js +61958 -0
- package/dist/index-DhULdX5n.js +2623 -0
- package/dist/index-Dibj25i7.js +93 -0
- package/dist/index-Dr9Wt5nC.js +84 -0
- package/dist/index-Dwt0Wlg_.js +201 -0
- package/dist/index-WPJbEuld.js +62 -0
- package/dist/index-YVR3acYT.js +61 -0
- package/dist/{index-BKK_dL6t.js → index-dD-mKgue.js} +3 -3
- package/dist/index-roQK_1xA.js +30 -0
- package/dist/index-uF-ibwG0.js +9 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-DRzriV-s.js → index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js} +2 -2
- package/dist/index.vue_vue_type_style_index_0_scoped_39e1db95_lang-CG9X8aa2.js +137728 -0
- package/dist/isString-CoCw_sp3.js +8 -0
- package/dist/localIcon-CoJHw5ss.js +76 -0
- package/dist/main-Dlo2i9wB.js +502 -0
- package/dist/menuIndex-Dt0NyAyE.js +159 -0
- package/dist/request-DiogHwkN.js +9465 -0
- package/dist/ss-component.css +8 -2
- package/dist/ss-component.js +64 -28
- package/dist/ss-component2.js +75 -15
- package/dist/ss-component3.js +1 -1
- package/dist/threeModel-BfY7WDWB.js +1108 -0
- package/dist/threePreview-BHLSA5YS.js +2259 -0
- package/dist/threeSceneView-ZTUK-ls2.js +1289 -0
- package/dist/threeSceneViewForCPMPIP-DCG4eBvk.js +538 -0
- package/dist/threeTrackPathView-BR8-g2Tr.js +620 -0
- package/dist/threeViewerHost-BwblfmOC.js +233 -0
- package/dist/urdfTree-IEJgkVzs.js +254 -0
- package/dist/workpieceTreePanel-aZV2ut3W.js +555 -0
- package/package.json +4 -4
- package/public/config.js +1 -1
- package/public/icons/svg/Update.svg +1 -0
- package/public/icons/svg/functionList.svg +1 -0
- package/public/icons/svg/uploadCopy.svg +1 -0
- package/dist/index-CoXdIQt_.js +0 -50
- package/dist/index-DJWOuBw9.js +0 -195
- package/dist/index-DK2pco3V.js +0 -1044
- package/dist/index-DfraOPVU.js +0 -9022
- package/dist/index-MHAwX3y9.js +0 -182
- package/dist/menu-B8iV5Rhf.js +0 -5215
- package/dist/origin-C4Shcrcr.js +0 -11428
- /package/dist/icons/svg/{table-close.svg → tableClose.svg} +0 -0
- /package/dist/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
- /package/public/icons/svg/{table-close.svg → tableClose.svg} +0 -0
- /package/public/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
|
@@ -0,0 +1,658 @@
|
|
|
1
|
+
import { watch as qe, ref as v, computed as ze, defineComponent as Ue, onMounted as Ae, reactive as $e, resolveComponent as p, openBlock as ue, createElementBlock as pe, createElementVNode as i, createVNode as a, unref as f, withCtx as l, createTextVNode as C, toDisplayString as we, Fragment as Fe, renderList as Re, withModifiers as Me } from "vue";
|
|
2
|
+
import { s as G, u as Ge, k as Qe } from "./request-DiogHwkN.js";
|
|
3
|
+
import { k as de, w as Oe } from "./index-DJ59jXR0.js";
|
|
4
|
+
import { s as je, b as He, p as he, A as Je, E as Ke, J as be, q as We, c as Xe, u as Ye } from "./index-DGObzWyL.js";
|
|
5
|
+
import { f as Ze, i as et, e as tt, a as ot } from "./index-BvbZiTVB.js";
|
|
6
|
+
import { _ as ce } from "./index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js";
|
|
7
|
+
import { s as at } from "./index-DJrzqi4-.js";
|
|
8
|
+
import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
const st = He(he), { systemUrl: D } = je(st);
|
|
10
|
+
let B = D.value === "" || !D.value ? "http://222.92.178.198:63002" : D.value;
|
|
11
|
+
qe(
|
|
12
|
+
() => D.value,
|
|
13
|
+
() => {
|
|
14
|
+
B = D.value === "" || !D.value ? "http://222.92.178.198:63002" : D.value;
|
|
15
|
+
},
|
|
16
|
+
{ deep: !0, immediate: !0 }
|
|
17
|
+
);
|
|
18
|
+
function lt(u) {
|
|
19
|
+
return G({
|
|
20
|
+
url: `${B}/platform/getdata_post`,
|
|
21
|
+
method: "post",
|
|
22
|
+
data: u
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function it(u) {
|
|
26
|
+
return G({
|
|
27
|
+
url: `${B}/platform/createdata_post`,
|
|
28
|
+
method: "post",
|
|
29
|
+
data: u
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function rt(u) {
|
|
33
|
+
return G({
|
|
34
|
+
url: `${B}/platform/updatedata_post`,
|
|
35
|
+
method: "post",
|
|
36
|
+
data: u
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function ut(u) {
|
|
40
|
+
return G({
|
|
41
|
+
url: `${B}/platform/deletedata_post`,
|
|
42
|
+
method: "post",
|
|
43
|
+
data: u
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
const pt = [
|
|
47
|
+
{
|
|
48
|
+
label: "编辑",
|
|
49
|
+
value: "edit"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: "删除",
|
|
53
|
+
value: "delete"
|
|
54
|
+
}
|
|
55
|
+
], Ie = "post", _ = {
|
|
56
|
+
ENABLE: {
|
|
57
|
+
value: "enable",
|
|
58
|
+
label: "启用",
|
|
59
|
+
tag: "primary"
|
|
60
|
+
},
|
|
61
|
+
DISABLED: {
|
|
62
|
+
value: "disabled",
|
|
63
|
+
label: "禁用",
|
|
64
|
+
tag: "info"
|
|
65
|
+
}
|
|
66
|
+
}, dt = () => {
|
|
67
|
+
const { platId: u, userId: r, isSuperAdmin: T } = Je(), Q = (e) => {
|
|
68
|
+
const t = e.toUpperCase(), n = _ == null ? void 0 : _[t];
|
|
69
|
+
return (n == null ? void 0 : n.label) || e;
|
|
70
|
+
}, V = (e) => {
|
|
71
|
+
const t = e.toUpperCase(), n = _ == null ? void 0 : _[t];
|
|
72
|
+
return (n == null ? void 0 : n.tag) || "info";
|
|
73
|
+
}, L = v({}), S = ze(() => {
|
|
74
|
+
var t;
|
|
75
|
+
return T.value ? !0 : ((t = L.value) == null ? void 0 : t.status) === Ze.EDITABLE.value;
|
|
76
|
+
}), O = async () => {
|
|
77
|
+
var h, R;
|
|
78
|
+
const t = {
|
|
79
|
+
pageName: "系统管理/职位管理",
|
|
80
|
+
platId: u.value,
|
|
81
|
+
userId: r.value
|
|
82
|
+
}, n = await We(t);
|
|
83
|
+
return (R = (h = n == null ? void 0 : n.data) == null ? void 0 : h.result) == null ? void 0 : R[0];
|
|
84
|
+
}, j = async () => {
|
|
85
|
+
if (!T.value)
|
|
86
|
+
return L.value = await O(), L;
|
|
87
|
+
}, N = () => ({
|
|
88
|
+
name: ""
|
|
89
|
+
}), y = v(N()), H = () => {
|
|
90
|
+
y.value = N();
|
|
91
|
+
}, P = v({
|
|
92
|
+
prop: "sort",
|
|
93
|
+
order: "ascending"
|
|
94
|
+
}), z = (e) => {
|
|
95
|
+
P.value = e;
|
|
96
|
+
}, w = v({
|
|
97
|
+
pageNum: 1,
|
|
98
|
+
pageSize: 10,
|
|
99
|
+
total: 0,
|
|
100
|
+
pageSizes: [5, 10, 20, 50, 100]
|
|
101
|
+
}), J = (e) => {
|
|
102
|
+
w.value.pageNum = e;
|
|
103
|
+
}, K = (e) => {
|
|
104
|
+
w.value.pageSize = e;
|
|
105
|
+
}, W = () => ({
|
|
106
|
+
platId: u.value,
|
|
107
|
+
pageNum: w.value.pageNum,
|
|
108
|
+
pageSize: w.value.pageSize,
|
|
109
|
+
filter: {
|
|
110
|
+
...y.value
|
|
111
|
+
},
|
|
112
|
+
orderBy: {
|
|
113
|
+
prop: P.value.prop,
|
|
114
|
+
order: P.value.order
|
|
115
|
+
}
|
|
116
|
+
}), X = async (e) => {
|
|
117
|
+
var n;
|
|
118
|
+
const t = await lt(e);
|
|
119
|
+
return (n = t == null ? void 0 : t.data) == null ? void 0 : n.result;
|
|
120
|
+
}, U = async (e) => {
|
|
121
|
+
const t = W(), n = await X(t), { total: h } = n || {};
|
|
122
|
+
return w.value.total = h, n || {};
|
|
123
|
+
}, Y = (e) => {
|
|
124
|
+
const t = be(Date.now()), n = Xe(e);
|
|
125
|
+
return n.update_time = t, n;
|
|
126
|
+
}, b = (e) => {
|
|
127
|
+
const t = be(Date.now());
|
|
128
|
+
let n = {
|
|
129
|
+
name: "",
|
|
130
|
+
code: "",
|
|
131
|
+
sort: 1,
|
|
132
|
+
status: _.ENABLE.value,
|
|
133
|
+
create_time: t,
|
|
134
|
+
update_time: t
|
|
135
|
+
};
|
|
136
|
+
if (e) {
|
|
137
|
+
const h = Y(e);
|
|
138
|
+
n = {
|
|
139
|
+
...n,
|
|
140
|
+
...h
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
return n;
|
|
144
|
+
}, A = (e) => {
|
|
145
|
+
const t = [e];
|
|
146
|
+
return {
|
|
147
|
+
platId: u.value,
|
|
148
|
+
changePostData: t
|
|
149
|
+
};
|
|
150
|
+
}, Z = async (e) => {
|
|
151
|
+
delete e.post_id;
|
|
152
|
+
const t = A(e);
|
|
153
|
+
await it(t);
|
|
154
|
+
}, ee = async (e) => {
|
|
155
|
+
await Z(e);
|
|
156
|
+
}, te = async (e) => {
|
|
157
|
+
const t = A(e);
|
|
158
|
+
await rt(t);
|
|
159
|
+
}, I = async (e) => {
|
|
160
|
+
await te(e);
|
|
161
|
+
}, oe = async (e) => {
|
|
162
|
+
const { post_id: t } = e, n = {
|
|
163
|
+
platId: u.value,
|
|
164
|
+
post_id: [t]
|
|
165
|
+
};
|
|
166
|
+
await ut(n);
|
|
167
|
+
}, $ = async (e) => {
|
|
168
|
+
await Ke.confirm("是否确认要删除", "", {
|
|
169
|
+
showClose: !1,
|
|
170
|
+
confirmButtonText: "确认",
|
|
171
|
+
cancelButtonText: "取消",
|
|
172
|
+
type: "warning",
|
|
173
|
+
modalClass: "delete-position-message-modal",
|
|
174
|
+
confirmButtonClass: "delete-position-confirm"
|
|
175
|
+
}), await oe(e);
|
|
176
|
+
}, ae = async (e) => {
|
|
177
|
+
var n;
|
|
178
|
+
const t = await ot(e);
|
|
179
|
+
return (n = t == null ? void 0 : t.data) == null ? void 0 : n.result;
|
|
180
|
+
}, d = async (e) => {
|
|
181
|
+
const t = new FormData();
|
|
182
|
+
return t.set("platId", u.value), t.set("file", e), t.set("tableType", Ie), await ae(t);
|
|
183
|
+
}, E = async (e) => await tt(e), ne = async () => {
|
|
184
|
+
const e = {
|
|
185
|
+
platId: u.value,
|
|
186
|
+
tableType: Ie,
|
|
187
|
+
filter: y.value,
|
|
188
|
+
orderBy: P.value
|
|
189
|
+
}, t = await E(e);
|
|
190
|
+
return et(t), t;
|
|
191
|
+
}, F = [["名称", "编码", "状态", "排序"]];
|
|
192
|
+
return {
|
|
193
|
+
sortInfo: P,
|
|
194
|
+
setSortInfo: z,
|
|
195
|
+
queryInfo: y,
|
|
196
|
+
resetQuery: H,
|
|
197
|
+
pageInfo: w,
|
|
198
|
+
setPageNum: J,
|
|
199
|
+
setPageSize: K,
|
|
200
|
+
hasPositionEditAuth: S,
|
|
201
|
+
initPositionItem: b,
|
|
202
|
+
initPositionConfig: j,
|
|
203
|
+
initGetByPage: U,
|
|
204
|
+
initCreate: ee,
|
|
205
|
+
initUpdate: I,
|
|
206
|
+
initDelete: $,
|
|
207
|
+
getStatusLabelByValue: Q,
|
|
208
|
+
getStatusTagByValue: V,
|
|
209
|
+
initImport: d,
|
|
210
|
+
initExport: ne,
|
|
211
|
+
exportTemplate: async () => {
|
|
212
|
+
const e = de.aoa_to_sheet(F), t = de.book_new();
|
|
213
|
+
de.book_append_sheet(t, e, "职位"), Oe(t, "职位模板.xlsx");
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
}, ct = { class: "position-management" }, mt = { class: "header" }, ft = { class: "header-left" }, gt = { class: "query-wrapper" }, _t = { class: "header-right" }, vt = { class: "body" }, yt = { class: "position-table-wrapper" }, wt = { class: "table-wrapper" }, bt = { class: "operate-list" }, It = ["onClick"], ht = { class: "pagination-wrapper" }, Pt = { class: "position-management-wrapper" }, Ct = { class: "position-management-body" }, Dt = { class: "position-form-wrapper" }, St = { class: "edit-footer" }, Lt = { class: "footer-right" }, Et = /* @__PURE__ */ Ue({
|
|
217
|
+
__name: "index",
|
|
218
|
+
setup(u) {
|
|
219
|
+
const r = Ye(he), {
|
|
220
|
+
sortInfo: T,
|
|
221
|
+
setSortInfo: Q,
|
|
222
|
+
queryInfo: V,
|
|
223
|
+
resetQuery: L,
|
|
224
|
+
pageInfo: S,
|
|
225
|
+
setPageNum: O,
|
|
226
|
+
setPageSize: j,
|
|
227
|
+
initGetByPage: N,
|
|
228
|
+
hasPositionEditAuth: y,
|
|
229
|
+
initPositionConfig: H,
|
|
230
|
+
initPositionItem: q,
|
|
231
|
+
initCreate: P,
|
|
232
|
+
initUpdate: z,
|
|
233
|
+
initDelete: me,
|
|
234
|
+
getStatusLabelByValue: w,
|
|
235
|
+
getStatusTagByValue: J,
|
|
236
|
+
initImport: K,
|
|
237
|
+
initExport: W,
|
|
238
|
+
exportTemplate: X
|
|
239
|
+
} = dt(), U = v([]), Y = async () => {
|
|
240
|
+
const s = await N(), { postData: o = [] } = s;
|
|
241
|
+
return o;
|
|
242
|
+
}, b = async () => {
|
|
243
|
+
U.value = await Y();
|
|
244
|
+
}, A = (s) => {
|
|
245
|
+
O(s), r.setImportLoading(!0), b().finally(() => {
|
|
246
|
+
r.setImportLoading(!1);
|
|
247
|
+
});
|
|
248
|
+
}, Z = (s) => {
|
|
249
|
+
j(s), r.setImportLoading(!0), b().finally(() => {
|
|
250
|
+
r.setImportLoading(!1);
|
|
251
|
+
});
|
|
252
|
+
}, ee = (s) => {
|
|
253
|
+
const { prop: o, order: m } = s;
|
|
254
|
+
Q({
|
|
255
|
+
prop: o,
|
|
256
|
+
order: m
|
|
257
|
+
}), b();
|
|
258
|
+
}, te = async () => {
|
|
259
|
+
L(), r.setImportLoading(!0), await b().finally(() => {
|
|
260
|
+
r.setImportLoading(!1);
|
|
261
|
+
});
|
|
262
|
+
}, I = async () => {
|
|
263
|
+
await H(), await b();
|
|
264
|
+
};
|
|
265
|
+
Ae(async () => {
|
|
266
|
+
r.setImportLoading(!0), await I().finally(() => {
|
|
267
|
+
r.setImportLoading(!1);
|
|
268
|
+
});
|
|
269
|
+
});
|
|
270
|
+
const oe = async (s, o) => {
|
|
271
|
+
if (!y.value)
|
|
272
|
+
return;
|
|
273
|
+
const { value: m } = s, g = o.row;
|
|
274
|
+
if (m === "edit") {
|
|
275
|
+
se(g);
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
if (m === "delete") {
|
|
279
|
+
r.setImportLoading(!0), await h(g).finally(() => {
|
|
280
|
+
r.setImportLoading(!1);
|
|
281
|
+
});
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
}, $ = v(), ae = $e({
|
|
285
|
+
name: [
|
|
286
|
+
{ required: !0, message: "请输入职位名称", trigger: "blur" }
|
|
287
|
+
],
|
|
288
|
+
code: [
|
|
289
|
+
{ required: !0, message: "请选择职位编码", trigger: "blur" }
|
|
290
|
+
],
|
|
291
|
+
sort: [
|
|
292
|
+
{ required: !0, message: "请输入排序", trigger: "blur" }
|
|
293
|
+
]
|
|
294
|
+
}), d = v(q());
|
|
295
|
+
v([]);
|
|
296
|
+
const E = v(!1), ne = () => {
|
|
297
|
+
E.value = !0;
|
|
298
|
+
}, F = () => {
|
|
299
|
+
E.value = !1;
|
|
300
|
+
}, se = async (s) => {
|
|
301
|
+
y.value && (d.value = q(s), ne());
|
|
302
|
+
}, e = () => {
|
|
303
|
+
d.value = q(), F();
|
|
304
|
+
}, t = async () => {
|
|
305
|
+
await P(d.value), await I();
|
|
306
|
+
}, n = async () => {
|
|
307
|
+
await z(d.value), await I();
|
|
308
|
+
}, h = async (s) => {
|
|
309
|
+
await me(s), await I();
|
|
310
|
+
}, R = async () => {
|
|
311
|
+
var o, m;
|
|
312
|
+
await ((m = (o = $.value) == null ? void 0 : o.validate) == null ? void 0 : m.call(o));
|
|
313
|
+
const { post_id: s } = d.value;
|
|
314
|
+
r.setImportLoading(!0), s ? await n().finally(() => {
|
|
315
|
+
r.setImportLoading(!1);
|
|
316
|
+
}) : await t().finally(() => {
|
|
317
|
+
r.setImportLoading(!1);
|
|
318
|
+
}), e();
|
|
319
|
+
}, Pe = async (s) => {
|
|
320
|
+
if (!y.value)
|
|
321
|
+
return;
|
|
322
|
+
const { status: o } = s;
|
|
323
|
+
_.ENABLE.value === o ? s.status = _.DISABLED.value : s.status = _.ENABLE.value, await z(s), await I();
|
|
324
|
+
}, Ce = async () => {
|
|
325
|
+
await De();
|
|
326
|
+
}, De = async () => {
|
|
327
|
+
const s = document.createElement("input");
|
|
328
|
+
s.type = "file", s.accept = ".xlsx", s.onchange = async (o) => {
|
|
329
|
+
var k;
|
|
330
|
+
const g = (k = o.target.files) == null ? void 0 : k[0];
|
|
331
|
+
if (g)
|
|
332
|
+
try {
|
|
333
|
+
r.setImportLoading(!0), await K(g), await I(), r.setImportLoading(!1);
|
|
334
|
+
} catch {
|
|
335
|
+
r.setImportLoading(!1);
|
|
336
|
+
}
|
|
337
|
+
}, s.click();
|
|
338
|
+
}, Se = async () => {
|
|
339
|
+
r.setImportLoading(!0), await W().finally(() => {
|
|
340
|
+
r.setImportLoading(!1);
|
|
341
|
+
});
|
|
342
|
+
}, Le = async () => {
|
|
343
|
+
X();
|
|
344
|
+
};
|
|
345
|
+
return (s, o) => {
|
|
346
|
+
var ge, _e, ve, ye;
|
|
347
|
+
const m = p("el-input"), g = p("el-button"), k = p("el-icon"), le = p("el-dropdown-item"), Ee = p("el-dropdown-menu"), ke = p("el-dropdown"), x = p("el-table-column"), xe = p("el-tag"), Be = p("el-table"), Te = p("el-pagination"), ie = p("el-form-item"), re = p("el-col"), fe = p("el-row"), Ve = p("el-input-number"), Ne = p("el-form");
|
|
348
|
+
return ue(), pe("div", ct, [
|
|
349
|
+
i("div", mt, [
|
|
350
|
+
i("div", ft, [
|
|
351
|
+
i("div", gt, [
|
|
352
|
+
a(m, {
|
|
353
|
+
modelValue: f(V).name,
|
|
354
|
+
"onUpdate:modelValue": o[0] || (o[0] = (c) => f(V).name = c),
|
|
355
|
+
style: { width: "240px" },
|
|
356
|
+
placeholder: "请输入名称"
|
|
357
|
+
}, null, 8, ["modelValue"]),
|
|
358
|
+
a(g, {
|
|
359
|
+
type: "primary",
|
|
360
|
+
onClick: b
|
|
361
|
+
}, {
|
|
362
|
+
default: l(() => [...o[5] || (o[5] = [
|
|
363
|
+
C("查询", -1)
|
|
364
|
+
])]),
|
|
365
|
+
_: 1
|
|
366
|
+
}),
|
|
367
|
+
a(g, {
|
|
368
|
+
type: "primary",
|
|
369
|
+
plain: "",
|
|
370
|
+
onClick: te
|
|
371
|
+
}, {
|
|
372
|
+
default: l(() => [...o[6] || (o[6] = [
|
|
373
|
+
C("重置", -1)
|
|
374
|
+
])]),
|
|
375
|
+
_: 1
|
|
376
|
+
})
|
|
377
|
+
])
|
|
378
|
+
]),
|
|
379
|
+
i("div", _t, [
|
|
380
|
+
a(g, {
|
|
381
|
+
type: "primary",
|
|
382
|
+
onClick: Ce
|
|
383
|
+
}, {
|
|
384
|
+
default: l(() => [
|
|
385
|
+
o[7] || (o[7] = C(" 导入 ", -1)),
|
|
386
|
+
a(k, { class: "el-icon--right" }, {
|
|
387
|
+
default: l(() => [
|
|
388
|
+
a(f(Ge))
|
|
389
|
+
]),
|
|
390
|
+
_: 1
|
|
391
|
+
})
|
|
392
|
+
]),
|
|
393
|
+
_: 1
|
|
394
|
+
}),
|
|
395
|
+
a(ke, null, {
|
|
396
|
+
dropdown: l(() => [
|
|
397
|
+
a(Ee, null, {
|
|
398
|
+
default: l(() => [
|
|
399
|
+
a(le, { onClick: Le }, {
|
|
400
|
+
default: l(() => [...o[9] || (o[9] = [
|
|
401
|
+
C("导出模板", -1)
|
|
402
|
+
])]),
|
|
403
|
+
_: 1
|
|
404
|
+
}),
|
|
405
|
+
a(le, { onClick: Se }, {
|
|
406
|
+
default: l(() => [...o[10] || (o[10] = [
|
|
407
|
+
C("导出数据", -1)
|
|
408
|
+
])]),
|
|
409
|
+
_: 1
|
|
410
|
+
})
|
|
411
|
+
]),
|
|
412
|
+
_: 1
|
|
413
|
+
})
|
|
414
|
+
]),
|
|
415
|
+
default: l(() => [
|
|
416
|
+
a(g, { type: "primary" }, {
|
|
417
|
+
default: l(() => [
|
|
418
|
+
o[8] || (o[8] = C(" 导出 ", -1)),
|
|
419
|
+
a(k, { class: "el-icon--right" }, {
|
|
420
|
+
default: l(() => [
|
|
421
|
+
a(f(Qe))
|
|
422
|
+
]),
|
|
423
|
+
_: 1
|
|
424
|
+
})
|
|
425
|
+
]),
|
|
426
|
+
_: 1
|
|
427
|
+
})
|
|
428
|
+
]),
|
|
429
|
+
_: 1
|
|
430
|
+
}),
|
|
431
|
+
a(ce, {
|
|
432
|
+
emptyColor: !0,
|
|
433
|
+
onClickTrigger: o[1] || (o[1] = (c) => se()),
|
|
434
|
+
modelValue: "创建职位",
|
|
435
|
+
buttonType: "primary"
|
|
436
|
+
})
|
|
437
|
+
])
|
|
438
|
+
]),
|
|
439
|
+
i("div", vt, [
|
|
440
|
+
i("div", yt, [
|
|
441
|
+
i("div", wt, [
|
|
442
|
+
a(Be, {
|
|
443
|
+
class: "department-table",
|
|
444
|
+
data: U.value,
|
|
445
|
+
"empty-text": "",
|
|
446
|
+
"default-sort": f(T),
|
|
447
|
+
onSortChange: ee
|
|
448
|
+
}, {
|
|
449
|
+
default: l(() => [
|
|
450
|
+
a(x, {
|
|
451
|
+
prop: "name",
|
|
452
|
+
label: "名称",
|
|
453
|
+
align: "center"
|
|
454
|
+
}),
|
|
455
|
+
a(x, {
|
|
456
|
+
prop: "code",
|
|
457
|
+
label: "编码",
|
|
458
|
+
align: "center"
|
|
459
|
+
}),
|
|
460
|
+
a(x, {
|
|
461
|
+
prop: "status",
|
|
462
|
+
label: "状态",
|
|
463
|
+
align: "center"
|
|
464
|
+
}, {
|
|
465
|
+
default: l((c) => [
|
|
466
|
+
a(xe, {
|
|
467
|
+
class: "status-tag",
|
|
468
|
+
type: f(J)(c.row.status),
|
|
469
|
+
title: "点击切换",
|
|
470
|
+
onClick: (M) => Pe(c.row)
|
|
471
|
+
}, {
|
|
472
|
+
default: l(() => [
|
|
473
|
+
C(we(f(w)(c.row.status)), 1)
|
|
474
|
+
]),
|
|
475
|
+
_: 2
|
|
476
|
+
}, 1032, ["type", "onClick"])
|
|
477
|
+
]),
|
|
478
|
+
_: 1
|
|
479
|
+
}),
|
|
480
|
+
a(x, {
|
|
481
|
+
prop: "sort",
|
|
482
|
+
label: "排序",
|
|
483
|
+
align: "center",
|
|
484
|
+
sortable: "custom"
|
|
485
|
+
}),
|
|
486
|
+
a(x, {
|
|
487
|
+
label: "操作",
|
|
488
|
+
align: "center"
|
|
489
|
+
}, {
|
|
490
|
+
default: l((c) => [
|
|
491
|
+
i("div", bt, [
|
|
492
|
+
(ue(!0), pe(Fe, null, Re(f(pt), (M) => (ue(), pe("div", {
|
|
493
|
+
class: "operate-item",
|
|
494
|
+
key: M.value,
|
|
495
|
+
onClick: Me((kt) => oe(M, c), ["stop"])
|
|
496
|
+
}, we(M.label), 9, It))), 128))
|
|
497
|
+
])
|
|
498
|
+
]),
|
|
499
|
+
_: 1
|
|
500
|
+
})
|
|
501
|
+
]),
|
|
502
|
+
_: 1
|
|
503
|
+
}, 8, ["data", "default-sort"])
|
|
504
|
+
]),
|
|
505
|
+
i("div", ht, [
|
|
506
|
+
o[11] || (o[11] = i("div", null, null, -1)),
|
|
507
|
+
a(Te, {
|
|
508
|
+
onSizeChange: Z,
|
|
509
|
+
onCurrentChange: A,
|
|
510
|
+
"current-page": (ge = f(S)) == null ? void 0 : ge.pageNum,
|
|
511
|
+
"page-sizes": (_e = f(S)) == null ? void 0 : _e.pageSizes,
|
|
512
|
+
"page-size": ((ve = f(S)) == null ? void 0 : ve.pageSize) ?? 10,
|
|
513
|
+
layout: "total, sizes, prev, pager, next, jumper",
|
|
514
|
+
total: ((ye = f(S)) == null ? void 0 : ye.total) ?? 0
|
|
515
|
+
}, null, 8, ["current-page", "page-sizes", "page-size", "total"])
|
|
516
|
+
])
|
|
517
|
+
])
|
|
518
|
+
]),
|
|
519
|
+
o[14] || (o[14] = i("div", { class: "footer" }, [
|
|
520
|
+
i("div", { class: "footer-left" }),
|
|
521
|
+
i("div", { class: "footer-right" })
|
|
522
|
+
], -1)),
|
|
523
|
+
a(at, {
|
|
524
|
+
class: "position-edit-dialog",
|
|
525
|
+
visible: E.value,
|
|
526
|
+
title: "职位信息",
|
|
527
|
+
onBeforeDestroy: F,
|
|
528
|
+
showClose: !0,
|
|
529
|
+
closeOnClickModal: !1,
|
|
530
|
+
closeOnPressEscape: !1,
|
|
531
|
+
modalClass: "position-edit-modal",
|
|
532
|
+
alignCenter: !0,
|
|
533
|
+
appendToBody: !1
|
|
534
|
+
}, {
|
|
535
|
+
default: l(() => [
|
|
536
|
+
i("div", Pt, [
|
|
537
|
+
o[12] || (o[12] = i("div", { class: "position-management-header" }, [
|
|
538
|
+
i("div", { class: "header-left" }),
|
|
539
|
+
i("div", { class: "header-right" })
|
|
540
|
+
], -1)),
|
|
541
|
+
i("div", Ct, [
|
|
542
|
+
i("div", Dt, [
|
|
543
|
+
a(Ne, {
|
|
544
|
+
class: "position-edit-form",
|
|
545
|
+
ref_key: "positionFormRef",
|
|
546
|
+
ref: $,
|
|
547
|
+
model: d.value,
|
|
548
|
+
rules: ae
|
|
549
|
+
}, {
|
|
550
|
+
default: l(() => [
|
|
551
|
+
a(fe, { gutter: 20 }, {
|
|
552
|
+
default: l(() => [
|
|
553
|
+
a(re, { span: 12 }, {
|
|
554
|
+
default: l(() => [
|
|
555
|
+
a(ie, {
|
|
556
|
+
prop: "name",
|
|
557
|
+
label: "职位名称",
|
|
558
|
+
"label-position": "top"
|
|
559
|
+
}, {
|
|
560
|
+
default: l(() => [
|
|
561
|
+
a(m, {
|
|
562
|
+
modelValue: d.value.name,
|
|
563
|
+
"onUpdate:modelValue": o[2] || (o[2] = (c) => d.value.name = c),
|
|
564
|
+
"aria-label": "职位名称",
|
|
565
|
+
placeholder: "职位名称"
|
|
566
|
+
}, null, 8, ["modelValue"])
|
|
567
|
+
]),
|
|
568
|
+
_: 1
|
|
569
|
+
})
|
|
570
|
+
]),
|
|
571
|
+
_: 1
|
|
572
|
+
}),
|
|
573
|
+
a(re, { span: 12 }, {
|
|
574
|
+
default: l(() => [
|
|
575
|
+
a(ie, {
|
|
576
|
+
prop: "code",
|
|
577
|
+
label: "职位编码",
|
|
578
|
+
"label-position": "top"
|
|
579
|
+
}, {
|
|
580
|
+
default: l(() => [
|
|
581
|
+
a(m, {
|
|
582
|
+
modelValue: d.value.code,
|
|
583
|
+
"onUpdate:modelValue": o[3] || (o[3] = (c) => d.value.code = c),
|
|
584
|
+
"aria-label": "职位编码",
|
|
585
|
+
placeholder: "职位编码"
|
|
586
|
+
}, null, 8, ["modelValue"])
|
|
587
|
+
]),
|
|
588
|
+
_: 1
|
|
589
|
+
})
|
|
590
|
+
]),
|
|
591
|
+
_: 1
|
|
592
|
+
})
|
|
593
|
+
]),
|
|
594
|
+
_: 1
|
|
595
|
+
}),
|
|
596
|
+
a(fe, { gutter: 20 }, {
|
|
597
|
+
default: l(() => [
|
|
598
|
+
a(re, { span: 12 }, {
|
|
599
|
+
default: l(() => [
|
|
600
|
+
a(ie, {
|
|
601
|
+
prop: "sort",
|
|
602
|
+
label: "排序",
|
|
603
|
+
"label-position": "top"
|
|
604
|
+
}, {
|
|
605
|
+
default: l(() => [
|
|
606
|
+
a(Ve, {
|
|
607
|
+
modelValue: d.value.sort,
|
|
608
|
+
"onUpdate:modelValue": o[4] || (o[4] = (c) => d.value.sort = c),
|
|
609
|
+
"aria-label": "排序",
|
|
610
|
+
placeholder: "排序",
|
|
611
|
+
min: "1"
|
|
612
|
+
}, null, 8, ["modelValue"])
|
|
613
|
+
]),
|
|
614
|
+
_: 1
|
|
615
|
+
})
|
|
616
|
+
]),
|
|
617
|
+
_: 1
|
|
618
|
+
})
|
|
619
|
+
]),
|
|
620
|
+
_: 1
|
|
621
|
+
})
|
|
622
|
+
]),
|
|
623
|
+
_: 1
|
|
624
|
+
}, 8, ["model", "rules"])
|
|
625
|
+
])
|
|
626
|
+
])
|
|
627
|
+
])
|
|
628
|
+
]),
|
|
629
|
+
footer: l(() => [
|
|
630
|
+
i("div", St, [
|
|
631
|
+
o[13] || (o[13] = i("div", { class: "footer-left" }, null, -1)),
|
|
632
|
+
i("div", Lt, [
|
|
633
|
+
a(ce, {
|
|
634
|
+
class: "cancel",
|
|
635
|
+
emptyColor: !0,
|
|
636
|
+
onClickTrigger: e,
|
|
637
|
+
modelValue: "取消",
|
|
638
|
+
buttonType: "info"
|
|
639
|
+
}),
|
|
640
|
+
a(ce, {
|
|
641
|
+
class: "confirm",
|
|
642
|
+
emptyColor: !0,
|
|
643
|
+
onClickTrigger: R,
|
|
644
|
+
modelValue: "确定",
|
|
645
|
+
buttonType: "primary"
|
|
646
|
+
})
|
|
647
|
+
])
|
|
648
|
+
])
|
|
649
|
+
]),
|
|
650
|
+
_: 1
|
|
651
|
+
}, 8, ["visible"])
|
|
652
|
+
]);
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
}), At = /* @__PURE__ */ nt(Et, [["__scopeId", "data-v-c988d077"]]);
|
|
656
|
+
export {
|
|
657
|
+
At as default
|
|
658
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ref as g, resolveComponent as r, openBlock as l, createBlock as m, withCtx as n, createElementBlock as h, Fragment as k, renderList as B, renderSlot as i } from "vue";
|
|
2
|
+
const V = {
|
|
3
|
+
__name: "index",
|
|
4
|
+
props: {
|
|
5
|
+
collapseContents: Array,
|
|
6
|
+
accordion: {
|
|
7
|
+
type: Boolean,
|
|
8
|
+
default: !1
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
emits: ["change"],
|
|
12
|
+
setup(a, { emit: p }) {
|
|
13
|
+
const u = a, d = p, o = g([]), _ = () => {
|
|
14
|
+
d("change", o.value);
|
|
15
|
+
};
|
|
16
|
+
return (c, s) => {
|
|
17
|
+
const f = r("el-collapse-item"), v = r("el-collapse");
|
|
18
|
+
return l(), m(v, {
|
|
19
|
+
modelValue: o.value,
|
|
20
|
+
"onUpdate:modelValue": s[0] || (s[0] = (e) => o.value = e),
|
|
21
|
+
accordion: a.accordion,
|
|
22
|
+
onChange: _
|
|
23
|
+
}, {
|
|
24
|
+
default: n(() => [
|
|
25
|
+
(l(!0), h(k, null, B(u.collapseContents, (e, t) => (l(), m(f, {
|
|
26
|
+
key: t,
|
|
27
|
+
name: t
|
|
28
|
+
}, {
|
|
29
|
+
title: n(({ isActive: C }) => [
|
|
30
|
+
i(c.$slots, "title", {
|
|
31
|
+
item: e,
|
|
32
|
+
index: t,
|
|
33
|
+
isActive: C
|
|
34
|
+
})
|
|
35
|
+
]),
|
|
36
|
+
default: n(() => [
|
|
37
|
+
i(c.$slots, "content", {
|
|
38
|
+
item: e,
|
|
39
|
+
index: t
|
|
40
|
+
})
|
|
41
|
+
]),
|
|
42
|
+
_: 2
|
|
43
|
+
}, 1032, ["name"]))), 128))
|
|
44
|
+
]),
|
|
45
|
+
_: 3
|
|
46
|
+
}, 8, ["modelValue", "accordion"]);
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
V as default
|
|
52
|
+
};
|