ss-component-new 1.3.340 → 1.3.342

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 (154) hide show
  1. package/dist/{MTLLoader-C-XJYnXR.js → MTLLoader-Ajg9K91w.js} +1 -1
  2. package/dist/{MTLLoader-Dx_OCevv.cjs → MTLLoader-PBhLgTVu.cjs} +1 -1
  3. package/dist/{OrbitControls-B55yzIKX.cjs → OrbitControls-C10-pt6H.cjs} +1 -1
  4. package/dist/{OrbitControls-BB87FyuR.js → OrbitControls-CgEewitL.js} +1 -1
  5. package/dist/{URDFLoader-Uh4bBb-n.cjs → URDFLoader-Bj47zJKE.cjs} +1 -1
  6. package/dist/{URDFLoader-DgP2bMhH.js → URDFLoader-CvMjtZ-x.js} +2 -2
  7. package/dist/{animationData-CF6benhM.js → animationData-BLdkUJ2X.js} +3 -3
  8. package/dist/{animationData-BfEyrEkb.cjs → animationData-D9-6Rod5.cjs} +1 -1
  9. package/dist/array-D7Bu5gb2.cjs +1 -0
  10. package/dist/{array-Dz0LlM28.js → array-DKwq_BSC.js} +38 -39
  11. package/dist/clone-BUCnBgnS.js +8 -0
  12. package/dist/clone-y_gmwkJo.cjs +1 -0
  13. package/dist/day-BNr9Td9D.cjs +7 -0
  14. package/dist/day-BV-VjzXX.js +2382 -0
  15. package/dist/{dayjs.min-bC5IyY3C.js → dayjs.min-B8ub8S6d.js} +4 -4
  16. package/dist/{dayjs.min-CSW85jLQ.cjs → dayjs.min-Bo5ALhPO.cjs} +1 -1
  17. package/dist/{iconfont-DV-mBuRs.js → iconfont-Cl-SDAtC.js} +2 -2
  18. package/dist/{iconfont-rvMUQHIL.cjs → iconfont-DpN6kvUK.cjs} +1 -1
  19. package/dist/index-6iwwUgL6.cjs +104 -0
  20. package/dist/{index-Dcp8sI4C.js → index-9V23Nn2F.js} +4 -4
  21. package/dist/index-9WLF0N-m.cjs +15 -0
  22. package/dist/{index-Ca3THBbJ.cjs → index-B0V9Wfze.cjs} +1 -1
  23. package/dist/index-B0cDSro0.cjs +1 -0
  24. package/dist/index-B4Yau3Cx.cjs +1 -0
  25. package/dist/index-B4u9cnxn.cjs +1 -0
  26. package/dist/{index-rW-jQkgq.js → index-B4yv_CI9.js} +9 -10
  27. package/dist/index-B5u9ckAG.cjs +1 -0
  28. package/dist/{index-C6gCT4vd.js → index-BGRqQYv0.js} +70 -71
  29. package/dist/{index-CbBP02RV.js → index-BLHM2RZs.js} +4 -4
  30. package/dist/{index-C4NN-IA4.js → index-BMt9iXGt.js} +16 -17
  31. package/dist/index-BO9LCv0L.js +327 -0
  32. package/dist/index-BTpsNI8m.cjs +1 -0
  33. package/dist/index-Bb9xuBcN.cjs +1 -0
  34. package/dist/{index-CHAqLCtD.js → index-Bieh0oMN.js} +8 -8
  35. package/dist/{index-BWpqDCVF.cjs → index-Bl1R6hLx.cjs} +1 -1
  36. package/dist/index-BndWdAyT.js +168 -0
  37. package/dist/index-BqtZ8oXB.cjs +1 -0
  38. package/dist/{index-CHIMUYG3.js → index-BxSJzmcq.js} +16 -17
  39. package/dist/{index-D0gKkud0.js → index-C3_fcg5b.js} +8 -20
  40. package/dist/{index-BSCoLGXF.js → index-CLasTJZ7.js} +318 -318
  41. package/dist/{index-0VkKesv_.js → index-CPuSbD0o.js} +13 -14
  42. package/dist/{index-DGwbEHLN.js → index-CUmttoQs.js} +6 -7
  43. package/dist/index-CWea8Hwx.cjs +2 -0
  44. package/dist/index-Cjsv9UB2.cjs +1 -0
  45. package/dist/{index-CHnN0kSC.js → index-CkJ5sZmH.js} +268 -279
  46. package/dist/{index-BPpYDffY.cjs → index-CyAk6NlY.cjs} +1 -1
  47. package/dist/index-Cz8oXtNa.cjs +1 -0
  48. package/dist/index-D0D-8tq3.cjs +1 -0
  49. package/dist/index-D28carCM.cjs +25 -0
  50. package/dist/{index-Ijbw1FIL.js → index-D2iun0qB.js} +18 -19
  51. package/dist/{index-BTgJ9oD-.cjs → index-D8TKh-Ur.cjs} +1 -1
  52. package/dist/index-DBl4_nFE.cjs +1 -0
  53. package/dist/{index-DMt7y2yA.js → index-DCBM-gqv.js} +104 -113
  54. package/dist/{index-COowXWF7.cjs → index-DCHyRwyR.cjs} +1 -1
  55. package/dist/index-DDz6oLBR.cjs +1 -0
  56. package/dist/{index-DWP-FYxV.js → index-DGaoFZNU.js} +13 -14
  57. package/dist/index-DJ3sA4Gm.cjs +1 -0
  58. package/dist/{index-c1EWDQO1.js → index-DKYHED4o.js} +1 -1
  59. package/dist/{index-CYgpY06q.js → index-DScuDjxN.js} +4 -4
  60. package/dist/{index-voXPz7Hq.js → index-DaHM_OEL.js} +251 -260
  61. package/dist/{index-S2ChvJMP.js → index-Dd6fkS6a.js} +1 -1
  62. package/dist/{index-D6Zkrpou.js → index-DehN_tZl.js} +13 -14
  63. package/dist/index-DfxDifWX.cjs +1 -0
  64. package/dist/{index-Bdh2uHRO.js → index-DimgHus_.js} +44 -45
  65. package/dist/index-DkR9zIgE.cjs +1 -0
  66. package/dist/index-DlDpjgK7.cjs +1 -0
  67. package/dist/{index-DN4OcDlg.js → index-Dmstdf9f.js} +1 -1
  68. package/dist/index-Ds0ibmGw.cjs +1 -0
  69. package/dist/{index-DLLST1Nd.js → index-DsfZZrDe.js} +11 -12
  70. package/dist/{index-Zvul3j_r.cjs → index-Dw5QRbm2.cjs} +1 -1
  71. package/dist/index-Dz06Dix4.js +21 -0
  72. package/dist/{index-C3lScvOV.cjs → index-Pmf6bCKe.cjs} +1 -1
  73. package/dist/index-_aEslAdL.cjs +1 -0
  74. package/dist/index-bs1KW4Mf.js +10008 -0
  75. package/dist/{index-CgjHHxqY.js → index-czdl81QC.js} +6 -7
  76. package/dist/index-fxwUfoBD.cjs +1 -0
  77. package/dist/index-jFQKdLGf.cjs +1 -0
  78. package/dist/{index-DyJCopUt.js → index-pfsYhNVv.js} +3 -4
  79. package/dist/index-qyNzhZ9p.js +68 -0
  80. package/dist/{index-9nQLsFiY.js → index-zwvfPNTm.js} +2 -2
  81. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CHrvpoVb.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BDgIVZve.js} +1950 -1956
  82. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Dyd5heHe.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DAAbs6bU.cjs} +336 -336
  83. package/dist/main-BrOVZokA.cjs +11 -0
  84. package/dist/{main-Cd_mObtH.js → main-GGbIOSca.js} +8 -9
  85. package/dist/menu-CYazzvub.cjs +12 -0
  86. package/dist/menu-DGzm1FYA.js +5675 -0
  87. package/dist/menuIndex-Br2dXQqi.cjs +1 -0
  88. package/dist/menuIndex-CoVR5ix7.js +134 -0
  89. package/dist/ss-component.cjs +1 -1
  90. package/dist/ss-component.css +2 -2
  91. package/dist/ss-component.js +13 -13
  92. package/dist/ss-component2.cjs +1 -1
  93. package/dist/ss-component2.js +115 -10
  94. package/dist/ss-component3.cjs +1 -1
  95. package/dist/ss-component3.js +10 -5
  96. package/dist/{threeModel-CIZ5D8Df.js → threeModel-B8afF4RO.js} +4 -4
  97. package/dist/{threeModel-Dekl17Re.cjs → threeModel-BIcXUfRq.cjs} +1 -1
  98. package/dist/threePreview-CuXGNvBL.cjs +1 -0
  99. package/dist/{threePreview-B46ButBi.js → threePreview-DLxW-XYV.js} +6 -7
  100. package/dist/{threeSceneView-CoQQCgZ3.cjs → threeSceneView-DHahXsWx.cjs} +1 -1
  101. package/dist/{threeSceneView-D4mxD9hv.js → threeSceneView-RZtjgaQI.js} +14 -16
  102. package/dist/{threeSceneViewForCPMPIP-BR01ytzC.cjs → threeSceneViewForCPMPIP-0_i3LOfz.cjs} +1 -1
  103. package/dist/{threeSceneViewForCPMPIP-DTtZGOcw.js → threeSceneViewForCPMPIP-DMhM6ZvH.js} +10 -11
  104. package/dist/threeTrackPathView-CrlluuTz.cjs +1 -0
  105. package/dist/{threeTrackPathView-BQPS8ajS.js → threeTrackPathView-cclE9z18.js} +87 -88
  106. package/dist/threeViewerHost-BaEB4k1F.cjs +1 -0
  107. package/dist/{threeViewerHost-CsMI9jbX.js → threeViewerHost-LoU6OtMI.js} +10 -11
  108. package/dist/{urdfTree-umPKeRFh.cjs → urdfTree-BTD0A42y.cjs} +1 -1
  109. package/dist/{urdfTree-B118FC_3.js → urdfTree-RdS14ARy.js} +1 -1
  110. package/dist/{workpieceTreePanel-CwUXRyn3.cjs → workpieceTreePanel-CfwoCG1K.cjs} +1 -1
  111. package/dist/{workpieceTreePanel-D9TnLdIy.js → workpieceTreePanel-Q4_hCBXx.js} +4 -4
  112. package/package.json +1 -1
  113. package/dist/array-Dk18oefG.cjs +0 -1
  114. package/dist/clone-BDBSWARv.cjs +0 -1
  115. package/dist/clone-BqeCvECh.js +0 -8
  116. package/dist/index--E8u7lHy.cjs +0 -12
  117. package/dist/index-B38fQMRk.cjs +0 -1
  118. package/dist/index-BIg-Nt0x.cjs +0 -25
  119. package/dist/index-BQO25T-T.cjs +0 -1
  120. package/dist/index-BchGbZ1v.cjs +0 -15
  121. package/dist/index-Bio1_C_H.cjs +0 -1
  122. package/dist/index-BmJV5eVh.js +0 -4669
  123. package/dist/index-BtyugMgY.cjs +0 -1
  124. package/dist/index-BzeH13wt.cjs +0 -1
  125. package/dist/index-C3-1AlM-.js +0 -2765
  126. package/dist/index-C9baGOvW.js +0 -9647
  127. package/dist/index-CMsGT7Tl.cjs +0 -1
  128. package/dist/index-COTur3RT.cjs +0 -1
  129. package/dist/index-CUp0Z80f.cjs +0 -2
  130. package/dist/index-CoX9mofW.cjs +0 -1
  131. package/dist/index-CyQV3nI9.cjs +0 -1
  132. package/dist/index-DBhc2SoQ.cjs +0 -1
  133. package/dist/index-DBrXonf1.cjs +0 -1
  134. package/dist/index-DEfKSijb.cjs +0 -7
  135. package/dist/index-DNyLSjIf.cjs +0 -1
  136. package/dist/index-DOQApax-.cjs +0 -1
  137. package/dist/index-DtlQjI5L.cjs +0 -1
  138. package/dist/index-FJ_oMfF3.cjs +0 -1
  139. package/dist/index-L9DruvvE.cjs +0 -1
  140. package/dist/index-T25jN7df.cjs +0 -104
  141. package/dist/index-W6w3oiQ2.cjs +0 -1
  142. package/dist/index-ipcwULw-.js +0 -167
  143. package/dist/main-FOjt8u8O.cjs +0 -11
  144. package/dist/menu-7kw8Lwp_.cjs +0 -1
  145. package/dist/menu-CK0ndSHP.js +0 -1132
  146. package/dist/menuIndex-Ba-9R5jd.cjs +0 -1
  147. package/dist/menuIndex-DiNvd_FY.js +0 -125
  148. package/dist/obj/model.mtl +0 -42
  149. package/dist/obj/model.obj +0 -26110
  150. package/dist/threePreview-DcCfaIpB.cjs +0 -1
  151. package/dist/threeTrackPathView-C6IiddAw.cjs +0 -1
  152. package/dist/threeViewerHost-B3elQtpE.cjs +0 -1
  153. package/public/obj/model.mtl +0 -42
  154. package/public/obj/model.obj +0 -26110
@@ -1,51 +1,51 @@
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-C6gCT4vd.js";
4
- import { a as je, m as He, f as Je, c as Ke, u as We } from "./menu-CK0ndSHP.js";
5
- import { E as Xe, f as be } from "./index-C3-1AlM-.js";
6
- import { f as Ye, i as Ze, e as et, a as tt } from "./index-DMt7y2yA.js";
7
- import { s as ot, p as he } from "./index-BmJV5eVh.js";
8
- import { _ as ce } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
9
- import { s as at } from "./index-CnjGqJZS.js";
10
- import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const st = je(he), { systemUrl: D } = ot(st);
12
- let T = D.value === "" || !D.value ? "http://222.92.178.198:63002" : D.value;
13
- ze(
14
- () => D.value,
1
+ import { watch as Ne, ref as I, computed as ze, defineComponent as Ue, onMounted as Ae, reactive as $e, resolveComponent as p, createElementBlock as re, openBlock as ue, createElementVNode as i, createVNode as a, unref as f, withCtx as l, createTextVNode as h, toDisplayString as ye, Fragment as Fe, renderList as Re, withModifiers as Me } from "vue";
2
+ import { s as R, u as Ge, g as Qe } from "./request-CoGtW0Ux.js";
3
+ import { s as Oe, b as je, p as he, o as He, i as Je, c as Ke, u as We } from "./menu-DGzm1FYA.js";
4
+ import { _ as pe } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
5
+ import { s as Xe } from "./index-CnjGqJZS.js";
6
+ import { f as de, w as Ye } from "./index-BGRqQYv0.js";
7
+ import { f as Ze, i as et, e as tt, a as ot } from "./index-DCBM-gqv.js";
8
+ import { E as at, f as we } from "./day-BV-VjzXX.js";
9
+ import { u as nt } from "./index-Dz06Dix4.js";
10
+ import { _ as st } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const lt = je(he), { systemUrl: C } = Oe(lt);
12
+ let V = C.value === "" || !C.value ? "http://222.92.178.198:63002" : C.value;
13
+ Ne(
14
+ () => C.value,
15
15
  () => {
16
- T = D.value === "" || !D.value ? "http://222.92.178.198:63002" : D.value;
16
+ V = C.value === "" || !C.value ? "http://222.92.178.198:63002" : C.value;
17
17
  },
18
18
  { deep: !0, immediate: !0 }
19
19
  );
20
- function lt(u) {
21
- return G({
22
- url: `${T}/platform/getdata_post`,
20
+ function it(u) {
21
+ return R({
22
+ url: `${V}/platform/getdata_post`,
23
23
  method: "post",
24
24
  data: u
25
25
  });
26
26
  }
27
- function it(u) {
28
- return G({
29
- url: `${T}/platform/createdata_post`,
27
+ function rt(u) {
28
+ return R({
29
+ url: `${V}/platform/createdata_post`,
30
30
  method: "post",
31
31
  data: u
32
32
  });
33
33
  }
34
- function rt(u) {
35
- return G({
36
- url: `${T}/platform/updatedata_post`,
34
+ function ut(u) {
35
+ return R({
36
+ url: `${V}/platform/updatedata_post`,
37
37
  method: "post",
38
38
  data: u
39
39
  });
40
40
  }
41
- function ut(u) {
42
- return G({
43
- url: `${T}/platform/deletedata_post`,
41
+ function pt(u) {
42
+ return R({
43
+ url: `${V}/platform/deletedata_post`,
44
44
  method: "post",
45
45
  data: u
46
46
  });
47
47
  }
48
- const pt = [
48
+ const dt = [
49
49
  {
50
50
  label: "编辑",
51
51
  value: "edit"
@@ -54,7 +54,7 @@ const pt = [
54
54
  label: "删除",
55
55
  value: "delete"
56
56
  }
57
- ], Ie = "post", _ = {
57
+ ], be = "post", _ = {
58
58
  ENABLE: {
59
59
  value: "enable",
60
60
  label: "启用",
@@ -65,225 +65,216 @@ const pt = [
65
65
  label: "禁用",
66
66
  tag: "info"
67
67
  }
68
- }, dt = () => {
69
- const { platId: u, userId: r, isSuperAdmin: k } = He(), Q = (e) => {
70
- const t = e.toUpperCase(), n = _ == null ? void 0 : _[t];
71
- return (n == null ? void 0 : n.label) || e;
72
- }, V = (e) => {
73
- const t = e.toUpperCase(), n = _ == null ? void 0 : _[t];
68
+ }, ct = () => {
69
+ const { platId: u, userId: r, isSuperAdmin: q } = He(), { pageInfo: P, setPageNum: N, setPageSize: M } = nt(), D = (t) => {
70
+ const e = t.toUpperCase(), n = _ == null ? void 0 : _[e];
71
+ return (n == null ? void 0 : n.label) || t;
72
+ }, G = (t) => {
73
+ const e = t.toUpperCase(), n = _ == null ? void 0 : _[e];
74
74
  return (n == null ? void 0 : n.tag) || "info";
75
- }, L = v({}), S = qe(() => {
76
- var t;
77
- return k.value ? !0 : ((t = L.value) == null ? void 0 : t.status) === Ye.EDITABLE.value;
78
- }), O = async () => {
79
- var h, R;
80
- const t = {
75
+ }, E = I({}), Q = ze(() => {
76
+ var e;
77
+ return q.value ? !0 : ((e = E.value) == null ? void 0 : e.status) === Ze.EDITABLE.value;
78
+ }), x = async () => {
79
+ var w, $;
80
+ const e = {
81
81
  pageName: "系统管理/职位管理",
82
82
  platId: u.value,
83
83
  userId: r.value
84
- }, n = await Je(t);
85
- return (R = (h = n == null ? void 0 : n.data) == null ? void 0 : h.result) == null ? void 0 : R[0];
86
- }, j = async () => {
87
- if (!k.value)
88
- return L.value = await O(), L;
89
- }, N = () => ({
84
+ }, n = await Je(e);
85
+ return ($ = (w = n == null ? void 0 : n.data) == null ? void 0 : w.result) == null ? void 0 : $[0];
86
+ }, O = async () => {
87
+ if (!q.value)
88
+ return E.value = await x(), E;
89
+ }, L = () => ({
90
90
  name: ""
91
- }), y = v(N()), H = () => {
92
- y.value = N();
93
- }, P = v({
91
+ }), S = I(L()), z = () => {
92
+ S.value = L();
93
+ }, b = I({
94
94
  prop: "sort",
95
95
  order: "ascending"
96
- }), q = (e) => {
97
- P.value = e;
98
- }, w = v({
99
- pageNum: 1,
100
- pageSize: 10,
101
- total: 0,
102
- pageSizes: [5, 10, 20, 50, 100]
103
- }), J = (e) => {
104
- w.value.pageNum = e;
105
- }, K = (e) => {
106
- w.value.pageSize = e;
107
- }, W = () => ({
96
+ }), j = (t) => {
97
+ b.value = t;
98
+ }, H = () => ({
108
99
  platId: u.value,
109
- pageNum: w.value.pageNum,
110
- pageSize: w.value.pageSize,
100
+ pageNum: P.value.pageNum,
101
+ pageSize: P.value.pageSize,
111
102
  filter: {
112
- ...y.value
103
+ ...S.value
113
104
  },
114
105
  orderBy: {
115
- prop: P.value.prop,
116
- order: P.value.order
106
+ prop: b.value.prop,
107
+ order: b.value.order
117
108
  }
118
- }), X = async (e) => {
109
+ }), J = async (t) => {
119
110
  var n;
120
- const t = await lt(e);
121
- return (n = t == null ? void 0 : t.data) == null ? void 0 : n.result;
122
- }, U = async (e) => {
123
- const t = W(), n = await X(t), { total: h } = n || {};
124
- return w.value.total = h, n || {};
125
- }, Y = (e) => {
126
- const t = be(Date.now()), n = Ke(e);
127
- return n.update_time = t, n;
128
- }, b = (e) => {
129
- const t = be(Date.now());
111
+ const e = await it(t);
112
+ return (n = e == null ? void 0 : e.data) == null ? void 0 : n.result;
113
+ }, K = async (t) => {
114
+ const e = H(), n = await J(e), { total: w } = n || {};
115
+ return P.value.total = w, n || {};
116
+ }, U = (t) => {
117
+ const e = we(Date.now()), n = Ke(t);
118
+ return n.update_time = e, n;
119
+ }, W = (t) => {
120
+ const e = we(Date.now());
130
121
  let n = {
131
122
  name: "",
132
123
  code: "",
133
124
  sort: 1,
134
125
  status: _.ENABLE.value,
135
- create_time: t,
136
- update_time: t
126
+ create_time: e,
127
+ update_time: e
137
128
  };
138
- if (e) {
139
- const h = Y(e);
129
+ if (t) {
130
+ const w = U(t);
140
131
  n = {
141
132
  ...n,
142
- ...h
133
+ ...w
143
134
  };
144
135
  }
145
136
  return n;
146
- }, A = (e) => {
147
- const t = [e];
137
+ }, v = (t) => {
138
+ const e = [t];
148
139
  return {
149
140
  platId: u.value,
150
- changePostData: t
141
+ changePostData: e
151
142
  };
152
- }, Z = async (e) => {
153
- delete e.post_id;
154
- const t = A(e);
155
- await it(t);
156
- }, ee = async (e) => {
157
- await Z(e);
158
- }, te = async (e) => {
159
- const t = A(e);
160
- await rt(t);
161
- }, I = async (e) => {
162
- await te(e);
163
- }, oe = async (e) => {
164
- const { post_id: t } = e, n = {
143
+ }, X = async (t) => {
144
+ delete t.post_id;
145
+ const e = v(t);
146
+ await rt(e);
147
+ }, Y = async (t) => {
148
+ await X(t);
149
+ }, Z = async (t) => {
150
+ const e = v(t);
151
+ await ut(e);
152
+ }, ee = async (t) => {
153
+ await Z(t);
154
+ }, y = async (t) => {
155
+ const { post_id: e } = t, n = {
165
156
  platId: u.value,
166
- post_id: [t]
157
+ post_id: [e]
167
158
  };
168
- await ut(n);
169
- }, $ = async (e) => {
170
- await Xe.confirm("是否确认要删除", "", {
159
+ await pt(n);
160
+ }, te = async (t) => {
161
+ await at.confirm("是否确认要删除", "", {
171
162
  showClose: !1,
172
163
  confirmButtonText: "确认",
173
164
  cancelButtonText: "取消",
174
165
  type: "warning",
175
166
  modalClass: "delete-position-message-modal",
176
167
  confirmButtonClass: "delete-position-confirm"
177
- }), await oe(e);
178
- }, ae = async (e) => {
168
+ }), await y(t);
169
+ }, A = async (t) => {
179
170
  var n;
180
- const t = await tt(e);
181
- return (n = t == null ? void 0 : t.data) == null ? void 0 : n.result;
182
- }, d = async (e) => {
183
- const t = new FormData();
184
- return t.set("platId", u.value), t.set("file", e), t.set("tableType", Ie), await ae(t);
185
- }, E = async (e) => await et(e), ne = async () => {
186
- const e = {
171
+ const e = await ot(t);
172
+ return (n = e == null ? void 0 : e.data) == null ? void 0 : n.result;
173
+ }, oe = async (t) => {
174
+ const e = new FormData();
175
+ return e.set("platId", u.value), e.set("file", t), e.set("tableType", be), await A(e);
176
+ }, d = async (t) => await tt(t), B = async () => {
177
+ const t = {
187
178
  platId: u.value,
188
- tableType: Ie,
189
- filter: y.value,
190
- orderBy: P.value
191
- }, t = await E(e);
192
- return Ze(t), t;
193
- }, F = [["名称", "编码", "状态", "排序"]];
179
+ tableType: be,
180
+ filter: S.value,
181
+ orderBy: b.value
182
+ }, e = await d(t);
183
+ return et(e), e;
184
+ }, ae = [["名称", "编码", "状态", "排序"]];
194
185
  return {
195
- sortInfo: P,
196
- setSortInfo: q,
197
- queryInfo: y,
198
- resetQuery: H,
199
- pageInfo: w,
200
- setPageNum: J,
201
- setPageSize: K,
202
- hasPositionEditAuth: S,
203
- initPositionItem: b,
204
- initPositionConfig: j,
205
- initGetByPage: U,
206
- initCreate: ee,
207
- initUpdate: I,
208
- initDelete: $,
209
- getStatusLabelByValue: Q,
210
- getStatusTagByValue: V,
211
- initImport: d,
212
- initExport: ne,
186
+ sortInfo: b,
187
+ setSortInfo: j,
188
+ queryInfo: S,
189
+ resetQuery: z,
190
+ pageInfo: P,
191
+ setPageNum: N,
192
+ setPageSize: M,
193
+ hasPositionEditAuth: Q,
194
+ initPositionItem: W,
195
+ initPositionConfig: O,
196
+ initGetByPage: K,
197
+ initCreate: Y,
198
+ initUpdate: ee,
199
+ initDelete: te,
200
+ getStatusLabelByValue: D,
201
+ getStatusTagByValue: G,
202
+ initImport: oe,
203
+ initExport: B,
213
204
  exportTemplate: async () => {
214
- const e = de.aoa_to_sheet(F), t = de.book_new();
215
- de.book_append_sheet(t, e, "职位"), Oe(t, "职位模板.xlsx");
205
+ const t = de.aoa_to_sheet(ae), e = de.book_new();
206
+ de.book_append_sheet(e, t, "职位"), Ye(e, "职位模板.xlsx");
216
207
  }
217
208
  };
218
- }, 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({
209
+ }, mt = { class: "position-management" }, ft = { class: "header" }, gt = { class: "header-left" }, _t = { class: "query-wrapper" }, vt = { class: "header-right" }, yt = { class: "body" }, wt = { class: "position-table-wrapper" }, bt = { class: "table-wrapper" }, ht = { class: "operate-list" }, It = ["onClick"], Ct = { class: "pagination-wrapper" }, Pt = { class: "position-management-wrapper" }, Dt = { class: "position-management-body" }, Lt = { class: "position-form-wrapper" }, St = { class: "edit-footer" }, Et = { class: "footer-right" }, xt = /* @__PURE__ */ Ue({
219
210
  __name: "index",
220
211
  setup(u) {
221
212
  const r = We(he), {
222
- sortInfo: k,
223
- setSortInfo: Q,
224
- queryInfo: V,
225
- resetQuery: L,
226
- pageInfo: S,
227
- setPageNum: O,
228
- setPageSize: j,
229
- initGetByPage: N,
230
- hasPositionEditAuth: y,
231
- initPositionConfig: H,
232
- initPositionItem: z,
233
- initCreate: P,
234
- initUpdate: q,
235
- initDelete: me,
236
- getStatusLabelByValue: w,
237
- getStatusTagByValue: J,
238
- initImport: K,
239
- initExport: W,
240
- exportTemplate: X
241
- } = dt(), U = v([]), Y = async () => {
242
- const s = await N(), { postData: o = [] } = s;
213
+ sortInfo: q,
214
+ setSortInfo: P,
215
+ queryInfo: N,
216
+ resetQuery: M,
217
+ pageInfo: D,
218
+ setPageNum: G,
219
+ setPageSize: E,
220
+ initGetByPage: Q,
221
+ hasPositionEditAuth: x,
222
+ initPositionConfig: O,
223
+ initPositionItem: L,
224
+ initCreate: S,
225
+ initUpdate: z,
226
+ initDelete: ce,
227
+ getStatusLabelByValue: b,
228
+ getStatusTagByValue: j,
229
+ initImport: H,
230
+ initExport: J,
231
+ exportTemplate: K
232
+ } = ct(), U = I([]), W = async () => {
233
+ const s = await Q(), { postData: o = [] } = s;
243
234
  return o;
244
- }, b = async () => {
245
- U.value = await Y();
246
- }, A = (s) => {
247
- O(s), r.setImportLoading(!0), b().finally(() => {
235
+ }, v = async () => {
236
+ U.value = await W();
237
+ }, X = (s) => {
238
+ G(s), r.setImportLoading(!0), v().finally(() => {
248
239
  r.setImportLoading(!1);
249
240
  });
250
- }, Z = (s) => {
251
- j(s), r.setImportLoading(!0), b().finally(() => {
241
+ }, Y = (s) => {
242
+ E(s), r.setImportLoading(!0), v().finally(() => {
252
243
  r.setImportLoading(!1);
253
244
  });
254
- }, ee = (s) => {
245
+ }, Z = (s) => {
255
246
  const { prop: o, order: m } = s;
256
- Q({
247
+ P({
257
248
  prop: o,
258
249
  order: m
259
- }), b();
260
- }, te = async () => {
261
- L(), r.setImportLoading(!0), await b().finally(() => {
250
+ }), v();
251
+ }, ee = async () => {
252
+ M(), r.setImportLoading(!0), await v().finally(() => {
262
253
  r.setImportLoading(!1);
263
254
  });
264
- }, I = async () => {
265
- await H(), await b();
255
+ }, y = async () => {
256
+ await O(), await v();
266
257
  };
267
258
  Ae(async () => {
268
- r.setImportLoading(!0), await I().finally(() => {
259
+ r.setImportLoading(!0), await y().finally(() => {
269
260
  r.setImportLoading(!1);
270
261
  });
271
262
  });
272
- const oe = async (s, o) => {
273
- if (!y.value)
263
+ const te = async (s, o) => {
264
+ if (!x.value)
274
265
  return;
275
266
  const { value: m } = s, g = o.row;
276
267
  if (m === "edit") {
277
- se(g);
268
+ t(g);
278
269
  return;
279
270
  }
280
271
  if (m === "delete") {
281
- r.setImportLoading(!0), await h(g).finally(() => {
272
+ r.setImportLoading(!0), await $(g).finally(() => {
282
273
  r.setImportLoading(!1);
283
274
  });
284
275
  return;
285
276
  }
286
- }, $ = v(), ae = $e({
277
+ }, A = I(), oe = $e({
287
278
  name: [
288
279
  { required: !0, message: "请输入职位名称", trigger: "blur" }
289
280
  ],
@@ -293,76 +284,74 @@ const pt = [
293
284
  sort: [
294
285
  { required: !0, message: "请输入排序", trigger: "blur" }
295
286
  ]
296
- }), d = v(z());
297
- v([]);
298
- const E = v(!1), ne = () => {
299
- E.value = !0;
300
- }, F = () => {
301
- E.value = !1;
302
- }, se = async (s) => {
303
- y.value && (d.value = z(s), ne());
287
+ }), d = I(L()), B = I(!1), ae = () => {
288
+ B.value = !0;
289
+ }, ne = () => {
290
+ B.value = !1;
291
+ }, t = async (s) => {
292
+ x.value && (d.value = L(s), ae());
304
293
  }, e = () => {
305
- d.value = z(), F();
306
- }, t = async () => {
307
- await P(d.value), await I();
294
+ d.value = L(), ne();
308
295
  }, n = async () => {
309
- await q(d.value), await I();
310
- }, h = async (s) => {
311
- await me(s), await I();
312
- }, R = async () => {
296
+ await S(d.value), await y();
297
+ }, w = async () => {
298
+ await z(d.value), await y();
299
+ }, $ = async (s) => {
300
+ await ce(s), await y();
301
+ }, Ie = async () => {
313
302
  var o, m;
314
- await ((m = (o = $.value) == null ? void 0 : o.validate) == null ? void 0 : m.call(o));
303
+ await ((m = (o = A.value) == null ? void 0 : o.validate) == null ? void 0 : m.call(o));
315
304
  const { post_id: s } = d.value;
316
- r.setImportLoading(!0), s ? await n().finally(() => {
305
+ r.setImportLoading(!0), s ? await w().finally(() => {
317
306
  r.setImportLoading(!1);
318
- }) : await t().finally(() => {
307
+ }) : await n().finally(() => {
319
308
  r.setImportLoading(!1);
320
309
  }), e();
321
- }, Pe = async (s) => {
322
- if (!y.value)
310
+ }, Ce = async (s) => {
311
+ if (!x.value)
323
312
  return;
324
313
  const { status: o } = s;
325
- _.ENABLE.value === o ? s.status = _.DISABLED.value : s.status = _.ENABLE.value, await q(s), await I();
326
- }, Ce = async () => {
314
+ _.ENABLE.value === o ? s.status = _.DISABLED.value : s.status = _.ENABLE.value, await z(s), await y();
315
+ }, Pe = async () => {
327
316
  await De();
328
317
  }, De = async () => {
329
318
  const s = document.createElement("input");
330
319
  s.type = "file", s.accept = ".xlsx", s.onchange = async (o) => {
331
- var x;
332
- const g = (x = o.target.files) == null ? void 0 : x[0];
320
+ var T;
321
+ const g = (T = o.target.files) == null ? void 0 : T[0];
333
322
  if (g)
334
323
  try {
335
- r.setImportLoading(!0), await K(g), await I(), r.setImportLoading(!1);
324
+ r.setImportLoading(!0), await H(g), await y(), r.setImportLoading(!1);
336
325
  } catch {
337
326
  r.setImportLoading(!1);
338
327
  }
339
328
  }, s.click();
340
- }, Se = async () => {
341
- r.setImportLoading(!0), await W().finally(() => {
329
+ }, Le = async () => {
330
+ r.setImportLoading(!0), await J().finally(() => {
342
331
  r.setImportLoading(!1);
343
332
  });
344
- }, Le = async () => {
345
- X();
333
+ }, Se = async () => {
334
+ K();
346
335
  };
347
336
  return (s, o) => {
348
- var ge, _e, ve, ye;
349
- 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");
350
- return pe(), ue("div", ct, [
351
- i("div", mt, [
352
- i("div", ft, [
353
- i("div", gt, [
337
+ var fe, ge, _e, ve;
338
+ const m = p("el-input"), g = p("el-button"), T = p("el-icon"), se = p("el-dropdown-item"), Ee = p("el-dropdown-menu"), xe = p("el-dropdown"), k = p("el-table-column"), Be = p("el-tag"), Te = p("el-table"), ke = p("el-pagination"), le = p("el-form-item"), ie = p("el-col"), me = p("el-row"), Ve = p("el-input-number"), qe = p("el-form");
339
+ return ue(), re("div", mt, [
340
+ i("div", ft, [
341
+ i("div", gt, [
342
+ i("div", _t, [
354
343
  a(m, {
355
- modelValue: f(V).name,
356
- "onUpdate:modelValue": o[0] || (o[0] = (c) => f(V).name = c),
344
+ modelValue: f(N).name,
345
+ "onUpdate:modelValue": o[0] || (o[0] = (c) => f(N).name = c),
357
346
  style: { width: "240px" },
358
347
  placeholder: "请输入名称"
359
348
  }, null, 8, ["modelValue"]),
360
349
  a(g, {
361
350
  type: "primary",
362
- onClick: b
351
+ onClick: v
363
352
  }, {
364
353
  default: l(() => o[5] || (o[5] = [
365
- C("查询")
354
+ h("查询")
366
355
  ])),
367
356
  _: 1,
368
357
  __: [5]
@@ -370,24 +359,24 @@ const pt = [
370
359
  a(g, {
371
360
  type: "primary",
372
361
  plain: "",
373
- onClick: te
362
+ onClick: ee
374
363
  }, {
375
364
  default: l(() => o[6] || (o[6] = [
376
- C("重置")
365
+ h("重置")
377
366
  ])),
378
367
  _: 1,
379
368
  __: [6]
380
369
  })
381
370
  ])
382
371
  ]),
383
- i("div", _t, [
372
+ i("div", vt, [
384
373
  a(g, {
385
374
  type: "primary",
386
- onClick: Ce
375
+ onClick: Pe
387
376
  }, {
388
377
  default: l(() => [
389
- o[7] || (o[7] = C(" 导入 ")),
390
- a(x, { class: "el-icon--right" }, {
378
+ o[7] || (o[7] = h(" 导入 ")),
379
+ a(T, { class: "el-icon--right" }, {
391
380
  default: l(() => [
392
381
  a(f(Ge))
393
382
  ]),
@@ -401,16 +390,16 @@ const pt = [
401
390
  dropdown: l(() => [
402
391
  a(Ee, null, {
403
392
  default: l(() => [
404
- a(le, { onClick: Le }, {
393
+ a(se, { onClick: Se }, {
405
394
  default: l(() => o[9] || (o[9] = [
406
- C("导出模板")
395
+ h("导出模板")
407
396
  ])),
408
397
  _: 1,
409
398
  __: [9]
410
399
  }),
411
- a(le, { onClick: Se }, {
400
+ a(se, { onClick: Le }, {
412
401
  default: l(() => o[10] || (o[10] = [
413
- C("导出数据")
402
+ h("导出数据")
414
403
  ])),
415
404
  _: 1,
416
405
  __: [10]
@@ -422,8 +411,8 @@ const pt = [
422
411
  default: l(() => [
423
412
  a(g, { type: "primary" }, {
424
413
  default: l(() => [
425
- o[8] || (o[8] = C(" 导出 ")),
426
- a(x, { class: "el-icon--right" }, {
414
+ o[8] || (o[8] = h(" 导出 ")),
415
+ a(T, { class: "el-icon--right" }, {
427
416
  default: l(() => [
428
417
  a(f(Qe))
429
418
  ]),
@@ -436,36 +425,36 @@ const pt = [
436
425
  ]),
437
426
  _: 1
438
427
  }),
439
- a(ce, {
428
+ a(pe, {
440
429
  emptyColor: !0,
441
- onClickTrigger: o[1] || (o[1] = (c) => se()),
430
+ onClickTrigger: o[1] || (o[1] = (c) => t()),
442
431
  modelValue: "创建职位",
443
432
  buttonType: "primary"
444
433
  })
445
434
  ])
446
435
  ]),
447
- i("div", vt, [
448
- i("div", yt, [
449
- i("div", wt, [
436
+ i("div", yt, [
437
+ i("div", wt, [
438
+ i("div", bt, [
450
439
  a(Te, {
451
440
  class: "department-table",
452
441
  data: U.value,
453
442
  "empty-text": "",
454
- "default-sort": f(k),
455
- onSortChange: ee
443
+ "default-sort": f(q),
444
+ onSortChange: Z
456
445
  }, {
457
446
  default: l(() => [
458
- a(B, {
447
+ a(k, {
459
448
  prop: "name",
460
449
  label: "名称",
461
450
  align: "center"
462
451
  }),
463
- a(B, {
452
+ a(k, {
464
453
  prop: "code",
465
454
  label: "编码",
466
455
  align: "center"
467
456
  }),
468
- a(B, {
457
+ a(k, {
469
458
  prop: "status",
470
459
  label: "状态",
471
460
  align: "center"
@@ -473,35 +462,35 @@ const pt = [
473
462
  default: l((c) => [
474
463
  a(Be, {
475
464
  class: "status-tag",
476
- type: f(J)(c.row.status),
465
+ type: f(j)(c.row.status),
477
466
  title: "点击切换",
478
- onClick: (M) => Pe(c.row)
467
+ onClick: (F) => Ce(c.row)
479
468
  }, {
480
469
  default: l(() => [
481
- C(we(f(w)(c.row.status)), 1)
470
+ h(ye(f(b)(c.row.status)), 1)
482
471
  ]),
483
472
  _: 2
484
473
  }, 1032, ["type", "onClick"])
485
474
  ]),
486
475
  _: 1
487
476
  }),
488
- a(B, {
477
+ a(k, {
489
478
  prop: "sort",
490
479
  label: "排序",
491
480
  align: "center",
492
481
  sortable: "custom"
493
482
  }),
494
- a(B, {
483
+ a(k, {
495
484
  label: "操作",
496
485
  align: "center"
497
486
  }, {
498
487
  default: l((c) => [
499
- i("div", bt, [
500
- (pe(!0), ue(Fe, null, Re(f(pt), (M) => (pe(), ue("div", {
488
+ i("div", ht, [
489
+ (ue(!0), re(Fe, null, Re(f(dt), (F) => (ue(), re("div", {
501
490
  class: "operate-item",
502
- key: M.value,
503
- onClick: Me((xt) => oe(M, c), ["stop"])
504
- }, we(M.label), 9, It))), 128))
491
+ key: F.value,
492
+ onClick: Me((Bt) => te(F, c), ["stop"])
493
+ }, ye(F.label), 9, It))), 128))
505
494
  ])
506
495
  ]),
507
496
  _: 1
@@ -510,16 +499,16 @@ const pt = [
510
499
  _: 1
511
500
  }, 8, ["data", "default-sort"])
512
501
  ]),
513
- i("div", ht, [
502
+ i("div", Ct, [
514
503
  o[11] || (o[11] = i("div", null, null, -1)),
515
504
  a(ke, {
516
- onSizeChange: Z,
517
- onCurrentChange: A,
518
- "current-page": (ge = f(S)) == null ? void 0 : ge.pageNum,
519
- "page-sizes": (_e = f(S)) == null ? void 0 : _e.pageSizes,
520
- "page-size": ((ve = f(S)) == null ? void 0 : ve.pageSize) ?? 10,
505
+ onSizeChange: Y,
506
+ onCurrentChange: X,
507
+ "current-page": (fe = f(D)) == null ? void 0 : fe.pageNum,
508
+ "page-sizes": (ge = f(D)) == null ? void 0 : ge.pageSizes,
509
+ "page-size": ((_e = f(D)) == null ? void 0 : _e.pageSize) ?? 10,
521
510
  layout: "total, sizes, prev, pager, next, jumper",
522
- total: ((ye = f(S)) == null ? void 0 : ye.total) ?? 0
511
+ total: ((ve = f(D)) == null ? void 0 : ve.total) ?? 0
523
512
  }, null, 8, ["current-page", "page-sizes", "page-size", "total"])
524
513
  ])
525
514
  ])
@@ -528,11 +517,11 @@ const pt = [
528
517
  i("div", { class: "footer-left" }),
529
518
  i("div", { class: "footer-right" })
530
519
  ], -1)),
531
- a(at, {
520
+ a(Xe, {
532
521
  class: "position-edit-dialog",
533
- visible: E.value,
522
+ visible: B.value,
534
523
  title: "职位信息",
535
- onBeforeDestroy: F,
524
+ onBeforeDestroy: ne,
536
525
  showClose: !0,
537
526
  closeOnClickModal: !1,
538
527
  closeOnPressEscape: !1,
@@ -546,21 +535,21 @@ const pt = [
546
535
  i("div", { class: "header-left" }),
547
536
  i("div", { class: "header-right" })
548
537
  ], -1)),
549
- i("div", Ct, [
550
- i("div", Dt, [
551
- a(Ne, {
538
+ i("div", Dt, [
539
+ i("div", Lt, [
540
+ a(qe, {
552
541
  class: "position-edit-form",
553
542
  ref_key: "positionFormRef",
554
- ref: $,
543
+ ref: A,
555
544
  model: d.value,
556
- rules: ae
545
+ rules: oe
557
546
  }, {
558
547
  default: l(() => [
559
- a(fe, { gutter: 20 }, {
548
+ a(me, { gutter: 20 }, {
560
549
  default: l(() => [
561
- a(re, { span: 12 }, {
550
+ a(ie, { span: 12 }, {
562
551
  default: l(() => [
563
- a(ie, {
552
+ a(le, {
564
553
  prop: "name",
565
554
  label: "职位名称",
566
555
  "label-position": "top"
@@ -578,9 +567,9 @@ const pt = [
578
567
  ]),
579
568
  _: 1
580
569
  }),
581
- a(re, { span: 12 }, {
570
+ a(ie, { span: 12 }, {
582
571
  default: l(() => [
583
- a(ie, {
572
+ a(le, {
584
573
  prop: "code",
585
574
  label: "职位编码",
586
575
  "label-position": "top"
@@ -601,11 +590,11 @@ const pt = [
601
590
  ]),
602
591
  _: 1
603
592
  }),
604
- a(fe, { gutter: 20 }, {
593
+ a(me, { gutter: 20 }, {
605
594
  default: l(() => [
606
- a(re, { span: 12 }, {
595
+ a(ie, { span: 12 }, {
607
596
  default: l(() => [
608
- a(ie, {
597
+ a(le, {
609
598
  prop: "sort",
610
599
  label: "排序",
611
600
  "label-position": "top"
@@ -637,18 +626,18 @@ const pt = [
637
626
  footer: l(() => [
638
627
  i("div", St, [
639
628
  o[13] || (o[13] = i("div", { class: "footer-left" }, null, -1)),
640
- i("div", Lt, [
641
- a(ce, {
629
+ i("div", Et, [
630
+ a(pe, {
642
631
  class: "cancel",
643
632
  emptyColor: !0,
644
633
  onClickTrigger: e,
645
634
  modelValue: "取消",
646
635
  buttonType: "info"
647
636
  }),
648
- a(ce, {
637
+ a(pe, {
649
638
  class: "confirm",
650
639
  emptyColor: !0,
651
- onClickTrigger: R,
640
+ onClickTrigger: Ie,
652
641
  modelValue: "确定",
653
642
  buttonType: "primary"
654
643
  })
@@ -660,7 +649,7 @@ const pt = [
660
649
  ]);
661
650
  };
662
651
  }
663
- }), Ft = /* @__PURE__ */ nt(Et, [["__scopeId", "data-v-c988d077"]]);
652
+ }), Rt = /* @__PURE__ */ st(xt, [["__scopeId", "data-v-264d1f0c"]]);
664
653
  export {
665
- Ft as default
654
+ Rt as default
666
655
  };