ss-component-new 1.3.283 → 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 (158) hide show
  1. package/dist/{MTLLoader-CZBprXNP.cjs → MTLLoader-CdxYhBAE.cjs} +1 -1
  2. package/dist/{MTLLoader-ByvO3xpX.js → MTLLoader-RsaYZtZ_.js} +1 -1
  3. package/dist/{OrbitControls-pu_IAkAV.cjs → OrbitControls-BNTHZN2P.cjs} +1 -1
  4. package/dist/{OrbitControls-gFOfDXco.js → OrbitControls-D4mDZcDl.js} +1 -1
  5. package/dist/{URDFLoader-CJmlsLyG.cjs → URDFLoader-B56WRl4z.cjs} +1 -1
  6. package/dist/{URDFLoader-DItN2Cwe.js → URDFLoader-BPNyxykV.js} +2 -2
  7. package/dist/{animationData-DCnGuqAH.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-B8KzZ5ux.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-DAGWcDwE.js → iconfont-DkmQztG1.js} +2 -2
  17. package/dist/{iconfont-Cgm0Wjk4.cjs → iconfont-Dq-DsQsx.cjs} +1 -1
  18. package/dist/icons/svg/softCancel.svg +1 -0
  19. package/dist/icons/svg/softConfirm.svg +1 -0
  20. package/dist/icons/svg/softRemove.svg +1 -0
  21. package/dist/index--6MSMD-8.cjs +1 -0
  22. package/dist/{index-Du7JJqdx.js → index--PidpjSy.js} +4 -3
  23. package/dist/index--ZVD8xbU.js +83 -0
  24. package/dist/{index-CDlw-J9H.js → index-8CZJn10Y.js} +2 -2
  25. package/dist/index-9I9R7yqt.cjs +15 -0
  26. package/dist/index-B6b9Lr8M.js +623 -0
  27. package/dist/{index-C0s4Fa0R.js → index-BEGr3hBb.js} +32 -31
  28. package/dist/index-BET-Jwi1.cjs +1 -0
  29. package/dist/index-BIV-s4QY.js +29 -0
  30. package/dist/{index-CHH8aozZ.js → index-BIkySu-W.js} +2 -2
  31. package/dist/index-BOHy6XZd.cjs +1 -0
  32. package/dist/{index-Bj-ss9u6.js → index-BcwDR57s.js} +2 -2
  33. package/dist/index-BdyYMxx4.cjs +1 -0
  34. package/dist/{index-DB9zlG2m.cjs → index-BeuuWlVO.cjs} +1 -1
  35. package/dist/index-BjZpJRk2.cjs +1 -0
  36. package/dist/index-BlAISTfa.cjs +1 -0
  37. package/dist/index-Bs0qreV1.cjs +1 -0
  38. package/dist/{index-_uOv3SVz.js → index-BsDMamej.js} +1 -1
  39. package/dist/{index-BkBMQfsT.js → index-C1dVsNLG.js} +1 -1
  40. package/dist/{index-CULs51Vg.js → index-C5bOtOIk.js} +4 -4
  41. package/dist/{index-UqJOpNhM.js → index-C7-Idrnv.js} +2 -2
  42. package/dist/index-C81Qb0f2.js +209 -0
  43. package/dist/index-CAcP6bx_.cjs +1 -0
  44. package/dist/index-CPFAai4T.cjs +2 -0
  45. package/dist/{index-K_IiVShj.js → index-CQS-NY65.js} +25 -24
  46. package/dist/index-CQcXApCn.cjs +1 -0
  47. package/dist/index-CUJ_cdPT.cjs +1 -0
  48. package/dist/{index-BjEIX08g.js → index-CV8QlXGI.js} +3 -3
  49. package/dist/index-CXgZFuTt.cjs +1 -0
  50. package/dist/{index-BZ_R-Jcp.js → index-CY_HG5Gj.js} +4 -4
  51. package/dist/index-Ca-FxCDv.cjs +1 -0
  52. package/dist/index-Cbb4eaBp.js +343 -0
  53. package/dist/{index-D02CK1_5.js → index-CdKgZ2A_.js} +22 -21
  54. package/dist/{index-KrjXZO_d.cjs → index-CdrBTtcu.cjs} +1 -1
  55. package/dist/{index-CPmO67dF.js → index-Cg7Mpfpj.js} +13 -13
  56. package/dist/{index-BZwKLYgT.cjs → index-CuHxF23O.cjs} +1 -1
  57. package/dist/{index-pCW3eQ8e.js → index-D-kGKttu.js} +15 -14
  58. package/dist/{index-Dr9e3mBT.js → index-D21dwfqO.js} +24 -24
  59. package/dist/index-D3qNUVY7.cjs +1 -0
  60. package/dist/{index-77VURUPj.cjs → index-DAwnZFmG.cjs} +1 -1
  61. package/dist/{index-Cy1XXdCZ.cjs → index-DLN6R2tJ.cjs} +1 -1
  62. package/dist/index-DTiolIgS.cjs +7 -0
  63. package/dist/{index-C8kDBsVW.js → index-DTsHI5xQ.js} +2 -2
  64. package/dist/index-DXWN-UJr.cjs +1 -0
  65. package/dist/{index-Cf5PK2bA.js → index-DXjgumn5.js} +5 -5
  66. package/dist/index-Df8bxCwR.js +665 -0
  67. package/dist/{index-B_rDLuPm.js → index-DfAmIlWW.js} +3355 -3351
  68. package/dist/{index-m6ZHCUtH.cjs → index-DiPWs_9n.cjs} +1 -1
  69. package/dist/{index-C2PJu8mA.js → index-DoEwWbTL.js} +1421 -1409
  70. package/dist/index-DsNHJYr-.cjs +1 -0
  71. package/dist/index-DtYkQPnf.cjs +1 -0
  72. package/dist/index-Dx0DeTSC.js +9370 -0
  73. package/dist/{index-B_CkJtn2.js → index-DxhNwr8X.js} +1 -1
  74. package/dist/{index-BusM6WrM.js → index-H_NM-ZF-.js} +2 -2
  75. package/dist/{index-D9SznbhK.js → index-JG59WTIq.js} +1 -1
  76. package/dist/index-QG4F5kTH.js +2755 -0
  77. package/dist/{index-CW0nTu7g.js → index-RSaGZhb3.js} +4 -4
  78. package/dist/index-W8p89C7t.cjs +1 -0
  79. package/dist/index-WTaP_KDd.cjs +1 -0
  80. package/dist/index-bPKGQ9bV.cjs +25 -0
  81. package/dist/{index-DpfXqgm2.js → index-cFt1QbzL.js} +33 -32
  82. package/dist/{index-B5tAsf_R.js → index-gFBtUdzh.js} +15 -14
  83. package/dist/{index-DVrEV4RS.cjs → index-mHmXlK2R.cjs} +1 -1
  84. package/dist/{index-wHrfokYf.cjs → index-qIpeOak9.cjs} +1 -1
  85. package/dist/index-vbxWL2yo.cjs +1 -0
  86. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-mXh6sJo_.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DBQ_-V1_.js} +130 -129
  87. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-GxCgBV8k.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DpyDtD61.cjs} +327 -327
  88. package/dist/isNil-CjWwlQS3.js +6 -0
  89. package/dist/isNil-x28vo2CT.cjs +1 -0
  90. package/dist/{isString-BLBZkTvd.js → isString-BA9CJNsy.js} +1 -1
  91. package/dist/{main-DECFHBC8.cjs → main-Avmwy4Fu.cjs} +2 -2
  92. package/dist/{main-Dglgquls.js → main-Qn9bfEMh.js} +4 -4
  93. package/dist/menu-CtG1loFf.js +5637 -0
  94. package/dist/menu-Hdw0L-Y2.cjs +12 -0
  95. package/dist/{menuIndex-6Fi3NW3Q.js → menuIndex-DmS5cMwB.js} +44 -42
  96. package/dist/menuIndex-DqY0uteo.cjs +1 -0
  97. package/dist/{request-B3-w_S8Z.js → request-CoGtW0Ux.js} +60 -60
  98. package/dist/ss-component.cjs +1 -1
  99. package/dist/ss-component.css +1 -1
  100. package/dist/ss-component.js +19 -18
  101. package/dist/ss-component2.cjs +1 -1
  102. package/dist/ss-component2.js +13 -13
  103. package/dist/threeModel-Dr6PqFqA.cjs +1 -0
  104. package/dist/{threeModel-BpjWJsnX.js → threeModel-L66n6sW7.js} +5 -5
  105. package/dist/{threePreview-DeEknsco.js → threePreview-BwElOyqr.js} +5 -5
  106. package/dist/threePreview-CWRtmSvh.cjs +1 -0
  107. package/dist/{threeSceneView-D5z_ADmg.js → threeSceneView-BEwen70K.js} +17 -15
  108. package/dist/{threeSceneView-C_ianMnn.cjs → threeSceneView-BpPiRRPf.cjs} +1 -1
  109. package/dist/{threeSceneViewForCPMPIP-CMDrp7Du.js → threeSceneViewForCPMPIP-BIiU_5px.js} +9 -9
  110. package/dist/{threeSceneViewForCPMPIP-BicBhum7.cjs → threeSceneViewForCPMPIP-DpwlxGoP.cjs} +1 -1
  111. package/dist/{threeTrackPathView-DDKn5Z5k.js → threeTrackPathView-BckFDqUs.js} +6 -6
  112. package/dist/threeTrackPathView-CamXHHnK.cjs +1 -0
  113. package/dist/threeViewerHost-DLLTNlTR.cjs +1 -0
  114. package/dist/{threeViewerHost-BgN5No1S.js → threeViewerHost-DQz7pHM9.js} +3 -3
  115. package/dist/{urdfTree-DYLobS3F.js → urdfTree-B6GL3kgV.js} +1 -1
  116. package/dist/{urdfTree-ghaTIId6.cjs → urdfTree-DDQw6tEb.cjs} +1 -1
  117. package/dist/{workpieceTreePanel-BAu_7YB6.cjs → workpieceTreePanel-B6AVU13A.cjs} +1 -1
  118. package/dist/{workpieceTreePanel-PUhlo13O.js → workpieceTreePanel-BvO881iH.js} +4 -4
  119. package/package.json +1 -1
  120. package/public/icons/svg/softCancel.svg +1 -0
  121. package/public/icons/svg/softConfirm.svg +1 -0
  122. package/public/icons/svg/softRemove.svg +1 -0
  123. package/dist/animationData-CIM8_iu6.cjs +0 -1
  124. package/dist/array-DlgywTCo.cjs +0 -1
  125. package/dist/clone-BjZYQq33.cjs +0 -1
  126. package/dist/clone-XNy-gcwO.js +0 -8
  127. package/dist/index-5zdMes-B.cjs +0 -1
  128. package/dist/index-7aU_bwDz.js +0 -8959
  129. package/dist/index-9Q1_s4bE.cjs +0 -1
  130. package/dist/index-B3yoiLPJ.cjs +0 -1
  131. package/dist/index-BAGLBch9.cjs +0 -1
  132. package/dist/index-BB392QRk.js +0 -672
  133. package/dist/index-BBxu8MeT.js +0 -89
  134. package/dist/index-BHLuFtij.cjs +0 -1
  135. package/dist/index-BIDFrngN.cjs +0 -1
  136. package/dist/index-BM4Blp7z.cjs +0 -1
  137. package/dist/index-BUxJL5W1.cjs +0 -1
  138. package/dist/index-BmTzLFkx.js +0 -630
  139. package/dist/index-BuAZTecX.cjs +0 -1
  140. package/dist/index-C-6jbR4D.cjs +0 -1
  141. package/dist/index-C6dVScaZ.js +0 -349
  142. package/dist/index-Cm-ohQUX.cjs +0 -1
  143. package/dist/index-D0k42JA4.cjs +0 -15
  144. package/dist/index-D4QFcxJ-.js +0 -9196
  145. package/dist/index-DGULgN2U.cjs +0 -1
  146. package/dist/index-DRBuICJi.cjs +0 -2
  147. package/dist/index-DeAnBGqU.cjs +0 -18
  148. package/dist/index-Dtq1IcgW.cjs +0 -1
  149. package/dist/index-RNu0IAS4.cjs +0 -1
  150. package/dist/index-RpaKc4Lu.cjs +0 -25
  151. package/dist/index-ZGUlK0ro.cjs +0 -1
  152. package/dist/index-ity_8Fmx.cjs +0 -1
  153. package/dist/index-vUaB-HgD.cjs +0 -1
  154. package/dist/menuIndex-SRHovjCX.cjs +0 -1
  155. package/dist/threeModel-BAzu1aRu.cjs +0 -1
  156. package/dist/threePreview-5dyC70n0.cjs +0 -1
  157. package/dist/threeTrackPathView-DHLZAc5E.cjs +0 -1
  158. package/dist/threeViewerHost-B_4KXwsO.cjs +0 -1
@@ -1,672 +0,0 @@
1
- import { watch as At, computed as ct, ref as v, defineComponent as Ft, onMounted as $t, reactive as Rt, resolveComponent as u, createElementBlock as pt, openBlock as dt, createElementVNode as r, createVNode as a, unref as f, withCtx as l, createTextVNode as C, toDisplayString as Pt, Fragment as Mt, renderList as Gt, withModifiers as Qt } from "vue";
2
- import { s as G, u as Ot, g as jt } from "./request-B3-w_S8Z.js";
3
- import { f as mt, w as Ht } from "./index-CW0nTu7g.js";
4
- import { s as Jt, b as St, p as gt, u as Lt, t as Kt, E as Wt, F as Ct, i as Xt, c as Yt } from "./index-7aU_bwDz.js";
5
- import { f as Zt, i as te, e as ee, a as oe } from "./index-C6dVScaZ.js";
6
- import { _ as ft } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
7
- import { s as ae } from "./index-CnjGqJZS.js";
8
- import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- const se = St(gt), { systemUrl: D } = Jt(se);
10
- let k = D.value === "" || !D.value ? "http://222.92.178.198:63002" : D.value;
11
- At(
12
- () => D.value,
13
- () => {
14
- k = D.value === "" || !D.value ? "http://222.92.178.198:63002" : D.value;
15
- },
16
- { deep: !0, immediate: !0 }
17
- );
18
- function le(d) {
19
- return G({
20
- url: `${k}/platform/getdata_post`,
21
- method: "post",
22
- data: d
23
- });
24
- }
25
- function ie(d) {
26
- return G({
27
- url: `${k}/platform/createdata_post`,
28
- method: "post",
29
- data: d
30
- });
31
- }
32
- function re(d) {
33
- return G({
34
- url: `${k}/platform/updatedata_post`,
35
- method: "post",
36
- data: d
37
- });
38
- }
39
- function ue(d) {
40
- return G({
41
- url: `${k}/platform/deletedata_post`,
42
- method: "post",
43
- data: d
44
- });
45
- }
46
- const ce = [
47
- {
48
- label: "编辑",
49
- value: "edit"
50
- },
51
- {
52
- label: "删除",
53
- value: "delete"
54
- }
55
- ], Dt = "post", y = {
56
- ENABLE: {
57
- value: "enable",
58
- label: "启用",
59
- tag: "primary"
60
- },
61
- DISABLED: {
62
- value: "disabled",
63
- label: "禁用",
64
- tag: "info"
65
- }
66
- }, pe = () => {
67
- const d = St();
68
- Lt(gt);
69
- const i = () => {
70
- const t = d.loginUserInfo, { plat_id: e } = t || {};
71
- return e;
72
- }, Q = ct(() => {
73
- const t = d.loginUserInfo, { id: e } = t || {};
74
- return e;
75
- }), V = ct(() => {
76
- const t = d.loginUserInfo, { layer: e } = t || {};
77
- return e === Kt;
78
- }), U = (t) => {
79
- const e = t.toUpperCase(), n = y == null ? void 0 : y[e];
80
- return (n == null ? void 0 : n.label) || t;
81
- }, O = (t) => {
82
- const e = t.toUpperCase(), n = y == null ? void 0 : y[e];
83
- return (n == null ? void 0 : n.tag) || "info";
84
- }, w = v({}), j = ct(() => {
85
- var e;
86
- return V.value ? !0 : ((e = w.value) == null ? void 0 : e.status) === Zt.EDITABLE.value;
87
- }), H = async () => {
88
- var $, R;
89
- const t = "系统管理/职位管理", e = i(), n = {
90
- pageName: t,
91
- platId: e,
92
- userId: Q.value
93
- }, g = await Xt(n);
94
- return (R = ($ = g == null ? void 0 : g.data) == null ? void 0 : $.result) == null ? void 0 : R[0];
95
- }, J = async () => {
96
- if (!V.value)
97
- return w.value = await H(), w;
98
- }, S = () => ({
99
- name: ""
100
- }), L = v(S()), E = () => {
101
- L.value = S();
102
- }, I = v({
103
- prop: "sort",
104
- order: "ascending"
105
- }), K = (t) => {
106
- I.value = t;
107
- }, b = v({
108
- pageNum: 1,
109
- pageSize: 10,
110
- total: 0,
111
- pageSizes: [5, 10, 20, 50, 100]
112
- }), W = (t) => {
113
- b.value.pageNum = t;
114
- }, X = (t) => {
115
- b.value.pageSize = t;
116
- }, Y = () => ({
117
- platId: i(),
118
- pageNum: b.value.pageNum,
119
- pageSize: b.value.pageSize,
120
- filter: {
121
- ...L.value
122
- },
123
- orderBy: {
124
- prop: I.value.prop,
125
- order: I.value.order
126
- }
127
- }), z = async (t) => {
128
- var n;
129
- const e = await le(t);
130
- return (n = e == null ? void 0 : e.data) == null ? void 0 : n.result;
131
- }, Z = async (t) => {
132
- const e = Y(), n = await z(e), { total: g } = n || {};
133
- return b.value.total = g, n || {};
134
- }, h = (t) => {
135
- const e = Ct(Date.now()), n = Yt(t);
136
- return n.update_time = e, n;
137
- }, tt = (t) => {
138
- const e = Ct(Date.now());
139
- let n = {
140
- name: "",
141
- code: "",
142
- sort: 1,
143
- status: y.ENABLE.value,
144
- create_time: e,
145
- update_time: e
146
- };
147
- if (t) {
148
- const g = h(t);
149
- n = {
150
- ...n,
151
- ...g
152
- };
153
- }
154
- return n;
155
- }, N = (t) => ({
156
- platId: i(),
157
- changePostData: [t]
158
- }), et = async (t) => {
159
- delete t.post_id;
160
- const e = N(t);
161
- await ie(e);
162
- }, ot = async (t) => {
163
- await et(t);
164
- }, P = async (t) => {
165
- const e = N(t);
166
- await re(e);
167
- }, at = async (t) => {
168
- await P(t);
169
- }, q = async (t) => {
170
- const e = i(), { post_id: n } = t;
171
- await ue({
172
- platId: e,
173
- post_id: [n]
174
- });
175
- }, nt = async (t) => {
176
- await Wt.confirm("是否确认要删除", "", {
177
- showClose: !1,
178
- confirmButtonText: "确认",
179
- cancelButtonText: "取消",
180
- type: "warning",
181
- modalClass: "delete-position-message-modal",
182
- confirmButtonClass: "delete-position-confirm"
183
- }), await q(t);
184
- }, c = async (t) => {
185
- var n;
186
- const e = await oe(t);
187
- return (n = e == null ? void 0 : e.data) == null ? void 0 : n.result;
188
- }, x = async (t) => {
189
- const e = new FormData();
190
- return e.set("platId", i()), e.set("file", t), e.set("tableType", Dt), await c(e);
191
- }, st = async (t) => await ee(t), A = async () => {
192
- const e = {
193
- platId: i(),
194
- tableType: Dt,
195
- filter: L.value,
196
- orderBy: I.value
197
- }, n = await st(e);
198
- return te(n), n;
199
- }, F = [["名称", "编码", "状态", "排序"]];
200
- return {
201
- sortInfo: I,
202
- setSortInfo: K,
203
- queryInfo: L,
204
- resetQuery: E,
205
- pageInfo: b,
206
- setPageNum: W,
207
- setPageSize: X,
208
- hasPositionEditAuth: j,
209
- initPositionItem: tt,
210
- initPositionConfig: J,
211
- initGetByPage: Z,
212
- initCreate: ot,
213
- initUpdate: at,
214
- initDelete: nt,
215
- getStatusLabelByValue: U,
216
- getStatusTagByValue: O,
217
- initImport: x,
218
- initExport: A,
219
- exportTemplate: async () => {
220
- const t = mt.aoa_to_sheet(F), e = mt.book_new();
221
- mt.book_append_sheet(e, t, "职位"), Ht(e, "职位模板.xlsx");
222
- }
223
- };
224
- }, de = { class: "position-management" }, me = { class: "header" }, fe = { class: "header-left" }, ge = { class: "query-wrapper" }, _e = { class: "header-right" }, ye = { class: "body" }, ve = { class: "position-table-wrapper" }, we = { class: "table-wrapper" }, Ie = { class: "operate-list" }, be = ["onClick"], he = { class: "pagination-wrapper" }, Pe = { class: "position-management-wrapper" }, Ce = { class: "position-management-body" }, De = { class: "position-form-wrapper" }, Se = { class: "edit-footer" }, Le = { class: "footer-right" }, Ee = /* @__PURE__ */ Ft({
225
- __name: "index",
226
- setup(d) {
227
- const i = Lt(gt), {
228
- sortInfo: Q,
229
- setSortInfo: V,
230
- queryInfo: U,
231
- resetQuery: O,
232
- pageInfo: w,
233
- setPageNum: j,
234
- setPageSize: H,
235
- initGetByPage: J,
236
- hasPositionEditAuth: S,
237
- initPositionConfig: L,
238
- initPositionItem: E,
239
- initCreate: _t,
240
- initUpdate: I,
241
- initDelete: K,
242
- getStatusLabelByValue: yt,
243
- getStatusTagByValue: b,
244
- initImport: W,
245
- initExport: X,
246
- exportTemplate: Y
247
- } = pe(), z = v([]), Z = async () => {
248
- const s = await J(), { postData: o = [] } = s;
249
- return o;
250
- }, h = async () => {
251
- z.value = await Z();
252
- }, tt = (s) => {
253
- j(s), i.setImportLoading(!0), h().finally(() => {
254
- i.setImportLoading(!1);
255
- });
256
- }, N = (s) => {
257
- H(s), i.setImportLoading(!0), h().finally(() => {
258
- i.setImportLoading(!1);
259
- });
260
- }, et = (s) => {
261
- const { prop: o, order: m } = s;
262
- V({
263
- prop: o,
264
- order: m
265
- }), h();
266
- }, ot = async () => {
267
- O(), i.setImportLoading(!0), await h().finally(() => {
268
- i.setImportLoading(!1);
269
- });
270
- }, P = async () => {
271
- await L(), await h();
272
- };
273
- $t(async () => {
274
- i.setImportLoading(!0), await P().finally(() => {
275
- i.setImportLoading(!1);
276
- });
277
- });
278
- const at = async (s, o) => {
279
- if (!S.value)
280
- return;
281
- const { value: m } = s, _ = o.row;
282
- if (m === "edit") {
283
- F(_);
284
- return;
285
- }
286
- if (m === "delete") {
287
- i.setImportLoading(!0), await n(_).finally(() => {
288
- i.setImportLoading(!1);
289
- });
290
- return;
291
- }
292
- }, q = v(), nt = Rt({
293
- name: [
294
- { required: !0, message: "请输入职位名称", trigger: "blur" }
295
- ],
296
- code: [
297
- { required: !0, message: "请选择职位编码", trigger: "blur" }
298
- ],
299
- sort: [
300
- { required: !0, message: "请输入排序", trigger: "blur" }
301
- ]
302
- }), c = v(E());
303
- v([]);
304
- const x = v(!1), st = () => {
305
- x.value = !0;
306
- }, A = () => {
307
- x.value = !1;
308
- }, F = async (s) => {
309
- S.value && (c.value = E(s), st());
310
- }, lt = () => {
311
- c.value = E(), A();
312
- }, t = async () => {
313
- await _t(c.value), await P();
314
- }, e = async () => {
315
- await I(c.value), await P();
316
- }, n = async (s) => {
317
- await K(s), await P();
318
- }, g = async () => {
319
- var o, m;
320
- await ((m = (o = q.value) == null ? void 0 : o.validate) == null ? void 0 : m.call(o));
321
- const { post_id: s } = c.value;
322
- i.setImportLoading(!0), s ? await e().finally(() => {
323
- i.setImportLoading(!1);
324
- }) : await t().finally(() => {
325
- i.setImportLoading(!1);
326
- }), lt();
327
- }, $ = async (s) => {
328
- if (!S.value)
329
- return;
330
- const { status: o } = s;
331
- y.ENABLE.value === o ? s.status = y.DISABLED.value : s.status = y.ENABLE.value, await I(s), await P();
332
- }, R = async () => {
333
- await Et();
334
- }, Et = async () => {
335
- const s = document.createElement("input");
336
- s.type = "file", s.accept = ".xlsx", s.onchange = async (o) => {
337
- var B;
338
- const _ = (B = o.target.files) == null ? void 0 : B[0];
339
- if (_)
340
- try {
341
- i.setImportLoading(!0), await W(_), await P(), i.setImportLoading(!1);
342
- } catch {
343
- i.setImportLoading(!1);
344
- }
345
- }, s.click();
346
- }, xt = async () => {
347
- i.setImportLoading(!0), await X().finally(() => {
348
- i.setImportLoading(!1);
349
- });
350
- }, Bt = async () => {
351
- Y();
352
- };
353
- return (s, o) => {
354
- var wt, It, bt, ht;
355
- const m = u("el-input"), _ = u("el-button"), B = u("el-icon"), it = u("el-dropdown-item"), Tt = u("el-dropdown-menu"), kt = u("el-dropdown"), T = u("el-table-column"), Vt = u("el-tag"), Ut = u("el-table"), zt = u("el-pagination"), rt = u("el-form-item"), ut = u("el-col"), vt = u("el-row"), Nt = u("el-input-number"), qt = u("el-form");
356
- return dt(), pt("div", de, [
357
- r("div", me, [
358
- r("div", fe, [
359
- r("div", ge, [
360
- a(m, {
361
- modelValue: f(U).name,
362
- "onUpdate:modelValue": o[0] || (o[0] = (p) => f(U).name = p),
363
- style: { width: "240px" },
364
- placeholder: "请输入名称"
365
- }, null, 8, ["modelValue"]),
366
- a(_, {
367
- type: "primary",
368
- onClick: h
369
- }, {
370
- default: l(() => o[5] || (o[5] = [
371
- C("查询")
372
- ])),
373
- _: 1,
374
- __: [5]
375
- }),
376
- a(_, {
377
- type: "primary",
378
- plain: "",
379
- onClick: ot
380
- }, {
381
- default: l(() => o[6] || (o[6] = [
382
- C("重置")
383
- ])),
384
- _: 1,
385
- __: [6]
386
- })
387
- ])
388
- ]),
389
- r("div", _e, [
390
- a(_, {
391
- type: "primary",
392
- onClick: R
393
- }, {
394
- default: l(() => [
395
- o[7] || (o[7] = C(" 导入 ")),
396
- a(B, { class: "el-icon--right" }, {
397
- default: l(() => [
398
- a(f(Ot))
399
- ]),
400
- _: 1
401
- })
402
- ]),
403
- _: 1,
404
- __: [7]
405
- }),
406
- a(kt, null, {
407
- dropdown: l(() => [
408
- a(Tt, null, {
409
- default: l(() => [
410
- a(it, { onClick: Bt }, {
411
- default: l(() => o[9] || (o[9] = [
412
- C("导出模板")
413
- ])),
414
- _: 1,
415
- __: [9]
416
- }),
417
- a(it, { onClick: xt }, {
418
- default: l(() => o[10] || (o[10] = [
419
- C("导出数据")
420
- ])),
421
- _: 1,
422
- __: [10]
423
- })
424
- ]),
425
- _: 1
426
- })
427
- ]),
428
- default: l(() => [
429
- a(_, { type: "primary" }, {
430
- default: l(() => [
431
- o[8] || (o[8] = C(" 导出 ")),
432
- a(B, { class: "el-icon--right" }, {
433
- default: l(() => [
434
- a(f(jt))
435
- ]),
436
- _: 1
437
- })
438
- ]),
439
- _: 1,
440
- __: [8]
441
- })
442
- ]),
443
- _: 1
444
- }),
445
- a(ft, {
446
- emptyColor: !0,
447
- onClickTrigger: o[1] || (o[1] = (p) => F()),
448
- modelValue: "创建职位",
449
- buttonType: "primary"
450
- })
451
- ])
452
- ]),
453
- r("div", ye, [
454
- r("div", ve, [
455
- r("div", we, [
456
- a(Ut, {
457
- class: "department-table",
458
- data: z.value,
459
- "empty-text": "",
460
- "default-sort": f(Q),
461
- onSortChange: et
462
- }, {
463
- default: l(() => [
464
- a(T, {
465
- prop: "name",
466
- label: "名称",
467
- align: "center"
468
- }),
469
- a(T, {
470
- prop: "code",
471
- label: "编码",
472
- align: "center"
473
- }),
474
- a(T, {
475
- prop: "status",
476
- label: "状态",
477
- align: "center"
478
- }, {
479
- default: l((p) => [
480
- a(Vt, {
481
- class: "status-tag",
482
- type: f(b)(p.row.status),
483
- title: "点击切换",
484
- onClick: (M) => $(p.row)
485
- }, {
486
- default: l(() => [
487
- C(Pt(f(yt)(p.row.status)), 1)
488
- ]),
489
- _: 2
490
- }, 1032, ["type", "onClick"])
491
- ]),
492
- _: 1
493
- }),
494
- a(T, {
495
- prop: "sort",
496
- label: "排序",
497
- align: "center",
498
- sortable: "custom"
499
- }),
500
- a(T, {
501
- label: "操作",
502
- align: "center"
503
- }, {
504
- default: l((p) => [
505
- r("div", Ie, [
506
- (dt(!0), pt(Mt, null, Gt(f(ce), (M) => (dt(), pt("div", {
507
- class: "operate-item",
508
- key: M.value,
509
- onClick: Qt((xe) => at(M, p), ["stop"])
510
- }, Pt(M.label), 9, be))), 128))
511
- ])
512
- ]),
513
- _: 1
514
- })
515
- ]),
516
- _: 1
517
- }, 8, ["data", "default-sort"])
518
- ]),
519
- r("div", he, [
520
- o[11] || (o[11] = r("div", null, null, -1)),
521
- a(zt, {
522
- onSizeChange: N,
523
- onCurrentChange: tt,
524
- "current-page": (wt = f(w)) == null ? void 0 : wt.pageNum,
525
- "page-sizes": (It = f(w)) == null ? void 0 : It.pageSizes,
526
- "page-size": ((bt = f(w)) == null ? void 0 : bt.pageSize) ?? 10,
527
- layout: "total, sizes, prev, pager, next, jumper",
528
- total: ((ht = f(w)) == null ? void 0 : ht.total) ?? 0
529
- }, null, 8, ["current-page", "page-sizes", "page-size", "total"])
530
- ])
531
- ])
532
- ]),
533
- o[14] || (o[14] = r("div", { class: "footer" }, [
534
- r("div", { class: "footer-left" }),
535
- r("div", { class: "footer-right" })
536
- ], -1)),
537
- a(ae, {
538
- class: "position-edit-dialog",
539
- visible: x.value,
540
- title: "职位信息",
541
- onBeforeDestroy: A,
542
- showClose: !0,
543
- closeOnClickModal: !1,
544
- closeOnPressEscape: !1,
545
- modalClass: "position-edit-modal",
546
- alignCenter: !0,
547
- appendToBody: !1
548
- }, {
549
- default: l(() => [
550
- r("div", Pe, [
551
- o[12] || (o[12] = r("div", { class: "position-management-header" }, [
552
- r("div", { class: "header-left" }),
553
- r("div", { class: "header-right" })
554
- ], -1)),
555
- r("div", Ce, [
556
- r("div", De, [
557
- a(qt, {
558
- class: "position-edit-form",
559
- ref_key: "positionFormRef",
560
- ref: q,
561
- model: c.value,
562
- rules: nt
563
- }, {
564
- default: l(() => [
565
- a(vt, { gutter: 20 }, {
566
- default: l(() => [
567
- a(ut, { span: 12 }, {
568
- default: l(() => [
569
- a(rt, {
570
- prop: "name",
571
- label: "职位名称",
572
- "label-position": "top"
573
- }, {
574
- default: l(() => [
575
- a(m, {
576
- modelValue: c.value.name,
577
- "onUpdate:modelValue": o[2] || (o[2] = (p) => c.value.name = p),
578
- "aria-label": "职位名称",
579
- placeholder: "职位名称"
580
- }, null, 8, ["modelValue"])
581
- ]),
582
- _: 1
583
- })
584
- ]),
585
- _: 1
586
- }),
587
- a(ut, { span: 12 }, {
588
- default: l(() => [
589
- a(rt, {
590
- prop: "code",
591
- label: "职位编码",
592
- "label-position": "top"
593
- }, {
594
- default: l(() => [
595
- a(m, {
596
- modelValue: c.value.code,
597
- "onUpdate:modelValue": o[3] || (o[3] = (p) => c.value.code = p),
598
- "aria-label": "职位编码",
599
- placeholder: "职位编码"
600
- }, null, 8, ["modelValue"])
601
- ]),
602
- _: 1
603
- })
604
- ]),
605
- _: 1
606
- })
607
- ]),
608
- _: 1
609
- }),
610
- a(vt, { gutter: 20 }, {
611
- default: l(() => [
612
- a(ut, { span: 12 }, {
613
- default: l(() => [
614
- a(rt, {
615
- prop: "sort",
616
- label: "排序",
617
- "label-position": "top"
618
- }, {
619
- default: l(() => [
620
- a(Nt, {
621
- modelValue: c.value.sort,
622
- "onUpdate:modelValue": o[4] || (o[4] = (p) => c.value.sort = p),
623
- "aria-label": "排序",
624
- placeholder: "排序",
625
- min: "1"
626
- }, null, 8, ["modelValue"])
627
- ]),
628
- _: 1
629
- })
630
- ]),
631
- _: 1
632
- })
633
- ]),
634
- _: 1
635
- })
636
- ]),
637
- _: 1
638
- }, 8, ["model", "rules"])
639
- ])
640
- ])
641
- ])
642
- ]),
643
- footer: l(() => [
644
- r("div", Se, [
645
- o[13] || (o[13] = r("div", { class: "footer-left" }, null, -1)),
646
- r("div", Le, [
647
- a(ft, {
648
- class: "cancel",
649
- emptyColor: !0,
650
- onClickTrigger: lt,
651
- modelValue: "取消",
652
- buttonType: "info"
653
- }),
654
- a(ft, {
655
- class: "confirm",
656
- emptyColor: !0,
657
- onClickTrigger: g,
658
- modelValue: "确定",
659
- buttonType: "primary"
660
- })
661
- ])
662
- ])
663
- ]),
664
- _: 1
665
- }, 8, ["visible"])
666
- ]);
667
- };
668
- }
669
- }), Ae = /* @__PURE__ */ ne(Ee, [["__scopeId", "data-v-c988d077"]]);
670
- export {
671
- Ae as default
672
- };