@litianxiang/portal-ui 0.0.14 → 0.0.16

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as ee, ref as R, computed as K, openBlock as o, createBlock as I, unref as L, normalizeClass as ie, withCtx as u, createElementBlock as y, createCommentVNode as W, renderSlot as Ve, createTextVNode as N, toDisplayString as O, Fragment as G, renderList as oe, watch as ke, createVNode as t, withModifiers as ye, onMounted as Se, resolveComponent as P, createElementVNode as f, resolveDynamicComponent as Qe, nextTick as Ze, resolveDirective as Ye, withDirectives as qe, reactive as Te, defineAsyncComponent as Fe, onUnmounted as el } from "vue";
1
+ import { defineComponent as ee, ref as S, computed as Y, openBlock as o, createBlock as P, unref as I, normalizeClass as ie, withCtx as i, createElementBlock as y, createCommentVNode as W, renderSlot as Ve, createTextVNode as O, toDisplayString as H, Fragment as G, renderList as ne, watch as ke, createVNode as t, withModifiers as ye, onMounted as Se, resolveComponent as A, createElementVNode as c, resolveDynamicComponent as Qe, nextTick as Ze, resolveDirective as Ye, withDirectives as qe, reactive as Te, defineAsyncComponent as Fe, onUnmounted as el } from "vue";
2
2
  import { ElInput as We, ElButton as ll, ElSwitch as al, ElSelect as tl, ElOption as ol, ElInputNumber as nl, ElDatePicker as sl, ElTimePicker as ul, ElTable as il, ElTableColumn as $e, ElLink as dl, ElTag as rl, ElMessageBox as _e, ElMessage as Be } from "element-plus";
3
3
  import { Plus as Ge, Download as cl, UploadFilled as fl, Close as Ce, FullScreen as ml, Aim as pl, ArrowUp as vl, ArrowDown as gl, Search as be, ArrowRight as De, Check as Ke, Location as hl, DArrowLeft as bl, Promotion as yl, Finished as _l, User as wl, DArrowRight as Vl, ArrowLeft as Xe, Edit as kl, Loading as Cl } from "@element-plus/icons-vue";
4
4
  import { createAuthHttpClient as xl } from "@litianxiang/portal-core";
@@ -22,11 +22,11 @@ const $l = /* @__PURE__ */ ee({
22
22
  suffixIcon: {}
23
23
  },
24
24
  emits: ["update:modelValue", "input", "change", "focus", "blur", "clear"],
25
- setup(e, { expose: T, emit: S }) {
26
- const l = e, n = S, r = R(), d = K({
25
+ setup(e, { expose: F, emit: D }) {
26
+ const l = e, n = D, r = S(), d = Y({
27
27
  get: () => l.modelValue ?? "",
28
28
  set: (a) => n("update:modelValue", a)
29
- }), g = (a) => {
29
+ }), h = (a) => {
30
30
  n("input", a);
31
31
  }, s = (a) => {
32
32
  n("change", a);
@@ -34,10 +34,10 @@ const $l = /* @__PURE__ */ ee({
34
34
  n("focus", a);
35
35
  }, _ = (a) => {
36
36
  n("blur", a);
37
- }, D = () => {
37
+ }, $ = () => {
38
38
  n("clear");
39
39
  };
40
- return T({
40
+ return F({
41
41
  getValue: () => l.modelValue ?? "",
42
42
  setValue: (a) => {
43
43
  n("update:modelValue", a);
@@ -58,11 +58,11 @@ const $l = /* @__PURE__ */ ee({
58
58
  (a = r.value) == null || a.select();
59
59
  },
60
60
  getField: () => l.field ?? ""
61
- }), (a, C) => (o(), I(L(We), {
61
+ }), (a, k) => (o(), P(I(We), {
62
62
  ref_key: "inputRef",
63
63
  ref: r,
64
64
  modelValue: d.value,
65
- "onUpdate:modelValue": C[0] || (C[0] = (c) => d.value = c),
65
+ "onUpdate:modelValue": k[0] || (k[0] = (f) => d.value = f),
66
66
  type: e.type,
67
67
  placeholder: e.placeholder,
68
68
  disabled: e.disabled,
@@ -75,11 +75,11 @@ const $l = /* @__PURE__ */ ee({
75
75
  size: e.size,
76
76
  "prefix-icon": e.prefixIcon,
77
77
  "suffix-icon": e.suffixIcon,
78
- onInput: g,
78
+ onInput: h,
79
79
  onChange: s,
80
80
  onFocus: v,
81
81
  onBlur: _,
82
- onClear: D
82
+ onClear: $
83
83
  }, null, 8, ["modelValue", "type", "placeholder", "disabled", "readonly", "clearable", "show-password", "maxlength", "minlength", "show-word-limit", "size", "prefix-icon", "suffix-icon"]));
84
84
  }
85
85
  }), Fl = { key: 1 }, Dl = /* @__PURE__ */ ee({
@@ -98,7 +98,7 @@ const $l = /* @__PURE__ */ ee({
98
98
  label: { default: "" }
99
99
  },
100
100
  emits: ["click"],
101
- setup(e, { expose: T, emit: S }) {
101
+ setup(e, { expose: F, emit: D }) {
102
102
  const l = {
103
103
  save: "iconfont icon-zancun1",
104
104
  submit: "iconfont icon-tijiaoqueren",
@@ -116,19 +116,19 @@ const $l = /* @__PURE__ */ ee({
116
116
  delete: "iconfont icon-delete",
117
117
  reset: "iconfont icon-shuaxin",
118
118
  filter: "iconfont icon-filter"
119
- }, n = ["custom"], r = e, d = S, g = K(() => r.icon ? l[r.icon] || r.icon : ""), s = K(() => r.type || ""), v = K(() => {
119
+ }, n = ["custom"], r = e, d = D, h = Y(() => r.icon ? l[r.icon] || r.icon : ""), s = Y(() => r.type || ""), v = Y(() => {
120
120
  const w = s.value;
121
121
  return w && n.includes(w) ? "" : w;
122
- }), _ = K(() => {
122
+ }), _ = Y(() => {
123
123
  const w = s.value;
124
124
  return w && n.includes(w) ? `el-button--${w}` : "";
125
- }), D = (w) => {
125
+ }), $ = (w) => {
126
126
  !r.disabled && !r.loading && d("click", w);
127
127
  };
128
- return T({
128
+ return F({
129
129
  isDisabled: () => r.disabled,
130
130
  isLoading: () => r.loading
131
- }), (w, b) => (o(), I(L(ll), {
131
+ }), (w, g) => (o(), P(I(ll), {
132
132
  type: v.value,
133
133
  class: ie(_.value),
134
134
  size: e.size,
@@ -139,16 +139,16 @@ const $l = /* @__PURE__ */ ee({
139
139
  circle: e.circle,
140
140
  link: e.link,
141
141
  text: e.text,
142
- onClick: D
142
+ onClick: $
143
143
  }, {
144
- default: u(() => [
145
- g.value && !e.loading ? (o(), y("i", {
144
+ default: i(() => [
145
+ h.value && !e.loading ? (o(), y("i", {
146
146
  key: 0,
147
- class: ie(g.value)
147
+ class: ie(h.value)
148
148
  }, null, 2)) : W("", !0),
149
149
  w.$slots.default || e.label ? (o(), y("span", Fl, [
150
150
  Ve(w.$slots, "default", {}, () => [
151
- N(O(e.label), 1)
151
+ O(H(e.label), 1)
152
152
  ])
153
153
  ])) : W("", !0)
154
154
  ]),
@@ -167,13 +167,13 @@ const $l = /* @__PURE__ */ ee({
167
167
  modelValue: { type: Boolean, default: !0 }
168
168
  },
169
169
  emits: ["update:modelValue"],
170
- setup(e, { expose: T, emit: S }) {
171
- const l = e, n = S, r = () => {
170
+ setup(e, { expose: F, emit: D }) {
171
+ const l = e, n = D, r = () => {
172
172
  n("update:modelValue", !l.modelValue);
173
173
  };
174
- return T({
174
+ return F({
175
175
  toggle: r
176
- }), (d, g) => (o(), y("span", {
176
+ }), (d, h) => (o(), y("span", {
177
177
  class: "base-collapse-toggle",
178
178
  title: e.modelValue ? "点击折叠" : "点击展开",
179
179
  onClick: r
@@ -200,30 +200,30 @@ const $l = /* @__PURE__ */ ee({
200
200
  beforeChange: {}
201
201
  },
202
202
  emits: ["update:modelValue", "change"],
203
- setup(e, { expose: T, emit: S }) {
204
- const l = e, n = S, r = K({
203
+ setup(e, { expose: F, emit: D }) {
204
+ const l = e, n = D, r = Y({
205
205
  get: () => l.modelValue ?? l.inactiveValue,
206
- set: (h) => n("update:modelValue", h)
207
- }), d = (h) => {
208
- n("change", h);
206
+ set: (b) => n("update:modelValue", b)
207
+ }), d = (b) => {
208
+ n("change", b);
209
209
  };
210
- return T({
210
+ return F({
211
211
  getValue: () => l.modelValue,
212
- setValue: (h) => {
213
- n("update:modelValue", h);
212
+ setValue: (b) => {
213
+ n("update:modelValue", b);
214
214
  },
215
215
  toggle: () => {
216
- const h = l.modelValue === l.activeValue ? l.inactiveValue : l.activeValue;
217
- n("update:modelValue", h);
216
+ const b = l.modelValue === l.activeValue ? l.inactiveValue : l.activeValue;
217
+ n("update:modelValue", b);
218
218
  },
219
219
  isActive: () => l.modelValue === l.activeValue,
220
220
  clear: () => {
221
221
  n("update:modelValue", l.inactiveValue);
222
222
  },
223
223
  getField: () => l.field ?? ""
224
- }), (h, w) => (o(), I(L(al), {
224
+ }), (b, w) => (o(), P(I(al), {
225
225
  modelValue: r.value,
226
- "onUpdate:modelValue": w[0] || (w[0] = (b) => r.value = b),
226
+ "onUpdate:modelValue": w[0] || (w[0] = (g) => r.value = g),
227
227
  disabled: e.disabled,
228
228
  loading: e.loading,
229
229
  size: e.size,
@@ -257,11 +257,11 @@ const $l = /* @__PURE__ */ ee({
257
257
  size: { default: "default" }
258
258
  },
259
259
  emits: ["update:modelValue", "change", "focus", "blur", "clear"],
260
- setup(e, { expose: T, emit: S }) {
261
- const l = e, n = S, r = R(), d = K({
260
+ setup(e, { expose: F, emit: D }) {
261
+ const l = e, n = D, r = S(), d = Y({
262
262
  get: () => l.modelValue,
263
263
  set: (a) => n("update:modelValue", a)
264
- }), g = (a) => {
264
+ }), h = (a) => {
265
265
  n("change", a);
266
266
  }, s = (a) => {
267
267
  n("focus", a);
@@ -270,23 +270,23 @@ const $l = /* @__PURE__ */ ee({
270
270
  }, _ = () => {
271
271
  n("clear");
272
272
  };
273
- return T({
273
+ return F({
274
274
  getValue: () => l.modelValue,
275
275
  setValue: (a) => {
276
276
  n("update:modelValue", a);
277
277
  },
278
278
  getSelectedOption: () => {
279
279
  if (l.modelValue)
280
- return l.multiple && Array.isArray(l.modelValue) ? l.modelValue.map((a) => l.options.find((C) => C.key === a)) : l.options.find((a) => a.key === l.modelValue);
280
+ return l.multiple && Array.isArray(l.modelValue) ? l.modelValue.map((a) => l.options.find((k) => k.key === a)) : l.options.find((a) => a.key === l.modelValue);
281
281
  },
282
282
  getSelectedValue: () => {
283
283
  if (!l.modelValue) return;
284
284
  if (l.multiple && Array.isArray(l.modelValue))
285
- return l.modelValue.map((C) => {
286
- const c = l.options.find((Q) => Q.key === C);
287
- return (c == null ? void 0 : c.value) ?? "";
285
+ return l.modelValue.map((k) => {
286
+ const f = l.options.find((X) => X.key === k);
287
+ return (f == null ? void 0 : f.value) ?? "";
288
288
  });
289
- const a = l.options.find((C) => C.key === l.modelValue);
289
+ const a = l.options.find((k) => k.key === l.modelValue);
290
290
  return a == null ? void 0 : a.value;
291
291
  },
292
292
  clear: () => {
@@ -301,11 +301,11 @@ const $l = /* @__PURE__ */ ee({
301
301
  (a = r.value) == null || a.blur();
302
302
  },
303
303
  getField: () => l.field ?? ""
304
- }), (a, C) => (o(), I(L(tl), {
304
+ }), (a, k) => (o(), P(I(tl), {
305
305
  ref_key: "selectRef",
306
306
  ref: r,
307
307
  modelValue: d.value,
308
- "onUpdate:modelValue": C[0] || (C[0] = (c) => d.value = c),
308
+ "onUpdate:modelValue": k[0] || (k[0] = (f) => d.value = f),
309
309
  placeholder: e.placeholder,
310
310
  disabled: e.disabled,
311
311
  multiple: e.multiple,
@@ -316,17 +316,17 @@ const $l = /* @__PURE__ */ ee({
316
316
  "collapse-tags-tooltip": e.collapseTagsTooltip,
317
317
  "max-collapse-tags": e.maxTagCount,
318
318
  "no-data-text": e.emptyText,
319
- onChange: g,
319
+ onChange: h,
320
320
  onFocus: s,
321
321
  onBlur: v,
322
322
  onClear: _
323
323
  }, {
324
- default: u(() => [
325
- (o(!0), y(G, null, oe(e.options, (c) => (o(), I(L(ol), {
326
- key: c.key,
327
- label: c.value,
328
- value: c.key,
329
- disabled: c.disabled
324
+ default: i(() => [
325
+ (o(!0), y(G, null, ne(e.options, (f) => (o(), P(I(ol), {
326
+ key: f.key,
327
+ label: f.value,
328
+ value: f.key,
329
+ disabled: f.disabled
330
330
  }, null, 8, ["label", "value", "disabled"]))), 128))
331
331
  ]),
332
332
  _: 1
@@ -350,22 +350,22 @@ const $l = /* @__PURE__ */ ee({
350
350
  size: { default: "default" }
351
351
  },
352
352
  emits: ["update:modelValue", "change", "focus", "blur"],
353
- setup(e, { expose: T, emit: S }) {
354
- const l = e, n = S, r = R(), d = (a) => {
353
+ setup(e, { expose: F, emit: D }) {
354
+ const l = e, n = D, r = S(), d = (a) => {
355
355
  if (a === "" || a === null || a === void 0) return null;
356
- const C = Number(a);
357
- return Number.isNaN(C) ? null : C;
358
- }, g = K({
356
+ const k = Number(a);
357
+ return Number.isNaN(k) ? null : k;
358
+ }, h = Y({
359
359
  get: () => d(l.modelValue),
360
360
  set: (a) => n("update:modelValue", a)
361
- }), s = (a, C) => {
362
- n("change", a ?? null, C ?? null);
361
+ }), s = (a, k) => {
362
+ n("change", a ?? null, k ?? null);
363
363
  }, v = (a) => {
364
364
  n("focus", a);
365
365
  }, _ = (a) => {
366
366
  n("blur", a);
367
367
  };
368
- return T({
368
+ return F({
369
369
  getValue: () => d(l.modelValue),
370
370
  setValue: (a) => {
371
371
  n("update:modelValue", d(a));
@@ -374,14 +374,14 @@ const $l = /* @__PURE__ */ ee({
374
374
  n("update:modelValue", null);
375
375
  },
376
376
  increase: () => {
377
- const a = d(l.modelValue) ?? 0, C = l.step ?? 1;
378
- let c = a + C;
379
- l.max !== void 0 && c > l.max && (c = l.max), n("update:modelValue", c);
377
+ const a = d(l.modelValue) ?? 0, k = l.step ?? 1;
378
+ let f = a + k;
379
+ l.max !== void 0 && f > l.max && (f = l.max), n("update:modelValue", f);
380
380
  },
381
381
  decrease: () => {
382
- const a = d(l.modelValue) ?? 0, C = l.step ?? 1;
383
- let c = a - C;
384
- l.min !== void 0 && c < l.min && (c = l.min), n("update:modelValue", c);
382
+ const a = d(l.modelValue) ?? 0, k = l.step ?? 1;
383
+ let f = a - k;
384
+ l.min !== void 0 && f < l.min && (f = l.min), n("update:modelValue", f);
385
385
  },
386
386
  focus: () => {
387
387
  var a;
@@ -392,11 +392,11 @@ const $l = /* @__PURE__ */ ee({
392
392
  (a = r.value) == null || a.blur();
393
393
  },
394
394
  getField: () => l.field ?? ""
395
- }), (a, C) => (o(), I(L(nl), {
395
+ }), (a, k) => (o(), P(I(nl), {
396
396
  ref_key: "numberRef",
397
397
  ref: r,
398
- modelValue: g.value,
399
- "onUpdate:modelValue": C[0] || (C[0] = (c) => g.value = c),
398
+ modelValue: h.value,
399
+ "onUpdate:modelValue": k[0] || (k[0] = (f) => h.value = f),
400
400
  min: e.min,
401
401
  max: e.max,
402
402
  step: e.step,
@@ -433,11 +433,11 @@ const $l = /* @__PURE__ */ ee({
433
433
  rangeSeparator: { default: "至" }
434
434
  },
435
435
  emits: ["update:modelValue", "change", "focus", "blur", "clear"],
436
- setup(e, { expose: T, emit: S }) {
437
- const l = e, n = S, r = R(), d = K({
436
+ setup(e, { expose: F, emit: D }) {
437
+ const l = e, n = D, r = S(), d = Y({
438
438
  get: () => l.modelValue,
439
439
  set: (a) => n("update:modelValue", a)
440
- }), g = (a) => {
440
+ }), h = (a) => {
441
441
  n("change", a);
442
442
  }, s = (a) => {
443
443
  n("focus", a);
@@ -446,7 +446,7 @@ const $l = /* @__PURE__ */ ee({
446
446
  }, _ = () => {
447
447
  n("clear");
448
448
  };
449
- return T({
449
+ return F({
450
450
  getValue: () => l.modelValue,
451
451
  setValue: (a) => {
452
452
  n("update:modelValue", a);
@@ -472,11 +472,11 @@ const $l = /* @__PURE__ */ ee({
472
472
  (a = r.value) == null || a.blur();
473
473
  },
474
474
  getField: () => l.field ?? ""
475
- }), (a, C) => (o(), I(L(sl), {
475
+ }), (a, k) => (o(), P(I(sl), {
476
476
  ref_key: "dateRef",
477
477
  ref: r,
478
478
  modelValue: d.value,
479
- "onUpdate:modelValue": C[0] || (C[0] = (c) => d.value = c),
479
+ "onUpdate:modelValue": k[0] || (k[0] = (f) => d.value = f),
480
480
  type: e.type,
481
481
  placeholder: e.placeholder,
482
482
  "start-placeholder": e.startPlaceholder,
@@ -490,7 +490,7 @@ const $l = /* @__PURE__ */ ee({
490
490
  "disabled-date": e.disabledDate,
491
491
  shortcuts: e.shortcuts,
492
492
  "range-separator": e.rangeSeparator,
493
- onChange: g,
493
+ onChange: h,
494
494
  onFocus: s,
495
495
  onBlur: v,
496
496
  onClear: _
@@ -518,42 +518,42 @@ const $l = /* @__PURE__ */ ee({
518
518
  arrowControl: { type: Boolean, default: !1 }
519
519
  },
520
520
  emits: ["update:modelValue", "change", "focus", "blur", "clear"],
521
- setup(e, { expose: T, emit: S }) {
522
- const l = e, n = S, r = R(), d = K({
521
+ setup(e, { expose: F, emit: D }) {
522
+ const l = e, n = D, r = S(), d = Y({
523
523
  get: () => l.modelValue,
524
- set: (i) => n("update:modelValue", i)
525
- }), g = (i) => {
526
- n("change", i);
527
- }, s = (i) => {
528
- n("focus", i);
529
- }, v = (i) => {
530
- n("blur", i);
524
+ set: (u) => n("update:modelValue", u)
525
+ }), h = (u) => {
526
+ n("change", u);
527
+ }, s = (u) => {
528
+ n("focus", u);
529
+ }, v = (u) => {
530
+ n("blur", u);
531
531
  }, _ = () => {
532
532
  n("clear");
533
533
  };
534
- return T({
534
+ return F({
535
535
  getValue: () => l.modelValue,
536
- setValue: (i) => {
537
- n("update:modelValue", i);
536
+ setValue: (u) => {
537
+ n("update:modelValue", u);
538
538
  },
539
539
  getFormattedValue: () => l.modelValue,
540
540
  clear: () => {
541
541
  n("update:modelValue", void 0);
542
542
  },
543
543
  focus: () => {
544
- var i;
545
- (i = r.value) == null || i.focus();
544
+ var u;
545
+ (u = r.value) == null || u.focus();
546
546
  },
547
547
  blur: () => {
548
- var i;
549
- (i = r.value) == null || i.blur();
548
+ var u;
549
+ (u = r.value) == null || u.blur();
550
550
  },
551
551
  getField: () => l.field ?? ""
552
- }), (i, a) => (o(), I(L(ul), {
552
+ }), (u, a) => (o(), P(I(ul), {
553
553
  ref_key: "timeRef",
554
554
  ref: r,
555
555
  modelValue: d.value,
556
- "onUpdate:modelValue": a[0] || (a[0] = (C) => d.value = C),
556
+ "onUpdate:modelValue": a[0] || (a[0] = (k) => d.value = k),
557
557
  "is-range": e.isRange,
558
558
  placeholder: e.placeholder,
559
559
  "start-placeholder": e.startPlaceholder,
@@ -569,7 +569,7 @@ const $l = /* @__PURE__ */ ee({
569
569
  "disabled-seconds": e.disabledSeconds,
570
570
  "range-separator": e.rangeSeparator,
571
571
  "arrow-control": e.arrowControl,
572
- onChange: g,
572
+ onChange: h,
573
573
  onFocus: s,
574
574
  onBlur: v,
575
575
  onClear: _
@@ -608,104 +608,104 @@ const $l = /* @__PURE__ */ ee({
608
608
  highlightCurrentRow: { type: Boolean, default: !1 }
609
609
  },
610
610
  emits: ["update:modelValue", "change", "row-add", "row-delete", "cell-change", "selection-change", "row-click", "cell-click"],
611
- setup(e, { expose: T, emit: S }) {
612
- const l = e, n = S, r = R(), d = R([]), g = R([]), s = R("");
611
+ setup(e, { expose: F, emit: D }) {
612
+ const l = e, n = D, r = S(), d = S([]), h = S([]), s = S("");
613
613
  let v = 0;
614
614
  const _ = () => {
615
- d.value = (l.modelValue || []).map((B, E) => ({
616
- ...B,
617
- _rowKey: B._rowKey || `row_${++v}`,
618
- _rowIndex: E
615
+ d.value = (l.modelValue || []).map((x, B) => ({
616
+ ...x,
617
+ _rowKey: x._rowKey || `row_${++v}`,
618
+ _rowIndex: B
619
619
  }));
620
620
  };
621
621
  ke(() => l.modelValue, () => {
622
622
  _();
623
623
  }, { immediate: !0, deep: !0 });
624
- const D = K(() => l.columns.filter((B) => B.visible !== !1)), F = K(() => l.maxRows !== void 0 && d.value.length >= l.maxRows), h = K(() => l.minRows !== void 0 && d.value.length <= l.minRows), w = (B) => B._rowKey || B[l.rowKey], b = (B) => !l.disabled, k = (B, E) => {
625
- if (!E) return B;
626
- const m = E.find((M) => M.key === B);
627
- return (m == null ? void 0 : m.value) ?? B;
628
- }, $ = () => {
629
- if (F.value) return;
630
- const B = {
624
+ const $ = Y(() => l.columns.filter((x) => x.visible !== !1)), E = Y(() => l.maxRows !== void 0 && d.value.length >= l.maxRows), b = Y(() => l.minRows !== void 0 && d.value.length <= l.minRows), w = (x) => x._rowKey || x[l.rowKey], g = (x) => !l.disabled, R = (x, B) => {
625
+ if (!B) return x;
626
+ const m = B.find((M) => M.key === x);
627
+ return (m == null ? void 0 : m.value) ?? x;
628
+ }, L = () => {
629
+ if (E.value) return;
630
+ const x = {
631
631
  _rowKey: `row_${++v}`,
632
632
  ...l.defaultRowData
633
633
  };
634
- l.columns.forEach((E) => {
635
- B[E.field] === void 0 && (B[E.field] = "");
636
- }), d.value.push(B), q(), n("row-add", B, d.value.length - 1);
637
- }, i = (B) => {
638
- if (h.value) return;
639
- const E = d.value[B];
640
- d.value.splice(B, 1), q(), n("row-delete", E, B);
641
- }, a = (B, E, m) => {
642
- q(), n("cell-change", B, E, m);
643
- }, C = (B) => {
644
- g.value = B, n("selection-change", B);
645
- }, c = (B, E, m) => {
646
- n("row-click", B, E, m);
647
- }, Q = (B, E, m, M) => {
648
- n("cell-click", B, E, m, M);
649
- }, q = () => {
650
- const B = d.value.map((E) => {
651
- const { _rowKey: m, _rowIndex: M, ...me } = E;
634
+ l.columns.forEach((B) => {
635
+ x[B.field] === void 0 && (x[B.field] = "");
636
+ }), d.value.push(x), N(), n("row-add", x, d.value.length - 1);
637
+ }, u = (x) => {
638
+ if (b.value) return;
639
+ const B = d.value[x];
640
+ d.value.splice(x, 1), N(), n("row-delete", B, x);
641
+ }, a = (x, B, m) => {
642
+ N(), n("cell-change", x, B, m);
643
+ }, k = (x) => {
644
+ h.value = x, n("selection-change", x);
645
+ }, f = (x, B, m) => {
646
+ n("row-click", x, B, m);
647
+ }, X = (x, B, m, M) => {
648
+ n("cell-click", x, B, m, M);
649
+ }, N = () => {
650
+ const x = d.value.map((B) => {
651
+ const { _rowKey: m, _rowIndex: M, ...me } = B;
652
652
  return me;
653
653
  });
654
- n("update:modelValue", B), n("change", B);
655
- }, ne = () => d.value.map((B) => {
656
- const { _rowKey: E, _rowIndex: m, ...M } = B;
654
+ n("update:modelValue", x), n("change", x);
655
+ }, oe = () => d.value.map((x) => {
656
+ const { _rowKey: B, _rowIndex: m, ...M } = x;
657
657
  return M;
658
- }), de = (B) => {
659
- d.value = B.map((E, m) => ({
660
- ...E,
661
- _rowKey: E._rowKey || `row_${++v}`,
658
+ }), de = (x) => {
659
+ d.value = x.map((B, m) => ({
660
+ ...B,
661
+ _rowKey: B._rowKey || `row_${++v}`,
662
662
  _rowIndex: m
663
- })), q();
664
- }, se = (B, E) => {
665
- if (F.value) return;
663
+ })), N();
664
+ }, se = (x, B) => {
665
+ if (E.value) return;
666
666
  const m = {
667
667
  _rowKey: `row_${++v}`,
668
668
  ...l.defaultRowData,
669
- ...B
669
+ ...x
670
670
  };
671
- E !== void 0 && E >= 0 && E <= d.value.length ? d.value.splice(E, 0, m) : d.value.push(m), q();
672
- }, pe = (B) => {
673
- B >= 0 && B < d.value.length && (d.value.splice(B, 1), q());
674
- }, fe = (B) => {
675
- [...B].sort((m, M) => M - m).forEach((m) => {
671
+ B !== void 0 && B >= 0 && B <= d.value.length ? d.value.splice(B, 0, m) : d.value.push(m), N();
672
+ }, pe = (x) => {
673
+ x >= 0 && x < d.value.length && (d.value.splice(x, 1), N());
674
+ }, fe = (x) => {
675
+ [...x].sort((m, M) => M - m).forEach((m) => {
676
676
  m >= 0 && m < d.value.length && d.value.splice(m, 1);
677
- }), q();
678
- }, re = (B) => {
679
- if (B >= 0 && B < d.value.length) {
680
- const { _rowKey: E, _rowIndex: m, ...M } = d.value[B];
677
+ }), N();
678
+ }, re = (x) => {
679
+ if (x >= 0 && x < d.value.length) {
680
+ const { _rowKey: B, _rowIndex: m, ...M } = d.value[x];
681
681
  return M;
682
682
  }
683
- }, ae = (B, E) => {
684
- B >= 0 && B < d.value.length && (Object.assign(d.value[B], E), q());
685
- }, ve = (B, E, m) => {
686
- B >= 0 && B < d.value.length && (d.value[B][E] = m, q());
687
- }, z = () => g.value.map((B) => {
688
- const { _rowKey: E, _rowIndex: m, ...M } = B;
683
+ }, ae = (x, B) => {
684
+ x >= 0 && x < d.value.length && (Object.assign(d.value[x], B), N());
685
+ }, ve = (x, B, m) => {
686
+ x >= 0 && x < d.value.length && (d.value[x][B] = m, N());
687
+ }, T = () => h.value.map((x) => {
688
+ const { _rowKey: B, _rowIndex: m, ...M } = x;
689
689
  return M;
690
- }), A = () => g.value.map((B) => d.value.indexOf(B)), X = (B) => {
691
- var E;
692
- (E = r.value) == null || E.clearSelection(), B.forEach((m) => {
690
+ }), U = () => h.value.map((x) => d.value.indexOf(x)), J = (x) => {
691
+ var B;
692
+ (B = r.value) == null || B.clearSelection(), x.forEach((m) => {
693
693
  var M;
694
694
  m >= 0 && m < d.value.length && ((M = r.value) == null || M.toggleRowSelection(d.value[m], !0));
695
695
  });
696
696
  }, ce = () => {
697
- var B;
698
- (B = r.value) == null || B.clearSelection();
697
+ var x;
698
+ (x = r.value) == null || x.clearSelection();
699
699
  }, ge = () => {
700
- d.value.forEach((B) => {
701
- var E;
702
- (E = r.value) == null || E.toggleRowSelection(B, !0);
700
+ d.value.forEach((x) => {
701
+ var B;
702
+ (B = r.value) == null || B.toggleRowSelection(x, !0);
703
703
  });
704
- }, U = async () => l.required && d.value.length === 0 ? (s.value = `${l.label || l.field}不能为空`, !1) : (s.value = "", !0);
705
- return T({
706
- getValue: () => ne(),
707
- setValue: (B) => de(B),
708
- getTableData: ne,
704
+ }, z = async () => l.required && d.value.length === 0 ? (s.value = `${l.label || l.field}不能为空`, !1) : (s.value = "", !0);
705
+ return F({
706
+ getValue: () => oe(),
707
+ setValue: (x) => de(x),
708
+ getTableData: oe,
709
709
  setTableData: de,
710
710
  addRow: se,
711
711
  deleteRow: pe,
@@ -713,34 +713,34 @@ const $l = /* @__PURE__ */ ee({
713
713
  getRow: re,
714
714
  updateRow: ae,
715
715
  updateCell: ve,
716
- getSelectedRows: z,
717
- getSelectedIndexes: A,
718
- setSelectedRows: X,
716
+ getSelectedRows: T,
717
+ getSelectedIndexes: U,
718
+ setSelectedRows: J,
719
719
  clearSelection: ce,
720
720
  selectAll: ge,
721
- validateAll: U,
722
- validateRow: async (B) => !0,
721
+ validateAll: z,
722
+ validateRow: async (x) => !0,
723
723
  getRowCount: () => d.value.length,
724
724
  clear: () => {
725
- d.value = [], q();
725
+ d.value = [], N();
726
726
  },
727
- validate: async () => U(),
727
+ validate: async () => z(),
728
728
  reset: () => {
729
729
  _(), s.value = "";
730
730
  },
731
731
  getField: () => l.field,
732
732
  getTableInstance: () => r.value
733
- }), (B, E) => (o(), y("div", Ll, [
733
+ }), (x, B) => (o(), y("div", Ll, [
734
734
  e.addable ? (o(), y("div", Ml, [
735
735
  t(Dl, {
736
736
  icon: "add",
737
737
  size: "small",
738
738
  label: "新增行",
739
- onClick: $,
740
- disabled: e.disabled || F.value
739
+ onClick: L,
740
+ disabled: e.disabled || E.value
741
741
  }, null, 8, ["disabled"])
742
742
  ])) : W("", !0),
743
- t(L(il), {
743
+ t(I(il), {
744
744
  ref_key: "tableRef",
745
745
  ref: r,
746
746
  data: d.value,
@@ -751,39 +751,39 @@ const $l = /* @__PURE__ */ ee({
751
751
  "row-key": w,
752
752
  "empty-text": e.emptyText,
753
753
  "highlight-current-row": e.highlightCurrentRow,
754
- onSelectionChange: C,
755
- onRowClick: c,
756
- onCellClick: Q
754
+ onSelectionChange: k,
755
+ onRowClick: f,
756
+ onCellClick: X
757
757
  }, {
758
- default: u(() => [
759
- e.showSelection ? (o(), I(L($e), {
758
+ default: i(() => [
759
+ e.showSelection ? (o(), P(I($e), {
760
760
  key: 0,
761
761
  type: "selection",
762
762
  width: "55",
763
763
  align: "center",
764
- selectable: b
764
+ selectable: g
765
765
  })) : W("", !0),
766
- e.deletable || B.$slots.action ? (o(), I(L($e), {
766
+ e.deletable || x.$slots.action ? (o(), P(I($e), {
767
767
  key: 1,
768
768
  label: "操作",
769
769
  width: e.actionWidth,
770
770
  align: "center",
771
771
  fixed: "left"
772
772
  }, {
773
- default: u(({ row: m, $index: M }) => [
774
- Ve(B.$slots, "action", {
773
+ default: i(({ row: m, $index: M }) => [
774
+ Ve(x.$slots, "action", {
775
775
  row: m,
776
776
  index: M
777
777
  }, () => [
778
- e.deletable ? (o(), I(L(dl), {
778
+ e.deletable ? (o(), P(I(dl), {
779
779
  key: 0,
780
780
  type: "primary",
781
781
  underline: "never",
782
- onClick: ye((me) => i(M), ["stop"]),
783
- disabled: e.disabled || h.value
782
+ onClick: ye((me) => u(M), ["stop"]),
783
+ disabled: e.disabled || b.value
784
784
  }, {
785
- default: u(() => [...E[0] || (E[0] = [
786
- N("删除", -1)
785
+ default: i(() => [...B[0] || (B[0] = [
786
+ O("删除", -1)
787
787
  ])]),
788
788
  _: 1
789
789
  }, 8, ["onClick", "disabled"])) : W("", !0)
@@ -791,14 +791,14 @@ const $l = /* @__PURE__ */ ee({
791
791
  ]),
792
792
  _: 3
793
793
  }, 8, ["width"])) : W("", !0),
794
- e.showIndex ? (o(), I(L($e), {
794
+ e.showIndex ? (o(), P(I($e), {
795
795
  key: 2,
796
796
  type: "index",
797
797
  label: "序号",
798
798
  width: "60",
799
799
  align: "center"
800
800
  })) : W("", !0),
801
- (o(!0), y(G, null, oe(D.value, (m) => (o(), I(L($e), {
801
+ (o(!0), y(G, null, ne($.value, (m) => (o(), P(I($e), {
802
802
  key: m.field,
803
803
  prop: m.field,
804
804
  label: m.label,
@@ -810,32 +810,32 @@ const $l = /* @__PURE__ */ ee({
810
810
  sortable: m.sortable,
811
811
  "show-overflow-tooltip": m.showOverflowTooltip !== !1
812
812
  }, {
813
- default: u(({ row: M, $index: me }) => {
814
- var J, Ee, Re, Ue, Ae, Pe, Ie, Le, Me, Ne, Oe;
813
+ default: i(({ row: M, $index: me }) => {
814
+ var Q, Ee, Re, Ue, Ae, Pe, Ie, Le, Me, Ne, Oe;
815
815
  return [
816
- B.$slots[m.field] ? Ve(B.$slots, m.field, {
816
+ x.$slots[m.field] ? Ve(x.$slots, m.field, {
817
817
  key: 0,
818
818
  row: M,
819
819
  index: me,
820
820
  column: m
821
821
  }, void 0, !0) : m.editable && !e.disabled && !e.readonly ? (o(), y(G, { key: 1 }, [
822
- m.controlType === "input" || !m.controlType ? (o(), I($l, {
822
+ m.controlType === "input" || !m.controlType ? (o(), P($l, {
823
823
  key: 0,
824
824
  modelValue: M[m.field],
825
825
  "onUpdate:modelValue": (te) => M[m.field] = te,
826
826
  placeholder: m.placeholder,
827
827
  onChange: (te) => a(me, m.field, M[m.field])
828
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : m.controlType === "number" ? (o(), I(Al, {
828
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : m.controlType === "number" ? (o(), P(Al, {
829
829
  key: 1,
830
830
  modelValue: M[m.field],
831
831
  "onUpdate:modelValue": (te) => M[m.field] = te,
832
832
  controls: !1,
833
- min: (J = m.controlProps) == null ? void 0 : J.min,
833
+ min: (Q = m.controlProps) == null ? void 0 : Q.min,
834
834
  max: (Ee = m.controlProps) == null ? void 0 : Ee.max,
835
835
  precision: (Re = m.controlProps) == null ? void 0 : Re.precision,
836
836
  disabled: (Ue = m.controlProps) == null ? void 0 : Ue.disabled,
837
837
  onChange: (te) => a(me, m.field, M[m.field])
838
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "precision", "disabled", "onChange"])) : m.controlType === "select" ? (o(), I(Ul, {
838
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "precision", "disabled", "onChange"])) : m.controlType === "select" ? (o(), P(Ul, {
839
839
  key: 2,
840
840
  modelValue: M[m.field],
841
841
  "onUpdate:modelValue": (te) => M[m.field] = te,
@@ -843,7 +843,7 @@ const $l = /* @__PURE__ */ ee({
843
843
  options: ((Ae = m.controlProps) == null ? void 0 : Ae.options) || [],
844
844
  clearable: "",
845
845
  onChange: (te) => a(me, m.field, M[m.field])
846
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "options", "onChange"])) : m.controlType === "date" ? (o(), I(Pl, {
846
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "options", "onChange"])) : m.controlType === "date" ? (o(), P(Pl, {
847
847
  key: 3,
848
848
  modelValue: M[m.field],
849
849
  "onUpdate:modelValue": (te) => M[m.field] = te,
@@ -851,7 +851,7 @@ const $l = /* @__PURE__ */ ee({
851
851
  placeholder: m.placeholder || "选择日期",
852
852
  "value-format": "YYYY-MM-DD",
853
853
  onChange: (te) => a(me, m.field, M[m.field])
854
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : m.controlType === "time" ? (o(), I(Il, {
854
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : m.controlType === "time" ? (o(), P(Il, {
855
855
  key: 4,
856
856
  modelValue: M[m.field],
857
857
  "onUpdate:modelValue": (te) => M[m.field] = te,
@@ -859,7 +859,7 @@ const $l = /* @__PURE__ */ ee({
859
859
  format: ((Pe = m.controlProps) == null ? void 0 : Pe.format) || "HH:mm",
860
860
  "value-format": ((Ie = m.controlProps) == null ? void 0 : Ie.valueFormat) || "HH:mm",
861
861
  onChange: (te) => a(me, m.field, M[m.field])
862
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "format", "value-format", "onChange"])) : m.controlType === "switch" ? (o(), I(Rl, {
862
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "format", "value-format", "onChange"])) : m.controlType === "switch" ? (o(), P(Rl, {
863
863
  key: 5,
864
864
  modelValue: M[m.field],
865
865
  "onUpdate:modelValue": (te) => M[m.field] = te,
@@ -869,23 +869,23 @@ const $l = /* @__PURE__ */ ee({
869
869
  }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : W("", !0)
870
870
  ], 64)) : (o(), y(G, { key: 2 }, [
871
871
  m.formatter ? (o(), y(G, { key: 0 }, [
872
- N(O(m.formatter(M[m.field], M, me)), 1)
872
+ O(H(m.formatter(M[m.field], M, me)), 1)
873
873
  ], 64)) : m.controlType === "select" ? (o(), y(G, { key: 1 }, [
874
- N(O(k(M[m.field], (Ne = m.controlProps) == null ? void 0 : Ne.options)), 1)
875
- ], 64)) : m.controlType === "switch" ? (o(), I(L(rl), {
874
+ O(H(R(M[m.field], (Ne = m.controlProps) == null ? void 0 : Ne.options)), 1)
875
+ ], 64)) : m.controlType === "switch" ? (o(), P(I(rl), {
876
876
  key: 2,
877
877
  type: M[m.field] === (((Oe = m.controlProps) == null ? void 0 : Oe.activeValue) ?? !0) ? "success" : "info",
878
878
  size: "small"
879
879
  }, {
880
- default: u(() => {
880
+ default: i(() => {
881
881
  var te, He, je;
882
882
  return [
883
- N(O(M[m.field] === (((te = m.controlProps) == null ? void 0 : te.activeValue) ?? !0) ? ((He = m.controlProps) == null ? void 0 : He.activeText) || "是" : ((je = m.controlProps) == null ? void 0 : je.inactiveText) || "否"), 1)
883
+ O(H(M[m.field] === (((te = m.controlProps) == null ? void 0 : te.activeValue) ?? !0) ? ((He = m.controlProps) == null ? void 0 : He.activeText) || "是" : ((je = m.controlProps) == null ? void 0 : je.inactiveText) || "否"), 1)
884
884
  ];
885
885
  }),
886
886
  _: 2
887
887
  }, 1032, ["type"])) : (o(), y(G, { key: 3 }, [
888
- N(O(M[m.field]), 1)
888
+ O(H(M[m.field]), 1)
889
889
  ], 64))
890
890
  ], 64))
891
891
  ];
@@ -895,14 +895,14 @@ const $l = /* @__PURE__ */ ee({
895
895
  ]),
896
896
  _: 3
897
897
  }, 8, ["data", "height", "max-height", "stripe", "border", "empty-text", "highlight-current-row"]),
898
- s.value ? (o(), y("div", Nl, O(s.value), 1)) : W("", !0)
898
+ s.value ? (o(), y("div", Nl, H(s.value), 1)) : W("", !0)
899
899
  ]));
900
900
  }
901
- }), xe = (e, T) => {
902
- const S = e.__vccOpts || e;
903
- for (const [l, n] of T)
904
- S[l] = n;
905
- return S;
901
+ }), xe = (e, F) => {
902
+ const D = e.__vccOpts || e;
903
+ for (const [l, n] of F)
904
+ D[l] = n;
905
+ return D;
906
906
  }, co = /* @__PURE__ */ xe(Ol, [["__scopeId", "data-v-8ce855eb"]]), fo = /* @__PURE__ */ ee({
907
907
  __name: "base-textarea",
908
908
  props: {
@@ -919,42 +919,42 @@ const $l = /* @__PURE__ */ ee({
919
919
  showCount: { type: Boolean, default: !1 }
920
920
  },
921
921
  emits: ["update:modelValue", "input", "change", "focus", "blur"],
922
- setup(e, { expose: T, emit: S }) {
923
- const l = e, n = S, r = R(), d = K({
922
+ setup(e, { expose: F, emit: D }) {
923
+ const l = e, n = D, r = S(), d = Y({
924
924
  get: () => l.modelValue ?? "",
925
- set: (i) => n("update:modelValue", i)
926
- }), g = (i) => {
927
- n("input", i);
928
- }, s = (i) => {
929
- n("change", i);
930
- }, v = (i) => {
931
- n("focus", i);
932
- }, _ = (i) => {
933
- n("blur", i);
925
+ set: (u) => n("update:modelValue", u)
926
+ }), h = (u) => {
927
+ n("input", u);
928
+ }, s = (u) => {
929
+ n("change", u);
930
+ }, v = (u) => {
931
+ n("focus", u);
932
+ }, _ = (u) => {
933
+ n("blur", u);
934
934
  };
935
- return T({
935
+ return F({
936
936
  getValue: () => l.modelValue ?? "",
937
- setValue: (i) => {
938
- n("update:modelValue", i);
937
+ setValue: (u) => {
938
+ n("update:modelValue", u);
939
939
  },
940
940
  clear: () => {
941
941
  n("update:modelValue", "");
942
942
  },
943
943
  focus: () => {
944
- var i;
945
- (i = r.value) == null || i.focus();
944
+ var u;
945
+ (u = r.value) == null || u.focus();
946
946
  },
947
947
  blur: () => {
948
- var i;
949
- (i = r.value) == null || i.blur();
948
+ var u;
949
+ (u = r.value) == null || u.blur();
950
950
  },
951
951
  getLength: () => (l.modelValue || "").length,
952
952
  getField: () => l.field ?? ""
953
- }), (i, a) => (o(), I(L(We), {
953
+ }), (u, a) => (o(), P(I(We), {
954
954
  ref_key: "textareaRef",
955
955
  ref: r,
956
956
  modelValue: d.value,
957
- "onUpdate:modelValue": a[0] || (a[0] = (C) => d.value = C),
957
+ "onUpdate:modelValue": a[0] || (a[0] = (k) => d.value = k),
958
958
  type: "textarea",
959
959
  placeholder: e.placeholder,
960
960
  disabled: e.disabled,
@@ -965,24 +965,24 @@ const $l = /* @__PURE__ */ ee({
965
965
  autosize: e.autosize,
966
966
  resize: e.resize,
967
967
  "show-word-limit": e.showCount,
968
- onInput: g,
968
+ onInput: h,
969
969
  onChange: s,
970
970
  onFocus: v,
971
971
  onBlur: _
972
972
  }, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "maxlength", "minlength", "rows", "autosize", "resize", "show-word-limit"]));
973
973
  }
974
974
  }), ze = "__portalUiHttp__", Je = "__portalUiLogoutToAuth__";
975
- function mo(e, T) {
976
- window[ze] = e, T && (window[Je] = T);
975
+ function mo(e, F) {
976
+ window[ze] = e, F && (window[Je] = F);
977
977
  }
978
978
  function po(e) {
979
- const { http: T, logoutToAuth: S } = xl({
979
+ const { http: F, logoutToAuth: D } = xl({
980
980
  baseURL: e.baseURL || "",
981
981
  getUserStore: e.getUserStore,
982
982
  getLoadingStore: e.getLoadingStore,
983
983
  onShowError: e.onShowError
984
984
  });
985
- return window[ze] = T, window[Je] = S, { http: T, logoutToAuth: S };
985
+ return window[ze] = F, window[Je] = D, { http: F, logoutToAuth: D };
986
986
  }
987
987
  function he() {
988
988
  const e = window[ze];
@@ -1001,43 +1001,43 @@ const we = {
1001
1001
  // 不隐藏父页面滚动条
1002
1002
  customClass: "base-message-box"
1003
1003
  }, Hl = () => ({
1004
- confirm: (g, s = "确认", v) => _e.confirm(g, s, {
1004
+ confirm: (h, s = "确认", v) => _e.confirm(h, s, {
1005
1005
  ...we,
1006
1006
  type: "warning",
1007
1007
  customClass: "base-message-box base-message-box--warning",
1008
1008
  ...v
1009
1009
  }),
1010
- alert: (g, s = "提示", v) => _e.alert(g, s, {
1010
+ alert: (h, s = "提示", v) => _e.alert(h, s, {
1011
1011
  ...we,
1012
1012
  type: "info",
1013
1013
  customClass: "base-message-box base-message-box--info",
1014
1014
  ...v
1015
1015
  }),
1016
- success: (g, s = "成功", v) => _e.alert(g, s, {
1016
+ success: (h, s = "成功", v) => _e.alert(h, s, {
1017
1017
  ...we,
1018
1018
  type: "success",
1019
1019
  customClass: "base-message-box base-message-box--success",
1020
1020
  ...v
1021
1021
  }),
1022
- error: (g, s = "错误", v) => _e.alert(g, s, {
1022
+ error: (h, s = "错误", v) => _e.alert(h, s, {
1023
1023
  ...we,
1024
1024
  type: "error",
1025
1025
  customClass: "base-message-box base-message-box--error",
1026
1026
  ...v
1027
1027
  }),
1028
- warning: (g, s = "提示", v) => _e.alert(g, s, {
1028
+ warning: (h, s = "提示", v) => _e.alert(h, s, {
1029
1029
  ...we,
1030
1030
  type: "warning",
1031
1031
  customClass: "base-message-box base-message-box--warning",
1032
1032
  ...v
1033
1033
  }),
1034
- prompt: (g, s = "输入", v) => _e.prompt(g, s, {
1034
+ prompt: (h, s = "输入", v) => _e.prompt(h, s, {
1035
1035
  ...we,
1036
1036
  customClass: "base-message-box base-message-box--prompt",
1037
1037
  inputPlaceholder: "请输入内容",
1038
1038
  ...v
1039
1039
  }),
1040
- confirmDelete: (g = "确定要删除吗?删除后无法恢复。", s = "删除确认") => _e.confirm(g, s, {
1040
+ confirmDelete: (h = "确定要删除吗?删除后无法恢复。", s = "删除确认") => _e.confirm(h, s, {
1041
1041
  ...we,
1042
1042
  type: "error",
1043
1043
  confirmButtonText: "删除",
@@ -1069,23 +1069,23 @@ const we = {
1069
1069
  attachTypes: { default: () => [] }
1070
1070
  },
1071
1071
  emits: ["update:modelValue", "upload-success", "upload-error"],
1072
- setup(e, { expose: T, emit: S }) {
1073
- const l = he(), { warning: n } = Hl(), r = e, d = S, g = R(!1), s = R(!1), v = R([]), _ = R(), D = R(), F = R([]), h = K({
1072
+ setup(e, { expose: F, emit: D }) {
1073
+ const l = he(), { warning: n } = Hl(), r = e, d = D, h = S(!1), s = S(!1), v = S([]), _ = S(), $ = S(), E = S([]), b = Y({
1074
1074
  get: () => r.modelValue,
1075
- set: (U) => d("update:modelValue", U)
1076
- }), w = K(() => r.attachTypes && r.attachTypes.length > 0), b = K(() => {
1075
+ set: (z) => d("update:modelValue", z)
1076
+ }), w = Y(() => r.attachTypes && r.attachTypes.length > 0), g = Y(() => {
1077
1077
  if (!w.value)
1078
- return h.value;
1079
- const U = [];
1080
- r.attachTypes.forEach((j) => {
1081
- const Z = h.value.filter(
1082
- (p) => p.attach_category === j.key || p.attach_category === j.value
1078
+ return b.value;
1079
+ const z = [];
1080
+ r.attachTypes.forEach((K) => {
1081
+ const Z = b.value.filter(
1082
+ (p) => p.attach_category === K.key || p.attach_category === K.value
1083
1083
  );
1084
1084
  Z.length > 0 ? Z.forEach((p) => {
1085
- U.push(p);
1086
- }) : U.push({
1085
+ z.push(p);
1086
+ }) : z.push({
1087
1087
  _isPlaceholder: !0,
1088
- attach_category: j.value,
1088
+ attach_category: K.value,
1089
1089
  file_name: "",
1090
1090
  file_ext: "",
1091
1091
  file_size_display: "",
@@ -1093,67 +1093,67 @@ const we = {
1093
1093
  creation_date: ""
1094
1094
  });
1095
1095
  });
1096
- const x = r.attachTypes.map((j) => j.key), V = r.attachTypes.map((j) => j.value);
1097
- return h.value.filter(
1098
- (j) => !j.attach_category || !x.includes(j.attach_category) && !V.includes(j.attach_category)
1099
- ).forEach((j) => {
1100
- U.push(j);
1101
- }), U;
1102
- }), k = (U) => !U._isPlaceholder;
1096
+ const C = r.attachTypes.map((K) => K.key), V = r.attachTypes.map((K) => K.value);
1097
+ return b.value.filter(
1098
+ (K) => !K.attach_category || !C.includes(K.attach_category) && !V.includes(K.attach_category)
1099
+ ).forEach((K) => {
1100
+ z.push(K);
1101
+ }), z;
1102
+ }), R = (z) => !z._isPlaceholder;
1103
1103
  Se(() => {
1104
- r.procBid && $();
1105
- }), ke(() => r.procBid, (U) => {
1106
- U && $();
1104
+ r.procBid && L();
1105
+ }), ke(() => r.procBid, (z) => {
1106
+ z && L();
1107
1107
  });
1108
- function $() {
1109
- r.procBid && l.get(`/proxy/workflow/attachment/api/list/${r.procBid}`).then((U) => {
1110
- U.code === 200 && (h.value = U.data || []);
1108
+ function L() {
1109
+ r.procBid && l.get(`/proxy/workflow/attachment/api/list/${r.procBid}`).then((z) => {
1110
+ z.code === 200 && (b.value = z.data || []);
1111
1111
  });
1112
1112
  }
1113
- const i = (U) => {
1113
+ const u = (z) => {
1114
1114
  var V;
1115
- return ((V = U.split(".").pop()) == null ? void 0 : V.toLowerCase()) || "";
1116
- }, a = (U) => {
1117
- if (U === 0) return "0 B";
1118
- const x = 1024, V = ["B", "KB", "MB", "GB"], Y = Math.floor(Math.log(U) / Math.log(x));
1119
- return parseFloat((U / Math.pow(x, Y)).toFixed(1)) + " " + V[Y];
1120
- }, C = () => Date.now().toString(36) + Math.random().toString(36).substr(2), c = (U) => {
1121
- if (!U) return "";
1115
+ return ((V = z.split(".").pop()) == null ? void 0 : V.toLowerCase()) || "";
1116
+ }, a = (z) => {
1117
+ if (z === 0) return "0 B";
1118
+ const C = 1024, V = ["B", "KB", "MB", "GB"], q = Math.floor(Math.log(z) / Math.log(C));
1119
+ return parseFloat((z / Math.pow(C, q)).toFixed(1)) + " " + V[q];
1120
+ }, k = () => Date.now().toString(36) + Math.random().toString(36).substr(2), f = (z) => {
1121
+ if (!z) return "";
1122
1122
  if (r.attachTypes) {
1123
- const x = r.attachTypes.find((V) => V.key === U);
1124
- if (x) return x.value;
1123
+ const C = r.attachTypes.find((V) => V.key === z);
1124
+ if (C) return C.value;
1125
1125
  }
1126
- return U;
1127
- }, Q = () => {
1128
- v.value = [], g.value = !0;
1129
- }, q = () => {
1130
- var U;
1131
- (U = _.value) == null || U.click();
1132
- }, ne = (U) => {
1133
- const x = U.target;
1134
- x.files && se(Array.from(x.files)), x.value = "";
1135
- }, de = (U) => {
1126
+ return z;
1127
+ }, X = () => {
1128
+ v.value = [], h.value = !0;
1129
+ }, N = () => {
1130
+ var z;
1131
+ (z = _.value) == null || z.click();
1132
+ }, oe = (z) => {
1133
+ const C = z.target;
1134
+ C.files && se(Array.from(C.files)), C.value = "";
1135
+ }, de = (z) => {
1136
1136
  var V;
1137
- const x = (V = U.dataTransfer) == null ? void 0 : V.files;
1138
- x && se(Array.from(x));
1139
- }, se = (U) => {
1140
- for (const x of U) {
1141
- if (x.size > r.maxSize * 1024 * 1024) {
1142
- console.warn(`文件 ${x.name} 超过最大限制 ${r.maxSize}MB`);
1137
+ const C = (V = z.dataTransfer) == null ? void 0 : V.files;
1138
+ C && se(Array.from(C));
1139
+ }, se = (z) => {
1140
+ for (const C of z) {
1141
+ if (C.size > r.maxSize * 1024 * 1024) {
1142
+ console.warn(`文件 ${C.name} 超过最大限制 ${r.maxSize}MB`);
1143
1143
  continue;
1144
1144
  }
1145
1145
  v.value.push({
1146
- uid: C(),
1147
- name: x.name,
1148
- size: x.size,
1149
- raw: x,
1146
+ uid: k(),
1147
+ name: C.name,
1148
+ size: C.size,
1149
+ raw: C,
1150
1150
  progress: 0,
1151
1151
  status: "ready",
1152
1152
  attachType: ""
1153
1153
  });
1154
1154
  }
1155
- }, pe = (U) => {
1156
- v.value.splice(U, 1);
1155
+ }, pe = (z) => {
1156
+ v.value.splice(z, 1);
1157
1157
  };
1158
1158
  function fe() {
1159
1159
  if (v.value.length === 0) return;
@@ -1162,14 +1162,14 @@ const we = {
1162
1162
  return;
1163
1163
  }
1164
1164
  s.value = !0;
1165
- const U = v.value.filter((V) => V.status === "ready");
1166
- let x = 0;
1167
- U.forEach((V) => {
1165
+ const z = v.value.filter((V) => V.status === "ready");
1166
+ let C = 0;
1167
+ z.forEach((V) => {
1168
1168
  V.status = "uploading";
1169
- const Y = new FormData();
1170
- Y.append("file", V.raw), Y.append("formBid", r.formBid), Y.append("procBid", r.procBid || "");
1171
- const j = V.attachType || r.attachCategory;
1172
- Y.append("attachCategory", j), l.post("/proxy/workflow/attachment/api/upload", Y, {
1169
+ const q = new FormData();
1170
+ q.append("file", V.raw), q.append("formBid", r.formBid), q.append("procBid", r.procBid || "");
1171
+ const K = V.attachType || r.attachCategory;
1172
+ q.append("attachCategory", K), l.post("/proxy/workflow/attachment/api/upload", q, {
1173
1173
  headers: { "Content-Type": "multipart/form-data" },
1174
1174
  onUploadProgress: (Z) => {
1175
1175
  Z.total && (V.progress = Math.round(Z.loaded / Z.total * 100));
@@ -1178,163 +1178,163 @@ const we = {
1178
1178
  if (Z.code === 200) {
1179
1179
  V.status = "success", V.progress = 100;
1180
1180
  const p = Z.data;
1181
- !p.attach_category && V.attachType && (p.attach_category = V.attachType), h.value = [...h.value, p], d("upload-success", p);
1181
+ !p.attach_category && V.attachType && (p.attach_category = V.attachType), b.value = [...b.value, p], d("upload-success", p);
1182
1182
  } else
1183
1183
  V.status = "error", d("upload-error", new Error(Z.message || "上传失败"));
1184
1184
  }).catch((Z) => {
1185
1185
  V.status = "error", d("upload-error", Z);
1186
1186
  }).finally(() => {
1187
- x++, x === U.length && (s.value = !1, v.value.every((p) => p.status === "success") && setTimeout(() => {
1188
- g.value = !1;
1187
+ C++, C === z.length && (s.value = !1, v.value.every((p) => p.status === "success") && setTimeout(() => {
1188
+ h.value = !1;
1189
1189
  }, 1e3));
1190
1190
  });
1191
1191
  });
1192
1192
  }
1193
1193
  const re = ["png", "jpg", "jpeg", "gif", "bmp", "webp", "pdf", "doc", "docx", "xls", "xlsx"];
1194
- function ae(U) {
1195
- return re.includes(U.toLowerCase());
1194
+ function ae(z) {
1195
+ return re.includes(z.toLowerCase());
1196
1196
  }
1197
- function ve(U) {
1198
- if (!ae(U.file_ext)) {
1199
- n(`该文件类型(.${U.file_ext})不支持在线预览,请下载后查看。`, "提示");
1197
+ function ve(z) {
1198
+ if (!ae(z.file_ext)) {
1199
+ n(`该文件类型(.${z.file_ext})不支持在线预览,请下载后查看。`, "提示");
1200
1200
  return;
1201
1201
  }
1202
- const V = `${window.location.pathname}#/workflow/file-preview/${U.fid}?name=${encodeURIComponent(U.file_name)}&ext=${encodeURIComponent(U.file_ext)}`;
1202
+ const V = `${window.location.pathname}#/workflow/file-preview/${z.fid}?name=${encodeURIComponent(z.file_name)}&ext=${encodeURIComponent(z.file_ext)}`;
1203
1203
  window.open(V, "_blank");
1204
1204
  }
1205
- function z(U) {
1206
- l.get(`/proxy/workflow/attachment/api/download/${U.fid}`, {
1205
+ function T(z) {
1206
+ l.get(`/proxy/workflow/attachment/api/download/${z.fid}`, {
1207
1207
  responseType: "blob"
1208
- }).then((x) => {
1209
- const V = window.URL.createObjectURL(new Blob([x])), Y = document.createElement("a");
1210
- Y.href = V, Y.setAttribute("download", U.file_name), document.body.appendChild(Y), Y.click(), document.body.removeChild(Y), window.URL.revokeObjectURL(V);
1211
- }).catch((x) => {
1212
- console.error("下载失败:", x);
1208
+ }).then((C) => {
1209
+ const V = window.URL.createObjectURL(new Blob([C])), q = document.createElement("a");
1210
+ q.href = V, q.setAttribute("download", z.file_name), document.body.appendChild(q), q.click(), document.body.removeChild(q), window.URL.revokeObjectURL(V);
1211
+ }).catch((C) => {
1212
+ console.error("下载失败:", C);
1213
1213
  });
1214
1214
  }
1215
- function A(U) {
1216
- F.value = U.filter((x) => !x._isPlaceholder);
1215
+ function U(z) {
1216
+ E.value = z.filter((C) => !C._isPlaceholder);
1217
1217
  }
1218
- function X() {
1219
- if (F.value.length === 0) {
1218
+ function J() {
1219
+ if (E.value.length === 0) {
1220
1220
  n("请先选择要下载的文件");
1221
1221
  return;
1222
1222
  }
1223
- const U = F.value.map((x) => x.fid);
1224
- l.post("/proxy/workflow/attachment/api/batch_download", { fids: U }, {
1223
+ const z = E.value.map((C) => C.fid);
1224
+ l.post("/proxy/workflow/attachment/api/batch_download", { fids: z }, {
1225
1225
  responseType: "blob"
1226
- }).then((x) => {
1227
- const V = window.URL.createObjectURL(new Blob([x])), Y = document.createElement("a");
1228
- Y.href = V;
1229
- const j = `attachments_${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10).replace(/-/g, "")}.zip`;
1230
- Y.setAttribute("download", j), document.body.appendChild(Y), Y.click(), document.body.removeChild(Y), window.URL.revokeObjectURL(V);
1231
- }).catch((x) => {
1232
- console.error("批量下载失败:", x), n("批量下载失败,请稍后重试");
1226
+ }).then((C) => {
1227
+ const V = window.URL.createObjectURL(new Blob([C])), q = document.createElement("a");
1228
+ q.href = V;
1229
+ const K = `attachments_${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10).replace(/-/g, "")}.zip`;
1230
+ q.setAttribute("download", K), document.body.appendChild(q), q.click(), document.body.removeChild(q), window.URL.revokeObjectURL(V);
1231
+ }).catch((C) => {
1232
+ console.error("批量下载失败:", C), n("批量下载失败,请稍后重试");
1233
1233
  });
1234
1234
  }
1235
- function ce(U) {
1236
- const x = b.value[U];
1237
- if (!x || x._isPlaceholder) return;
1238
- const V = h.value.findIndex((j) => j.fid === x.fid);
1235
+ function ce(z) {
1236
+ const C = g.value[z];
1237
+ if (!C || C._isPlaceholder) return;
1238
+ const V = b.value.findIndex((K) => K.fid === C.fid);
1239
1239
  if (V === -1) return;
1240
- const Y = h.value[V];
1241
- l.delete(`/proxy/workflow/attachment/api/delete/${Y.fid}`).then((j) => {
1242
- if (j.code === 200) {
1243
- const Z = [...h.value];
1244
- Z.splice(V, 1), h.value = Z;
1240
+ const q = b.value[V];
1241
+ l.delete(`/proxy/workflow/attachment/api/delete/${q.fid}`).then((K) => {
1242
+ if (K.code === 200) {
1243
+ const Z = [...b.value];
1244
+ Z.splice(V, 1), b.value = Z;
1245
1245
  } else
1246
- console.error("删除失败:", j.message);
1246
+ console.error("删除失败:", K.message);
1247
1247
  });
1248
1248
  }
1249
1249
  function ge() {
1250
- $();
1250
+ L();
1251
1251
  }
1252
- return T({
1253
- openUploadDialog: Q,
1252
+ return F({
1253
+ openUploadDialog: X,
1254
1254
  refresh: ge,
1255
- tableRef: D,
1256
- getSelectedFiles: () => F.value
1257
- }), (U, x) => {
1258
- const V = P("el-icon"), Y = P("el-button"), j = P("el-table-column"), Z = P("el-link"), p = P("el-table"), H = P("el-option"), ue = P("el-select"), le = P("el-progress"), B = P("el-dialog");
1255
+ tableRef: $,
1256
+ getSelectedFiles: () => E.value
1257
+ }), (z, C) => {
1258
+ const V = A("el-icon"), q = A("el-button"), K = A("el-table-column"), Z = A("el-link"), p = A("el-table"), j = A("el-option"), ue = A("el-select"), le = A("el-progress"), x = A("el-dialog");
1259
1259
  return o(), y("div", jl, [
1260
- f("div", Kl, [
1261
- t(Y, {
1262
- onClick: Q,
1260
+ c("div", Kl, [
1261
+ t(q, {
1262
+ onClick: X,
1263
1263
  disabled: e.disabled
1264
1264
  }, {
1265
- default: u(() => [
1265
+ default: i(() => [
1266
1266
  t(V, null, {
1267
- default: u(() => [
1268
- t(L(Ge))
1267
+ default: i(() => [
1268
+ t(I(Ge))
1269
1269
  ]),
1270
1270
  _: 1
1271
1271
  }),
1272
- x[3] || (x[3] = N(" 上传 ", -1))
1272
+ C[3] || (C[3] = O(" 上传 ", -1))
1273
1273
  ]),
1274
1274
  _: 1
1275
1275
  }, 8, ["disabled"]),
1276
- t(Y, {
1277
- onClick: X,
1278
- disabled: F.value.length === 0
1276
+ t(q, {
1277
+ onClick: J,
1278
+ disabled: E.value.length === 0
1279
1279
  }, {
1280
- default: u(() => [
1280
+ default: i(() => [
1281
1281
  t(V, null, {
1282
- default: u(() => [
1283
- t(L(cl))
1282
+ default: i(() => [
1283
+ t(I(cl))
1284
1284
  ]),
1285
1285
  _: 1
1286
1286
  }),
1287
- x[4] || (x[4] = N(" 批量下载 ", -1))
1287
+ C[4] || (C[4] = O(" 批量下载 ", -1))
1288
1288
  ]),
1289
1289
  _: 1
1290
1290
  }, 8, ["disabled"])
1291
1291
  ]),
1292
1292
  t(p, {
1293
1293
  ref_key: "tableRef",
1294
- ref: D,
1295
- data: b.value,
1294
+ ref: $,
1295
+ data: g.value,
1296
1296
  border: "",
1297
1297
  class: "upload-table",
1298
- onSelectionChange: A
1298
+ onSelectionChange: U
1299
1299
  }, {
1300
- default: u(() => [
1301
- t(j, {
1300
+ default: i(() => [
1301
+ t(K, {
1302
1302
  type: "selection",
1303
1303
  width: "60",
1304
- selectable: k
1304
+ selectable: R
1305
1305
  }),
1306
- t(j, {
1306
+ t(K, {
1307
1307
  type: "index",
1308
1308
  label: "序号",
1309
1309
  width: "60",
1310
1310
  align: "center"
1311
1311
  }),
1312
- t(j, {
1312
+ t(K, {
1313
1313
  label: "操作",
1314
1314
  width: "120",
1315
1315
  align: "center"
1316
1316
  }, {
1317
- default: u((E) => [
1318
- !E || !E.row || E.row._isPlaceholder ? (o(), y(G, { key: 0 }, [], 64)) : (o(), y(G, { key: 1 }, [
1317
+ default: i((B) => [
1318
+ !B || !B.row || B.row._isPlaceholder ? (o(), y(G, { key: 0 }, [], 64)) : (o(), y(G, { key: 1 }, [
1319
1319
  t(Z, {
1320
1320
  type: "primary",
1321
1321
  underline: "never",
1322
- onClick: (m) => ve(E.row)
1322
+ onClick: (m) => ve(B.row)
1323
1323
  }, {
1324
- default: u(() => [...x[5] || (x[5] = [
1325
- N("预览", -1)
1324
+ default: i(() => [...C[5] || (C[5] = [
1325
+ O("预览", -1)
1326
1326
  ])]),
1327
1327
  _: 1
1328
1328
  }, 8, ["onClick"]),
1329
- e.disabled ? W("", !0) : (o(), I(Z, {
1329
+ e.disabled ? W("", !0) : (o(), P(Z, {
1330
1330
  key: 0,
1331
1331
  type: "primary",
1332
1332
  underline: "never",
1333
- onClick: (m) => ce(E.$index),
1333
+ onClick: (m) => ce(B.$index),
1334
1334
  style: { "margin-left": "10px" }
1335
1335
  }, {
1336
- default: u(() => [...x[6] || (x[6] = [
1337
- N("删除", -1)
1336
+ default: i(() => [...C[6] || (C[6] = [
1337
+ O("删除", -1)
1338
1338
  ])]),
1339
1339
  _: 1
1340
1340
  }, 8, ["onClick"]))
@@ -1342,54 +1342,54 @@ const we = {
1342
1342
  ]),
1343
1343
  _: 1
1344
1344
  }),
1345
- w.value ? (o(), I(j, {
1345
+ w.value ? (o(), P(K, {
1346
1346
  key: 0,
1347
1347
  label: "附件类型",
1348
1348
  width: "240",
1349
1349
  align: "center"
1350
1350
  }, {
1351
- default: u((E) => [
1352
- N(O(E && E.row ? c(E.row.attach_category) : ""), 1)
1351
+ default: i((B) => [
1352
+ O(H(B && B.row ? f(B.row.attach_category) : ""), 1)
1353
1353
  ]),
1354
1354
  _: 1
1355
1355
  })) : W("", !0),
1356
- t(j, {
1356
+ t(K, {
1357
1357
  label: "附件名称",
1358
1358
  "min-width": "300"
1359
1359
  }, {
1360
- default: u((E) => [
1361
- !E || !E.row || E.row._isPlaceholder ? (o(), y(G, { key: 0 }, [], 64)) : (o(), I(Z, {
1360
+ default: i((B) => [
1361
+ !B || !B.row || B.row._isPlaceholder ? (o(), y(G, { key: 0 }, [], 64)) : (o(), P(Z, {
1362
1362
  key: 1,
1363
1363
  type: "primary",
1364
1364
  underline: "never",
1365
- onClick: (m) => z(E.row)
1365
+ onClick: (m) => T(B.row)
1366
1366
  }, {
1367
- default: u(() => [
1368
- N(O(E.row.file_name), 1)
1367
+ default: i(() => [
1368
+ O(H(B.row.file_name), 1)
1369
1369
  ]),
1370
1370
  _: 2
1371
1371
  }, 1032, ["onClick"]))
1372
1372
  ]),
1373
1373
  _: 1
1374
1374
  }),
1375
- t(j, {
1375
+ t(K, {
1376
1376
  prop: "file_ext",
1377
1377
  label: "格式",
1378
1378
  width: "80",
1379
1379
  align: "center"
1380
1380
  }),
1381
- t(j, {
1381
+ t(K, {
1382
1382
  prop: "file_size_display",
1383
1383
  label: "大小",
1384
1384
  width: "100",
1385
1385
  align: "center"
1386
1386
  }),
1387
- t(j, {
1387
+ t(K, {
1388
1388
  prop: "create_by",
1389
1389
  label: "上传人",
1390
1390
  width: "120"
1391
1391
  }),
1392
- t(j, {
1392
+ t(K, {
1393
1393
  prop: "creation_date",
1394
1394
  label: "上传时间",
1395
1395
  width: "180"
@@ -1397,87 +1397,87 @@ const we = {
1397
1397
  ]),
1398
1398
  _: 1
1399
1399
  }, 8, ["data"]),
1400
- t(B, {
1401
- modelValue: g.value,
1402
- "onUpdate:modelValue": x[2] || (x[2] = (E) => g.value = E),
1400
+ t(x, {
1401
+ modelValue: h.value,
1402
+ "onUpdate:modelValue": C[2] || (C[2] = (B) => h.value = B),
1403
1403
  width: "900px",
1404
1404
  "close-on-click-modal": !1,
1405
1405
  "show-close": !1,
1406
1406
  class: "upload-dialog"
1407
1407
  }, {
1408
- header: u(() => [
1409
- f("div", Yl, [
1410
- x[7] || (x[7] = f("span", { class: "upload-dialog-title" }, "上传附件", -1)),
1411
- f("button", {
1408
+ header: i(() => [
1409
+ c("div", Yl, [
1410
+ C[7] || (C[7] = c("span", { class: "upload-dialog-title" }, "上传附件", -1)),
1411
+ c("button", {
1412
1412
  class: "upload-dialog-close",
1413
- onClick: x[0] || (x[0] = (E) => g.value = !1)
1413
+ onClick: C[0] || (C[0] = (B) => h.value = !1)
1414
1414
  }, [
1415
1415
  t(V, null, {
1416
- default: u(() => [
1417
- t(L(Ce))
1416
+ default: i(() => [
1417
+ t(I(Ce))
1418
1418
  ]),
1419
1419
  _: 1
1420
1420
  })
1421
1421
  ])
1422
1422
  ])
1423
1423
  ]),
1424
- footer: u(() => [
1425
- f("div", aa, [
1426
- t(Y, { onClick: q }, {
1427
- default: u(() => [...x[15] || (x[15] = [
1428
- N("添加文件", -1)
1424
+ footer: i(() => [
1425
+ c("div", aa, [
1426
+ t(q, { onClick: N }, {
1427
+ default: i(() => [...C[15] || (C[15] = [
1428
+ O("添加文件", -1)
1429
1429
  ])]),
1430
1430
  _: 1
1431
1431
  }),
1432
- t(Y, {
1432
+ t(q, {
1433
1433
  type: "primary",
1434
1434
  onClick: fe,
1435
1435
  loading: s.value
1436
1436
  }, {
1437
- default: u(() => [...x[16] || (x[16] = [
1438
- N("开始上传", -1)
1437
+ default: i(() => [...C[16] || (C[16] = [
1438
+ O("开始上传", -1)
1439
1439
  ])]),
1440
1440
  _: 1
1441
1441
  }, 8, ["loading"])
1442
1442
  ])
1443
1443
  ]),
1444
- default: u(() => [
1444
+ default: i(() => [
1445
1445
  v.value.length > 0 ? (o(), y("div", ql, [
1446
- (o(!0), y(G, null, oe(v.value, (E, m) => (o(), y("div", {
1447
- key: E.uid,
1446
+ (o(!0), y(G, null, ne(v.value, (B, m) => (o(), y("div", {
1447
+ key: B.uid,
1448
1448
  class: "pending-file-item"
1449
1449
  }, [
1450
- w.value ? (o(), I(p, {
1450
+ w.value ? (o(), P(p, {
1451
1451
  key: 0,
1452
- data: [E],
1452
+ data: [B],
1453
1453
  border: "",
1454
1454
  "show-header": !1
1455
1455
  }, {
1456
- default: u(() => [
1457
- t(j, {
1456
+ default: i(() => [
1457
+ t(K, {
1458
1458
  label: "附件类型",
1459
1459
  width: "100"
1460
1460
  }, {
1461
- default: u(() => [...x[8] || (x[8] = [
1462
- N("附件类型", -1)
1461
+ default: i(() => [...C[8] || (C[8] = [
1462
+ O("附件类型", -1)
1463
1463
  ])]),
1464
1464
  _: 1
1465
1465
  }),
1466
- t(j, null, {
1467
- default: u(() => [
1466
+ t(K, null, {
1467
+ default: i(() => [
1468
1468
  t(ue, {
1469
- modelValue: E.attachType,
1470
- "onUpdate:modelValue": (M) => E.attachType = M,
1469
+ modelValue: B.attachType,
1470
+ "onUpdate:modelValue": (M) => B.attachType = M,
1471
1471
  placeholder: "--请选择--",
1472
1472
  clearable: "",
1473
1473
  style: { width: "100%" }
1474
1474
  }, {
1475
- default: u(() => [
1476
- t(H, {
1475
+ default: i(() => [
1476
+ t(j, {
1477
1477
  label: "--请选择--",
1478
1478
  value: ""
1479
1479
  }),
1480
- (o(!0), y(G, null, oe(e.attachTypes, (M) => (o(), I(H, {
1480
+ (o(!0), y(G, null, ne(e.attachTypes, (M) => (o(), P(j, {
1481
1481
  key: M.key,
1482
1482
  label: M.value,
1483
1483
  value: M.key
@@ -1492,23 +1492,23 @@ const we = {
1492
1492
  _: 2
1493
1493
  }, 1032, ["data"])) : W("", !0),
1494
1494
  t(p, {
1495
- data: [E],
1495
+ data: [B],
1496
1496
  border: "",
1497
1497
  "show-header": !1
1498
1498
  }, {
1499
- default: u(() => [
1500
- t(j, {
1499
+ default: i(() => [
1500
+ t(K, {
1501
1501
  label: "文件名称",
1502
1502
  width: "100"
1503
1503
  }, {
1504
- default: u(() => [...x[9] || (x[9] = [
1505
- N("文件名称", -1)
1504
+ default: i(() => [...C[9] || (C[9] = [
1505
+ O("文件名称", -1)
1506
1506
  ])]),
1507
1507
  _: 1
1508
1508
  }),
1509
- t(j, null, {
1510
- default: u(() => [
1511
- N(O(E.name), 1)
1509
+ t(K, null, {
1510
+ default: i(() => [
1511
+ O(H(B.name), 1)
1512
1512
  ]),
1513
1513
  _: 2
1514
1514
  }, 1024)
@@ -1516,23 +1516,23 @@ const we = {
1516
1516
  _: 2
1517
1517
  }, 1032, ["data"]),
1518
1518
  t(p, {
1519
- data: [E],
1519
+ data: [B],
1520
1520
  border: "",
1521
1521
  "show-header": !1
1522
1522
  }, {
1523
- default: u(() => [
1524
- t(j, {
1523
+ default: i(() => [
1524
+ t(K, {
1525
1525
  label: "文件类型",
1526
1526
  width: "100"
1527
1527
  }, {
1528
- default: u(() => [...x[10] || (x[10] = [
1529
- N("文件类型", -1)
1528
+ default: i(() => [...C[10] || (C[10] = [
1529
+ O("文件类型", -1)
1530
1530
  ])]),
1531
1531
  _: 1
1532
1532
  }),
1533
- t(j, null, {
1534
- default: u(() => [
1535
- N(O(i(E.name)), 1)
1533
+ t(K, null, {
1534
+ default: i(() => [
1535
+ O(H(u(B.name)), 1)
1536
1536
  ]),
1537
1537
  _: 2
1538
1538
  }, 1024)
@@ -1540,23 +1540,23 @@ const we = {
1540
1540
  _: 2
1541
1541
  }, 1032, ["data"]),
1542
1542
  t(p, {
1543
- data: [E],
1543
+ data: [B],
1544
1544
  border: "",
1545
1545
  "show-header": !1
1546
1546
  }, {
1547
- default: u(() => [
1548
- t(j, {
1547
+ default: i(() => [
1548
+ t(K, {
1549
1549
  label: "文件大小",
1550
1550
  width: "100"
1551
1551
  }, {
1552
- default: u(() => [...x[11] || (x[11] = [
1553
- N("文件大小", -1)
1552
+ default: i(() => [...C[11] || (C[11] = [
1553
+ O("文件大小", -1)
1554
1554
  ])]),
1555
1555
  _: 1
1556
1556
  }),
1557
- t(j, null, {
1558
- default: u(() => [
1559
- N(O(a(E.size)), 1)
1557
+ t(K, null, {
1558
+ default: i(() => [
1559
+ O(H(a(B.size)), 1)
1560
1560
  ]),
1561
1561
  _: 2
1562
1562
  }, 1024)
@@ -1564,39 +1564,39 @@ const we = {
1564
1564
  _: 2
1565
1565
  }, 1032, ["data"]),
1566
1566
  t(p, {
1567
- data: [E],
1567
+ data: [B],
1568
1568
  border: "",
1569
1569
  "show-header": !1
1570
1570
  }, {
1571
- default: u(() => [
1572
- t(j, {
1571
+ default: i(() => [
1572
+ t(K, {
1573
1573
  label: "进度",
1574
1574
  width: "100"
1575
1575
  }, {
1576
- default: u(() => [...x[12] || (x[12] = [
1577
- N("进度", -1)
1576
+ default: i(() => [...C[12] || (C[12] = [
1577
+ O("进度", -1)
1578
1578
  ])]),
1579
1579
  _: 1
1580
1580
  }),
1581
- t(j, null, {
1582
- default: u(() => [
1583
- f("div", Wl, [
1581
+ t(K, null, {
1582
+ default: i(() => [
1583
+ c("div", Wl, [
1584
1584
  t(le, {
1585
- percentage: E.progress || 0,
1585
+ percentage: B.progress || 0,
1586
1586
  "stroke-width": 20,
1587
1587
  "text-inside": !0
1588
1588
  }, null, 8, ["percentage"]),
1589
- E.status === "ready" ? (o(), I(Z, {
1589
+ B.status === "ready" ? (o(), P(Z, {
1590
1590
  key: 0,
1591
1591
  type: "primary",
1592
1592
  underline: "never",
1593
1593
  onClick: (M) => pe(m)
1594
1594
  }, {
1595
- default: u(() => [...x[13] || (x[13] = [
1596
- N("删除", -1)
1595
+ default: i(() => [...C[13] || (C[13] = [
1596
+ O("删除", -1)
1597
1597
  ])]),
1598
1598
  _: 1
1599
- }, 8, ["onClick"])) : E.status === "success" ? (o(), y("span", Gl, "成功")) : E.status === "uploading" ? (o(), y("span", Xl, "正在上传")) : E.status === "error" ? (o(), y("span", Jl, "失败")) : W("", !0)
1599
+ }, 8, ["onClick"])) : B.status === "success" ? (o(), y("span", Gl, "成功")) : B.status === "uploading" ? (o(), y("span", Xl, "正在上传")) : B.status === "error" ? (o(), y("span", Jl, "失败")) : W("", !0)
1600
1600
  ])
1601
1601
  ]),
1602
1602
  _: 2
@@ -1608,33 +1608,33 @@ const we = {
1608
1608
  ])) : (o(), y("div", {
1609
1609
  key: 1,
1610
1610
  class: "upload-dropzone",
1611
- onClick: q,
1612
- onDragover: x[1] || (x[1] = ye(() => {
1611
+ onClick: N,
1612
+ onDragover: C[1] || (C[1] = ye(() => {
1613
1613
  }, ["prevent"])),
1614
1614
  onDrop: ye(de, ["prevent"])
1615
1615
  }, [
1616
- f("div", Ql, [
1617
- f("div", Zl, [
1616
+ c("div", Ql, [
1617
+ c("div", Zl, [
1618
1618
  t(V, { size: 100 }, {
1619
- default: u(() => [
1620
- t(L(fl))
1619
+ default: i(() => [
1620
+ t(I(fl))
1621
1621
  ]),
1622
1622
  _: 1
1623
1623
  })
1624
1624
  ]),
1625
- f("div", ea, [
1626
- f("p", la, "建议单个附件不要超过" + O(e.maxSize) + "Mb,最大不能超过" + O(e.maxTotal) + "Mb", 1),
1627
- x[14] || (x[14] = f("p", { class: "tips-security" }, "安全提示:文件若上传,将被公司记录存档", -1))
1625
+ c("div", ea, [
1626
+ c("p", la, "建议单个附件不要超过" + H(e.maxSize) + "Mb,最大不能超过" + H(e.maxTotal) + "Mb", 1),
1627
+ C[14] || (C[14] = c("p", { class: "tips-security" }, "安全提示:文件若上传,将被公司记录存档", -1))
1628
1628
  ])
1629
1629
  ])
1630
1630
  ], 32)),
1631
- f("input", {
1631
+ c("input", {
1632
1632
  ref_key: "fileInputRef",
1633
1633
  ref: _,
1634
1634
  type: "file",
1635
1635
  multiple: "",
1636
1636
  style: { display: "none" },
1637
- onChange: ne
1637
+ onChange: oe
1638
1638
  }, null, 544)
1639
1639
  ]),
1640
1640
  _: 1
@@ -1661,87 +1661,87 @@ const we = {
1661
1661
  falseValue: { type: [Boolean, String, Number], default: !1 }
1662
1662
  },
1663
1663
  emits: ["update:modelValue", "change"],
1664
- setup(e, { expose: T, emit: S }) {
1665
- const l = e, n = S, r = K({
1664
+ setup(e, { expose: F, emit: D }) {
1665
+ const l = e, n = D, r = Y({
1666
1666
  get: () => l.modelValue,
1667
- set: (i) => n("update:modelValue", i)
1668
- }), d = K({
1667
+ set: (u) => n("update:modelValue", u)
1668
+ }), d = Y({
1669
1669
  get: () => Array.isArray(l.modelValue) ? l.modelValue : [],
1670
- set: (i) => n("update:modelValue", i)
1671
- }), g = (i) => {
1672
- n("change", i);
1673
- }, s = (i) => {
1674
- n("change", i);
1675
- }, v = () => l.modelValue, _ = (i) => {
1676
- n("update:modelValue", i);
1677
- }, D = () => Array.isArray(l.modelValue) ? l.modelValue : [], F = () => Array.isArray(l.modelValue) ? l.modelValue.map((i) => l.options.find((a) => a.key === i)).filter(Boolean) : [], h = () => {
1678
- const i = l.options.filter((a) => !a.disabled).map((a) => a.key);
1679
- n("update:modelValue", i);
1670
+ set: (u) => n("update:modelValue", u)
1671
+ }), h = (u) => {
1672
+ n("change", u);
1673
+ }, s = (u) => {
1674
+ n("change", u);
1675
+ }, v = () => l.modelValue, _ = (u) => {
1676
+ n("update:modelValue", u);
1677
+ }, $ = () => Array.isArray(l.modelValue) ? l.modelValue : [], E = () => Array.isArray(l.modelValue) ? l.modelValue.map((u) => l.options.find((a) => a.key === u)).filter(Boolean) : [], b = () => {
1678
+ const u = l.options.filter((a) => !a.disabled).map((a) => a.key);
1679
+ n("update:modelValue", u);
1680
1680
  }, w = () => {
1681
1681
  l.single ? n("update:modelValue", l.falseValue) : n("update:modelValue", []);
1682
- }, b = () => {
1683
- const i = l.options.filter((C) => !C.disabled);
1684
- if (i.length === 0 || !Array.isArray(l.modelValue)) return !1;
1682
+ }, g = () => {
1683
+ const u = l.options.filter((k) => !k.disabled);
1684
+ if (u.length === 0 || !Array.isArray(l.modelValue)) return !1;
1685
1685
  const a = l.modelValue;
1686
- return i.every((C) => a.includes(C.key));
1686
+ return u.every((k) => a.includes(k.key));
1687
1687
  };
1688
- return T({
1688
+ return F({
1689
1689
  getValue: v,
1690
1690
  setValue: _,
1691
- getCheckedKeys: D,
1692
- getCheckedOptions: F,
1693
- checkAll: h,
1691
+ getCheckedKeys: $,
1692
+ getCheckedOptions: E,
1693
+ checkAll: b,
1694
1694
  clear: w,
1695
1695
  toggleAll: () => {
1696
- b() ? w() : h();
1696
+ g() ? w() : b();
1697
1697
  },
1698
- isAllChecked: b,
1698
+ isAllChecked: g,
1699
1699
  getField: () => l.field ?? ""
1700
- }), (i, a) => {
1701
- const C = P("el-checkbox"), c = P("el-checkbox-button"), Q = P("el-checkbox-group");
1702
- return e.single ? (o(), I(C, {
1700
+ }), (u, a) => {
1701
+ const k = A("el-checkbox"), f = A("el-checkbox-button"), X = A("el-checkbox-group");
1702
+ return e.single ? (o(), P(k, {
1703
1703
  key: 0,
1704
1704
  modelValue: r.value,
1705
- "onUpdate:modelValue": a[0] || (a[0] = (q) => r.value = q),
1705
+ "onUpdate:modelValue": a[0] || (a[0] = (N) => r.value = N),
1706
1706
  disabled: e.disabled,
1707
1707
  size: e.size,
1708
1708
  border: e.border,
1709
1709
  "true-value": e.trueValue,
1710
1710
  "false-value": e.falseValue,
1711
- onChange: g
1711
+ onChange: h
1712
1712
  }, {
1713
- default: u(() => [
1714
- N(O(e.checkboxLabel || e.label), 1)
1713
+ default: i(() => [
1714
+ O(H(e.checkboxLabel || e.label), 1)
1715
1715
  ]),
1716
1716
  _: 1
1717
- }, 8, ["modelValue", "disabled", "size", "border", "true-value", "false-value"])) : (o(), I(Q, {
1717
+ }, 8, ["modelValue", "disabled", "size", "border", "true-value", "false-value"])) : (o(), P(X, {
1718
1718
  key: 1,
1719
1719
  modelValue: d.value,
1720
- "onUpdate:modelValue": a[1] || (a[1] = (q) => d.value = q),
1720
+ "onUpdate:modelValue": a[1] || (a[1] = (N) => d.value = N),
1721
1721
  disabled: e.disabled,
1722
1722
  size: e.size,
1723
1723
  min: e.min,
1724
1724
  max: e.max,
1725
1725
  onChange: s
1726
1726
  }, {
1727
- default: u(() => [
1728
- e.button ? (o(!0), y(G, { key: 0 }, oe(e.options, (q) => (o(), I(c, {
1729
- key: q.key,
1730
- value: q.key,
1731
- disabled: q.disabled
1727
+ default: i(() => [
1728
+ e.button ? (o(!0), y(G, { key: 0 }, ne(e.options, (N) => (o(), P(f, {
1729
+ key: N.key,
1730
+ value: N.key,
1731
+ disabled: N.disabled
1732
1732
  }, {
1733
- default: u(() => [
1734
- N(O(q.value), 1)
1733
+ default: i(() => [
1734
+ O(H(N.value), 1)
1735
1735
  ]),
1736
1736
  _: 2
1737
- }, 1032, ["value", "disabled"]))), 128)) : (o(!0), y(G, { key: 1 }, oe(e.options, (q) => (o(), I(C, {
1738
- key: q.key,
1739
- value: q.key,
1740
- disabled: q.disabled,
1737
+ }, 1032, ["value", "disabled"]))), 128)) : (o(!0), y(G, { key: 1 }, ne(e.options, (N) => (o(), P(k, {
1738
+ key: N.key,
1739
+ value: N.key,
1740
+ disabled: N.disabled,
1741
1741
  border: e.border
1742
1742
  }, {
1743
- default: u(() => [
1744
- N(O(q.value), 1)
1743
+ default: i(() => [
1744
+ O(H(N.value), 1)
1745
1745
  ]),
1746
1746
  _: 2
1747
1747
  }, 1032, ["value", "disabled", "border"]))), 128))
@@ -1762,54 +1762,54 @@ const we = {
1762
1762
  size: { default: "default" }
1763
1763
  },
1764
1764
  emits: ["update:modelValue", "change"],
1765
- setup(e, { expose: T, emit: S }) {
1766
- const l = e, n = S, r = K({
1765
+ setup(e, { expose: F, emit: D }) {
1766
+ const l = e, n = D, r = Y({
1767
1767
  get: () => l.modelValue,
1768
- set: (h) => n("update:modelValue", h)
1769
- }), d = (h) => {
1770
- n("change", h);
1768
+ set: (b) => n("update:modelValue", b)
1769
+ }), d = (b) => {
1770
+ n("change", b);
1771
1771
  };
1772
- return T({
1772
+ return F({
1773
1773
  getValue: () => l.modelValue,
1774
- setValue: (h) => {
1775
- n("update:modelValue", h);
1774
+ setValue: (b) => {
1775
+ n("update:modelValue", b);
1776
1776
  },
1777
- getSelectedOption: () => l.options.find((h) => h.key === l.modelValue),
1777
+ getSelectedOption: () => l.options.find((b) => b.key === l.modelValue),
1778
1778
  getSelectedValue: () => {
1779
- var h;
1780
- return (h = l.options.find((w) => w.key === l.modelValue)) == null ? void 0 : h.value;
1779
+ var b;
1780
+ return (b = l.options.find((w) => w.key === l.modelValue)) == null ? void 0 : b.value;
1781
1781
  },
1782
1782
  clear: () => {
1783
1783
  n("update:modelValue", void 0);
1784
1784
  },
1785
1785
  getField: () => l.field ?? ""
1786
- }), (h, w) => {
1787
- const b = P("el-radio-button"), k = P("el-radio"), $ = P("el-radio-group");
1788
- return o(), I($, {
1786
+ }), (b, w) => {
1787
+ const g = A("el-radio-button"), R = A("el-radio"), L = A("el-radio-group");
1788
+ return o(), P(L, {
1789
1789
  modelValue: r.value,
1790
- "onUpdate:modelValue": w[0] || (w[0] = (i) => r.value = i),
1790
+ "onUpdate:modelValue": w[0] || (w[0] = (u) => r.value = u),
1791
1791
  disabled: e.disabled,
1792
1792
  size: e.size,
1793
1793
  onChange: d
1794
1794
  }, {
1795
- default: u(() => [
1796
- e.button ? (o(!0), y(G, { key: 0 }, oe(e.options, (i) => (o(), I(b, {
1797
- key: i.key,
1798
- value: i.key,
1799
- disabled: i.disabled
1795
+ default: i(() => [
1796
+ e.button ? (o(!0), y(G, { key: 0 }, ne(e.options, (u) => (o(), P(g, {
1797
+ key: u.key,
1798
+ value: u.key,
1799
+ disabled: u.disabled
1800
1800
  }, {
1801
- default: u(() => [
1802
- N(O(i.value), 1)
1801
+ default: i(() => [
1802
+ O(H(u.value), 1)
1803
1803
  ]),
1804
1804
  _: 2
1805
- }, 1032, ["value", "disabled"]))), 128)) : (o(!0), y(G, { key: 1 }, oe(e.options, (i) => (o(), I(k, {
1806
- key: i.key,
1807
- value: i.key,
1808
- disabled: i.disabled,
1805
+ }, 1032, ["value", "disabled"]))), 128)) : (o(!0), y(G, { key: 1 }, ne(e.options, (u) => (o(), P(R, {
1806
+ key: u.key,
1807
+ value: u.key,
1808
+ disabled: u.disabled,
1809
1809
  border: e.border
1810
1810
  }, {
1811
- default: u(() => [
1812
- N(O(i.value), 1)
1811
+ default: i(() => [
1812
+ O(H(u.value), 1)
1813
1813
  ]),
1814
1814
  _: 2
1815
1815
  }, 1032, ["value", "disabled", "border"]))), 128))
@@ -1830,7 +1830,7 @@ const we = {
1830
1830
  label: { default: "" }
1831
1831
  },
1832
1832
  emits: ["click"],
1833
- setup(e, { expose: T, emit: S }) {
1833
+ setup(e, { expose: F, emit: D }) {
1834
1834
  const l = {
1835
1835
  view: "iconfont icon-chakan",
1836
1836
  edit: "iconfont icon-edit",
@@ -1840,14 +1840,14 @@ const we = {
1840
1840
  share: "iconfont icon-fenxiang",
1841
1841
  copy: "iconfont icon-fuzhi",
1842
1842
  external: "iconfont icon-wailian"
1843
- }, n = e, r = K(() => typeof n.underline == "boolean" ? n.underline ? "always" : "never" : n.underline), d = S, g = K(() => n.icon ? l[n.icon] || n.icon : ""), s = (_) => {
1843
+ }, n = e, r = Y(() => typeof n.underline == "boolean" ? n.underline ? "always" : "never" : n.underline), d = D, h = Y(() => n.icon ? l[n.icon] || n.icon : ""), s = (_) => {
1844
1844
  n.disabled || d("click", _);
1845
1845
  };
1846
- return T({
1846
+ return F({
1847
1847
  isDisabled: () => n.disabled
1848
- }), (_, D) => {
1849
- const F = P("el-link");
1850
- return o(), I(F, {
1848
+ }), (_, $) => {
1849
+ const E = A("el-link");
1850
+ return o(), P(E, {
1851
1851
  type: e.type,
1852
1852
  underline: r.value,
1853
1853
  disabled: e.disabled,
@@ -1855,13 +1855,13 @@ const we = {
1855
1855
  target: e.target,
1856
1856
  onClick: s
1857
1857
  }, {
1858
- default: u(() => [
1859
- g.value ? (o(), y("i", {
1858
+ default: i(() => [
1859
+ h.value ? (o(), y("i", {
1860
1860
  key: 0,
1861
- class: ie(g.value)
1861
+ class: ie(h.value)
1862
1862
  }, null, 2)) : W("", !0),
1863
1863
  Ve(_.$slots, "default", {}, () => [
1864
- N(O(e.label), 1)
1864
+ O(H(e.label), 1)
1865
1865
  ])
1866
1866
  ]),
1867
1867
  _: 3
@@ -1879,48 +1879,48 @@ const we = {
1879
1879
  showFullscreen: { type: Boolean, default: !1 }
1880
1880
  },
1881
1881
  emits: ["update:modelValue", "close", "confirm"],
1882
- setup(e, { emit: T }) {
1883
- const S = e, l = T, n = K({
1884
- get: () => S.modelValue,
1885
- set: (h) => l("update:modelValue", h)
1886
- }), r = R();
1882
+ setup(e, { emit: F }) {
1883
+ const D = e, l = F, n = Y({
1884
+ get: () => D.modelValue,
1885
+ set: (b) => l("update:modelValue", b)
1886
+ }), r = S();
1887
1887
  function d() {
1888
- var h, w, b;
1889
- return ((w = (h = r.value) == null ? void 0 : h.dialogContentRef) == null ? void 0 : w.$el) || ((b = r.value) == null ? void 0 : b.dialogContentRef);
1888
+ var b, w, g;
1889
+ return ((w = (b = r.value) == null ? void 0 : b.dialogContentRef) == null ? void 0 : w.$el) || ((g = r.value) == null ? void 0 : g.dialogContentRef);
1890
1890
  }
1891
- function g() {
1891
+ function h() {
1892
1892
  Ze(() => {
1893
- const h = d();
1894
- if (h)
1893
+ const b = d();
1894
+ if (b)
1895
1895
  if (v.value)
1896
- h.style.height = "100vh", h.style.maxHeight = "100vh", h.style.borderRadius = "0";
1897
- else if (S.dialogHeight) {
1898
- const w = typeof S.dialogHeight == "number" ? `${S.dialogHeight}px` : S.dialogHeight;
1899
- h.style.height = w, h.style.maxHeight = "90vh", h.style.borderRadius = "";
1896
+ b.style.height = "100vh", b.style.maxHeight = "100vh", b.style.borderRadius = "0";
1897
+ else if (D.dialogHeight) {
1898
+ const w = typeof D.dialogHeight == "number" ? `${D.dialogHeight}px` : D.dialogHeight;
1899
+ b.style.height = w, b.style.maxHeight = "90vh", b.style.borderRadius = "";
1900
1900
  } else
1901
- h.style.height = "", h.style.maxHeight = "90vh", h.style.borderRadius = "";
1901
+ b.style.height = "", b.style.maxHeight = "90vh", b.style.borderRadius = "";
1902
1902
  });
1903
1903
  }
1904
1904
  function s() {
1905
- g();
1905
+ h();
1906
1906
  }
1907
- ke(() => S.dialogHeight, () => {
1908
- n.value && g();
1907
+ ke(() => D.dialogHeight, () => {
1908
+ n.value && h();
1909
1909
  });
1910
- const v = R(!1), _ = () => {
1911
- v.value = !v.value, g();
1912
- }, D = () => {
1910
+ const v = S(!1), _ = () => {
1911
+ v.value = !v.value, h();
1912
+ }, $ = () => {
1913
1913
  v.value = !1, l("update:modelValue", !1), l("close");
1914
- }, F = () => {
1914
+ }, E = () => {
1915
1915
  l("confirm");
1916
1916
  };
1917
- return (h, w) => {
1918
- const b = P("el-icon"), k = P("el-button"), $ = P("el-dialog");
1919
- return o(), I($, {
1917
+ return (b, w) => {
1918
+ const g = A("el-icon"), R = A("el-button"), L = A("el-dialog");
1919
+ return o(), P(L, {
1920
1920
  ref_key: "dialogRef",
1921
1921
  ref: r,
1922
1922
  modelValue: n.value,
1923
- "onUpdate:modelValue": w[0] || (w[0] = (i) => n.value = i),
1923
+ "onUpdate:modelValue": w[0] || (w[0] = (u) => n.value = u),
1924
1924
  width: e.width,
1925
1925
  fullscreen: v.value,
1926
1926
  class: "form-dialog base-dialog",
@@ -1929,42 +1929,42 @@ const we = {
1929
1929
  "show-close": !1,
1930
1930
  "align-center": "",
1931
1931
  "append-to-body": "",
1932
- onClose: D,
1932
+ onClose: $,
1933
1933
  onOpened: s
1934
1934
  }, {
1935
- header: u(() => [
1936
- f("div", ta, [
1937
- f("span", oa, [
1938
- e.icon ? (o(), I(b, { key: 0 }, {
1939
- default: u(() => [
1940
- (o(), I(Qe(e.icon)))
1935
+ header: i(() => [
1936
+ c("div", ta, [
1937
+ c("span", oa, [
1938
+ e.icon ? (o(), P(g, { key: 0 }, {
1939
+ default: i(() => [
1940
+ (o(), P(Qe(e.icon)))
1941
1941
  ]),
1942
1942
  _: 1
1943
1943
  })) : W("", !0),
1944
- N(" " + O(e.title), 1)
1944
+ O(" " + H(e.title), 1)
1945
1945
  ]),
1946
- f("div", na, [
1946
+ c("div", na, [
1947
1947
  e.showFullscreen ? (o(), y("button", {
1948
1948
  key: 0,
1949
1949
  class: "form-dialog-header__close",
1950
1950
  title: v.value ? "退出全屏" : "全屏",
1951
1951
  onClick: _
1952
1952
  }, [
1953
- t(b, null, {
1954
- default: u(() => [
1955
- v.value ? (o(), I(L(pl), { key: 1 })) : (o(), I(L(ml), { key: 0 }))
1953
+ t(g, null, {
1954
+ default: i(() => [
1955
+ v.value ? (o(), P(I(pl), { key: 1 })) : (o(), P(I(ml), { key: 0 }))
1956
1956
  ]),
1957
1957
  _: 1
1958
1958
  })
1959
1959
  ], 8, sa)) : W("", !0),
1960
- f("button", {
1960
+ c("button", {
1961
1961
  class: "form-dialog-header__close",
1962
1962
  title: "关闭",
1963
- onClick: D
1963
+ onClick: $
1964
1964
  }, [
1965
- t(b, null, {
1966
- default: u(() => [
1967
- t(L(Ce))
1965
+ t(g, null, {
1966
+ default: i(() => [
1967
+ t(I(Ce))
1968
1968
  ]),
1969
1969
  _: 1
1970
1970
  })
@@ -1972,30 +1972,30 @@ const we = {
1972
1972
  ])
1973
1973
  ])
1974
1974
  ]),
1975
- footer: u(() => [
1976
- f("div", ia, [
1977
- Ve(h.$slots, "footer", {}, () => [
1978
- t(k, { onClick: D }, {
1979
- default: u(() => [...w[1] || (w[1] = [
1980
- N("取消", -1)
1975
+ footer: i(() => [
1976
+ c("div", ia, [
1977
+ Ve(b.$slots, "footer", {}, () => [
1978
+ t(R, { onClick: $ }, {
1979
+ default: i(() => [...w[1] || (w[1] = [
1980
+ O("取消", -1)
1981
1981
  ])]),
1982
1982
  _: 1
1983
1983
  }),
1984
- t(k, {
1984
+ t(R, {
1985
1985
  type: "custom",
1986
- onClick: F
1986
+ onClick: E
1987
1987
  }, {
1988
- default: u(() => [...w[2] || (w[2] = [
1989
- N("确认", -1)
1988
+ default: i(() => [...w[2] || (w[2] = [
1989
+ O("确认", -1)
1990
1990
  ])]),
1991
1991
  _: 1
1992
1992
  })
1993
1993
  ])
1994
1994
  ])
1995
1995
  ]),
1996
- default: u(() => [
1997
- f("div", ua, [
1998
- Ve(h.$slots, "default")
1996
+ default: i(() => [
1997
+ c("div", ua, [
1998
+ Ve(b.$slots, "default")
1999
1999
  ])
2000
2000
  ]),
2001
2001
  _: 3
@@ -2022,43 +2022,43 @@ const we = {
2022
2022
  showDestination: { type: Boolean, default: !0 }
2023
2023
  },
2024
2024
  emits: ["update:modelValue", "change"],
2025
- setup(e, { expose: T, emit: S }) {
2026
- const l = e, n = S, r = R(), d = R(!1), g = R(!1), s = R(""), v = R([]), _ = R(0), D = R([]), F = R([]), h = R([]), w = R(null), b = R(null), k = R(null), $ = R(""), i = R(""), a = R(null), C = K(() => "选择地区"), c = K(() => s.value.trim().length > 0), Q = K(() => _.value === 0 ? D.value : _.value === 1 ? F.value : _.value === 2 ? h.value : []), q = K(() => {
2025
+ setup(e, { expose: F, emit: D }) {
2026
+ const l = e, n = D, r = S(), d = S(!1), h = S(!1), s = S(""), v = S([]), _ = S(0), $ = S([]), E = S([]), b = S([]), w = S(null), g = S(null), R = S(null), L = S(""), u = S(""), a = S(null), k = Y(() => "选择地区"), f = Y(() => s.value.trim().length > 0), X = Y(() => _.value === 0 ? $.value : _.value === 1 ? E.value : _.value === 2 ? b.value : []), N = Y(() => {
2027
2027
  var p;
2028
2028
  return ((p = l.modelValue) == null ? void 0 : p.fullPath) || "";
2029
2029
  });
2030
- function ne(p) {
2030
+ function oe(p) {
2031
2031
  return !(l.level === 1 || l.level === 2 && p.level >= 2 || l.level === 3 && p.level >= 3);
2032
2032
  }
2033
2033
  function de(p) {
2034
- const H = p.full_path || p.name;
2035
- return $.value === H;
2034
+ const j = p.full_path || p.name;
2035
+ return L.value === j;
2036
2036
  }
2037
2037
  async function se() {
2038
- g.value = !0;
2038
+ h.value = !0;
2039
2039
  try {
2040
2040
  const p = await he().post("/proxy/sys/china_area/api/get_provinces");
2041
- p.code === 200 && (D.value = p.data);
2041
+ p.code === 200 && ($.value = p.data);
2042
2042
  } finally {
2043
- g.value = !1;
2043
+ h.value = !1;
2044
2044
  }
2045
2045
  }
2046
2046
  async function pe(p) {
2047
- g.value = !0;
2047
+ h.value = !0;
2048
2048
  try {
2049
- const H = await he().post(`/proxy/sys/china_area/api/get_cities/${encodeURIComponent(p)}`);
2050
- H.code === 200 && (F.value = H.data);
2049
+ const j = await he().post(`/proxy/sys/china_area/api/get_cities/${encodeURIComponent(p)}`);
2050
+ j.code === 200 && (E.value = j.data);
2051
2051
  } finally {
2052
- g.value = !1;
2052
+ h.value = !1;
2053
2053
  }
2054
2054
  }
2055
2055
  async function fe(p) {
2056
- g.value = !0;
2056
+ h.value = !0;
2057
2057
  try {
2058
- const H = await he().post(`/proxy/sys/china_area/api/get_districts/${encodeURIComponent(p)}`);
2059
- H.code === 200 && (h.value = H.data);
2058
+ const j = await he().post(`/proxy/sys/china_area/api/get_districts/${encodeURIComponent(p)}`);
2059
+ j.code === 200 && (b.value = j.data);
2060
2060
  } finally {
2061
- g.value = !1;
2061
+ h.value = !1;
2062
2062
  }
2063
2063
  }
2064
2064
  let re = null;
@@ -2069,266 +2069,266 @@ const we = {
2069
2069
  v.value = [];
2070
2070
  return;
2071
2071
  }
2072
- g.value = !0;
2072
+ h.value = !0;
2073
2073
  try {
2074
- const H = await he().post("/proxy/sys/china_area/api/search", { keyword: p });
2075
- H.code === 200 && (v.value = H.data);
2074
+ const j = await he().post("/proxy/sys/china_area/api/search", { keyword: p });
2075
+ j.code === 200 && (v.value = j.data);
2076
2076
  } finally {
2077
- g.value = !1;
2077
+ h.value = !1;
2078
2078
  }
2079
2079
  }, 300);
2080
2080
  }
2081
2081
  function ve() {
2082
- l.disabled || (d.value = !0, D.value.length === 0 && se());
2082
+ l.disabled || (d.value = !0, $.value.length === 0 && se());
2083
2083
  }
2084
- function z(p) {
2085
- p.has_children && ne(p) ? p.level === 1 ? (w.value = p, b.value = null, k.value = null, _.value = 1, pe(p.name)) : p.level === 2 && (b.value = p, k.value = null, _.value = 2, fe(p.name)) : ge(p);
2084
+ function T(p) {
2085
+ p.has_children && oe(p) ? p.level === 1 ? (w.value = p, g.value = null, R.value = null, _.value = 1, pe(p.name)) : p.level === 2 && (g.value = p, R.value = null, _.value = 2, fe(p.name)) : ge(p);
2086
2086
  }
2087
- function A(p) {
2088
- X(p);
2087
+ function U(p) {
2088
+ J(p);
2089
2089
  }
2090
- function X(p) {
2091
- const H = p.full_path || p.name;
2092
- if ($.value = H, i.value = p.destination || "", p.full_path && p.level === 3) {
2090
+ function J(p) {
2091
+ const j = p.full_path || p.name;
2092
+ if (L.value = j, u.value = p.destination || "", p.full_path && p.level === 3) {
2093
2093
  const ue = p.parent_name || "", le = ce(p.full_path, ue, p.name);
2094
- w.value = { fid: "", name: le, level: 1 }, b.value = { fid: "", name: ue, level: 2, parent_name: le }, k.value = p;
2094
+ w.value = { fid: "", name: le, level: 1 }, g.value = { fid: "", name: ue, level: 2, parent_name: le }, R.value = p;
2095
2095
  } else if (p.full_path && p.level === 2) {
2096
2096
  const ue = p.parent_name || "";
2097
- w.value = { fid: "", name: ue, level: 1 }, b.value = p, k.value = null;
2098
- } else p.level === 1 && (w.value = p, b.value = null, k.value = null);
2097
+ w.value = { fid: "", name: ue, level: 1 }, g.value = p, R.value = null;
2098
+ } else p.level === 1 && (w.value = p, g.value = null, R.value = null);
2099
2099
  _.value = 0, a.value = Z();
2100
2100
  }
2101
- function ce(p, H, ue) {
2101
+ function ce(p, j, ue) {
2102
2102
  let le = p;
2103
- return ue && p.endsWith(ue) && (le = p.slice(0, -ue.length)), H && le.endsWith(H) && (le = le.slice(0, -H.length)), le;
2103
+ return ue && p.endsWith(ue) && (le = p.slice(0, -ue.length)), j && le.endsWith(j) && (le = le.slice(0, -j.length)), le;
2104
2104
  }
2105
2105
  function ge(p) {
2106
- const H = p.full_path || p.name;
2107
- $.value = H, i.value = p.destination || "", p.level === 1 ? (w.value = p, b.value = null, k.value = null) : p.level === 2 ? (b.value = p, k.value = null) : p.level === 3 && (k.value = p), a.value = Z();
2106
+ const j = p.full_path || p.name;
2107
+ L.value = j, u.value = p.destination || "", p.level === 1 ? (w.value = p, g.value = null, R.value = null) : p.level === 2 ? (g.value = p, R.value = null) : p.level === 3 && (R.value = p), a.value = Z();
2108
2108
  }
2109
- function U(p) {
2110
- p === 0 ? (_.value = 0, w.value = null, b.value = null, k.value = null) : p === 1 ? (_.value = 1, b.value = null, k.value = null, w.value && pe(w.value.name)) : p === 2 && (_.value = 2, k.value = null);
2109
+ function z(p) {
2110
+ p === 0 ? (_.value = 0, w.value = null, g.value = null, R.value = null) : p === 1 ? (_.value = 1, g.value = null, R.value = null, w.value && pe(w.value.name)) : p === 2 && (_.value = 2, R.value = null);
2111
2111
  }
2112
- function x() {
2113
- $.value = "", i.value = "", a.value = null, w.value = null, b.value = null, k.value = null;
2112
+ function C() {
2113
+ L.value = "", u.value = "", a.value = null, w.value = null, g.value = null, R.value = null;
2114
2114
  }
2115
2115
  function V() {
2116
2116
  n("update:modelValue", null), n("change", null);
2117
2117
  }
2118
- function Y() {
2118
+ function q() {
2119
2119
  d.value = !1, s.value = "", v.value = [];
2120
2120
  }
2121
- function j() {
2122
- n("update:modelValue", a.value), n("change", a.value), Y();
2121
+ function K() {
2122
+ n("update:modelValue", a.value), n("change", a.value), q();
2123
2123
  }
2124
2124
  function Z() {
2125
- var H, ue, le;
2126
- const p = k.value || b.value || w.value;
2125
+ var j, ue, le;
2126
+ const p = R.value || g.value || w.value;
2127
2127
  return {
2128
- province: ((H = w.value) == null ? void 0 : H.name) || "",
2129
- city: ((ue = b.value) == null ? void 0 : ue.name) || "",
2130
- district: ((le = k.value) == null ? void 0 : le.name) || "",
2128
+ province: ((j = w.value) == null ? void 0 : j.name) || "",
2129
+ city: ((ue = g.value) == null ? void 0 : ue.name) || "",
2130
+ district: ((le = R.value) == null ? void 0 : le.name) || "",
2131
2131
  fullPath: (p == null ? void 0 : p.full_path) || (p == null ? void 0 : p.name) || "",
2132
2132
  destinationType: (p == null ? void 0 : p.destination_type) || "",
2133
2133
  destination: (p == null ? void 0 : p.destination) || ""
2134
2134
  };
2135
2135
  }
2136
2136
  return ke(() => l.modelValue, (p) => {
2137
- p ? ($.value = p.fullPath || "", i.value = p.destination || "", a.value = p) : ($.value = "", i.value = "", a.value = null);
2138
- }, { immediate: !0 }), T({
2137
+ p ? (L.value = p.fullPath || "", u.value = p.destination || "", a.value = p) : (L.value = "", u.value = "", a.value = null);
2138
+ }, { immediate: !0 }), F({
2139
2139
  open: () => ve(),
2140
2140
  clear: () => V()
2141
- }), (p, H) => {
2142
- const ue = P("el-input"), le = P("el-icon"), B = P("el-empty"), E = P("el-tag"), m = P("el-button"), M = P("el-dialog"), me = Ye("loading");
2141
+ }), (p, j) => {
2142
+ const ue = A("el-input"), le = A("el-icon"), x = A("el-empty"), B = A("el-tag"), m = A("el-button"), M = A("el-dialog"), me = Ye("loading");
2143
2143
  return o(), y("div", ra, [
2144
2144
  t(ue, {
2145
2145
  ref_key: "inputRef",
2146
2146
  ref: r,
2147
- modelValue: q.value,
2148
- "onUpdate:modelValue": H[0] || (H[0] = (J) => q.value = J),
2147
+ modelValue: N.value,
2148
+ "onUpdate:modelValue": j[0] || (j[0] = (Q) => N.value = Q),
2149
2149
  placeholder: e.placeholder,
2150
2150
  disabled: e.disabled,
2151
2151
  clearable: e.clearable,
2152
2152
  readonly: !0,
2153
- "suffix-icon": d.value ? L(vl) : L(gl),
2153
+ "suffix-icon": d.value ? I(vl) : I(gl),
2154
2154
  class: "base-china-area__input",
2155
2155
  onClick: ve,
2156
2156
  onClear: V
2157
2157
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "suffix-icon"]),
2158
2158
  t(M, {
2159
2159
  modelValue: d.value,
2160
- "onUpdate:modelValue": H[5] || (H[5] = (J) => d.value = J),
2161
- title: C.value,
2160
+ "onUpdate:modelValue": j[5] || (j[5] = (Q) => d.value = Q),
2161
+ title: k.value,
2162
2162
  width: "600px",
2163
2163
  "show-close": !1,
2164
2164
  "close-on-click-modal": !1,
2165
2165
  "align-center": "",
2166
2166
  class: "form-dialog base-china-area-dialog",
2167
- onClose: Y
2167
+ onClose: q
2168
2168
  }, {
2169
- header: u(() => [
2170
- f("div", ca, [
2171
- f("span", fa, [
2169
+ header: i(() => [
2170
+ c("div", ca, [
2171
+ c("span", fa, [
2172
2172
  t(le, null, {
2173
- default: u(() => [
2174
- t(L(hl))
2173
+ default: i(() => [
2174
+ t(I(hl))
2175
2175
  ]),
2176
2176
  _: 1
2177
2177
  }),
2178
- N(" " + O(C.value), 1)
2178
+ O(" " + H(k.value), 1)
2179
2179
  ]),
2180
- f("button", {
2180
+ c("button", {
2181
2181
  class: "form-dialog-header__close",
2182
- onClick: Y
2182
+ onClick: q
2183
2183
  }, [
2184
2184
  t(le, null, {
2185
- default: u(() => [
2186
- t(L(Ce))
2185
+ default: i(() => [
2186
+ t(I(Ce))
2187
2187
  ]),
2188
2188
  _: 1
2189
2189
  })
2190
2190
  ])
2191
2191
  ])
2192
2192
  ]),
2193
- footer: u(() => [
2194
- f("div", Ca, [
2195
- t(m, { onClick: Y }, {
2196
- default: u(() => [...H[8] || (H[8] = [
2197
- N("取消", -1)
2193
+ footer: i(() => [
2194
+ c("div", Ca, [
2195
+ t(m, { onClick: q }, {
2196
+ default: i(() => [...j[8] || (j[8] = [
2197
+ O("取消", -1)
2198
2198
  ])]),
2199
2199
  _: 1
2200
2200
  }),
2201
2201
  t(m, {
2202
2202
  type: "primary",
2203
- onClick: j
2203
+ onClick: K
2204
2204
  }, {
2205
- default: u(() => [...H[9] || (H[9] = [
2206
- N("确认", -1)
2205
+ default: i(() => [...j[9] || (j[9] = [
2206
+ O("确认", -1)
2207
2207
  ])]),
2208
2208
  _: 1
2209
2209
  })
2210
2210
  ])
2211
2211
  ]),
2212
- default: u(() => [
2213
- f("div", ma, [
2214
- f("div", pa, [
2212
+ default: i(() => [
2213
+ c("div", ma, [
2214
+ c("div", pa, [
2215
2215
  t(ue, {
2216
2216
  modelValue: s.value,
2217
- "onUpdate:modelValue": H[1] || (H[1] = (J) => s.value = J),
2217
+ "onUpdate:modelValue": j[1] || (j[1] = (Q) => s.value = Q),
2218
2218
  placeholder: "搜索省/市/区县",
2219
- "prefix-icon": L(be),
2219
+ "prefix-icon": I(be),
2220
2220
  clearable: "",
2221
2221
  onInput: ae
2222
2222
  }, null, 8, ["modelValue", "prefix-icon"])
2223
2223
  ]),
2224
- c.value ? (o(), y("div", ga, [...H[6] || (H[6] = [
2225
- f("span", { class: "breadcrumb-item is-active" }, "搜索结果", -1)
2224
+ f.value ? (o(), y("div", ga, [...j[6] || (j[6] = [
2225
+ c("span", { class: "breadcrumb-item is-active" }, "搜索结果", -1)
2226
2226
  ])])) : (o(), y("div", va, [
2227
- f("span", {
2227
+ c("span", {
2228
2228
  class: ie(["breadcrumb-item", { "is-active": _.value === 0 }]),
2229
- onClick: H[2] || (H[2] = (J) => U(0))
2229
+ onClick: j[2] || (j[2] = (Q) => z(0))
2230
2230
  }, " 全国 ", 2),
2231
2231
  w.value ? (o(), y(G, { key: 0 }, [
2232
2232
  t(le, { class: "breadcrumb-arrow" }, {
2233
- default: u(() => [
2234
- t(L(De))
2233
+ default: i(() => [
2234
+ t(I(De))
2235
2235
  ]),
2236
2236
  _: 1
2237
2237
  }),
2238
- f("span", {
2238
+ c("span", {
2239
2239
  class: ie(["breadcrumb-item", { "is-active": _.value === 1 }]),
2240
- onClick: H[3] || (H[3] = (J) => U(1))
2241
- }, O(w.value.name), 3)
2240
+ onClick: j[3] || (j[3] = (Q) => z(1))
2241
+ }, H(w.value.name), 3)
2242
2242
  ], 64)) : W("", !0),
2243
- b.value ? (o(), y(G, { key: 1 }, [
2243
+ g.value ? (o(), y(G, { key: 1 }, [
2244
2244
  t(le, { class: "breadcrumb-arrow" }, {
2245
- default: u(() => [
2246
- t(L(De))
2245
+ default: i(() => [
2246
+ t(I(De))
2247
2247
  ]),
2248
2248
  _: 1
2249
2249
  }),
2250
- f("span", {
2250
+ c("span", {
2251
2251
  class: ie(["breadcrumb-item", { "is-active": _.value === 2 }]),
2252
- onClick: H[4] || (H[4] = (J) => U(2))
2253
- }, O(b.value.name), 3)
2252
+ onClick: j[4] || (j[4] = (Q) => z(2))
2253
+ }, H(g.value.name), 3)
2254
2254
  ], 64)) : W("", !0)
2255
2255
  ])),
2256
2256
  qe((o(), y("div", ha, [
2257
- c.value ? (o(), y(G, { key: 0 }, [
2258
- (o(!0), y(G, null, oe(v.value, (J) => (o(), y("div", {
2259
- key: J.fid,
2260
- class: ie(["area-item", { "is-selected": de(J) }]),
2261
- onClick: (Ee) => A(J)
2257
+ f.value ? (o(), y(G, { key: 0 }, [
2258
+ (o(!0), y(G, null, ne(v.value, (Q) => (o(), y("div", {
2259
+ key: Q.fid,
2260
+ class: ie(["area-item", { "is-selected": de(Q) }]),
2261
+ onClick: (Ee) => U(Q)
2262
2262
  }, [
2263
- f("span", ya, O(J.full_path || J.name), 1),
2264
- de(J) ? (o(), I(le, {
2263
+ c("span", ya, H(Q.full_path || Q.name), 1),
2264
+ de(Q) ? (o(), P(le, {
2265
2265
  key: 0,
2266
2266
  class: "area-item__check"
2267
2267
  }, {
2268
- default: u(() => [
2269
- t(L(Ke))
2268
+ default: i(() => [
2269
+ t(I(Ke))
2270
2270
  ]),
2271
2271
  _: 1
2272
2272
  })) : W("", !0)
2273
2273
  ], 10, ba))), 128)),
2274
- v.value.length === 0 ? (o(), I(B, {
2274
+ v.value.length === 0 ? (o(), P(x, {
2275
2275
  key: 0,
2276
2276
  description: "暂无匹配结果",
2277
2277
  "image-size": 60
2278
2278
  })) : W("", !0)
2279
2279
  ], 64)) : (o(), y(G, { key: 1 }, [
2280
- (o(!0), y(G, null, oe(Q.value, (J) => (o(), y("div", {
2281
- key: J.fid,
2282
- class: ie(["area-item", { "is-selected": de(J) }]),
2283
- onClick: (Ee) => z(J)
2280
+ (o(!0), y(G, null, ne(X.value, (Q) => (o(), y("div", {
2281
+ key: Q.fid,
2282
+ class: ie(["area-item", { "is-selected": de(Q) }]),
2283
+ onClick: (Ee) => T(Q)
2284
2284
  }, [
2285
- f("span", wa, O(J.name), 1),
2286
- J.has_children && ne(J) ? (o(), I(le, {
2285
+ c("span", wa, H(Q.name), 1),
2286
+ Q.has_children && oe(Q) ? (o(), P(le, {
2287
2287
  key: 0,
2288
2288
  class: "area-item__arrow"
2289
2289
  }, {
2290
- default: u(() => [
2291
- t(L(De))
2290
+ default: i(() => [
2291
+ t(I(De))
2292
2292
  ]),
2293
2293
  _: 1
2294
- })) : de(J) ? (o(), I(le, {
2294
+ })) : de(Q) ? (o(), P(le, {
2295
2295
  key: 1,
2296
2296
  class: "area-item__check"
2297
2297
  }, {
2298
- default: u(() => [
2299
- t(L(Ke))
2298
+ default: i(() => [
2299
+ t(I(Ke))
2300
2300
  ]),
2301
2301
  _: 1
2302
2302
  })) : W("", !0)
2303
2303
  ], 10, _a))), 128)),
2304
- Q.value.length === 0 && !g.value ? (o(), I(B, {
2304
+ X.value.length === 0 && !h.value ? (o(), P(x, {
2305
2305
  key: 0,
2306
2306
  description: "暂无数据",
2307
2307
  "image-size": 60
2308
2308
  })) : W("", !0)
2309
2309
  ], 64))
2310
2310
  ])), [
2311
- [me, g.value]
2311
+ [me, h.value]
2312
2312
  ]),
2313
- f("div", Va, [
2314
- H[7] || (H[7] = f("span", { class: "selected-label" }, "已选择:", -1)),
2315
- $.value ? (o(), y(G, { key: 0 }, [
2316
- t(E, {
2313
+ c("div", Va, [
2314
+ j[7] || (j[7] = c("span", { class: "selected-label" }, "已选择:", -1)),
2315
+ L.value ? (o(), y(G, { key: 0 }, [
2316
+ t(B, {
2317
2317
  closable: "",
2318
- onClose: x
2318
+ onClose: C
2319
2319
  }, {
2320
- default: u(() => [
2321
- N(O($.value), 1)
2320
+ default: i(() => [
2321
+ O(H(L.value), 1)
2322
2322
  ]),
2323
2323
  _: 1
2324
2324
  }),
2325
- i.value ? (o(), I(E, {
2325
+ u.value ? (o(), P(B, {
2326
2326
  key: 0,
2327
2327
  type: "info",
2328
2328
  class: "destination-tag"
2329
2329
  }, {
2330
- default: u(() => [
2331
- N(O(i.value), 1)
2330
+ default: i(() => [
2331
+ O(H(u.value), 1)
2332
2332
  ]),
2333
2333
  _: 1
2334
2334
  })) : W("", !0)
@@ -2544,35 +2544,35 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
2544
2544
  }
2545
2545
  },
2546
2546
  emits: ["update:page", "update:size", "change"],
2547
- setup(e, { emit: T }) {
2548
- const S = e, l = T, n = K({
2549
- get: () => S.page,
2547
+ setup(e, { emit: F }) {
2548
+ const D = e, l = F, n = Y({
2549
+ get: () => D.page,
2550
2550
  set: (s) => l("update:page", s)
2551
- }), r = K({
2552
- get: () => S.size,
2551
+ }), r = Y({
2552
+ get: () => D.size,
2553
2553
  set: (s) => l("update:size", s)
2554
2554
  }), d = (s) => {
2555
2555
  l("change", { page: n.value, size: s });
2556
- }, g = (s) => {
2556
+ }, h = (s) => {
2557
2557
  l("change", { page: s, size: r.value });
2558
2558
  };
2559
2559
  return (s, v) => {
2560
- const _ = P("el-pagination"), D = P("el-config-provider");
2560
+ const _ = A("el-pagination"), $ = A("el-config-provider");
2561
2561
  return o(), y("div", Ea, [
2562
- t(D, { locale: L(Ba) }, {
2563
- default: u(() => [
2562
+ t($, { locale: I(Ba) }, {
2563
+ default: i(() => [
2564
2564
  t(_, {
2565
2565
  "current-page": n.value,
2566
- "onUpdate:currentPage": v[0] || (v[0] = (F) => n.value = F),
2566
+ "onUpdate:currentPage": v[0] || (v[0] = (E) => n.value = E),
2567
2567
  "page-size": r.value,
2568
- "onUpdate:pageSize": v[1] || (v[1] = (F) => r.value = F),
2568
+ "onUpdate:pageSize": v[1] || (v[1] = (E) => r.value = E),
2569
2569
  "page-sizes": e.pageSizes,
2570
2570
  layout: e.layout,
2571
2571
  background: e.background,
2572
2572
  disabled: e.disabled,
2573
2573
  total: e.total,
2574
2574
  onSizeChange: d,
2575
- onCurrentChange: g
2575
+ onCurrentChange: h
2576
2576
  }, null, 8, ["current-page", "page-size", "page-sizes", "layout", "background", "disabled", "total"])
2577
2577
  ]),
2578
2578
  _: 1
@@ -2593,9 +2593,9 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
2593
2593
  size: { default: "50%" }
2594
2594
  },
2595
2595
  emits: ["update:modelValue"],
2596
- setup(e, { expose: T, emit: S }) {
2597
- const l = e, n = S, r = R(!1), d = R([]), g = R(null), s = R([]), v = R(), _ = async (b) => {
2598
- r.value = !0, await new Promise((k) => setTimeout(k, 300)), console.log("获取审批记录,表单ID:", b, "流程ID:", l.procBid), d.value = [
2596
+ setup(e, { expose: F, emit: D }) {
2597
+ const l = e, n = D, r = S(!1), d = S([]), h = S(null), s = S([]), v = S(), _ = async (g) => {
2598
+ r.value = !0, await new Promise((R) => setTimeout(R, 300)), console.log("获取审批记录,表单ID:", g, "流程ID:", l.procBid), d.value = [
2599
2599
  { title: "发起", status: "done", type: "start" },
2600
2600
  { title: "一级审批", status: "done" },
2601
2601
  { title: "三级审批", status: "active" },
@@ -2603,7 +2603,7 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
2603
2603
  { title: "六级审批", status: "pending" },
2604
2604
  { title: "七级审批", status: "pending" },
2605
2605
  { title: "流程结束", status: "pending", type: "end" }
2606
- ], g.value = {
2606
+ ], h.value = {
2607
2607
  stepName: "三级审批",
2608
2608
  handler: "裴奕琴(50215802)",
2609
2609
  arriveTime: "2026-01-30 11:07:38"
@@ -2628,139 +2628,139 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
2628
2628
  };
2629
2629
  Se(() => {
2630
2630
  l.modelValue && l.formId && _(l.formId);
2631
- }), ke(() => l.formId, (b) => {
2632
- b && l.modelValue && _(b);
2631
+ }), ke(() => l.formId, (g) => {
2632
+ g && l.modelValue && _(g);
2633
2633
  });
2634
- const D = (b) => {
2635
- n("update:modelValue", b);
2636
- }, F = () => {
2634
+ const $ = (g) => {
2635
+ n("update:modelValue", g);
2636
+ }, E = () => {
2637
2637
  l.formId && _(l.formId);
2638
- }, h = (b) => {
2638
+ }, b = (g) => {
2639
2639
  v.value && v.value.scrollBy({
2640
- left: b * 200,
2640
+ left: g * 200,
2641
2641
  behavior: "smooth"
2642
2642
  });
2643
2643
  };
2644
- return T({
2645
- scrollSteps: h,
2644
+ return F({
2645
+ scrollSteps: b,
2646
2646
  refresh: () => {
2647
2647
  l.formId && _(l.formId);
2648
2648
  }
2649
- }), (b, k) => {
2650
- const $ = P("el-icon"), i = P("el-table-column"), a = P("el-table"), C = P("el-drawer");
2651
- return o(), I(C, {
2649
+ }), (g, R) => {
2650
+ const L = A("el-icon"), u = A("el-table-column"), a = A("el-table"), k = A("el-drawer");
2651
+ return o(), P(k, {
2652
2652
  "model-value": e.modelValue,
2653
2653
  direction: "rtl",
2654
2654
  size: e.size,
2655
2655
  "show-close": !1,
2656
2656
  class: "approval-drawer",
2657
- "onUpdate:modelValue": D,
2658
- onOpen: F
2657
+ "onUpdate:modelValue": $,
2658
+ onOpen: E
2659
2659
  }, {
2660
- header: u(() => [
2661
- f("div", Da, [
2662
- f("span", Ta, O(e.title), 1),
2663
- f("button", {
2660
+ header: i(() => [
2661
+ c("div", Da, [
2662
+ c("span", Ta, H(e.title), 1),
2663
+ c("button", {
2664
2664
  class: "approval-drawer-close",
2665
- onClick: k[0] || (k[0] = (c) => D(!1))
2665
+ onClick: R[0] || (R[0] = (f) => $(!1))
2666
2666
  }, [
2667
- t($, null, {
2668
- default: u(() => [
2669
- t(L(Ce))
2667
+ t(L, null, {
2668
+ default: i(() => [
2669
+ t(I(Ce))
2670
2670
  ]),
2671
2671
  _: 1
2672
2672
  })
2673
2673
  ])
2674
2674
  ])
2675
2675
  ]),
2676
- default: u(() => [
2677
- f("div", Sa, [
2678
- f("div", za, [
2679
- f("div", {
2676
+ default: i(() => [
2677
+ c("div", Sa, [
2678
+ c("div", za, [
2679
+ c("div", {
2680
2680
  class: "steps-nav steps-nav-prev",
2681
- onClick: k[1] || (k[1] = (c) => h(-1))
2681
+ onClick: R[1] || (R[1] = (f) => b(-1))
2682
2682
  }, [
2683
- t($, null, {
2684
- default: u(() => [
2685
- t(L(bl))
2683
+ t(L, null, {
2684
+ default: i(() => [
2685
+ t(I(bl))
2686
2686
  ]),
2687
2687
  _: 1
2688
2688
  })
2689
2689
  ]),
2690
- f("div", {
2690
+ c("div", {
2691
2691
  class: "steps-container",
2692
2692
  ref_key: "stepsContainerRef",
2693
2693
  ref: v
2694
2694
  }, [
2695
- f("div", Ra, [
2696
- (o(!0), y(G, null, oe(d.value, (c, Q) => (o(), y(G, { key: Q }, [
2697
- f("div", {
2695
+ c("div", Ra, [
2696
+ (o(!0), y(G, null, ne(d.value, (f, X) => (o(), y(G, { key: X }, [
2697
+ c("div", {
2698
2698
  class: ie(["step-item", {
2699
- "step-item--done": c.status === "done",
2700
- "step-item--active": c.status === "active",
2701
- "step-item--pending": c.status === "pending",
2702
- "step-item--end": c.type === "end"
2699
+ "step-item--done": f.status === "done",
2700
+ "step-item--active": f.status === "active",
2701
+ "step-item--pending": f.status === "pending",
2702
+ "step-item--end": f.type === "end"
2703
2703
  }])
2704
2704
  }, [
2705
- f("div", Ua, [
2706
- c.type === "start" ? (o(), I($, { key: 0 }, {
2707
- default: u(() => [
2708
- t(L(yl))
2705
+ c("div", Ua, [
2706
+ f.type === "start" ? (o(), P(L, { key: 0 }, {
2707
+ default: i(() => [
2708
+ t(I(yl))
2709
2709
  ]),
2710
2710
  _: 1
2711
- })) : c.type === "end" ? (o(), I($, { key: 1 }, {
2712
- default: u(() => [
2713
- t(L(_l))
2711
+ })) : f.type === "end" ? (o(), P(L, { key: 1 }, {
2712
+ default: i(() => [
2713
+ t(I(_l))
2714
2714
  ]),
2715
2715
  _: 1
2716
- })) : (o(), I($, { key: 2 }, {
2717
- default: u(() => [
2718
- t(L(wl))
2716
+ })) : (o(), P(L, { key: 2 }, {
2717
+ default: i(() => [
2718
+ t(I(wl))
2719
2719
  ]),
2720
2720
  _: 1
2721
2721
  }))
2722
2722
  ]),
2723
- f("div", Aa, O(c.title), 1)
2723
+ c("div", Aa, H(f.title), 1)
2724
2724
  ], 2),
2725
- Q < d.value.length - 1 ? (o(), y("div", {
2725
+ X < d.value.length - 1 ? (o(), y("div", {
2726
2726
  key: 0,
2727
2727
  class: ie(["step-line", {
2728
- "step-line--done": c.status === "done",
2729
- "step-line--active": c.status === "active"
2728
+ "step-line--done": f.status === "done",
2729
+ "step-line--active": f.status === "active"
2730
2730
  }])
2731
2731
  }, null, 2)) : W("", !0)
2732
2732
  ], 64))), 128))
2733
2733
  ])
2734
2734
  ], 512),
2735
- f("div", {
2735
+ c("div", {
2736
2736
  class: "steps-nav steps-nav-next",
2737
- onClick: k[2] || (k[2] = (c) => h(1))
2737
+ onClick: R[2] || (R[2] = (f) => b(1))
2738
2738
  }, [
2739
- t($, null, {
2740
- default: u(() => [
2741
- t(L(Vl))
2739
+ t(L, null, {
2740
+ default: i(() => [
2741
+ t(I(Vl))
2742
2742
  ]),
2743
2743
  _: 1
2744
2744
  })
2745
2745
  ])
2746
2746
  ]),
2747
- g.value ? (o(), y("div", Pa, [
2747
+ h.value ? (o(), y("div", Pa, [
2748
2748
  t(a, {
2749
- data: [g.value],
2749
+ data: [h.value],
2750
2750
  border: ""
2751
2751
  }, {
2752
- default: u(() => [
2753
- t(i, {
2752
+ default: i(() => [
2753
+ t(u, {
2754
2754
  prop: "stepName",
2755
2755
  label: "当前步骤",
2756
2756
  width: "150"
2757
2757
  }),
2758
- t(i, {
2758
+ t(u, {
2759
2759
  prop: "handler",
2760
2760
  label: "当前处理人",
2761
2761
  width: "180"
2762
2762
  }),
2763
- t(i, {
2763
+ t(u, {
2764
2764
  prop: "arriveTime",
2765
2765
  label: "到达时间"
2766
2766
  })
@@ -2768,38 +2768,38 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
2768
2768
  _: 1
2769
2769
  }, 8, ["data"])
2770
2770
  ])) : W("", !0),
2771
- f("div", Ia, [
2771
+ c("div", Ia, [
2772
2772
  t(a, {
2773
2773
  data: s.value,
2774
2774
  border: ""
2775
2775
  }, {
2776
- default: u(() => [
2777
- t(i, {
2776
+ default: i(() => [
2777
+ t(u, {
2778
2778
  prop: "stepName",
2779
2779
  label: "审批步骤",
2780
2780
  width: "120"
2781
2781
  }),
2782
- t(i, {
2782
+ t(u, {
2783
2783
  prop: "approver",
2784
2784
  label: "审批人",
2785
2785
  width: "160"
2786
2786
  }),
2787
- t(i, {
2787
+ t(u, {
2788
2788
  prop: "action",
2789
2789
  label: "动作",
2790
2790
  width: "80"
2791
2791
  }),
2792
- t(i, {
2792
+ t(u, {
2793
2793
  prop: "arriveTime",
2794
2794
  label: "到达时间",
2795
2795
  width: "180"
2796
2796
  }),
2797
- t(i, {
2797
+ t(u, {
2798
2798
  prop: "approveTime",
2799
2799
  label: "审批时间",
2800
2800
  width: "180"
2801
2801
  }),
2802
- t(i, {
2802
+ t(u, {
2803
2803
  prop: "comment",
2804
2804
  label: "审批意见"
2805
2805
  })
@@ -2840,252 +2840,252 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
2840
2840
  maxTagCount: { default: 3 }
2841
2841
  },
2842
2842
  emits: ["update:modelValue", "change"],
2843
- setup(e, { expose: T, emit: S }) {
2844
- const l = e, n = S, r = R(!1), d = R(""), g = R(!1), s = R(), v = R([]), _ = R([]), D = R([]), F = R([]), h = R([]), w = R([]), b = K(() => {
2845
- var z;
2846
- return D.value.length === 0 ? "" : l.multiple ? D.value.map((A) => A.name).join(", ") : ((z = D.value[0]) == null ? void 0 : z.name) || "";
2847
- }), k = (z) => F.value.some((A) => A.cardno === z.cardno), $ = async (z) => {
2843
+ setup(e, { expose: F, emit: D }) {
2844
+ const l = e, n = D, r = S(!1), d = S(""), h = S(!1), s = S(), v = S([]), _ = S([]), $ = S([]), E = S([]), b = S([]), w = S([]), g = Y(() => {
2845
+ var T;
2846
+ return $.value.length === 0 ? "" : l.multiple ? $.value.map((U) => U.name).join(", ") : ((T = $.value[0]) == null ? void 0 : T.name) || "";
2847
+ }), R = (T) => E.value.some((U) => U.cardno === T.cardno), L = async (T) => {
2848
2848
  var ce, ge;
2849
- const X = await he().post(`/proxy/sys/user/api/get_dept_user/${z}`);
2850
- v.value = ((ce = X == null ? void 0 : X.data) == null ? void 0 : ce.departments) || [], _.value = ((ge = X == null ? void 0 : X.data) == null ? void 0 : ge.users) || [];
2851
- }, i = () => {
2852
- l.disabled || (r.value = !0, F.value = [...D.value], w.value = [{ dept_no: "10000001", dept_name: "迈瑞(Mindray)" }], $("10000001"));
2849
+ const J = await he().post(`/proxy/sys/user/api/get_dept_user/${T}`);
2850
+ v.value = ((ce = J == null ? void 0 : J.data) == null ? void 0 : ce.departments) || [], _.value = ((ge = J == null ? void 0 : J.data) == null ? void 0 : ge.users) || [];
2851
+ }, u = () => {
2852
+ l.disabled || (r.value = !0, E.value = [...$.value], w.value = [{ dept_no: "10000001", dept_name: "迈瑞(Mindray)" }], L("10000001"));
2853
2853
  }, a = () => {
2854
- r.value = !1, d.value = "", g.value = !1, h.value = [];
2855
- }, C = () => {
2856
- g.value = !0;
2857
- }, c = () => {
2858
- var z;
2859
- g.value = !1, d.value = "", h.value = [], (z = s.value) == null || z.blur();
2860
- }, Q = (z) => {
2861
- w.value.push({ dept_no: z.dept_no, dept_name: z.dept_name }), $(z.dept_no);
2862
- }, q = () => {
2854
+ r.value = !1, d.value = "", h.value = !1, b.value = [];
2855
+ }, k = () => {
2856
+ h.value = !0;
2857
+ }, f = () => {
2858
+ var T;
2859
+ h.value = !1, d.value = "", b.value = [], (T = s.value) == null || T.blur();
2860
+ }, X = (T) => {
2861
+ w.value.push({ dept_no: T.dept_no, dept_name: T.dept_name }), L(T.dept_no);
2862
+ }, N = () => {
2863
2863
  if (w.value.length > 1) {
2864
2864
  w.value.pop();
2865
- const z = w.value[w.value.length - 1];
2866
- $(z.dept_no);
2865
+ const T = w.value[w.value.length - 1];
2866
+ L(T.dept_no);
2867
2867
  }
2868
- }, ne = (z) => {
2868
+ }, oe = (T) => {
2869
2869
  if (l.multiple) {
2870
- const A = F.value.findIndex((X) => X.cardno === z.cardno);
2871
- A > -1 ? F.value.splice(A, 1) : F.value.push(z);
2870
+ const U = E.value.findIndex((J) => J.cardno === T.cardno);
2871
+ U > -1 ? E.value.splice(U, 1) : E.value.push(T);
2872
2872
  } else
2873
- F.value = [z];
2874
- }, de = (z) => {
2875
- const A = F.value.findIndex((X) => X.cardno === z.cardno);
2876
- A > -1 && F.value.splice(A, 1);
2873
+ E.value = [T];
2874
+ }, de = (T) => {
2875
+ const U = E.value.findIndex((J) => J.cardno === T.cardno);
2876
+ U > -1 && E.value.splice(U, 1);
2877
2877
  }, se = () => {
2878
- D.value = [...F.value], pe(), a();
2878
+ $.value = [...E.value], pe(), a();
2879
2879
  }, pe = () => {
2880
2880
  if (l.multiple) {
2881
- const z = D.value.map((A) => A.cardno);
2882
- n("update:modelValue", z), n("change", D.value);
2881
+ const T = $.value.map((U) => U.cardno);
2882
+ n("update:modelValue", T), n("change", $.value);
2883
2883
  } else {
2884
- const z = D.value[0];
2885
- n("update:modelValue", z == null ? void 0 : z.cardno), n("change", z);
2884
+ const T = $.value[0];
2885
+ n("update:modelValue", T == null ? void 0 : T.cardno), n("change", T);
2886
2886
  }
2887
2887
  }, fe = () => {
2888
- D.value = [], n("update:modelValue", l.multiple ? [] : void 0), n("change", void 0);
2888
+ $.value = [], n("update:modelValue", l.multiple ? [] : void 0), n("change", void 0);
2889
2889
  };
2890
2890
  let re;
2891
2891
  const ae = () => {
2892
2892
  clearTimeout(re), re = setTimeout(async () => {
2893
2893
  if (!d.value.trim()) {
2894
- h.value = [];
2894
+ b.value = [];
2895
2895
  return;
2896
2896
  }
2897
- const A = await he().post("/proxy/sys/user/api/search_user", { keyword: d.value });
2898
- h.value = (A == null ? void 0 : A.data) || [];
2897
+ const U = await he().post("/proxy/sys/user/api/search_user", { keyword: d.value });
2898
+ b.value = (U == null ? void 0 : U.data) || [];
2899
2899
  }, 300);
2900
2900
  }, ve = () => {
2901
- d.value = "", h.value = [];
2901
+ d.value = "", b.value = [];
2902
2902
  };
2903
- return T({
2904
- openDialog: i,
2905
- getSelectedUsers: () => D.value,
2906
- getSelectedIds: () => D.value.map((z) => z.cardno),
2903
+ return F({
2904
+ openDialog: u,
2905
+ getSelectedUsers: () => $.value,
2906
+ getSelectedIds: () => $.value.map((T) => T.cardno),
2907
2907
  clear: fe
2908
- }), (z, A) => {
2909
- const X = P("el-icon"), ce = P("el-input"), ge = P("el-tag"), U = P("el-button"), x = P("el-dialog");
2908
+ }), (T, U) => {
2909
+ const J = A("el-icon"), ce = A("el-input"), ge = A("el-tag"), z = A("el-button"), C = A("el-dialog");
2910
2910
  return o(), y("div", {
2911
2911
  class: ie(["base-user", { "is-disabled": e.disabled }])
2912
2912
  }, [
2913
2913
  t(ce, {
2914
2914
  class: "base-user__search",
2915
- "model-value": b.value,
2915
+ "model-value": g.value,
2916
2916
  placeholder: e.placeholder,
2917
2917
  disabled: e.disabled,
2918
2918
  readonly: "",
2919
- clearable: e.clearable && D.value.length > 0,
2920
- onClick: i,
2919
+ clearable: e.clearable && $.value.length > 0,
2920
+ onClick: u,
2921
2921
  onClear: fe
2922
2922
  }, {
2923
- suffix: u(() => [
2924
- t(X, {
2923
+ suffix: i(() => [
2924
+ t(J, {
2925
2925
  class: "base-user__icon",
2926
- onClick: ye(i, ["stop"])
2926
+ onClick: ye(u, ["stop"])
2927
2927
  }, {
2928
- default: u(() => [
2929
- t(L(be))
2928
+ default: i(() => [
2929
+ t(I(be))
2930
2930
  ]),
2931
2931
  _: 1
2932
2932
  })
2933
2933
  ]),
2934
2934
  _: 1
2935
2935
  }, 8, ["model-value", "placeholder", "disabled", "clearable"]),
2936
- t(x, {
2936
+ t(C, {
2937
2937
  modelValue: r.value,
2938
- "onUpdate:modelValue": A[1] || (A[1] = (V) => r.value = V),
2938
+ "onUpdate:modelValue": U[1] || (U[1] = (V) => r.value = V),
2939
2939
  width: "960px",
2940
2940
  "close-on-click-modal": !1,
2941
2941
  "show-close": !1,
2942
2942
  class: "user-dialog",
2943
2943
  onClose: a
2944
2944
  }, {
2945
- header: u(() => [
2946
- f("div", La, [
2945
+ header: i(() => [
2946
+ c("div", La, [
2947
2947
  w.value.length > 1 ? (o(), y("span", {
2948
2948
  key: 0,
2949
2949
  class: "user-dialog__back",
2950
- onClick: q
2950
+ onClick: N
2951
2951
  }, [
2952
- t(X, null, {
2953
- default: u(() => [
2954
- t(L(Xe))
2952
+ t(J, null, {
2953
+ default: i(() => [
2954
+ t(I(Xe))
2955
2955
  ]),
2956
2956
  _: 1
2957
2957
  })
2958
2958
  ])) : W("", !0),
2959
- f("span", Ma, O(e.dialogTitle), 1),
2960
- f("span", {
2959
+ c("span", Ma, H(e.dialogTitle), 1),
2960
+ c("span", {
2961
2961
  class: "user-dialog__close",
2962
2962
  onClick: a
2963
2963
  }, [
2964
- t(X, null, {
2965
- default: u(() => [
2966
- t(L(Ce))
2964
+ t(J, null, {
2965
+ default: i(() => [
2966
+ t(I(Ce))
2967
2967
  ]),
2968
2968
  _: 1
2969
2969
  })
2970
2970
  ])
2971
2971
  ])
2972
2972
  ]),
2973
- footer: u(() => [
2974
- f("div", dt, [
2975
- f("div", rt, [
2976
- (o(!0), y(G, null, oe(F.value, (V) => (o(), I(ge, {
2973
+ footer: i(() => [
2974
+ c("div", dt, [
2975
+ c("div", rt, [
2976
+ (o(!0), y(G, null, ne(E.value, (V) => (o(), P(ge, {
2977
2977
  key: V.cardno,
2978
2978
  type: "danger",
2979
2979
  closable: "",
2980
- onClose: (Y) => de(V)
2980
+ onClose: (q) => de(V)
2981
2981
  }, {
2982
- default: u(() => [
2983
- N(O(V.name), 1)
2982
+ default: i(() => [
2983
+ O(H(V.name), 1)
2984
2984
  ]),
2985
2985
  _: 2
2986
2986
  }, 1032, ["onClose"]))), 128))
2987
2987
  ]),
2988
- t(U, {
2988
+ t(z, {
2989
2989
  type: "primary",
2990
2990
  onClick: se
2991
2991
  }, {
2992
- default: u(() => [
2993
- A[7] || (A[7] = N(" 确定", -1)),
2994
- F.value.length > 0 ? (o(), y(G, { key: 0 }, [
2995
- N("(" + O(F.value.length) + ")", 1)
2992
+ default: i(() => [
2993
+ U[7] || (U[7] = O(" 确定", -1)),
2994
+ E.value.length > 0 ? (o(), y(G, { key: 0 }, [
2995
+ O("(" + H(E.value.length) + ")", 1)
2996
2996
  ], 64)) : W("", !0)
2997
2997
  ]),
2998
2998
  _: 1
2999
2999
  })
3000
3000
  ])
3001
3001
  ]),
3002
- default: u(() => [
3003
- f("div", Na, [
3002
+ default: i(() => [
3003
+ c("div", Na, [
3004
3004
  t(ce, {
3005
3005
  ref_key: "searchInputRef",
3006
3006
  ref: s,
3007
3007
  modelValue: d.value,
3008
- "onUpdate:modelValue": A[0] || (A[0] = (V) => d.value = V),
3008
+ "onUpdate:modelValue": U[0] || (U[0] = (V) => d.value = V),
3009
3009
  placeholder: "搜索",
3010
- "prefix-icon": L(be),
3010
+ "prefix-icon": I(be),
3011
3011
  clearable: "",
3012
- onFocus: C,
3012
+ onFocus: k,
3013
3013
  onInput: ae,
3014
3014
  onClear: ve
3015
3015
  }, null, 8, ["modelValue", "prefix-icon"]),
3016
- g.value ? (o(), y("span", {
3016
+ h.value ? (o(), y("span", {
3017
3017
  key: 0,
3018
3018
  class: "user-dialog__search-cancel",
3019
- onClick: c
3019
+ onClick: f
3020
3020
  }, "取消")) : W("", !0)
3021
3021
  ]),
3022
- g.value ? (o(), y("div", Oa, [
3023
- (o(!0), y(G, null, oe(h.value, (V) => (o(), y("div", {
3022
+ h.value ? (o(), y("div", Oa, [
3023
+ (o(!0), y(G, null, ne(b.value, (V) => (o(), y("div", {
3024
3024
  key: V.cardno,
3025
3025
  class: "user-dialog__item user-dialog__item--user",
3026
- onClick: (Y) => ne(V)
3026
+ onClick: (q) => oe(V)
3027
3027
  }, [
3028
- A[2] || (A[2] = f("div", { class: "user-dialog__item-avatar user-dialog__item-avatar--user" }, [
3029
- f("i", { class: "iconfont icon-wode" })
3028
+ U[2] || (U[2] = c("div", { class: "user-dialog__item-avatar user-dialog__item-avatar--user" }, [
3029
+ c("i", { class: "iconfont icon-wode" })
3030
3030
  ], -1)),
3031
- f("div", ja, [
3032
- f("div", Ka, [
3033
- N(O(V.name) + " ", 1),
3034
- f("span", Ya, "(" + O(V.cardno) + ")", 1)
3031
+ c("div", ja, [
3032
+ c("div", Ka, [
3033
+ O(H(V.name) + " ", 1),
3034
+ c("span", Ya, "(" + H(V.cardno) + ")", 1)
3035
3035
  ]),
3036
- f("div", qa, O(V.deptname), 1)
3036
+ c("div", qa, H(V.deptname), 1)
3037
3037
  ]),
3038
- f("div", Wa, [
3039
- f("span", {
3040
- class: ie(["user-dialog__checkbox", { "is-checked": k(V) }])
3038
+ c("div", Wa, [
3039
+ c("span", {
3040
+ class: ie(["user-dialog__checkbox", { "is-checked": R(V) }])
3041
3041
  }, null, 2)
3042
3042
  ])
3043
3043
  ], 8, Ha))), 128)),
3044
- d.value && h.value.length === 0 ? (o(), y("div", Ga, " 未找到相关用户 ")) : W("", !0),
3044
+ d.value && b.value.length === 0 ? (o(), y("div", Ga, " 未找到相关用户 ")) : W("", !0),
3045
3045
  d.value ? W("", !0) : (o(), y("div", Xa, [
3046
- t(X, { class: "user-dialog__empty-icon" }, {
3047
- default: u(() => [
3048
- t(L(be))
3046
+ t(J, { class: "user-dialog__empty-icon" }, {
3047
+ default: i(() => [
3048
+ t(I(be))
3049
3049
  ]),
3050
3050
  _: 1
3051
3051
  }),
3052
- A[3] || (A[3] = f("div", null, "请输入关键词搜索", -1))
3052
+ U[3] || (U[3] = c("div", null, "请输入关键词搜索", -1))
3053
3053
  ]))
3054
3054
  ])) : (o(), y("div", Ja, [
3055
- (o(!0), y(G, null, oe(v.value, (V) => (o(), y("div", {
3055
+ (o(!0), y(G, null, ne(v.value, (V) => (o(), y("div", {
3056
3056
  key: V.dept_no,
3057
3057
  class: "user-dialog__item user-dialog__item--dept",
3058
- onClick: (Y) => Q(V)
3058
+ onClick: (q) => X(V)
3059
3059
  }, [
3060
- A[4] || (A[4] = f("div", { class: "user-dialog__item-avatar" }, [
3061
- f("i", { class: "iconfont icon-zuzhibumen" })
3060
+ U[4] || (U[4] = c("div", { class: "user-dialog__item-avatar" }, [
3061
+ c("i", { class: "iconfont icon-zuzhibumen" })
3062
3062
  ], -1)),
3063
- f("div", Za, [
3064
- f("div", et, O(V.dept_name), 1),
3065
- f("div", lt, O(V.dept_pname), 1)
3063
+ c("div", Za, [
3064
+ c("div", et, H(V.dept_name), 1),
3065
+ c("div", lt, H(V.dept_pname), 1)
3066
3066
  ]),
3067
- A[5] || (A[5] = f("div", { class: "user-dialog__item-arrow" }, [
3068
- f("i", { class: "iconfont icon-arrow-right" })
3067
+ U[5] || (U[5] = c("div", { class: "user-dialog__item-arrow" }, [
3068
+ c("i", { class: "iconfont icon-arrow-right" })
3069
3069
  ], -1))
3070
3070
  ], 8, Qa))), 128)),
3071
- (o(!0), y(G, null, oe(_.value, (V) => (o(), y("div", {
3071
+ (o(!0), y(G, null, ne(_.value, (V) => (o(), y("div", {
3072
3072
  key: V.cardno,
3073
3073
  class: "user-dialog__item user-dialog__item--user",
3074
- onClick: (Y) => ne(V)
3074
+ onClick: (q) => oe(V)
3075
3075
  }, [
3076
- A[6] || (A[6] = f("div", { class: "user-dialog__item-avatar user-dialog__item-avatar--user" }, [
3077
- f("i", { class: "iconfont icon-wode" })
3076
+ U[6] || (U[6] = c("div", { class: "user-dialog__item-avatar user-dialog__item-avatar--user" }, [
3077
+ c("i", { class: "iconfont icon-wode" })
3078
3078
  ], -1)),
3079
- f("div", tt, [
3080
- f("div", ot, [
3081
- N(O(V.name) + " ", 1),
3082
- f("span", nt, "(" + O(V.cardno) + ")", 1)
3079
+ c("div", tt, [
3080
+ c("div", ot, [
3081
+ O(H(V.name) + " ", 1),
3082
+ c("span", nt, "(" + H(V.cardno) + ")", 1)
3083
3083
  ]),
3084
- f("div", st, O(V.deptname), 1)
3084
+ c("div", st, H(V.deptname), 1)
3085
3085
  ]),
3086
- f("div", ut, [
3087
- f("span", {
3088
- class: ie(["user-dialog__checkbox", { "is-checked": k(V) }])
3086
+ c("div", ut, [
3087
+ c("span", {
3088
+ class: ie(["user-dialog__checkbox", { "is-checked": R(V) }])
3089
3089
  }, null, 2)
3090
3090
  ])
3091
3091
  ], 8, at))), 128)),
@@ -3125,45 +3125,45 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
3125
3125
  dialogTitle: { default: "选择部门" }
3126
3126
  },
3127
3127
  emits: ["update:modelValue", "change"],
3128
- setup(e, { expose: T, emit: S }) {
3129
- const l = e, n = S, r = R(!1), d = R(""), g = R(!1), s = R(), v = R([]), _ = R(null), D = R(null), F = R([]), h = R([]), w = K(() => {
3130
- var z;
3131
- return ((z = _.value) == null ? void 0 : z.dept_name) || "";
3132
- }), b = (z) => {
3133
- var A;
3134
- return ((A = D.value) == null ? void 0 : A.dept_no) === z.dept_no;
3135
- }, k = (z) => {
3136
- he().post(`/proxy/sys/dept/api/get_sub_depts/${z}`).then((A) => {
3137
- v.value = A.data || [];
3128
+ setup(e, { expose: F, emit: D }) {
3129
+ const l = e, n = D, r = S(!1), d = S(""), h = S(!1), s = S(), v = S([]), _ = S(null), $ = S(null), E = S([]), b = S([]), w = Y(() => {
3130
+ var T;
3131
+ return ((T = _.value) == null ? void 0 : T.dept_name) || "";
3132
+ }), g = (T) => {
3133
+ var U;
3134
+ return ((U = $.value) == null ? void 0 : U.dept_no) === T.dept_no;
3135
+ }, R = (T) => {
3136
+ he().post(`/proxy/sys/dept/api/get_sub_depts/${T}`).then((U) => {
3137
+ v.value = U.data || [];
3138
3138
  });
3139
- }, $ = () => {
3140
- l.disabled || (r.value = !0, D.value = _.value ? { ..._.value } : null, h.value = [{ dept_no: "10000001", dept_name: "迈瑞(Mindray)" }], k("10000001"));
3141
- }, i = () => {
3142
- r.value = !1, d.value = "", g.value = !1, F.value = [];
3139
+ }, L = () => {
3140
+ l.disabled || (r.value = !0, $.value = _.value ? { ..._.value } : null, b.value = [{ dept_no: "10000001", dept_name: "迈瑞(Mindray)" }], R("10000001"));
3141
+ }, u = () => {
3142
+ r.value = !1, d.value = "", h.value = !1, E.value = [];
3143
3143
  }, a = () => {
3144
- g.value = !0;
3145
- }, C = () => {
3146
- var z;
3147
- g.value = !1, d.value = "", F.value = [], (z = s.value) == null || z.blur();
3148
- }, c = (z) => {
3149
- h.value.push({ dept_no: z.dept_no, dept_name: z.dept_name }), k(z.dept_no);
3150
- }, Q = (z) => {
3151
- z.has_children ? c(z) : ne(z);
3152
- }, q = () => {
3153
- if (h.value.length > 1) {
3154
- h.value.pop();
3155
- const z = h.value[h.value.length - 1];
3156
- k(z.dept_no);
3144
+ h.value = !0;
3145
+ }, k = () => {
3146
+ var T;
3147
+ h.value = !1, d.value = "", E.value = [], (T = s.value) == null || T.blur();
3148
+ }, f = (T) => {
3149
+ b.value.push({ dept_no: T.dept_no, dept_name: T.dept_name }), R(T.dept_no);
3150
+ }, X = (T) => {
3151
+ T.has_children ? f(T) : oe(T);
3152
+ }, N = () => {
3153
+ if (b.value.length > 1) {
3154
+ b.value.pop();
3155
+ const T = b.value[b.value.length - 1];
3156
+ R(T.dept_no);
3157
3157
  }
3158
- }, ne = (z) => {
3159
- D.value = z;
3158
+ }, oe = (T) => {
3159
+ $.value = T;
3160
3160
  }, de = () => {
3161
- D.value = null;
3161
+ $.value = null;
3162
3162
  }, se = () => {
3163
- _.value = D.value ? { ...D.value } : null, pe(), i();
3163
+ _.value = $.value ? { ...$.value } : null, pe(), u();
3164
3164
  }, pe = () => {
3165
- var z;
3166
- n("update:modelValue", (z = _.value) == null ? void 0 : z.dept_no), n("change", _.value || void 0);
3165
+ var T;
3166
+ n("update:modelValue", (T = _.value) == null ? void 0 : T.dept_no), n("change", _.value || void 0);
3167
3167
  }, fe = () => {
3168
3168
  _.value = null, n("update:modelValue", void 0), n("change", void 0);
3169
3169
  };
@@ -3171,26 +3171,26 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
3171
3171
  const ae = () => {
3172
3172
  clearTimeout(re), re = setTimeout(() => {
3173
3173
  if (!d.value.trim()) {
3174
- F.value = [];
3174
+ E.value = [];
3175
3175
  return;
3176
3176
  }
3177
- he().post("/proxy/sys/dept/api/search_dept", { keyword: d.value }).then((z) => {
3178
- F.value = z.data || [];
3177
+ he().post("/proxy/sys/dept/api/search_dept", { keyword: d.value }).then((T) => {
3178
+ E.value = T.data || [];
3179
3179
  });
3180
3180
  }, 300);
3181
3181
  }, ve = () => {
3182
- d.value = "", F.value = [];
3182
+ d.value = "", E.value = [];
3183
3183
  };
3184
- return T({
3185
- openDialog: $,
3184
+ return F({
3185
+ openDialog: L,
3186
3186
  getSelectedDept: () => _.value,
3187
3187
  getSelectedId: () => {
3188
- var z;
3189
- return (z = _.value) == null ? void 0 : z.dept_no;
3188
+ var T;
3189
+ return (T = _.value) == null ? void 0 : T.dept_no;
3190
3190
  },
3191
3191
  clear: fe
3192
- }), (z, A) => {
3193
- const X = P("el-icon"), ce = P("el-input"), ge = P("el-tag"), U = P("el-button"), x = P("el-dialog");
3192
+ }), (T, U) => {
3193
+ const J = A("el-icon"), ce = A("el-input"), ge = A("el-tag"), z = A("el-button"), C = A("el-dialog");
3194
3194
  return o(), y("div", {
3195
3195
  class: ie(["busi-dept", { "is-disabled": e.disabled }])
3196
3196
  }, [
@@ -3201,158 +3201,158 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
3201
3201
  disabled: e.disabled,
3202
3202
  readonly: "",
3203
3203
  clearable: e.clearable && _.value !== null,
3204
- onClick: $,
3204
+ onClick: L,
3205
3205
  onClear: fe
3206
3206
  }, {
3207
- suffix: u(() => [
3208
- t(X, {
3207
+ suffix: i(() => [
3208
+ t(J, {
3209
3209
  class: "busi-dept__icon",
3210
- onClick: ye($, ["stop"])
3210
+ onClick: ye(L, ["stop"])
3211
3211
  }, {
3212
- default: u(() => [
3213
- t(L(be))
3212
+ default: i(() => [
3213
+ t(I(be))
3214
3214
  ]),
3215
3215
  _: 1
3216
3216
  })
3217
3217
  ]),
3218
3218
  _: 1
3219
3219
  }, 8, ["model-value", "placeholder", "disabled", "clearable"]),
3220
- t(x, {
3220
+ t(C, {
3221
3221
  modelValue: r.value,
3222
- "onUpdate:modelValue": A[1] || (A[1] = (V) => r.value = V),
3222
+ "onUpdate:modelValue": U[1] || (U[1] = (V) => r.value = V),
3223
3223
  width: "960px",
3224
3224
  "close-on-click-modal": !1,
3225
3225
  "show-close": !1,
3226
3226
  "align-center": "",
3227
3227
  class: "dept-dialog",
3228
- onClose: i
3228
+ onClose: u
3229
3229
  }, {
3230
- header: u(() => [
3231
- f("div", ct, [
3232
- h.value.length > 1 ? (o(), y("span", {
3230
+ header: i(() => [
3231
+ c("div", ct, [
3232
+ b.value.length > 1 ? (o(), y("span", {
3233
3233
  key: 0,
3234
3234
  class: "dept-dialog__back",
3235
- onClick: q
3235
+ onClick: N
3236
3236
  }, [
3237
- t(X, null, {
3238
- default: u(() => [
3239
- t(L(Xe))
3237
+ t(J, null, {
3238
+ default: i(() => [
3239
+ t(I(Xe))
3240
3240
  ]),
3241
3241
  _: 1
3242
3242
  })
3243
3243
  ])) : W("", !0),
3244
- f("span", ft, O(e.dialogTitle), 1),
3245
- f("span", {
3244
+ c("span", ft, H(e.dialogTitle), 1),
3245
+ c("span", {
3246
3246
  class: "dept-dialog__close",
3247
- onClick: i
3247
+ onClick: u
3248
3248
  }, [
3249
- t(X, null, {
3250
- default: u(() => [
3251
- t(L(Ce))
3249
+ t(J, null, {
3250
+ default: i(() => [
3251
+ t(I(Ce))
3252
3252
  ]),
3253
3253
  _: 1
3254
3254
  })
3255
3255
  ])
3256
3256
  ])
3257
3257
  ]),
3258
- footer: u(() => [
3259
- f("div", Dt, [
3260
- f("div", Tt, [
3261
- D.value ? (o(), I(ge, {
3258
+ footer: i(() => [
3259
+ c("div", Dt, [
3260
+ c("div", Tt, [
3261
+ $.value ? (o(), P(ge, {
3262
3262
  key: 0,
3263
3263
  type: "danger",
3264
3264
  closable: "",
3265
3265
  onClose: de
3266
3266
  }, {
3267
- default: u(() => [
3268
- N(O(D.value.dept_name), 1)
3267
+ default: i(() => [
3268
+ O(H($.value.dept_name), 1)
3269
3269
  ]),
3270
3270
  _: 1
3271
3271
  })) : W("", !0)
3272
3272
  ]),
3273
- t(U, {
3273
+ t(z, {
3274
3274
  type: "primary",
3275
3275
  onClick: se
3276
3276
  }, {
3277
- default: u(() => [...A[6] || (A[6] = [
3278
- N("确定", -1)
3277
+ default: i(() => [...U[6] || (U[6] = [
3278
+ O("确定", -1)
3279
3279
  ])]),
3280
3280
  _: 1
3281
3281
  })
3282
3282
  ])
3283
3283
  ]),
3284
- default: u(() => [
3285
- f("div", mt, [
3284
+ default: i(() => [
3285
+ c("div", mt, [
3286
3286
  t(ce, {
3287
3287
  ref_key: "searchInputRef",
3288
3288
  ref: s,
3289
3289
  modelValue: d.value,
3290
- "onUpdate:modelValue": A[0] || (A[0] = (V) => d.value = V),
3290
+ "onUpdate:modelValue": U[0] || (U[0] = (V) => d.value = V),
3291
3291
  placeholder: "搜索部门",
3292
- "prefix-icon": L(be),
3292
+ "prefix-icon": I(be),
3293
3293
  clearable: "",
3294
3294
  onFocus: a,
3295
3295
  onInput: ae,
3296
3296
  onClear: ve
3297
3297
  }, null, 8, ["modelValue", "prefix-icon"]),
3298
- g.value ? (o(), y("span", {
3298
+ h.value ? (o(), y("span", {
3299
3299
  key: 0,
3300
3300
  class: "dept-dialog__search-cancel",
3301
- onClick: C
3301
+ onClick: k
3302
3302
  }, "取消")) : W("", !0)
3303
3303
  ]),
3304
- g.value ? (o(), y("div", pt, [
3305
- (o(!0), y(G, null, oe(F.value, (V) => (o(), y("div", {
3304
+ h.value ? (o(), y("div", pt, [
3305
+ (o(!0), y(G, null, ne(E.value, (V) => (o(), y("div", {
3306
3306
  key: V.dept_no,
3307
3307
  class: "dept-dialog__item",
3308
- onClick: (Y) => ne(V)
3308
+ onClick: (q) => oe(V)
3309
3309
  }, [
3310
- A[2] || (A[2] = f("div", { class: "dept-dialog__item-avatar" }, [
3311
- f("i", { class: "iconfont icon-zuzhibumen" })
3310
+ U[2] || (U[2] = c("div", { class: "dept-dialog__item-avatar" }, [
3311
+ c("i", { class: "iconfont icon-zuzhibumen" })
3312
3312
  ], -1)),
3313
- f("div", gt, [
3314
- f("div", ht, O(V.dept_name), 1),
3315
- f("div", bt, O(V.dept_pname), 1)
3313
+ c("div", gt, [
3314
+ c("div", ht, H(V.dept_name), 1),
3315
+ c("div", bt, H(V.dept_pname), 1)
3316
3316
  ]),
3317
- f("div", yt, [
3318
- f("span", {
3319
- class: ie(["dept-dialog__checkbox", { "is-checked": b(V) }])
3317
+ c("div", yt, [
3318
+ c("span", {
3319
+ class: ie(["dept-dialog__checkbox", { "is-checked": g(V) }])
3320
3320
  }, null, 2)
3321
3321
  ])
3322
3322
  ], 8, vt))), 128)),
3323
- d.value && F.value.length === 0 ? (o(), y("div", _t, " 未找到相关部门 ")) : W("", !0),
3323
+ d.value && E.value.length === 0 ? (o(), y("div", _t, " 未找到相关部门 ")) : W("", !0),
3324
3324
  d.value ? W("", !0) : (o(), y("div", wt, [
3325
- t(X, { class: "dept-dialog__empty-icon" }, {
3326
- default: u(() => [
3327
- t(L(be))
3325
+ t(J, { class: "dept-dialog__empty-icon" }, {
3326
+ default: i(() => [
3327
+ t(I(be))
3328
3328
  ]),
3329
3329
  _: 1
3330
3330
  }),
3331
- A[3] || (A[3] = f("div", null, "请输入关键词搜索", -1))
3331
+ U[3] || (U[3] = c("div", null, "请输入关键词搜索", -1))
3332
3332
  ]))
3333
3333
  ])) : (o(), y("div", Vt, [
3334
- (o(!0), y(G, null, oe(v.value, (V) => (o(), y("div", {
3334
+ (o(!0), y(G, null, ne(v.value, (V) => (o(), y("div", {
3335
3335
  key: V.dept_no,
3336
3336
  class: "dept-dialog__item",
3337
- onClick: (Y) => Q(V)
3337
+ onClick: (q) => X(V)
3338
3338
  }, [
3339
- f("div", {
3339
+ c("div", {
3340
3340
  class: "dept-dialog__item-check",
3341
- onClick: ye((Y) => ne(V), ["stop"])
3341
+ onClick: ye((q) => oe(V), ["stop"])
3342
3342
  }, [
3343
- f("span", {
3344
- class: ie(["dept-dialog__checkbox", { "is-checked": b(V) }])
3343
+ c("span", {
3344
+ class: ie(["dept-dialog__checkbox", { "is-checked": g(V) }])
3345
3345
  }, null, 2)
3346
3346
  ], 8, Ct),
3347
- A[5] || (A[5] = f("div", { class: "dept-dialog__item-avatar" }, [
3348
- f("i", { class: "iconfont icon-zuzhibumen" })
3347
+ U[5] || (U[5] = c("div", { class: "dept-dialog__item-avatar" }, [
3348
+ c("i", { class: "iconfont icon-zuzhibumen" })
3349
3349
  ], -1)),
3350
- f("div", xt, [
3351
- f("div", Bt, O(V.dept_name), 1),
3352
- f("div", Et, O(V.dept_pname), 1)
3350
+ c("div", xt, [
3351
+ c("div", Bt, H(V.dept_name), 1),
3352
+ c("div", Et, H(V.dept_pname), 1)
3353
3353
  ]),
3354
- V.has_children ? (o(), y("div", $t, [...A[4] || (A[4] = [
3355
- f("i", { class: "iconfont icon-arrow-right" }, null, -1)
3354
+ V.has_children ? (o(), y("div", $t, [...U[4] || (U[4] = [
3355
+ c("i", { class: "iconfont icon-arrow-right" }, null, -1)
3356
3356
  ])])) : W("", !0)
3357
3357
  ], 8, kt))), 128)),
3358
3358
  v.value.length === 0 ? (o(), y("div", Ft, " 暂无数据 ")) : W("", !0)
@@ -3375,56 +3375,56 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
3375
3375
  clearable: { type: Boolean, default: !0 }
3376
3376
  },
3377
3377
  emits: ["update:modelValue", "change"],
3378
- setup(e, { expose: T, emit: S }) {
3379
- const l = e, n = S, r = R(!1), d = R(!1), g = Te({
3378
+ setup(e, { expose: F, emit: D }) {
3379
+ const l = e, n = D, r = S(!1), d = S(!1), h = Te({
3380
3380
  username: "",
3381
3381
  userno: ""
3382
3382
  }), s = Te({
3383
3383
  currentPage: 1,
3384
3384
  pageSize: 10,
3385
3385
  total: 0
3386
- }), v = R([]), _ = R(null), D = R(""), F = K(() => {
3387
- var C;
3388
- return ((C = _.value) == null ? void 0 : C.username) || "";
3389
- }), h = async () => {
3386
+ }), v = S([]), _ = S(null), $ = S(""), E = Y(() => {
3387
+ var k;
3388
+ return ((k = _.value) == null ? void 0 : k.username) || "";
3389
+ }), b = async () => {
3390
3390
  d.value = !0;
3391
3391
  try {
3392
- const C = [g.username, g.userno].filter(Boolean).join(" "), c = await he().post("/proxy/sys/outuser/api/list", {
3392
+ const k = [h.username, h.userno].filter(Boolean).join(" "), f = await he().post("/proxy/sys/outuser/api/list", {
3393
3393
  currentPage: s.currentPage,
3394
3394
  pageSize: s.pageSize,
3395
- keywords: C
3395
+ keywords: k
3396
3396
  });
3397
- v.value = c.data.items || [], s.total = c.data.total_items || 0;
3397
+ v.value = f.data.items || [], s.total = f.data.total_items || 0;
3398
3398
  } finally {
3399
3399
  d.value = !1;
3400
3400
  }
3401
3401
  }, w = () => {
3402
- var C;
3403
- l.disabled || (r.value = !0, D.value = ((C = _.value) == null ? void 0 : C.fid) || "", s.currentPage = 1, g.username = "", g.userno = "", h());
3404
- }, b = () => {
3402
+ var k;
3403
+ l.disabled || (r.value = !0, $.value = ((k = _.value) == null ? void 0 : k.fid) || "", s.currentPage = 1, h.username = "", h.userno = "", b());
3404
+ }, g = () => {
3405
3405
  r.value = !1;
3406
- }, k = () => {
3407
- s.currentPage = 1, h();
3408
- }, $ = (C) => {
3409
- D.value = C.fid;
3410
- }, i = () => {
3411
- const C = v.value.find((c) => c.fid === D.value);
3412
- C && (_.value = C, n("update:modelValue", C.userno), n("change", C)), b();
3406
+ }, R = () => {
3407
+ s.currentPage = 1, b();
3408
+ }, L = (k) => {
3409
+ $.value = k.fid;
3410
+ }, u = () => {
3411
+ const k = v.value.find((f) => f.fid === $.value);
3412
+ k && (_.value = k, n("update:modelValue", k.userno), n("change", k)), g();
3413
3413
  }, a = () => {
3414
3414
  _.value = null, n("update:modelValue", void 0), n("change", void 0);
3415
3415
  };
3416
- return T({
3416
+ return F({
3417
3417
  openDialog: w,
3418
3418
  getSelectedUser: () => _.value,
3419
3419
  clear: a
3420
- }), (C, c) => {
3421
- const Q = P("el-icon"), q = P("el-input"), ne = P("el-button"), de = P("el-radio"), se = P("el-table-column"), pe = P("el-table"), fe = P("el-dialog"), re = Ye("loading");
3420
+ }), (k, f) => {
3421
+ const X = A("el-icon"), N = A("el-input"), oe = A("el-button"), de = A("el-radio"), se = A("el-table-column"), pe = A("el-table"), fe = A("el-dialog"), re = Ye("loading");
3422
3422
  return o(), y("div", {
3423
3423
  class: ie(["busi-outuser", { "is-disabled": e.disabled }])
3424
3424
  }, [
3425
- t(q, {
3425
+ t(N, {
3426
3426
  class: "busi-outuser__search",
3427
- "model-value": F.value,
3427
+ "model-value": E.value,
3428
3428
  placeholder: e.placeholder,
3429
3429
  disabled: e.disabled,
3430
3430
  readonly: "",
@@ -3432,13 +3432,13 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
3432
3432
  onClick: w,
3433
3433
  onClear: a
3434
3434
  }, {
3435
- suffix: u(() => [
3436
- t(Q, {
3435
+ suffix: i(() => [
3436
+ t(X, {
3437
3437
  class: "busi-outuser__icon",
3438
3438
  onClick: ye(w, ["stop"])
3439
3439
  }, {
3440
- default: u(() => [
3441
- t(L(be))
3440
+ default: i(() => [
3441
+ t(I(be))
3442
3442
  ]),
3443
3443
  _: 1
3444
3444
  })
@@ -3447,96 +3447,96 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
3447
3447
  }, 8, ["model-value", "placeholder", "disabled", "clearable"]),
3448
3448
  t(fe, {
3449
3449
  modelValue: r.value,
3450
- "onUpdate:modelValue": c[6] || (c[6] = (ae) => r.value = ae),
3450
+ "onUpdate:modelValue": f[6] || (f[6] = (ae) => r.value = ae),
3451
3451
  width: "960px",
3452
3452
  "close-on-click-modal": !1,
3453
3453
  "show-close": !1,
3454
3454
  "align-center": "",
3455
3455
  class: "outuser-dialog",
3456
- onClose: b
3456
+ onClose: g
3457
3457
  }, {
3458
- header: u(() => [
3459
- f("div", St, [
3460
- c[7] || (c[7] = f("span", { class: "outuser-dialog__title" }, "选择外包顾问", -1)),
3461
- f("span", {
3458
+ header: i(() => [
3459
+ c("div", St, [
3460
+ f[7] || (f[7] = c("span", { class: "outuser-dialog__title" }, "选择外包顾问", -1)),
3461
+ c("span", {
3462
3462
  class: "outuser-dialog__close",
3463
- onClick: b
3463
+ onClick: g
3464
3464
  }, [
3465
- t(Q, null, {
3466
- default: u(() => [
3467
- t(L(Ce))
3465
+ t(X, null, {
3466
+ default: i(() => [
3467
+ t(I(Ce))
3468
3468
  ]),
3469
3469
  _: 1
3470
3470
  })
3471
3471
  ])
3472
3472
  ])
3473
3473
  ]),
3474
- footer: u(() => [
3475
- f("div", It, [
3476
- t(ne, { onClick: b }, {
3477
- default: u(() => [...c[11] || (c[11] = [
3478
- N("取消", -1)
3474
+ footer: i(() => [
3475
+ c("div", It, [
3476
+ t(oe, { onClick: g }, {
3477
+ default: i(() => [...f[11] || (f[11] = [
3478
+ O("取消", -1)
3479
3479
  ])]),
3480
3480
  _: 1
3481
3481
  }),
3482
- t(ne, {
3482
+ t(oe, {
3483
3483
  type: "primary",
3484
- onClick: i
3484
+ onClick: u
3485
3485
  }, {
3486
- default: u(() => [...c[12] || (c[12] = [
3487
- N("确定", -1)
3486
+ default: i(() => [...f[12] || (f[12] = [
3487
+ O("确定", -1)
3488
3488
  ])]),
3489
3489
  _: 1
3490
3490
  })
3491
3491
  ])
3492
3492
  ]),
3493
- default: u(() => [
3494
- f("div", zt, [
3495
- f("div", Rt, [
3496
- c[8] || (c[8] = f("span", { class: "outuser-dialog__filter-label" }, "姓名", -1)),
3497
- t(q, {
3498
- modelValue: g.username,
3499
- "onUpdate:modelValue": c[0] || (c[0] = (ae) => g.username = ae),
3493
+ default: i(() => [
3494
+ c("div", zt, [
3495
+ c("div", Rt, [
3496
+ f[8] || (f[8] = c("span", { class: "outuser-dialog__filter-label" }, "姓名", -1)),
3497
+ t(N, {
3498
+ modelValue: h.username,
3499
+ "onUpdate:modelValue": f[0] || (f[0] = (ae) => h.username = ae),
3500
3500
  placeholder: "",
3501
3501
  clearable: ""
3502
3502
  }, null, 8, ["modelValue"])
3503
3503
  ]),
3504
- f("div", Ut, [
3505
- c[9] || (c[9] = f("span", { class: "outuser-dialog__filter-label" }, "工号", -1)),
3506
- t(q, {
3507
- modelValue: g.userno,
3508
- "onUpdate:modelValue": c[1] || (c[1] = (ae) => g.userno = ae),
3504
+ c("div", Ut, [
3505
+ f[9] || (f[9] = c("span", { class: "outuser-dialog__filter-label" }, "工号", -1)),
3506
+ t(N, {
3507
+ modelValue: h.userno,
3508
+ "onUpdate:modelValue": f[1] || (f[1] = (ae) => h.userno = ae),
3509
3509
  placeholder: "",
3510
3510
  clearable: ""
3511
3511
  }, null, 8, ["modelValue"])
3512
3512
  ]),
3513
- t(ne, { onClick: k }, {
3514
- default: u(() => [...c[10] || (c[10] = [
3515
- f("i", { class: "iconfont icon-search" }, null, -1),
3516
- N(" 搜 索 ", -1)
3513
+ t(oe, { onClick: R }, {
3514
+ default: i(() => [...f[10] || (f[10] = [
3515
+ c("i", { class: "iconfont icon-search" }, null, -1),
3516
+ O(" 搜 索 ", -1)
3517
3517
  ])]),
3518
3518
  _: 1
3519
3519
  })
3520
3520
  ]),
3521
- f("div", At, [
3522
- qe((o(), I(pe, {
3521
+ c("div", At, [
3522
+ qe((o(), P(pe, {
3523
3523
  data: v.value,
3524
3524
  border: "",
3525
3525
  class: "outuser-dialog__table",
3526
- onRowClick: $
3526
+ onRowClick: L
3527
3527
  }, {
3528
- default: u(() => [
3528
+ default: i(() => [
3529
3529
  t(se, {
3530
3530
  label: "选择",
3531
3531
  width: "60",
3532
3532
  align: "center"
3533
3533
  }, {
3534
- default: u(({ row: ae }) => [
3534
+ default: i(({ row: ae }) => [
3535
3535
  t(de, {
3536
- modelValue: D.value,
3537
- "onUpdate:modelValue": c[2] || (c[2] = (ve) => D.value = ve),
3536
+ modelValue: $.value,
3537
+ "onUpdate:modelValue": f[2] || (f[2] = (ve) => $.value = ve),
3538
3538
  value: ae.fid,
3539
- onClick: c[3] || (c[3] = ye(() => {
3539
+ onClick: f[3] || (f[3] = ye(() => {
3540
3540
  }, ["stop"]))
3541
3541
  }, null, 8, ["modelValue", "value"])
3542
3542
  ]),
@@ -3578,15 +3578,15 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
3578
3578
  [re, d.value]
3579
3579
  ])
3580
3580
  ]),
3581
- f("div", Pt, [
3581
+ c("div", Pt, [
3582
3582
  t(Fa, {
3583
3583
  page: s.currentPage,
3584
- "onUpdate:page": c[4] || (c[4] = (ae) => s.currentPage = ae),
3584
+ "onUpdate:page": f[4] || (f[4] = (ae) => s.currentPage = ae),
3585
3585
  size: s.pageSize,
3586
- "onUpdate:size": c[5] || (c[5] = (ae) => s.pageSize = ae),
3586
+ "onUpdate:size": f[5] || (f[5] = (ae) => s.pageSize = ae),
3587
3587
  total: s.total,
3588
3588
  layout: "sizes, prev, pager, next, jumper, total",
3589
- onChange: h
3589
+ onChange: b
3590
3590
  }, null, 8, ["page", "size", "total"])
3591
3591
  ])
3592
3592
  ]),
@@ -3603,11 +3603,11 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
3603
3603
  user: { default: null }
3604
3604
  },
3605
3605
  emits: ["update:modelValue", "close", "submit"],
3606
- setup(e, { emit: T }) {
3607
- const S = e, l = T, n = K({
3608
- get: () => S.modelValue,
3606
+ setup(e, { emit: F }) {
3607
+ const D = e, l = F, n = Y({
3608
+ get: () => D.modelValue,
3609
3609
  set: (w) => l("update:modelValue", w)
3610
- }), r = K(() => S.mode === "edit"), d = K(() => r.value ? "编辑用户信息" : "新增用户信息"), g = K(() => r.value ? kl : Ge), s = Te({
3610
+ }), r = Y(() => D.mode === "edit"), d = Y(() => r.value ? "编辑用户信息" : "新增用户信息"), h = Y(() => r.value ? kl : Ge), s = Te({
3611
3611
  userno: "",
3612
3612
  username: "",
3613
3613
  password: "",
@@ -3616,51 +3616,51 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
3616
3616
  phone: "",
3617
3617
  is_active: !1,
3618
3618
  is_admin: !1
3619
- }), v = R(null), _ = () => {
3620
- var w, b;
3621
- v.value && ((b = (w = v.value).resetFields) == null || b.call(w)), s.userno = "", s.username = "", s.password = "", s.confirm_password = "", s.email = "", s.phone = "", s.is_active = !1, s.is_admin = !1;
3619
+ }), v = S(null), _ = () => {
3620
+ var w, g;
3621
+ v.value && ((g = (w = v.value).resetFields) == null || g.call(w)), s.userno = "", s.username = "", s.password = "", s.confirm_password = "", s.email = "", s.phone = "", s.is_active = !1, s.is_admin = !1;
3622
3622
  };
3623
3623
  ke(
3624
- () => ({ mode: S.mode, user: S.user, visible: S.modelValue }),
3625
- ({ mode: w, user: b, visible: k }) => {
3626
- k && (_(), w === "edit" && b && (s.userno = b.userno ?? "", s.username = b.username ?? "", s.email = b.email ?? "", s.phone = b.phone ?? "", s.is_active = b.is_active ?? !1, s.is_admin = b.is_admin ?? !1, s.password = "", s.confirm_password = ""));
3624
+ () => ({ mode: D.mode, user: D.user, visible: D.modelValue }),
3625
+ ({ mode: w, user: g, visible: R }) => {
3626
+ R && (_(), w === "edit" && g && (s.userno = g.userno ?? "", s.username = g.username ?? "", s.email = g.email ?? "", s.phone = g.phone ?? "", s.is_active = g.is_active ?? !1, s.is_admin = g.is_admin ?? !1, s.password = "", s.confirm_password = ""));
3627
3627
  },
3628
3628
  { immediate: !1 }
3629
3629
  );
3630
- const D = () => {
3630
+ const $ = () => {
3631
3631
  l("update:modelValue", !1), l("close");
3632
- }, F = () => s.userno ? s.username ? s.phone ? s.email ? s.password ? s.password !== s.confirm_password ? (Be.warning("两次输入的密码不一致"), !1) : !0 : (Be.warning("请输入密码"), !1) : (Be.warning("请输入邮箱"), !1) : (Be.warning("请输入手机号码"), !1) : (Be.warning("请输入姓名"), !1) : (Be.warning("请输入工号"), !1), h = async () => {
3633
- if (!F()) return;
3632
+ }, E = () => s.userno ? s.username ? s.phone ? s.email ? s.password ? s.password !== s.confirm_password ? (Be.warning("两次输入的密码不一致"), !1) : !0 : (Be.warning("请输入密码"), !1) : (Be.warning("请输入邮箱"), !1) : (Be.warning("请输入手机号码"), !1) : (Be.warning("请输入姓名"), !1) : (Be.warning("请输入工号"), !1), b = async () => {
3633
+ if (!E()) return;
3634
3634
  const w = { ...s };
3635
3635
  l("submit", { mode: r.value ? "edit" : "add", data: w });
3636
3636
  };
3637
- return (w, b) => {
3638
- const k = P("el-input"), $ = P("el-form-item"), i = P("el-switch"), a = P("el-form"), C = P("el-button");
3639
- return o(), I(da, {
3637
+ return (w, g) => {
3638
+ const R = A("el-input"), L = A("el-form-item"), u = A("el-switch"), a = A("el-form"), k = A("el-button");
3639
+ return o(), P(da, {
3640
3640
  modelValue: n.value,
3641
- "onUpdate:modelValue": b[8] || (b[8] = (c) => n.value = c),
3641
+ "onUpdate:modelValue": g[8] || (g[8] = (f) => n.value = f),
3642
3642
  title: d.value,
3643
- icon: g.value,
3643
+ icon: h.value,
3644
3644
  width: "600px"
3645
3645
  }, {
3646
- footer: u(() => [
3647
- t(C, { onClick: D }, {
3648
- default: u(() => [...b[9] || (b[9] = [
3649
- N("取消", -1)
3646
+ footer: i(() => [
3647
+ t(k, { onClick: $ }, {
3648
+ default: i(() => [...g[9] || (g[9] = [
3649
+ O("取消", -1)
3650
3650
  ])]),
3651
3651
  _: 1
3652
3652
  }),
3653
- t(C, {
3653
+ t(k, {
3654
3654
  type: "primary",
3655
- onClick: h
3655
+ onClick: b
3656
3656
  }, {
3657
- default: u(() => [...b[10] || (b[10] = [
3658
- N("确认", -1)
3657
+ default: i(() => [...g[10] || (g[10] = [
3658
+ O("确认", -1)
3659
3659
  ])]),
3660
3660
  _: 1
3661
3661
  })
3662
3662
  ]),
3663
- default: u(() => [
3663
+ default: i(() => [
3664
3664
  t(a, {
3665
3665
  ref_key: "formRef",
3666
3666
  ref: v,
@@ -3668,73 +3668,73 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
3668
3668
  "label-width": "100px",
3669
3669
  class: "form-dialog-body"
3670
3670
  }, {
3671
- default: u(() => [
3672
- t($, {
3671
+ default: i(() => [
3672
+ t(L, {
3673
3673
  label: "工号",
3674
3674
  required: "",
3675
3675
  for: ""
3676
3676
  }, {
3677
- default: u(() => [
3678
- t(k, {
3677
+ default: i(() => [
3678
+ t(R, {
3679
3679
  modelValue: s.userno,
3680
- "onUpdate:modelValue": b[0] || (b[0] = (c) => s.userno = c),
3680
+ "onUpdate:modelValue": g[0] || (g[0] = (f) => s.userno = f),
3681
3681
  disabled: r.value,
3682
3682
  placeholder: "创建后不可修改"
3683
3683
  }, null, 8, ["modelValue", "disabled"])
3684
3684
  ]),
3685
3685
  _: 1
3686
3686
  }),
3687
- t($, {
3687
+ t(L, {
3688
3688
  label: "姓名",
3689
3689
  required: "",
3690
3690
  for: ""
3691
3691
  }, {
3692
- default: u(() => [
3693
- t(k, {
3692
+ default: i(() => [
3693
+ t(R, {
3694
3694
  modelValue: s.username,
3695
- "onUpdate:modelValue": b[1] || (b[1] = (c) => s.username = c),
3695
+ "onUpdate:modelValue": g[1] || (g[1] = (f) => s.username = f),
3696
3696
  placeholder: "请输入姓名"
3697
3697
  }, null, 8, ["modelValue"])
3698
3698
  ]),
3699
3699
  _: 1
3700
3700
  }),
3701
- t($, {
3701
+ t(L, {
3702
3702
  label: "手机号码",
3703
3703
  required: "",
3704
3704
  for: ""
3705
3705
  }, {
3706
- default: u(() => [
3707
- t(k, {
3706
+ default: i(() => [
3707
+ t(R, {
3708
3708
  modelValue: s.phone,
3709
- "onUpdate:modelValue": b[2] || (b[2] = (c) => s.phone = c),
3709
+ "onUpdate:modelValue": g[2] || (g[2] = (f) => s.phone = f),
3710
3710
  placeholder: "请输入手机号码"
3711
3711
  }, null, 8, ["modelValue"])
3712
3712
  ]),
3713
3713
  _: 1
3714
3714
  }),
3715
- t($, {
3715
+ t(L, {
3716
3716
  label: "邮箱",
3717
3717
  required: "",
3718
3718
  for: ""
3719
3719
  }, {
3720
- default: u(() => [
3721
- t(k, {
3720
+ default: i(() => [
3721
+ t(R, {
3722
3722
  modelValue: s.email,
3723
- "onUpdate:modelValue": b[3] || (b[3] = (c) => s.email = c),
3723
+ "onUpdate:modelValue": g[3] || (g[3] = (f) => s.email = f),
3724
3724
  placeholder: "请输入邮箱"
3725
3725
  }, null, 8, ["modelValue"])
3726
3726
  ]),
3727
3727
  _: 1
3728
3728
  }),
3729
- t($, {
3729
+ t(L, {
3730
3730
  label: "密码",
3731
3731
  required: "",
3732
3732
  for: ""
3733
3733
  }, {
3734
- default: u(() => [
3735
- t(k, {
3734
+ default: i(() => [
3735
+ t(R, {
3736
3736
  modelValue: s.password,
3737
- "onUpdate:modelValue": b[4] || (b[4] = (c) => s.password = c),
3737
+ "onUpdate:modelValue": g[4] || (g[4] = (f) => s.password = f),
3738
3738
  type: "password",
3739
3739
  autocomplete: "off",
3740
3740
  placeholder: "请输入密码"
@@ -3742,15 +3742,15 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
3742
3742
  ]),
3743
3743
  _: 1
3744
3744
  }),
3745
- t($, {
3745
+ t(L, {
3746
3746
  label: "确认密码",
3747
3747
  required: "",
3748
3748
  for: ""
3749
3749
  }, {
3750
- default: u(() => [
3751
- t(k, {
3750
+ default: i(() => [
3751
+ t(R, {
3752
3752
  modelValue: s.confirm_password,
3753
- "onUpdate:modelValue": b[5] || (b[5] = (c) => s.confirm_password = c),
3753
+ "onUpdate:modelValue": g[5] || (g[5] = (f) => s.confirm_password = f),
3754
3754
  type: "password",
3755
3755
  autocomplete: "off",
3756
3756
  placeholder: "请再次输入密码"
@@ -3758,20 +3758,20 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
3758
3758
  ]),
3759
3759
  _: 1
3760
3760
  }),
3761
- t($, { label: "状态" }, {
3762
- default: u(() => [
3763
- t(i, {
3761
+ t(L, { label: "状态" }, {
3762
+ default: i(() => [
3763
+ t(u, {
3764
3764
  modelValue: s.is_active,
3765
- "onUpdate:modelValue": b[6] || (b[6] = (c) => s.is_active = c)
3765
+ "onUpdate:modelValue": g[6] || (g[6] = (f) => s.is_active = f)
3766
3766
  }, null, 8, ["modelValue"])
3767
3767
  ]),
3768
3768
  _: 1
3769
3769
  }),
3770
- t($, { label: "管理员权限" }, {
3771
- default: u(() => [
3772
- t(i, {
3770
+ t(L, { label: "管理员权限" }, {
3771
+ default: i(() => [
3772
+ t(u, {
3773
3773
  modelValue: s.is_admin,
3774
- "onUpdate:modelValue": b[7] || (b[7] = (c) => s.is_admin = c)
3774
+ "onUpdate:modelValue": g[7] || (g[7] = (f) => s.is_admin = f)
3775
3775
  }, null, 8, ["modelValue"])
3776
3776
  ]),
3777
3777
  _: 1
@@ -3811,59 +3811,59 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
3811
3811
  loading: { type: Boolean, default: !1 }
3812
3812
  },
3813
3813
  emits: ["rendered", "error"],
3814
- setup(e, { expose: T, emit: S }) {
3815
- const l = Fe(async () => (await Promise.resolve({ }), (await import("./vue-office-docx-q6qJ2vqb.js")).default)), n = Fe(async () => (await Promise.resolve({ }), (await import("./vue-office-excel-B3pq0cRz.js")).default)), r = Fe(async () => (await import("./vue-office-pdf-DOPbwMbO.js")).default), d = e, g = S, s = K(() => {
3816
- const F = d.fileExt.toLowerCase();
3817
- return ["png", "jpg", "jpeg", "gif", "bmp", "webp"].includes(F) ? "image" : F === "pdf" ? "pdf" : ["doc", "docx"].includes(F) ? "docx" : ["xls", "xlsx"].includes(F) ? "excel" : "unsupported";
3818
- }), v = K(() => s.value !== "unsupported");
3814
+ setup(e, { expose: F, emit: D }) {
3815
+ const l = Fe(async () => (await Promise.resolve({ }), (await import("./vue-office-docx-q6qJ2vqb.js")).default)), n = Fe(async () => (await Promise.resolve({ }), (await import("./vue-office-excel-B3pq0cRz.js")).default)), r = Fe(async () => (await import("./vue-office-pdf-DOPbwMbO.js")).default), d = e, h = D, s = Y(() => {
3816
+ const E = d.fileExt.toLowerCase();
3817
+ return ["png", "jpg", "jpeg", "gif", "bmp", "webp"].includes(E) ? "image" : E === "pdf" ? "pdf" : ["doc", "docx"].includes(E) ? "docx" : ["xls", "xlsx"].includes(E) ? "excel" : "unsupported";
3818
+ }), v = Y(() => s.value !== "unsupported");
3819
3819
  function _() {
3820
- g("rendered");
3820
+ h("rendered");
3821
3821
  }
3822
- function D(F) {
3823
- g("error", F);
3822
+ function $(E) {
3823
+ h("error", E);
3824
3824
  }
3825
- return T({
3825
+ return F({
3826
3826
  previewType: s,
3827
3827
  isSupported: v
3828
- }), (F, h) => {
3829
- const w = P("el-icon"), b = P("el-empty");
3828
+ }), (E, b) => {
3829
+ const w = A("el-icon"), g = A("el-empty");
3830
3830
  return o(), y("div", Mt, [
3831
3831
  e.loading ? (o(), y("div", Nt, [
3832
3832
  t(w, { class: "loading-icon" }, {
3833
- default: u(() => [
3834
- t(L(Cl))
3833
+ default: i(() => [
3834
+ t(I(Cl))
3835
3835
  ]),
3836
3836
  _: 1
3837
3837
  }),
3838
- h[0] || (h[0] = f("span", null, "加载中...", -1))
3838
+ b[0] || (b[0] = c("span", null, "加载中...", -1))
3839
3839
  ])) : (o(), y(G, { key: 1 }, [
3840
3840
  s.value === "image" ? (o(), y("div", Ot, [
3841
- f("img", {
3841
+ c("img", {
3842
3842
  src: e.src,
3843
3843
  alt: e.fileName
3844
3844
  }, null, 8, Ht)
3845
3845
  ])) : s.value === "pdf" ? (o(), y("div", jt, [
3846
- t(L(r), {
3846
+ t(I(r), {
3847
3847
  src: e.src,
3848
3848
  onRendered: _,
3849
- onError: D
3849
+ onError: $
3850
3850
  }, null, 8, ["src"])
3851
3851
  ])) : s.value === "docx" ? (o(), y("div", Kt, [
3852
- t(L(l), {
3852
+ t(I(l), {
3853
3853
  src: e.src,
3854
3854
  onRendered: _,
3855
- onError: D
3855
+ onError: $
3856
3856
  }, null, 8, ["src"])
3857
3857
  ])) : s.value === "excel" ? (o(), y("div", Yt, [
3858
- t(L(n), {
3858
+ t(I(n), {
3859
3859
  src: e.src,
3860
3860
  onRendered: _,
3861
- onError: D
3861
+ onError: $
3862
3862
  }, null, 8, ["src"])
3863
3863
  ])) : (o(), y("div", qt, [
3864
- t(b, { description: "该文件类型不支持在线预览" }, {
3865
- default: u(() => [
3866
- Ve(F.$slots, "unsupported-action", {}, void 0, !0)
3864
+ t(g, { description: "该文件类型不支持在线预览" }, {
3865
+ default: i(() => [
3866
+ Ve(E.$slots, "unsupported-action", {}, void 0, !0)
3867
3867
  ]),
3868
3868
  _: 3
3869
3869
  })
@@ -3887,13 +3887,13 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
3887
3887
  watermarkText: { default: "" }
3888
3888
  },
3889
3889
  setup(e) {
3890
- const T = e, S = R(!0), l = R(""), n = R(""), r = R();
3890
+ const F = e, D = S(!0), l = S(""), n = S(""), r = S();
3891
3891
  function d() {
3892
- if (!r.value || !T.watermarkText) return;
3892
+ if (!r.value || !F.watermarkText) return;
3893
3893
  const v = document.createElement("canvas"), _ = v.getContext("2d");
3894
- _ && (v.width = 200, v.height = 150, _.font = "16px Arial", _.fillStyle = "rgba(0, 0, 0, 0.12)", _.textAlign = "center", _.textBaseline = "middle", _.translate(v.width / 2, v.height / 2), _.rotate(-25 * Math.PI / 180), _.fillText(T.watermarkText, 0, 0), r.value.style.backgroundImage = `url(${v.toDataURL("image/png")})`);
3894
+ _ && (v.width = 200, v.height = 150, _.font = "16px Arial", _.fillStyle = "rgba(0, 0, 0, 0.12)", _.textAlign = "center", _.textBaseline = "middle", _.translate(v.width / 2, v.height / 2), _.rotate(-25 * Math.PI / 180), _.fillText(F.watermarkText, 0, 0), r.value.style.backgroundImage = `url(${v.toDataURL("image/png")})`);
3895
3895
  }
3896
- function g(v) {
3896
+ function h(v) {
3897
3897
  return {
3898
3898
  pdf: "application/pdf",
3899
3899
  png: "image/png",
@@ -3909,44 +3909,44 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
3909
3909
  }[v.toLowerCase()] || "application/octet-stream";
3910
3910
  }
3911
3911
  async function s() {
3912
- if (!T.fid) {
3913
- l.value = "文件ID不能为空", S.value = !1;
3912
+ if (!F.fid) {
3913
+ l.value = "文件ID不能为空", D.value = !1;
3914
3914
  return;
3915
3915
  }
3916
- T.fileName && (document.title = `预览 - ${T.fileName}`);
3916
+ F.fileName && (document.title = `预览 - ${F.fileName}`);
3917
3917
  try {
3918
- const _ = await he().get(`/proxy/workflow/attachment/api/preview/${T.fid}`, {
3918
+ const _ = await he().get(`/proxy/workflow/attachment/api/preview/${F.fid}`, {
3919
3919
  responseType: "blob"
3920
- }), D = g(T.fileExt), F = new Blob([_], { type: D });
3921
- n.value = window.URL.createObjectURL(F);
3920
+ }), $ = h(F.fileExt), E = new Blob([_], { type: $ });
3921
+ n.value = window.URL.createObjectURL(E);
3922
3922
  } catch (v) {
3923
3923
  console.error("加载文件失败:", v), l.value = "加载文件失败,请稍后重试";
3924
3924
  } finally {
3925
- S.value = !1;
3925
+ D.value = !1;
3926
3926
  }
3927
3927
  }
3928
3928
  return el(() => {
3929
3929
  n.value && window.URL.revokeObjectURL(n.value);
3930
- }), ke(() => T.fid, (v) => {
3931
- v && (S.value = !0, l.value = "", n.value && (window.URL.revokeObjectURL(n.value), n.value = ""), s());
3930
+ }), ke(() => F.fid, (v) => {
3931
+ v && (D.value = !0, l.value = "", n.value && (window.URL.revokeObjectURL(n.value), n.value = ""), s());
3932
3932
  }), Se(() => {
3933
3933
  d(), s();
3934
3934
  }), (v, _) => {
3935
- const D = P("el-empty");
3935
+ const $ = A("el-empty");
3936
3936
  return o(), y("div", Xt, [
3937
- f("div", {
3937
+ c("div", {
3938
3938
  class: "watermark-layer",
3939
3939
  ref_key: "watermarkRef",
3940
3940
  ref: r
3941
3941
  }, null, 512),
3942
3942
  l.value ? (o(), y("div", Jt, [
3943
- t(D, { description: l.value }, null, 8, ["description"])
3943
+ t($, { description: l.value }, null, 8, ["description"])
3944
3944
  ])) : (o(), y("div", Qt, [
3945
3945
  t(Gt, {
3946
3946
  src: n.value,
3947
- "file-ext": T.fileExt,
3948
- "file-name": T.fileName,
3949
- loading: S.value
3947
+ "file-ext": F.fileExt,
3948
+ "file-name": F.fileName,
3949
+ loading: D.value
3950
3950
  }, null, 8, ["src", "file-ext", "file-name", "loading"])
3951
3951
  ]))
3952
3952
  ]);
@@ -3960,107 +3960,92 @@ const Ea = { class: "page-pagination" }, $a = /* @__PURE__ */ ee({
3960
3960
  currentPath: { default: "" }
3961
3961
  },
3962
3962
  setup(e) {
3963
- const T = e, S = Bl(), l = El(), n = (k) => {
3964
- if (!k) return "";
3965
- const [$] = k.split("?");
3966
- return $ ? $.startsWith("/") ? $ : `/${$}` : "";
3967
- }, r = (k, $) => {
3968
- var a;
3969
- const i = n($);
3970
- if (!i) return null;
3971
- for (const C of k || []) {
3972
- if (n(C.path) === i)
3973
- return C;
3974
- if ((a = C.children) != null && a.length) {
3975
- const c = r(C.children, i);
3976
- if (c) return c;
3963
+ const F = e, D = Bl(), l = El(), n = Number.MAX_SAFE_INTEGER, r = (u) => {
3964
+ if (!u) return "";
3965
+ const [a] = u.split("?");
3966
+ return a ? a.startsWith("/") ? a : `/${a}` : "";
3967
+ }, d = (u = [], a) => {
3968
+ var k;
3969
+ for (const f of u) {
3970
+ if (a(f)) return f;
3971
+ if ((k = f.children) != null && k.length) {
3972
+ const X = d(f.children, a);
3973
+ if (X) return X;
3977
3974
  }
3978
3975
  }
3979
3976
  return null;
3980
- }, d = (k) => k == null ? "" : Array.isArray(k) ? d(k[0]) : String(k), g = (k, $) => {
3981
- var i;
3982
- if (!$) return null;
3983
- for (const a of k || []) {
3984
- if (d(a.id) === $)
3985
- return a;
3986
- if ((i = a.children) != null && i.length) {
3987
- const C = g(a.children, $);
3988
- if (C) return C;
3989
- }
3990
- }
3991
- return null;
3992
- }, s = (k = []) => [...k].sort(($, i) => {
3993
- const a = Number($.order_num ?? Number.MAX_SAFE_INTEGER), C = Number(i.order_num ?? Number.MAX_SAFE_INTEGER);
3994
- return a - C;
3995
- }), v = (k = []) => {
3996
- const $ = [];
3997
- return s(k).forEach((a) => {
3998
- a.category === "flow-page" && a.path && $.push({
3999
- id: a.id ?? a.path,
4000
- name: a.name || "未命名流程",
4001
- path: n(a.path),
4002
- order_num: a.order_num
4003
- });
4004
- }), $;
4005
- }, _ = (k = []) => {
4006
- const $ = [], i = (a) => {
4007
- s(a).forEach((c) => {
4008
- var Q;
4009
- if (c.category === "flow-module") {
4010
- $.push({
4011
- id: c.id ?? c.name ?? String($.length),
4012
- name: c.name || "未命名流程模块",
4013
- order_num: c.order_num,
4014
- pages: v(c.children || [])
3977
+ }, h = (u, a) => {
3978
+ const k = r(a);
3979
+ return k ? d(u, (f) => r(f.path) === k) : null;
3980
+ }, s = (u) => u == null ? "" : Array.isArray(u) ? s(u[0]) : String(u), v = (u, a) => a ? d(u, (k) => s(k.id) === a) : null, _ = (u = []) => [...u].sort((a, k) => {
3981
+ const f = Number(a.order_num ?? n), X = Number(k.order_num ?? n);
3982
+ return f - X;
3983
+ }), $ = (u = []) => _(u).filter((a) => a.category === "flow-page" && !!a.path).map((a) => ({
3984
+ id: a.id ?? a.path,
3985
+ name: a.name || "未命名流程",
3986
+ path: r(a.path),
3987
+ order_num: a.order_num
3988
+ })), E = (u = []) => {
3989
+ const a = [], k = (f) => {
3990
+ var X;
3991
+ for (const N of _(f)) {
3992
+ if (N.category === "flow-module") {
3993
+ a.push({
3994
+ id: N.id ?? N.name ?? String(a.length),
3995
+ name: N.name || "未命名流程模块",
3996
+ order_num: N.order_num,
3997
+ pages: $(N.children || [])
4015
3998
  });
4016
- return;
3999
+ continue;
4017
4000
  }
4018
- (Q = c.children) != null && Q.length && i(c.children);
4019
- });
4001
+ (X = N.children) != null && X.length && k(N.children);
4002
+ }
4020
4003
  };
4021
- return i(k), $;
4022
- }, D = K(() => T.currentPath || S.path), F = K(() => d(T.menuId || S.query.mid)), h = K(() => {
4023
- const k = g(T.menuTree || [], F.value);
4024
- return k || r(T.menuTree || [], D.value);
4025
- }), w = K(() => {
4026
- var k, $;
4027
- return ($ = (k = h.value) == null ? void 0 : k.children) != null && $.length ? _(h.value.children) : [];
4028
- }), b = (k) => {
4029
- k && l.push(k);
4004
+ return k(u), a;
4005
+ }, b = Y(() => F.currentPath || D.path), w = Y(() => s(F.menuId || D.query.mid)), g = Y(() => {
4006
+ const u = v(F.menuTree || [], w.value);
4007
+ return u || h(F.menuTree || [], b.value);
4008
+ }), R = Y(() => {
4009
+ var u, a;
4010
+ return (a = (u = g.value) == null ? void 0 : u.children) != null && a.length ? E(g.value.children) : [];
4011
+ }), L = (u) => {
4012
+ if (!u) return;
4013
+ const a = l.resolve(u);
4014
+ window.open(a.href, "_blank", "noopener,noreferrer");
4030
4015
  };
4031
- return (k, $) => {
4032
- const i = P("el-link"), a = P("el-empty");
4016
+ return (u, a) => {
4017
+ const k = A("el-link"), f = A("el-empty");
4033
4018
  return o(), y("div", eo, [
4034
- w.value.length ? (o(!0), y(G, { key: 0 }, oe(w.value, (C) => (o(), y("section", {
4035
- key: C.id,
4019
+ R.value.length ? (o(!0), y(G, { key: 0 }, ne(R.value, (X) => (o(), y("section", {
4020
+ key: X.id,
4036
4021
  class: "flow-module-section"
4037
4022
  }, [
4038
- f("div", lo, [
4039
- $[0] || ($[0] = f("span", { class: "title-arrow" }, "▶", -1)),
4040
- f("span", null, O(C.name), 1)
4023
+ c("div", lo, [
4024
+ a[0] || (a[0] = c("span", { class: "title-arrow" }, "▶", -1)),
4025
+ c("span", null, H(X.name), 1)
4041
4026
  ]),
4042
- f("div", ao, [
4043
- (o(!0), y(G, null, oe(C.pages, (c) => (o(), I(i, {
4044
- key: c.id,
4027
+ c("div", ao, [
4028
+ (o(!0), y(G, null, ne(X.pages, (N) => (o(), P(k, {
4029
+ key: N.id,
4045
4030
  type: "primary",
4046
4031
  underline: "never",
4047
4032
  class: "flow-page-link",
4048
- onClick: (Q) => b(c.path)
4033
+ onClick: (oe) => L(N.path)
4049
4034
  }, {
4050
- default: u(() => [
4051
- N(O(c.name), 1)
4035
+ default: i(() => [
4036
+ O(H(N.name), 1)
4052
4037
  ]),
4053
4038
  _: 2
4054
4039
  }, 1032, ["onClick"]))), 128))
4055
4040
  ])
4056
- ]))), 128)) : (o(), I(a, {
4041
+ ]))), 128)) : (o(), P(f, {
4057
4042
  key: 1,
4058
4043
  description: "暂无可发起流程"
4059
4044
  }))
4060
4045
  ]);
4061
4046
  };
4062
4047
  }
4063
- }), Bo = /* @__PURE__ */ xe(to, [["__scopeId", "data-v-98b8e1c9"]]);
4048
+ }), Bo = /* @__PURE__ */ xe(to, [["__scopeId", "data-v-b492c1a2"]]);
4064
4049
  export {
4065
4050
  _o as BaseApprovalRecord,
4066
4051
  Dl as BaseButton,