ss-component-new 1.3.284 → 1.3.285

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.
Files changed (155) hide show
  1. package/dist/{MTLLoader-Bqhk9Jys.cjs → MTLLoader-CdxYhBAE.cjs} +1 -1
  2. package/dist/{MTLLoader-EOL84Fqh.js → MTLLoader-RsaYZtZ_.js} +1 -1
  3. package/dist/{OrbitControls-BWG74qkO.cjs → OrbitControls-BNTHZN2P.cjs} +1 -1
  4. package/dist/{OrbitControls-CxSrJzfK.js → OrbitControls-D4mDZcDl.js} +1 -1
  5. package/dist/{URDFLoader-BqeLHtkR.cjs → URDFLoader-B56WRl4z.cjs} +1 -1
  6. package/dist/{URDFLoader-BSQM0MFY.js → URDFLoader-BPNyxykV.js} +2 -2
  7. package/dist/{animationData-OUnrQP51.js → animationData-D4Q3av_t.js} +3 -3
  8. package/dist/animationData-DiyxzUT8.cjs +1 -0
  9. package/dist/array-CpxgPs3a.cjs +1 -0
  10. package/dist/{array-xKxoi12Q.js → array-DuZDl88A.js} +19 -18
  11. package/dist/clone-BrrxU6_J.js +8 -0
  12. package/dist/clone-Dn6v3xp6.cjs +1 -0
  13. package/dist/dayjs.min-DRU3LNcy.cjs +1 -0
  14. package/dist/dayjs.min-Dx_LN6Bu.js +366 -0
  15. package/dist/{eleIcon-BSJV_1ZM.js → eleIcon-BLNEA11T.js} +1 -1
  16. package/dist/{iconfont-Btz3-LPC.js → iconfont-DkmQztG1.js} +2 -2
  17. package/dist/{iconfont-BmNNxKez.cjs → iconfont-Dq-DsQsx.cjs} +1 -1
  18. package/dist/index--6MSMD-8.cjs +1 -0
  19. package/dist/{index-CGMtFV1Q.js → index--PidpjSy.js} +4 -3
  20. package/dist/index--ZVD8xbU.js +83 -0
  21. package/dist/{index-CeZUWqvK.js → index-8CZJn10Y.js} +2 -2
  22. package/dist/index-9I9R7yqt.cjs +15 -0
  23. package/dist/index-B6b9Lr8M.js +623 -0
  24. package/dist/{index-CJ8NDikV.js → index-BEGr3hBb.js} +32 -31
  25. package/dist/index-BET-Jwi1.cjs +1 -0
  26. package/dist/index-BIV-s4QY.js +29 -0
  27. package/dist/{index-CHH8aozZ.js → index-BIkySu-W.js} +2 -2
  28. package/dist/index-BOHy6XZd.cjs +1 -0
  29. package/dist/{index-ElqvI5ex.js → index-BcwDR57s.js} +2 -2
  30. package/dist/index-BdyYMxx4.cjs +1 -0
  31. package/dist/{index-BqvDjIQV.cjs → index-BeuuWlVO.cjs} +1 -1
  32. package/dist/index-BjZpJRk2.cjs +1 -0
  33. package/dist/index-BlAISTfa.cjs +1 -0
  34. package/dist/index-Bs0qreV1.cjs +1 -0
  35. package/dist/{index-_uOv3SVz.js → index-BsDMamej.js} +1 -1
  36. package/dist/{index-CjYg7JmZ.js → index-C1dVsNLG.js} +1 -1
  37. package/dist/{index-DV4EK1-2.js → index-C5bOtOIk.js} +4 -4
  38. package/dist/{index-jNLiwply.js → index-C7-Idrnv.js} +2 -2
  39. package/dist/index-C81Qb0f2.js +209 -0
  40. package/dist/index-CAcP6bx_.cjs +1 -0
  41. package/dist/index-CPFAai4T.cjs +2 -0
  42. package/dist/{index-4xnn1f1g.js → index-CQS-NY65.js} +25 -24
  43. package/dist/index-CQcXApCn.cjs +1 -0
  44. package/dist/index-CUJ_cdPT.cjs +1 -0
  45. package/dist/{index-G1sbqmHL.js → index-CV8QlXGI.js} +3 -3
  46. package/dist/index-CXgZFuTt.cjs +1 -0
  47. package/dist/{index-CXvcupvx.js → index-CY_HG5Gj.js} +4 -4
  48. package/dist/index-Ca-FxCDv.cjs +1 -0
  49. package/dist/index-Cbb4eaBp.js +343 -0
  50. package/dist/{index-BwMOEC4q.js → index-CdKgZ2A_.js} +22 -21
  51. package/dist/{index-DNweOPPD.cjs → index-CdrBTtcu.cjs} +1 -1
  52. package/dist/{index-e0mEoILb.js → index-Cg7Mpfpj.js} +13 -13
  53. package/dist/{index-DxvTyaZA.cjs → index-CuHxF23O.cjs} +1 -1
  54. package/dist/{index-C76FOIsp.js → index-D-kGKttu.js} +15 -14
  55. package/dist/{index-BeKB3RN2.js → index-D21dwfqO.js} +24 -24
  56. package/dist/index-D3qNUVY7.cjs +1 -0
  57. package/dist/{index-SZfR_fis.cjs → index-DAwnZFmG.cjs} +1 -1
  58. package/dist/{index-BL4nM14n.cjs → index-DLN6R2tJ.cjs} +1 -1
  59. package/dist/index-DTiolIgS.cjs +7 -0
  60. package/dist/{index-DPCE3lus.js → index-DTsHI5xQ.js} +2 -2
  61. package/dist/index-DXWN-UJr.cjs +1 -0
  62. package/dist/{index-BbPvKYdu.js → index-DXjgumn5.js} +5 -5
  63. package/dist/index-Df8bxCwR.js +665 -0
  64. package/dist/{index-0_jsBM-d.js → index-DfAmIlWW.js} +1505 -1501
  65. package/dist/{index-DTraz10-.cjs → index-DiPWs_9n.cjs} +1 -1
  66. package/dist/{index-Cpjq5z7o.js → index-DoEwWbTL.js} +24 -21
  67. package/dist/index-DsNHJYr-.cjs +1 -0
  68. package/dist/index-DtYkQPnf.cjs +1 -0
  69. package/dist/{index-C4InSXSr.js → index-Dx0DeTSC.js} +3698 -3650
  70. package/dist/{index-B_CkJtn2.js → index-DxhNwr8X.js} +1 -1
  71. package/dist/{index-BexCzyNE.js → index-H_NM-ZF-.js} +2 -2
  72. package/dist/{index-DwdykOc6.js → index-JG59WTIq.js} +1 -1
  73. package/dist/index-QG4F5kTH.js +2755 -0
  74. package/dist/{index-Bv70rbZ6.js → index-RSaGZhb3.js} +4 -4
  75. package/dist/index-W8p89C7t.cjs +1 -0
  76. package/dist/index-WTaP_KDd.cjs +1 -0
  77. package/dist/index-bPKGQ9bV.cjs +25 -0
  78. package/dist/{index-DaNy-S_9.js → index-cFt1QbzL.js} +33 -32
  79. package/dist/{index-BqkLBQns.js → index-gFBtUdzh.js} +15 -14
  80. package/dist/{index-BCKgE2pH.cjs → index-mHmXlK2R.cjs} +1 -1
  81. package/dist/{index-EiHA6j0x.cjs → index-qIpeOak9.cjs} +1 -1
  82. package/dist/index-vbxWL2yo.cjs +1 -0
  83. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BnwSB0LU.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DBQ_-V1_.js} +1974 -1968
  84. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DgWN3RSf.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DpyDtD61.cjs} +341 -341
  85. package/dist/isNil-CjWwlQS3.js +6 -0
  86. package/dist/isNil-x28vo2CT.cjs +1 -0
  87. package/dist/{isString-BLBZkTvd.js → isString-BA9CJNsy.js} +1 -1
  88. package/dist/{main-xxDziR4i.cjs → main-Avmwy4Fu.cjs} +2 -2
  89. package/dist/{main-Op9IAicu.js → main-Qn9bfEMh.js} +4 -4
  90. package/dist/menu-CtG1loFf.js +5637 -0
  91. package/dist/menu-Hdw0L-Y2.cjs +12 -0
  92. package/dist/{menuIndex-CtfirKit.js → menuIndex-DmS5cMwB.js} +44 -42
  93. package/dist/menuIndex-DqY0uteo.cjs +1 -0
  94. package/dist/obj/model.mtl +42 -0
  95. package/dist/obj/model.obj +26110 -0
  96. package/dist/{request-B3-w_S8Z.js → request-CoGtW0Ux.js} +60 -60
  97. package/dist/ss-component.cjs +1 -1
  98. package/dist/ss-component.css +1 -1
  99. package/dist/ss-component.js +19 -18
  100. package/dist/ss-component2.cjs +1 -1
  101. package/dist/ss-component2.js +13 -13
  102. package/dist/threeModel-Dr6PqFqA.cjs +1 -0
  103. package/dist/{threeModel-BQJlwx1b.js → threeModel-L66n6sW7.js} +5 -5
  104. package/dist/{threePreview-BvoOwR3P.js → threePreview-BwElOyqr.js} +5 -5
  105. package/dist/threePreview-CWRtmSvh.cjs +1 -0
  106. package/dist/{threeSceneView-Bza4Zdhc.js → threeSceneView-BEwen70K.js} +17 -15
  107. package/dist/{threeSceneView-B-mp8ti2.cjs → threeSceneView-BpPiRRPf.cjs} +1 -1
  108. package/dist/{threeSceneViewForCPMPIP-BDnRICpT.js → threeSceneViewForCPMPIP-BIiU_5px.js} +9 -9
  109. package/dist/{threeSceneViewForCPMPIP-E53xQhDU.cjs → threeSceneViewForCPMPIP-DpwlxGoP.cjs} +1 -1
  110. package/dist/{threeTrackPathView-BvdroPQT.js → threeTrackPathView-BckFDqUs.js} +6 -6
  111. package/dist/threeTrackPathView-CamXHHnK.cjs +1 -0
  112. package/dist/threeViewerHost-DLLTNlTR.cjs +1 -0
  113. package/dist/{threeViewerHost-DH4wt41-.js → threeViewerHost-DQz7pHM9.js} +3 -3
  114. package/dist/{urdfTree-HXxyasgJ.js → urdfTree-B6GL3kgV.js} +1 -1
  115. package/dist/{urdfTree-qfvqhztE.cjs → urdfTree-DDQw6tEb.cjs} +1 -1
  116. package/dist/{workpieceTreePanel-Cv1PkuIU.cjs → workpieceTreePanel-B6AVU13A.cjs} +1 -1
  117. package/dist/{workpieceTreePanel-CZR_19oS.js → workpieceTreePanel-BvO881iH.js} +4 -4
  118. package/package.json +1 -1
  119. package/public/obj/model.mtl +42 -0
  120. package/public/obj/model.obj +26110 -0
  121. package/dist/animationData-DKQAQ0Q6.cjs +0 -1
  122. package/dist/array-BQQV2GhI.cjs +0 -1
  123. package/dist/clone-CJYoRgdn.js +0 -8
  124. package/dist/clone-DkrZ-gjv.cjs +0 -1
  125. package/dist/index-5y5usJED.cjs +0 -1
  126. package/dist/index-AxVVkBRT.cjs +0 -1
  127. package/dist/index-BGlBomlq.cjs +0 -1
  128. package/dist/index-BSRFHLJm.cjs +0 -17
  129. package/dist/index-Bp1JJaW7.cjs +0 -1
  130. package/dist/index-BsdseSUM.cjs +0 -15
  131. package/dist/index-CUfzk-1j.cjs +0 -1
  132. package/dist/index-Cqn5PC2I.js +0 -672
  133. package/dist/index-D130jckG.cjs +0 -1
  134. package/dist/index-D4QLgaiH.cjs +0 -1
  135. package/dist/index-DGL0VTV1.cjs +0 -25
  136. package/dist/index-DM9A0QSh.cjs +0 -1
  137. package/dist/index-DVtUGC93.js +0 -349
  138. package/dist/index-D_TB8ir5.cjs +0 -1
  139. package/dist/index-DbfAkYyy.js +0 -89
  140. package/dist/index-DeDxP61d.cjs +0 -1
  141. package/dist/index-Dg5_a2Ay.cjs +0 -2
  142. package/dist/index-HeRIcJsN.cjs +0 -1
  143. package/dist/index-IFC0gmAb.cjs +0 -1
  144. package/dist/index-J1KoqqvS.js +0 -630
  145. package/dist/index-L7-gj3tB.cjs +0 -1
  146. package/dist/index-NHpnAgSO.cjs +0 -1
  147. package/dist/index-_foYuOcj.js +0 -9047
  148. package/dist/index-ayjWbW0b.cjs +0 -1
  149. package/dist/index-goFvtphp.cjs +0 -1
  150. package/dist/index-thsS5Z7G.cjs +0 -1
  151. package/dist/menuIndex-Dqei7A5D.cjs +0 -1
  152. package/dist/threeModel-CPgKY4_u.cjs +0 -1
  153. package/dist/threePreview-BkJHSJf8.cjs +0 -1
  154. package/dist/threeTrackPathView-BMbgm6yw.cjs +0 -1
  155. package/dist/threeViewerHost-Dpt8UN_F.cjs +0 -1
@@ -0,0 +1,665 @@
1
+ import { watch as ze, ref as v, computed as qe, defineComponent as Ue, onMounted as Ae, reactive as $e, resolveComponent as p, createElementBlock as ue, openBlock 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, g as Qe } from "./request-CoGtW0Ux.js";
3
+ import { f as de, w as Oe } from "./index-RSaGZhb3.js";
4
+ import { s as je, b as He, p as Ie, g as Je, h as Ke, c as We, u as Xe } from "./menu-CtG1loFf.js";
5
+ import { E as Ye, f as be } from "./index-QG4F5kTH.js";
6
+ import { f as Ze, i as et, e as tt, a as ot } from "./index-Cbb4eaBp.js";
7
+ import { _ as ce } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
8
+ import { s as at } from "./index-CnjGqJZS.js";
9
+ import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ const st = He(Ie), { systemUrl: D } = je(st);
11
+ let T = D.value === "" || !D.value ? "http://222.92.178.198:63002" : D.value;
12
+ ze(
13
+ () => D.value,
14
+ () => {
15
+ T = D.value === "" || !D.value ? "http://222.92.178.198:63002" : D.value;
16
+ },
17
+ { deep: !0, immediate: !0 }
18
+ );
19
+ function lt(u) {
20
+ return G({
21
+ url: `${T}/platform/getdata_post`,
22
+ method: "post",
23
+ data: u
24
+ });
25
+ }
26
+ function it(u) {
27
+ return G({
28
+ url: `${T}/platform/createdata_post`,
29
+ method: "post",
30
+ data: u
31
+ });
32
+ }
33
+ function rt(u) {
34
+ return G({
35
+ url: `${T}/platform/updatedata_post`,
36
+ method: "post",
37
+ data: u
38
+ });
39
+ }
40
+ function ut(u) {
41
+ return G({
42
+ url: `${T}/platform/deletedata_post`,
43
+ method: "post",
44
+ data: u
45
+ });
46
+ }
47
+ const pt = [
48
+ {
49
+ label: "编辑",
50
+ value: "edit"
51
+ },
52
+ {
53
+ label: "删除",
54
+ value: "delete"
55
+ }
56
+ ], he = "post", _ = {
57
+ ENABLE: {
58
+ value: "enable",
59
+ label: "启用",
60
+ tag: "primary"
61
+ },
62
+ DISABLED: {
63
+ value: "disabled",
64
+ label: "禁用",
65
+ tag: "info"
66
+ }
67
+ }, dt = () => {
68
+ const { platId: u, userId: r, isSuperAdmin: k } = Je(), Q = (e) => {
69
+ const t = e.toUpperCase(), n = _ == null ? void 0 : _[t];
70
+ return (n == null ? void 0 : n.label) || e;
71
+ }, V = (e) => {
72
+ const t = e.toUpperCase(), n = _ == null ? void 0 : _[t];
73
+ return (n == null ? void 0 : n.tag) || "info";
74
+ }, L = v({}), S = qe(() => {
75
+ var t;
76
+ return k.value ? !0 : ((t = L.value) == null ? void 0 : t.status) === Ze.EDITABLE.value;
77
+ }), O = async () => {
78
+ var I, R;
79
+ const t = {
80
+ pageName: "系统管理/职位管理",
81
+ platId: u.value,
82
+ userId: r.value
83
+ }, n = await Ke(t);
84
+ return (R = (I = n == null ? void 0 : n.data) == null ? void 0 : I.result) == null ? void 0 : R[0];
85
+ }, j = async () => {
86
+ if (!k.value)
87
+ return L.value = await O(), L;
88
+ }, N = () => ({
89
+ name: ""
90
+ }), y = v(N()), H = () => {
91
+ y.value = N();
92
+ }, P = v({
93
+ prop: "sort",
94
+ order: "ascending"
95
+ }), q = (e) => {
96
+ P.value = e;
97
+ }, w = v({
98
+ pageNum: 1,
99
+ pageSize: 10,
100
+ total: 0,
101
+ pageSizes: [5, 10, 20, 50, 100]
102
+ }), J = (e) => {
103
+ w.value.pageNum = e;
104
+ }, K = (e) => {
105
+ w.value.pageSize = e;
106
+ }, W = () => ({
107
+ platId: u.value,
108
+ pageNum: w.value.pageNum,
109
+ pageSize: w.value.pageSize,
110
+ filter: {
111
+ ...y.value
112
+ },
113
+ orderBy: {
114
+ prop: P.value.prop,
115
+ order: P.value.order
116
+ }
117
+ }), X = async (e) => {
118
+ var n;
119
+ const t = await lt(e);
120
+ return (n = t == null ? void 0 : t.data) == null ? void 0 : n.result;
121
+ }, U = async (e) => {
122
+ const t = W(), n = await X(t), { total: I } = n || {};
123
+ return w.value.total = I, n || {};
124
+ }, Y = (e) => {
125
+ const t = be(Date.now()), n = We(e);
126
+ return n.update_time = t, n;
127
+ }, b = (e) => {
128
+ const t = be(Date.now());
129
+ let n = {
130
+ name: "",
131
+ code: "",
132
+ sort: 1,
133
+ status: _.ENABLE.value,
134
+ create_time: t,
135
+ update_time: t
136
+ };
137
+ if (e) {
138
+ const I = Y(e);
139
+ n = {
140
+ ...n,
141
+ ...I
142
+ };
143
+ }
144
+ return n;
145
+ }, A = (e) => {
146
+ const t = [e];
147
+ return {
148
+ platId: u.value,
149
+ changePostData: t
150
+ };
151
+ }, Z = async (e) => {
152
+ delete e.post_id;
153
+ const t = A(e);
154
+ await it(t);
155
+ }, ee = async (e) => {
156
+ await Z(e);
157
+ }, te = async (e) => {
158
+ const t = A(e);
159
+ await rt(t);
160
+ }, h = async (e) => {
161
+ await te(e);
162
+ }, oe = async (e) => {
163
+ const { post_id: t } = e, n = {
164
+ platId: u.value,
165
+ post_id: [t]
166
+ };
167
+ await ut(n);
168
+ }, $ = async (e) => {
169
+ await Ye.confirm("是否确认要删除", "", {
170
+ showClose: !1,
171
+ confirmButtonText: "确认",
172
+ cancelButtonText: "取消",
173
+ type: "warning",
174
+ modalClass: "delete-position-message-modal",
175
+ confirmButtonClass: "delete-position-confirm"
176
+ }), await oe(e);
177
+ }, ae = async (e) => {
178
+ var n;
179
+ const t = await ot(e);
180
+ return (n = t == null ? void 0 : t.data) == null ? void 0 : n.result;
181
+ }, d = async (e) => {
182
+ const t = new FormData();
183
+ return t.set("platId", u.value), t.set("file", e), t.set("tableType", he), await ae(t);
184
+ }, E = async (e) => await tt(e), ne = async () => {
185
+ const e = {
186
+ platId: u.value,
187
+ tableType: he,
188
+ filter: y.value,
189
+ orderBy: P.value
190
+ }, t = await E(e);
191
+ return et(t), t;
192
+ }, F = [["名称", "编码", "状态", "排序"]];
193
+ return {
194
+ sortInfo: P,
195
+ setSortInfo: q,
196
+ queryInfo: y,
197
+ resetQuery: H,
198
+ pageInfo: w,
199
+ setPageNum: J,
200
+ setPageSize: K,
201
+ hasPositionEditAuth: S,
202
+ initPositionItem: b,
203
+ initPositionConfig: j,
204
+ initGetByPage: U,
205
+ initCreate: ee,
206
+ initUpdate: h,
207
+ initDelete: $,
208
+ getStatusLabelByValue: Q,
209
+ getStatusTagByValue: V,
210
+ initImport: d,
211
+ initExport: ne,
212
+ exportTemplate: async () => {
213
+ const e = de.aoa_to_sheet(F), t = de.book_new();
214
+ de.book_append_sheet(t, e, "职位"), Oe(t, "职位模板.xlsx");
215
+ }
216
+ };
217
+ }, 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" }, ht = ["onClick"], It = { 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({
218
+ __name: "index",
219
+ setup(u) {
220
+ const r = Xe(Ie), {
221
+ sortInfo: k,
222
+ setSortInfo: Q,
223
+ queryInfo: V,
224
+ resetQuery: L,
225
+ pageInfo: S,
226
+ setPageNum: O,
227
+ setPageSize: j,
228
+ initGetByPage: N,
229
+ hasPositionEditAuth: y,
230
+ initPositionConfig: H,
231
+ initPositionItem: z,
232
+ initCreate: P,
233
+ initUpdate: q,
234
+ initDelete: me,
235
+ getStatusLabelByValue: w,
236
+ getStatusTagByValue: J,
237
+ initImport: K,
238
+ initExport: W,
239
+ exportTemplate: X
240
+ } = dt(), U = v([]), Y = async () => {
241
+ const s = await N(), { postData: o = [] } = s;
242
+ return o;
243
+ }, b = async () => {
244
+ U.value = await Y();
245
+ }, A = (s) => {
246
+ O(s), r.setImportLoading(!0), b().finally(() => {
247
+ r.setImportLoading(!1);
248
+ });
249
+ }, Z = (s) => {
250
+ j(s), r.setImportLoading(!0), b().finally(() => {
251
+ r.setImportLoading(!1);
252
+ });
253
+ }, ee = (s) => {
254
+ const { prop: o, order: m } = s;
255
+ Q({
256
+ prop: o,
257
+ order: m
258
+ }), b();
259
+ }, te = async () => {
260
+ L(), r.setImportLoading(!0), await b().finally(() => {
261
+ r.setImportLoading(!1);
262
+ });
263
+ }, h = async () => {
264
+ await H(), await b();
265
+ };
266
+ Ae(async () => {
267
+ r.setImportLoading(!0), await h().finally(() => {
268
+ r.setImportLoading(!1);
269
+ });
270
+ });
271
+ const oe = async (s, o) => {
272
+ if (!y.value)
273
+ return;
274
+ const { value: m } = s, g = o.row;
275
+ if (m === "edit") {
276
+ se(g);
277
+ return;
278
+ }
279
+ if (m === "delete") {
280
+ r.setImportLoading(!0), await I(g).finally(() => {
281
+ r.setImportLoading(!1);
282
+ });
283
+ return;
284
+ }
285
+ }, $ = v(), ae = $e({
286
+ name: [
287
+ { required: !0, message: "请输入职位名称", trigger: "blur" }
288
+ ],
289
+ code: [
290
+ { required: !0, message: "请选择职位编码", trigger: "blur" }
291
+ ],
292
+ sort: [
293
+ { required: !0, message: "请输入排序", trigger: "blur" }
294
+ ]
295
+ }), d = v(z());
296
+ v([]);
297
+ const E = v(!1), ne = () => {
298
+ E.value = !0;
299
+ }, F = () => {
300
+ E.value = !1;
301
+ }, se = async (s) => {
302
+ y.value && (d.value = z(s), ne());
303
+ }, e = () => {
304
+ d.value = z(), F();
305
+ }, t = async () => {
306
+ await P(d.value), await h();
307
+ }, n = async () => {
308
+ await q(d.value), await h();
309
+ }, I = async (s) => {
310
+ await me(s), await h();
311
+ }, R = async () => {
312
+ var o, m;
313
+ await ((m = (o = $.value) == null ? void 0 : o.validate) == null ? void 0 : m.call(o));
314
+ const { post_id: s } = d.value;
315
+ r.setImportLoading(!0), s ? await n().finally(() => {
316
+ r.setImportLoading(!1);
317
+ }) : await t().finally(() => {
318
+ r.setImportLoading(!1);
319
+ }), e();
320
+ }, Pe = async (s) => {
321
+ if (!y.value)
322
+ return;
323
+ const { status: o } = s;
324
+ _.ENABLE.value === o ? s.status = _.DISABLED.value : s.status = _.ENABLE.value, await q(s), await h();
325
+ }, Ce = async () => {
326
+ await De();
327
+ }, De = async () => {
328
+ const s = document.createElement("input");
329
+ s.type = "file", s.accept = ".xlsx", s.onchange = async (o) => {
330
+ var x;
331
+ const g = (x = o.target.files) == null ? void 0 : x[0];
332
+ if (g)
333
+ try {
334
+ r.setImportLoading(!0), await K(g), await h(), r.setImportLoading(!1);
335
+ } catch {
336
+ r.setImportLoading(!1);
337
+ }
338
+ }, s.click();
339
+ }, Se = async () => {
340
+ r.setImportLoading(!0), await W().finally(() => {
341
+ r.setImportLoading(!1);
342
+ });
343
+ }, Le = async () => {
344
+ X();
345
+ };
346
+ return (s, o) => {
347
+ var ge, _e, ve, ye;
348
+ const m = p("el-input"), g = p("el-button"), x = p("el-icon"), le = p("el-dropdown-item"), Ee = p("el-dropdown-menu"), xe = p("el-dropdown"), B = p("el-table-column"), Be = p("el-tag"), Te = p("el-table"), ke = 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");
349
+ return pe(), ue("div", ct, [
350
+ i("div", mt, [
351
+ i("div", ft, [
352
+ i("div", gt, [
353
+ a(m, {
354
+ modelValue: f(V).name,
355
+ "onUpdate:modelValue": o[0] || (o[0] = (c) => f(V).name = c),
356
+ style: { width: "240px" },
357
+ placeholder: "请输入名称"
358
+ }, null, 8, ["modelValue"]),
359
+ a(g, {
360
+ type: "primary",
361
+ onClick: b
362
+ }, {
363
+ default: l(() => o[5] || (o[5] = [
364
+ C("查询")
365
+ ])),
366
+ _: 1,
367
+ __: [5]
368
+ }),
369
+ a(g, {
370
+ type: "primary",
371
+ plain: "",
372
+ onClick: te
373
+ }, {
374
+ default: l(() => o[6] || (o[6] = [
375
+ C("重置")
376
+ ])),
377
+ _: 1,
378
+ __: [6]
379
+ })
380
+ ])
381
+ ]),
382
+ i("div", _t, [
383
+ a(g, {
384
+ type: "primary",
385
+ onClick: Ce
386
+ }, {
387
+ default: l(() => [
388
+ o[7] || (o[7] = C(" 导入 ")),
389
+ a(x, { class: "el-icon--right" }, {
390
+ default: l(() => [
391
+ a(f(Ge))
392
+ ]),
393
+ _: 1
394
+ })
395
+ ]),
396
+ _: 1,
397
+ __: [7]
398
+ }),
399
+ a(xe, null, {
400
+ dropdown: l(() => [
401
+ a(Ee, null, {
402
+ default: l(() => [
403
+ a(le, { onClick: Le }, {
404
+ default: l(() => o[9] || (o[9] = [
405
+ C("导出模板")
406
+ ])),
407
+ _: 1,
408
+ __: [9]
409
+ }),
410
+ a(le, { onClick: Se }, {
411
+ default: l(() => o[10] || (o[10] = [
412
+ C("导出数据")
413
+ ])),
414
+ _: 1,
415
+ __: [10]
416
+ })
417
+ ]),
418
+ _: 1
419
+ })
420
+ ]),
421
+ default: l(() => [
422
+ a(g, { type: "primary" }, {
423
+ default: l(() => [
424
+ o[8] || (o[8] = C(" 导出 ")),
425
+ a(x, { class: "el-icon--right" }, {
426
+ default: l(() => [
427
+ a(f(Qe))
428
+ ]),
429
+ _: 1
430
+ })
431
+ ]),
432
+ _: 1,
433
+ __: [8]
434
+ })
435
+ ]),
436
+ _: 1
437
+ }),
438
+ a(ce, {
439
+ emptyColor: !0,
440
+ onClickTrigger: o[1] || (o[1] = (c) => se()),
441
+ modelValue: "创建职位",
442
+ buttonType: "primary"
443
+ })
444
+ ])
445
+ ]),
446
+ i("div", vt, [
447
+ i("div", yt, [
448
+ i("div", wt, [
449
+ a(Te, {
450
+ class: "department-table",
451
+ data: U.value,
452
+ "empty-text": "",
453
+ "default-sort": f(k),
454
+ onSortChange: ee
455
+ }, {
456
+ default: l(() => [
457
+ a(B, {
458
+ prop: "name",
459
+ label: "名称",
460
+ align: "center"
461
+ }),
462
+ a(B, {
463
+ prop: "code",
464
+ label: "编码",
465
+ align: "center"
466
+ }),
467
+ a(B, {
468
+ prop: "status",
469
+ label: "状态",
470
+ align: "center"
471
+ }, {
472
+ default: l((c) => [
473
+ a(Be, {
474
+ class: "status-tag",
475
+ type: f(J)(c.row.status),
476
+ title: "点击切换",
477
+ onClick: (M) => Pe(c.row)
478
+ }, {
479
+ default: l(() => [
480
+ C(we(f(w)(c.row.status)), 1)
481
+ ]),
482
+ _: 2
483
+ }, 1032, ["type", "onClick"])
484
+ ]),
485
+ _: 1
486
+ }),
487
+ a(B, {
488
+ prop: "sort",
489
+ label: "排序",
490
+ align: "center",
491
+ sortable: "custom"
492
+ }),
493
+ a(B, {
494
+ label: "操作",
495
+ align: "center"
496
+ }, {
497
+ default: l((c) => [
498
+ i("div", bt, [
499
+ (pe(!0), ue(Fe, null, Re(f(pt), (M) => (pe(), ue("div", {
500
+ class: "operate-item",
501
+ key: M.value,
502
+ onClick: Me((xt) => oe(M, c), ["stop"])
503
+ }, we(M.label), 9, ht))), 128))
504
+ ])
505
+ ]),
506
+ _: 1
507
+ })
508
+ ]),
509
+ _: 1
510
+ }, 8, ["data", "default-sort"])
511
+ ]),
512
+ i("div", It, [
513
+ o[11] || (o[11] = i("div", null, null, -1)),
514
+ a(ke, {
515
+ onSizeChange: Z,
516
+ onCurrentChange: A,
517
+ "current-page": (ge = f(S)) == null ? void 0 : ge.pageNum,
518
+ "page-sizes": (_e = f(S)) == null ? void 0 : _e.pageSizes,
519
+ "page-size": ((ve = f(S)) == null ? void 0 : ve.pageSize) ?? 10,
520
+ layout: "total, sizes, prev, pager, next, jumper",
521
+ total: ((ye = f(S)) == null ? void 0 : ye.total) ?? 0
522
+ }, null, 8, ["current-page", "page-sizes", "page-size", "total"])
523
+ ])
524
+ ])
525
+ ]),
526
+ o[14] || (o[14] = i("div", { class: "footer" }, [
527
+ i("div", { class: "footer-left" }),
528
+ i("div", { class: "footer-right" })
529
+ ], -1)),
530
+ a(at, {
531
+ class: "position-edit-dialog",
532
+ visible: E.value,
533
+ title: "职位信息",
534
+ onBeforeDestroy: F,
535
+ showClose: !0,
536
+ closeOnClickModal: !1,
537
+ closeOnPressEscape: !1,
538
+ modalClass: "position-edit-modal",
539
+ alignCenter: !0,
540
+ appendToBody: !1
541
+ }, {
542
+ default: l(() => [
543
+ i("div", Pt, [
544
+ o[12] || (o[12] = i("div", { class: "position-management-header" }, [
545
+ i("div", { class: "header-left" }),
546
+ i("div", { class: "header-right" })
547
+ ], -1)),
548
+ i("div", Ct, [
549
+ i("div", Dt, [
550
+ a(Ne, {
551
+ class: "position-edit-form",
552
+ ref_key: "positionFormRef",
553
+ ref: $,
554
+ model: d.value,
555
+ rules: ae
556
+ }, {
557
+ default: l(() => [
558
+ a(fe, { gutter: 20 }, {
559
+ default: l(() => [
560
+ a(re, { span: 12 }, {
561
+ default: l(() => [
562
+ a(ie, {
563
+ prop: "name",
564
+ label: "职位名称",
565
+ "label-position": "top"
566
+ }, {
567
+ default: l(() => [
568
+ a(m, {
569
+ modelValue: d.value.name,
570
+ "onUpdate:modelValue": o[2] || (o[2] = (c) => d.value.name = c),
571
+ "aria-label": "职位名称",
572
+ placeholder: "职位名称"
573
+ }, null, 8, ["modelValue"])
574
+ ]),
575
+ _: 1
576
+ })
577
+ ]),
578
+ _: 1
579
+ }),
580
+ a(re, { span: 12 }, {
581
+ default: l(() => [
582
+ a(ie, {
583
+ prop: "code",
584
+ label: "职位编码",
585
+ "label-position": "top"
586
+ }, {
587
+ default: l(() => [
588
+ a(m, {
589
+ modelValue: d.value.code,
590
+ "onUpdate:modelValue": o[3] || (o[3] = (c) => d.value.code = c),
591
+ "aria-label": "职位编码",
592
+ placeholder: "职位编码"
593
+ }, null, 8, ["modelValue"])
594
+ ]),
595
+ _: 1
596
+ })
597
+ ]),
598
+ _: 1
599
+ })
600
+ ]),
601
+ _: 1
602
+ }),
603
+ a(fe, { gutter: 20 }, {
604
+ default: l(() => [
605
+ a(re, { span: 12 }, {
606
+ default: l(() => [
607
+ a(ie, {
608
+ prop: "sort",
609
+ label: "排序",
610
+ "label-position": "top"
611
+ }, {
612
+ default: l(() => [
613
+ a(Ve, {
614
+ modelValue: d.value.sort,
615
+ "onUpdate:modelValue": o[4] || (o[4] = (c) => d.value.sort = c),
616
+ "aria-label": "排序",
617
+ placeholder: "排序",
618
+ min: "1"
619
+ }, null, 8, ["modelValue"])
620
+ ]),
621
+ _: 1
622
+ })
623
+ ]),
624
+ _: 1
625
+ })
626
+ ]),
627
+ _: 1
628
+ })
629
+ ]),
630
+ _: 1
631
+ }, 8, ["model", "rules"])
632
+ ])
633
+ ])
634
+ ])
635
+ ]),
636
+ footer: l(() => [
637
+ i("div", St, [
638
+ o[13] || (o[13] = i("div", { class: "footer-left" }, null, -1)),
639
+ i("div", Lt, [
640
+ a(ce, {
641
+ class: "cancel",
642
+ emptyColor: !0,
643
+ onClickTrigger: e,
644
+ modelValue: "取消",
645
+ buttonType: "info"
646
+ }),
647
+ a(ce, {
648
+ class: "confirm",
649
+ emptyColor: !0,
650
+ onClickTrigger: R,
651
+ modelValue: "确定",
652
+ buttonType: "primary"
653
+ })
654
+ ])
655
+ ])
656
+ ]),
657
+ _: 1
658
+ }, 8, ["visible"])
659
+ ]);
660
+ };
661
+ }
662
+ }), $t = /* @__PURE__ */ nt(Et, [["__scopeId", "data-v-c988d077"]]);
663
+ export {
664
+ $t as default
665
+ };