@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 +1310 -1325
- package/dist/portal-ui.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ee, ref as
|
|
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:
|
|
26
|
-
const l = e, n =
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
37
|
+
}, $ = () => {
|
|
38
38
|
n("clear");
|
|
39
39
|
};
|
|
40
|
-
return
|
|
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,
|
|
61
|
+
}), (a, k) => (o(), P(I(We), {
|
|
62
62
|
ref_key: "inputRef",
|
|
63
63
|
ref: r,
|
|
64
64
|
modelValue: d.value,
|
|
65
|
-
"onUpdate:modelValue":
|
|
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:
|
|
78
|
+
onInput: h,
|
|
79
79
|
onChange: s,
|
|
80
80
|
onFocus: v,
|
|
81
81
|
onBlur: _,
|
|
82
|
-
onClear:
|
|
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:
|
|
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 =
|
|
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
|
-
}), _ =
|
|
122
|
+
}), _ = Y(() => {
|
|
123
123
|
const w = s.value;
|
|
124
124
|
return w && n.includes(w) ? `el-button--${w}` : "";
|
|
125
|
-
}),
|
|
125
|
+
}), $ = (w) => {
|
|
126
126
|
!r.disabled && !r.loading && d("click", w);
|
|
127
127
|
};
|
|
128
|
-
return
|
|
128
|
+
return F({
|
|
129
129
|
isDisabled: () => r.disabled,
|
|
130
130
|
isLoading: () => r.loading
|
|
131
|
-
}), (w,
|
|
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:
|
|
142
|
+
onClick: $
|
|
143
143
|
}, {
|
|
144
|
-
default:
|
|
145
|
-
|
|
144
|
+
default: i(() => [
|
|
145
|
+
h.value && !e.loading ? (o(), y("i", {
|
|
146
146
|
key: 0,
|
|
147
|
-
class: ie(
|
|
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
|
-
|
|
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:
|
|
171
|
-
const l = e, n =
|
|
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
|
|
174
|
+
return F({
|
|
175
175
|
toggle: r
|
|
176
|
-
}), (d,
|
|
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:
|
|
204
|
-
const l = e, n =
|
|
203
|
+
setup(e, { expose: F, emit: D }) {
|
|
204
|
+
const l = e, n = D, r = Y({
|
|
205
205
|
get: () => l.modelValue ?? l.inactiveValue,
|
|
206
|
-
set: (
|
|
207
|
-
}), d = (
|
|
208
|
-
n("change",
|
|
206
|
+
set: (b) => n("update:modelValue", b)
|
|
207
|
+
}), d = (b) => {
|
|
208
|
+
n("change", b);
|
|
209
209
|
};
|
|
210
|
-
return
|
|
210
|
+
return F({
|
|
211
211
|
getValue: () => l.modelValue,
|
|
212
|
-
setValue: (
|
|
213
|
-
n("update:modelValue",
|
|
212
|
+
setValue: (b) => {
|
|
213
|
+
n("update:modelValue", b);
|
|
214
214
|
},
|
|
215
215
|
toggle: () => {
|
|
216
|
-
const
|
|
217
|
-
n("update:modelValue",
|
|
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
|
-
}), (
|
|
224
|
+
}), (b, w) => (o(), P(I(al), {
|
|
225
225
|
modelValue: r.value,
|
|
226
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
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:
|
|
261
|
-
const l = e, n =
|
|
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
|
-
}),
|
|
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
|
|
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((
|
|
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((
|
|
286
|
-
const
|
|
287
|
-
return (
|
|
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((
|
|
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,
|
|
304
|
+
}), (a, k) => (o(), P(I(tl), {
|
|
305
305
|
ref_key: "selectRef",
|
|
306
306
|
ref: r,
|
|
307
307
|
modelValue: d.value,
|
|
308
|
-
"onUpdate:modelValue":
|
|
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:
|
|
319
|
+
onChange: h,
|
|
320
320
|
onFocus: s,
|
|
321
321
|
onBlur: v,
|
|
322
322
|
onClear: _
|
|
323
323
|
}, {
|
|
324
|
-
default:
|
|
325
|
-
(o(!0), y(G, null,
|
|
326
|
-
key:
|
|
327
|
-
label:
|
|
328
|
-
value:
|
|
329
|
-
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:
|
|
354
|
-
const l = e, n =
|
|
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
|
|
357
|
-
return Number.isNaN(
|
|
358
|
-
},
|
|
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,
|
|
362
|
-
n("change", a ?? 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
|
|
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,
|
|
378
|
-
let
|
|
379
|
-
l.max !== void 0 &&
|
|
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,
|
|
383
|
-
let
|
|
384
|
-
l.min !== void 0 &&
|
|
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,
|
|
395
|
+
}), (a, k) => (o(), P(I(nl), {
|
|
396
396
|
ref_key: "numberRef",
|
|
397
397
|
ref: r,
|
|
398
|
-
modelValue:
|
|
399
|
-
"onUpdate:modelValue":
|
|
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:
|
|
437
|
-
const l = e, n =
|
|
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
|
-
}),
|
|
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
|
|
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,
|
|
475
|
+
}), (a, k) => (o(), P(I(sl), {
|
|
476
476
|
ref_key: "dateRef",
|
|
477
477
|
ref: r,
|
|
478
478
|
modelValue: d.value,
|
|
479
|
-
"onUpdate:modelValue":
|
|
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:
|
|
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:
|
|
522
|
-
const l = e, n =
|
|
521
|
+
setup(e, { expose: F, emit: D }) {
|
|
522
|
+
const l = e, n = D, r = S(), d = Y({
|
|
523
523
|
get: () => l.modelValue,
|
|
524
|
-
set: (
|
|
525
|
-
}),
|
|
526
|
-
n("change",
|
|
527
|
-
}, s = (
|
|
528
|
-
n("focus",
|
|
529
|
-
}, v = (
|
|
530
|
-
n("blur",
|
|
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
|
|
534
|
+
return F({
|
|
535
535
|
getValue: () => l.modelValue,
|
|
536
|
-
setValue: (
|
|
537
|
-
n("update:modelValue",
|
|
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
|
|
545
|
-
(
|
|
544
|
+
var u;
|
|
545
|
+
(u = r.value) == null || u.focus();
|
|
546
546
|
},
|
|
547
547
|
blur: () => {
|
|
548
|
-
var
|
|
549
|
-
(
|
|
548
|
+
var u;
|
|
549
|
+
(u = r.value) == null || u.blur();
|
|
550
550
|
},
|
|
551
551
|
getField: () => l.field ?? ""
|
|
552
|
-
}), (
|
|
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] = (
|
|
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:
|
|
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:
|
|
612
|
-
const l = e, n =
|
|
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((
|
|
616
|
-
...
|
|
617
|
-
_rowKey:
|
|
618
|
-
_rowIndex:
|
|
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
|
|
625
|
-
if (!
|
|
626
|
-
const m =
|
|
627
|
-
return (m == null ? void 0 : m.value) ??
|
|
628
|
-
},
|
|
629
|
-
if (
|
|
630
|
-
const
|
|
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((
|
|
635
|
-
B
|
|
636
|
-
}), d.value.push(
|
|
637
|
-
},
|
|
638
|
-
if (
|
|
639
|
-
const
|
|
640
|
-
d.value.splice(
|
|
641
|
-
}, a = (
|
|
642
|
-
|
|
643
|
-
},
|
|
644
|
-
|
|
645
|
-
},
|
|
646
|
-
n("row-click",
|
|
647
|
-
},
|
|
648
|
-
n("cell-click",
|
|
649
|
-
},
|
|
650
|
-
const
|
|
651
|
-
const { _rowKey: m, _rowIndex: M, ...me } =
|
|
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",
|
|
655
|
-
},
|
|
656
|
-
const { _rowKey:
|
|
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 = (
|
|
659
|
-
d.value =
|
|
660
|
-
...
|
|
661
|
-
_rowKey:
|
|
658
|
+
}), de = (x) => {
|
|
659
|
+
d.value = x.map((B, m) => ({
|
|
660
|
+
...B,
|
|
661
|
+
_rowKey: B._rowKey || `row_${++v}`,
|
|
662
662
|
_rowIndex: m
|
|
663
|
-
})),
|
|
664
|
-
}, se = (
|
|
665
|
-
if (
|
|
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
|
-
...
|
|
669
|
+
...x
|
|
670
670
|
};
|
|
671
|
-
|
|
672
|
-
}, pe = (
|
|
673
|
-
|
|
674
|
-
}, fe = (
|
|
675
|
-
[...
|
|
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
|
-
}),
|
|
678
|
-
}, re = (
|
|
679
|
-
if (
|
|
680
|
-
const { _rowKey:
|
|
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 = (
|
|
684
|
-
|
|
685
|
-
}, ve = (
|
|
686
|
-
|
|
687
|
-
},
|
|
688
|
-
const { _rowKey:
|
|
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
|
-
}),
|
|
691
|
-
var
|
|
692
|
-
(
|
|
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
|
|
698
|
-
(
|
|
697
|
+
var x;
|
|
698
|
+
(x = r.value) == null || x.clearSelection();
|
|
699
699
|
}, ge = () => {
|
|
700
|
-
d.value.forEach((
|
|
701
|
-
var
|
|
702
|
-
(
|
|
700
|
+
d.value.forEach((x) => {
|
|
701
|
+
var B;
|
|
702
|
+
(B = r.value) == null || B.toggleRowSelection(x, !0);
|
|
703
703
|
});
|
|
704
|
-
},
|
|
705
|
-
return
|
|
706
|
-
getValue: () =>
|
|
707
|
-
setValue: (
|
|
708
|
-
getTableData:
|
|
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:
|
|
717
|
-
getSelectedIndexes:
|
|
718
|
-
setSelectedRows:
|
|
716
|
+
getSelectedRows: T,
|
|
717
|
+
getSelectedIndexes: U,
|
|
718
|
+
setSelectedRows: J,
|
|
719
719
|
clearSelection: ce,
|
|
720
720
|
selectAll: ge,
|
|
721
|
-
validateAll:
|
|
722
|
-
validateRow: async (
|
|
721
|
+
validateAll: z,
|
|
722
|
+
validateRow: async (x) => !0,
|
|
723
723
|
getRowCount: () => d.value.length,
|
|
724
724
|
clear: () => {
|
|
725
|
-
d.value = [],
|
|
725
|
+
d.value = [], N();
|
|
726
726
|
},
|
|
727
|
-
validate: async () =>
|
|
727
|
+
validate: async () => z(),
|
|
728
728
|
reset: () => {
|
|
729
729
|
_(), s.value = "";
|
|
730
730
|
},
|
|
731
731
|
getField: () => l.field,
|
|
732
732
|
getTableInstance: () => r.value
|
|
733
|
-
}), (
|
|
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 ||
|
|
739
|
+
onClick: L,
|
|
740
|
+
disabled: e.disabled || E.value
|
|
741
741
|
}, null, 8, ["disabled"])
|
|
742
742
|
])) : W("", !0),
|
|
743
|
-
t(
|
|
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:
|
|
755
|
-
onRowClick:
|
|
756
|
-
onCellClick:
|
|
754
|
+
onSelectionChange: k,
|
|
755
|
+
onRowClick: f,
|
|
756
|
+
onCellClick: X
|
|
757
757
|
}, {
|
|
758
|
-
default:
|
|
759
|
-
e.showSelection ? (o(), I(
|
|
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:
|
|
764
|
+
selectable: g
|
|
765
765
|
})) : W("", !0),
|
|
766
|
-
e.deletable ||
|
|
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:
|
|
774
|
-
Ve(
|
|
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(
|
|
778
|
+
e.deletable ? (o(), P(I(dl), {
|
|
779
779
|
key: 0,
|
|
780
780
|
type: "primary",
|
|
781
781
|
underline: "never",
|
|
782
|
-
onClick: ye((me) =>
|
|
783
|
-
disabled: e.disabled ||
|
|
782
|
+
onClick: ye((me) => u(M), ["stop"]),
|
|
783
|
+
disabled: e.disabled || b.value
|
|
784
784
|
}, {
|
|
785
|
-
default:
|
|
786
|
-
|
|
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(
|
|
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,
|
|
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:
|
|
814
|
-
var
|
|
813
|
+
default: i(({ row: M, $index: me }) => {
|
|
814
|
+
var Q, Ee, Re, Ue, Ae, Pe, Ie, Le, Me, Ne, Oe;
|
|
815
815
|
return [
|
|
816
|
-
|
|
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(),
|
|
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(),
|
|
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: (
|
|
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(),
|
|
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(),
|
|
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(),
|
|
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(),
|
|
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
|
-
|
|
872
|
+
O(H(m.formatter(M[m.field], M, me)), 1)
|
|
873
873
|
], 64)) : m.controlType === "select" ? (o(), y(G, { key: 1 }, [
|
|
874
|
-
|
|
875
|
-
], 64)) : m.controlType === "switch" ? (o(), I(
|
|
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:
|
|
880
|
+
default: i(() => {
|
|
881
881
|
var te, He, je;
|
|
882
882
|
return [
|
|
883
|
-
|
|
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
|
-
|
|
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,
|
|
898
|
+
s.value ? (o(), y("div", Nl, H(s.value), 1)) : W("", !0)
|
|
899
899
|
]));
|
|
900
900
|
}
|
|
901
|
-
}), xe = (e,
|
|
902
|
-
const
|
|
903
|
-
for (const [l, n] of
|
|
904
|
-
|
|
905
|
-
return
|
|
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:
|
|
923
|
-
const l = e, n =
|
|
922
|
+
setup(e, { expose: F, emit: D }) {
|
|
923
|
+
const l = e, n = D, r = S(), d = Y({
|
|
924
924
|
get: () => l.modelValue ?? "",
|
|
925
|
-
set: (
|
|
926
|
-
}),
|
|
927
|
-
n("input",
|
|
928
|
-
}, s = (
|
|
929
|
-
n("change",
|
|
930
|
-
}, v = (
|
|
931
|
-
n("focus",
|
|
932
|
-
}, _ = (
|
|
933
|
-
n("blur",
|
|
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
|
|
935
|
+
return F({
|
|
936
936
|
getValue: () => l.modelValue ?? "",
|
|
937
|
-
setValue: (
|
|
938
|
-
n("update:modelValue",
|
|
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
|
|
945
|
-
(
|
|
944
|
+
var u;
|
|
945
|
+
(u = r.value) == null || u.focus();
|
|
946
946
|
},
|
|
947
947
|
blur: () => {
|
|
948
|
-
var
|
|
949
|
-
(
|
|
948
|
+
var u;
|
|
949
|
+
(u = r.value) == null || u.blur();
|
|
950
950
|
},
|
|
951
951
|
getLength: () => (l.modelValue || "").length,
|
|
952
952
|
getField: () => l.field ?? ""
|
|
953
|
-
}), (
|
|
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] = (
|
|
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:
|
|
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,
|
|
976
|
-
window[ze] = e,
|
|
975
|
+
function mo(e, F) {
|
|
976
|
+
window[ze] = e, F && (window[Je] = F);
|
|
977
977
|
}
|
|
978
978
|
function po(e) {
|
|
979
|
-
const { http:
|
|
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] =
|
|
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: (
|
|
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: (
|
|
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: (
|
|
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: (
|
|
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: (
|
|
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: (
|
|
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: (
|
|
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:
|
|
1073
|
-
const l = he(), { warning: n } = Hl(), r = e, d =
|
|
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: (
|
|
1076
|
-
}), w =
|
|
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
|
|
1079
|
-
const
|
|
1080
|
-
r.attachTypes.forEach((
|
|
1081
|
-
const Z =
|
|
1082
|
-
(p) => p.attach_category ===
|
|
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
|
-
|
|
1086
|
-
}) :
|
|
1085
|
+
z.push(p);
|
|
1086
|
+
}) : z.push({
|
|
1087
1087
|
_isPlaceholder: !0,
|
|
1088
|
-
attach_category:
|
|
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
|
|
1097
|
-
return
|
|
1098
|
-
(
|
|
1099
|
-
).forEach((
|
|
1100
|
-
|
|
1101
|
-
}),
|
|
1102
|
-
}),
|
|
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, (
|
|
1106
|
-
|
|
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((
|
|
1110
|
-
|
|
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
|
|
1113
|
+
const u = (z) => {
|
|
1114
1114
|
var V;
|
|
1115
|
-
return ((V =
|
|
1116
|
-
}, a = (
|
|
1117
|
-
if (
|
|
1118
|
-
const
|
|
1119
|
-
return parseFloat((
|
|
1120
|
-
},
|
|
1121
|
-
if (!
|
|
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
|
|
1124
|
-
if (
|
|
1123
|
+
const C = r.attachTypes.find((V) => V.key === z);
|
|
1124
|
+
if (C) return C.value;
|
|
1125
1125
|
}
|
|
1126
|
-
return
|
|
1127
|
-
},
|
|
1128
|
-
v.value = [],
|
|
1129
|
-
},
|
|
1130
|
-
var
|
|
1131
|
-
(
|
|
1132
|
-
},
|
|
1133
|
-
const
|
|
1134
|
-
|
|
1135
|
-
}, de = (
|
|
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
|
|
1138
|
-
|
|
1139
|
-
}, se = (
|
|
1140
|
-
for (const
|
|
1141
|
-
if (
|
|
1142
|
-
console.warn(`文件 ${
|
|
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:
|
|
1147
|
-
name:
|
|
1148
|
-
size:
|
|
1149
|
-
raw:
|
|
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 = (
|
|
1156
|
-
v.value.splice(
|
|
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
|
|
1166
|
-
let
|
|
1167
|
-
|
|
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
|
|
1170
|
-
|
|
1171
|
-
const
|
|
1172
|
-
|
|
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),
|
|
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
|
-
|
|
1188
|
-
|
|
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(
|
|
1195
|
-
return re.includes(
|
|
1194
|
+
function ae(z) {
|
|
1195
|
+
return re.includes(z.toLowerCase());
|
|
1196
1196
|
}
|
|
1197
|
-
function ve(
|
|
1198
|
-
if (!ae(
|
|
1199
|
-
n(`该文件类型(.${
|
|
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/${
|
|
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
|
|
1206
|
-
l.get(`/proxy/workflow/attachment/api/download/${
|
|
1205
|
+
function T(z) {
|
|
1206
|
+
l.get(`/proxy/workflow/attachment/api/download/${z.fid}`, {
|
|
1207
1207
|
responseType: "blob"
|
|
1208
|
-
}).then((
|
|
1209
|
-
const V = window.URL.createObjectURL(new Blob([
|
|
1210
|
-
|
|
1211
|
-
}).catch((
|
|
1212
|
-
console.error("下载失败:",
|
|
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
|
|
1216
|
-
|
|
1215
|
+
function U(z) {
|
|
1216
|
+
E.value = z.filter((C) => !C._isPlaceholder);
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1219
|
-
if (
|
|
1218
|
+
function J() {
|
|
1219
|
+
if (E.value.length === 0) {
|
|
1220
1220
|
n("请先选择要下载的文件");
|
|
1221
1221
|
return;
|
|
1222
1222
|
}
|
|
1223
|
-
const
|
|
1224
|
-
l.post("/proxy/workflow/attachment/api/batch_download", { fids:
|
|
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((
|
|
1227
|
-
const V = window.URL.createObjectURL(new Blob([
|
|
1228
|
-
|
|
1229
|
-
const
|
|
1230
|
-
|
|
1231
|
-
}).catch((
|
|
1232
|
-
console.error("批量下载失败:",
|
|
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(
|
|
1236
|
-
const
|
|
1237
|
-
if (!
|
|
1238
|
-
const V =
|
|
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
|
|
1241
|
-
l.delete(`/proxy/workflow/attachment/api/delete/${
|
|
1242
|
-
if (
|
|
1243
|
-
const Z = [...
|
|
1244
|
-
Z.splice(V, 1),
|
|
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("删除失败:",
|
|
1246
|
+
console.error("删除失败:", K.message);
|
|
1247
1247
|
});
|
|
1248
1248
|
}
|
|
1249
1249
|
function ge() {
|
|
1250
|
-
|
|
1250
|
+
L();
|
|
1251
1251
|
}
|
|
1252
|
-
return
|
|
1253
|
-
openUploadDialog:
|
|
1252
|
+
return F({
|
|
1253
|
+
openUploadDialog: X,
|
|
1254
1254
|
refresh: ge,
|
|
1255
|
-
tableRef:
|
|
1256
|
-
getSelectedFiles: () =>
|
|
1257
|
-
}), (
|
|
1258
|
-
const V =
|
|
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
|
-
|
|
1261
|
-
t(
|
|
1262
|
-
onClick:
|
|
1260
|
+
c("div", Kl, [
|
|
1261
|
+
t(q, {
|
|
1262
|
+
onClick: X,
|
|
1263
1263
|
disabled: e.disabled
|
|
1264
1264
|
}, {
|
|
1265
|
-
default:
|
|
1265
|
+
default: i(() => [
|
|
1266
1266
|
t(V, null, {
|
|
1267
|
-
default:
|
|
1268
|
-
t(
|
|
1267
|
+
default: i(() => [
|
|
1268
|
+
t(I(Ge))
|
|
1269
1269
|
]),
|
|
1270
1270
|
_: 1
|
|
1271
1271
|
}),
|
|
1272
|
-
|
|
1272
|
+
C[3] || (C[3] = O(" 上传 ", -1))
|
|
1273
1273
|
]),
|
|
1274
1274
|
_: 1
|
|
1275
1275
|
}, 8, ["disabled"]),
|
|
1276
|
-
t(
|
|
1277
|
-
onClick:
|
|
1278
|
-
disabled:
|
|
1276
|
+
t(q, {
|
|
1277
|
+
onClick: J,
|
|
1278
|
+
disabled: E.value.length === 0
|
|
1279
1279
|
}, {
|
|
1280
|
-
default:
|
|
1280
|
+
default: i(() => [
|
|
1281
1281
|
t(V, null, {
|
|
1282
|
-
default:
|
|
1283
|
-
t(
|
|
1282
|
+
default: i(() => [
|
|
1283
|
+
t(I(cl))
|
|
1284
1284
|
]),
|
|
1285
1285
|
_: 1
|
|
1286
1286
|
}),
|
|
1287
|
-
|
|
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:
|
|
1295
|
-
data:
|
|
1294
|
+
ref: $,
|
|
1295
|
+
data: g.value,
|
|
1296
1296
|
border: "",
|
|
1297
1297
|
class: "upload-table",
|
|
1298
|
-
onSelectionChange:
|
|
1298
|
+
onSelectionChange: U
|
|
1299
1299
|
}, {
|
|
1300
|
-
default:
|
|
1301
|
-
t(
|
|
1300
|
+
default: i(() => [
|
|
1301
|
+
t(K, {
|
|
1302
1302
|
type: "selection",
|
|
1303
1303
|
width: "60",
|
|
1304
|
-
selectable:
|
|
1304
|
+
selectable: R
|
|
1305
1305
|
}),
|
|
1306
|
-
t(
|
|
1306
|
+
t(K, {
|
|
1307
1307
|
type: "index",
|
|
1308
1308
|
label: "序号",
|
|
1309
1309
|
width: "60",
|
|
1310
1310
|
align: "center"
|
|
1311
1311
|
}),
|
|
1312
|
-
t(
|
|
1312
|
+
t(K, {
|
|
1313
1313
|
label: "操作",
|
|
1314
1314
|
width: "120",
|
|
1315
1315
|
align: "center"
|
|
1316
1316
|
}, {
|
|
1317
|
-
default:
|
|
1318
|
-
!
|
|
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(
|
|
1322
|
+
onClick: (m) => ve(B.row)
|
|
1323
1323
|
}, {
|
|
1324
|
-
default:
|
|
1325
|
-
|
|
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(),
|
|
1329
|
+
e.disabled ? W("", !0) : (o(), P(Z, {
|
|
1330
1330
|
key: 0,
|
|
1331
1331
|
type: "primary",
|
|
1332
1332
|
underline: "never",
|
|
1333
|
-
onClick: (m) => ce(
|
|
1333
|
+
onClick: (m) => ce(B.$index),
|
|
1334
1334
|
style: { "margin-left": "10px" }
|
|
1335
1335
|
}, {
|
|
1336
|
-
default:
|
|
1337
|
-
|
|
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(),
|
|
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:
|
|
1352
|
-
|
|
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(
|
|
1356
|
+
t(K, {
|
|
1357
1357
|
label: "附件名称",
|
|
1358
1358
|
"min-width": "300"
|
|
1359
1359
|
}, {
|
|
1360
|
-
default:
|
|
1361
|
-
!
|
|
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) =>
|
|
1365
|
+
onClick: (m) => T(B.row)
|
|
1366
1366
|
}, {
|
|
1367
|
-
default:
|
|
1368
|
-
|
|
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(
|
|
1375
|
+
t(K, {
|
|
1376
1376
|
prop: "file_ext",
|
|
1377
1377
|
label: "格式",
|
|
1378
1378
|
width: "80",
|
|
1379
1379
|
align: "center"
|
|
1380
1380
|
}),
|
|
1381
|
-
t(
|
|
1381
|
+
t(K, {
|
|
1382
1382
|
prop: "file_size_display",
|
|
1383
1383
|
label: "大小",
|
|
1384
1384
|
width: "100",
|
|
1385
1385
|
align: "center"
|
|
1386
1386
|
}),
|
|
1387
|
-
t(
|
|
1387
|
+
t(K, {
|
|
1388
1388
|
prop: "create_by",
|
|
1389
1389
|
label: "上传人",
|
|
1390
1390
|
width: "120"
|
|
1391
1391
|
}),
|
|
1392
|
-
t(
|
|
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(
|
|
1401
|
-
modelValue:
|
|
1402
|
-
"onUpdate:modelValue":
|
|
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:
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
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:
|
|
1413
|
+
onClick: C[0] || (C[0] = (B) => h.value = !1)
|
|
1414
1414
|
}, [
|
|
1415
1415
|
t(V, null, {
|
|
1416
|
-
default:
|
|
1417
|
-
t(
|
|
1416
|
+
default: i(() => [
|
|
1417
|
+
t(I(Ce))
|
|
1418
1418
|
]),
|
|
1419
1419
|
_: 1
|
|
1420
1420
|
})
|
|
1421
1421
|
])
|
|
1422
1422
|
])
|
|
1423
1423
|
]),
|
|
1424
|
-
footer:
|
|
1425
|
-
|
|
1426
|
-
t(
|
|
1427
|
-
default:
|
|
1428
|
-
|
|
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(
|
|
1432
|
+
t(q, {
|
|
1433
1433
|
type: "primary",
|
|
1434
1434
|
onClick: fe,
|
|
1435
1435
|
loading: s.value
|
|
1436
1436
|
}, {
|
|
1437
|
-
default:
|
|
1438
|
-
|
|
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:
|
|
1444
|
+
default: i(() => [
|
|
1445
1445
|
v.value.length > 0 ? (o(), y("div", ql, [
|
|
1446
|
-
(o(!0), y(G, null,
|
|
1447
|
-
key:
|
|
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(),
|
|
1450
|
+
w.value ? (o(), P(p, {
|
|
1451
1451
|
key: 0,
|
|
1452
|
-
data: [
|
|
1452
|
+
data: [B],
|
|
1453
1453
|
border: "",
|
|
1454
1454
|
"show-header": !1
|
|
1455
1455
|
}, {
|
|
1456
|
-
default:
|
|
1457
|
-
t(
|
|
1456
|
+
default: i(() => [
|
|
1457
|
+
t(K, {
|
|
1458
1458
|
label: "附件类型",
|
|
1459
1459
|
width: "100"
|
|
1460
1460
|
}, {
|
|
1461
|
-
default:
|
|
1462
|
-
|
|
1461
|
+
default: i(() => [...C[8] || (C[8] = [
|
|
1462
|
+
O("附件类型", -1)
|
|
1463
1463
|
])]),
|
|
1464
1464
|
_: 1
|
|
1465
1465
|
}),
|
|
1466
|
-
t(
|
|
1467
|
-
default:
|
|
1466
|
+
t(K, null, {
|
|
1467
|
+
default: i(() => [
|
|
1468
1468
|
t(ue, {
|
|
1469
|
-
modelValue:
|
|
1470
|
-
"onUpdate:modelValue": (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:
|
|
1476
|
-
t(
|
|
1475
|
+
default: i(() => [
|
|
1476
|
+
t(j, {
|
|
1477
1477
|
label: "--请选择--",
|
|
1478
1478
|
value: ""
|
|
1479
1479
|
}),
|
|
1480
|
-
(o(!0), y(G, null,
|
|
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: [
|
|
1495
|
+
data: [B],
|
|
1496
1496
|
border: "",
|
|
1497
1497
|
"show-header": !1
|
|
1498
1498
|
}, {
|
|
1499
|
-
default:
|
|
1500
|
-
t(
|
|
1499
|
+
default: i(() => [
|
|
1500
|
+
t(K, {
|
|
1501
1501
|
label: "文件名称",
|
|
1502
1502
|
width: "100"
|
|
1503
1503
|
}, {
|
|
1504
|
-
default:
|
|
1505
|
-
|
|
1504
|
+
default: i(() => [...C[9] || (C[9] = [
|
|
1505
|
+
O("文件名称", -1)
|
|
1506
1506
|
])]),
|
|
1507
1507
|
_: 1
|
|
1508
1508
|
}),
|
|
1509
|
-
t(
|
|
1510
|
-
default:
|
|
1511
|
-
|
|
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: [
|
|
1519
|
+
data: [B],
|
|
1520
1520
|
border: "",
|
|
1521
1521
|
"show-header": !1
|
|
1522
1522
|
}, {
|
|
1523
|
-
default:
|
|
1524
|
-
t(
|
|
1523
|
+
default: i(() => [
|
|
1524
|
+
t(K, {
|
|
1525
1525
|
label: "文件类型",
|
|
1526
1526
|
width: "100"
|
|
1527
1527
|
}, {
|
|
1528
|
-
default:
|
|
1529
|
-
|
|
1528
|
+
default: i(() => [...C[10] || (C[10] = [
|
|
1529
|
+
O("文件类型", -1)
|
|
1530
1530
|
])]),
|
|
1531
1531
|
_: 1
|
|
1532
1532
|
}),
|
|
1533
|
-
t(
|
|
1534
|
-
default:
|
|
1535
|
-
|
|
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: [
|
|
1543
|
+
data: [B],
|
|
1544
1544
|
border: "",
|
|
1545
1545
|
"show-header": !1
|
|
1546
1546
|
}, {
|
|
1547
|
-
default:
|
|
1548
|
-
t(
|
|
1547
|
+
default: i(() => [
|
|
1548
|
+
t(K, {
|
|
1549
1549
|
label: "文件大小",
|
|
1550
1550
|
width: "100"
|
|
1551
1551
|
}, {
|
|
1552
|
-
default:
|
|
1553
|
-
|
|
1552
|
+
default: i(() => [...C[11] || (C[11] = [
|
|
1553
|
+
O("文件大小", -1)
|
|
1554
1554
|
])]),
|
|
1555
1555
|
_: 1
|
|
1556
1556
|
}),
|
|
1557
|
-
t(
|
|
1558
|
-
default:
|
|
1559
|
-
|
|
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: [
|
|
1567
|
+
data: [B],
|
|
1568
1568
|
border: "",
|
|
1569
1569
|
"show-header": !1
|
|
1570
1570
|
}, {
|
|
1571
|
-
default:
|
|
1572
|
-
t(
|
|
1571
|
+
default: i(() => [
|
|
1572
|
+
t(K, {
|
|
1573
1573
|
label: "进度",
|
|
1574
1574
|
width: "100"
|
|
1575
1575
|
}, {
|
|
1576
|
-
default:
|
|
1577
|
-
|
|
1576
|
+
default: i(() => [...C[12] || (C[12] = [
|
|
1577
|
+
O("进度", -1)
|
|
1578
1578
|
])]),
|
|
1579
1579
|
_: 1
|
|
1580
1580
|
}),
|
|
1581
|
-
t(
|
|
1582
|
-
default:
|
|
1583
|
-
|
|
1581
|
+
t(K, null, {
|
|
1582
|
+
default: i(() => [
|
|
1583
|
+
c("div", Wl, [
|
|
1584
1584
|
t(le, {
|
|
1585
|
-
percentage:
|
|
1585
|
+
percentage: B.progress || 0,
|
|
1586
1586
|
"stroke-width": 20,
|
|
1587
1587
|
"text-inside": !0
|
|
1588
1588
|
}, null, 8, ["percentage"]),
|
|
1589
|
-
|
|
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:
|
|
1596
|
-
|
|
1595
|
+
default: i(() => [...C[13] || (C[13] = [
|
|
1596
|
+
O("删除", -1)
|
|
1597
1597
|
])]),
|
|
1598
1598
|
_: 1
|
|
1599
|
-
}, 8, ["onClick"])) :
|
|
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:
|
|
1612
|
-
onDragover:
|
|
1611
|
+
onClick: N,
|
|
1612
|
+
onDragover: C[1] || (C[1] = ye(() => {
|
|
1613
1613
|
}, ["prevent"])),
|
|
1614
1614
|
onDrop: ye(de, ["prevent"])
|
|
1615
1615
|
}, [
|
|
1616
|
-
|
|
1617
|
-
|
|
1616
|
+
c("div", Ql, [
|
|
1617
|
+
c("div", Zl, [
|
|
1618
1618
|
t(V, { size: 100 }, {
|
|
1619
|
-
default:
|
|
1620
|
-
t(
|
|
1619
|
+
default: i(() => [
|
|
1620
|
+
t(I(fl))
|
|
1621
1621
|
]),
|
|
1622
1622
|
_: 1
|
|
1623
1623
|
})
|
|
1624
1624
|
]),
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
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
|
-
|
|
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:
|
|
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:
|
|
1665
|
-
const l = e, n =
|
|
1664
|
+
setup(e, { expose: F, emit: D }) {
|
|
1665
|
+
const l = e, n = D, r = Y({
|
|
1666
1666
|
get: () => l.modelValue,
|
|
1667
|
-
set: (
|
|
1668
|
-
}), d =
|
|
1667
|
+
set: (u) => n("update:modelValue", u)
|
|
1668
|
+
}), d = Y({
|
|
1669
1669
|
get: () => Array.isArray(l.modelValue) ? l.modelValue : [],
|
|
1670
|
-
set: (
|
|
1671
|
-
}),
|
|
1672
|
-
n("change",
|
|
1673
|
-
}, s = (
|
|
1674
|
-
n("change",
|
|
1675
|
-
}, v = () => l.modelValue, _ = (
|
|
1676
|
-
n("update:modelValue",
|
|
1677
|
-
},
|
|
1678
|
-
const
|
|
1679
|
-
n("update:modelValue",
|
|
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
|
-
},
|
|
1683
|
-
const
|
|
1684
|
-
if (
|
|
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
|
|
1686
|
+
return u.every((k) => a.includes(k.key));
|
|
1687
1687
|
};
|
|
1688
|
-
return
|
|
1688
|
+
return F({
|
|
1689
1689
|
getValue: v,
|
|
1690
1690
|
setValue: _,
|
|
1691
|
-
getCheckedKeys:
|
|
1692
|
-
getCheckedOptions:
|
|
1693
|
-
checkAll:
|
|
1691
|
+
getCheckedKeys: $,
|
|
1692
|
+
getCheckedOptions: E,
|
|
1693
|
+
checkAll: b,
|
|
1694
1694
|
clear: w,
|
|
1695
1695
|
toggleAll: () => {
|
|
1696
|
-
|
|
1696
|
+
g() ? w() : b();
|
|
1697
1697
|
},
|
|
1698
|
-
isAllChecked:
|
|
1698
|
+
isAllChecked: g,
|
|
1699
1699
|
getField: () => l.field ?? ""
|
|
1700
|
-
}), (
|
|
1701
|
-
const
|
|
1702
|
-
return e.single ? (o(),
|
|
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] = (
|
|
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:
|
|
1711
|
+
onChange: h
|
|
1712
1712
|
}, {
|
|
1713
|
-
default:
|
|
1714
|
-
|
|
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(),
|
|
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] = (
|
|
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:
|
|
1728
|
-
e.button ? (o(!0), y(G, { key: 0 },
|
|
1729
|
-
key:
|
|
1730
|
-
value:
|
|
1731
|
-
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:
|
|
1734
|
-
|
|
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 },
|
|
1738
|
-
key:
|
|
1739
|
-
value:
|
|
1740
|
-
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:
|
|
1744
|
-
|
|
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:
|
|
1766
|
-
const l = e, n =
|
|
1765
|
+
setup(e, { expose: F, emit: D }) {
|
|
1766
|
+
const l = e, n = D, r = Y({
|
|
1767
1767
|
get: () => l.modelValue,
|
|
1768
|
-
set: (
|
|
1769
|
-
}), d = (
|
|
1770
|
-
n("change",
|
|
1768
|
+
set: (b) => n("update:modelValue", b)
|
|
1769
|
+
}), d = (b) => {
|
|
1770
|
+
n("change", b);
|
|
1771
1771
|
};
|
|
1772
|
-
return
|
|
1772
|
+
return F({
|
|
1773
1773
|
getValue: () => l.modelValue,
|
|
1774
|
-
setValue: (
|
|
1775
|
-
n("update:modelValue",
|
|
1774
|
+
setValue: (b) => {
|
|
1775
|
+
n("update:modelValue", b);
|
|
1776
1776
|
},
|
|
1777
|
-
getSelectedOption: () => l.options.find((
|
|
1777
|
+
getSelectedOption: () => l.options.find((b) => b.key === l.modelValue),
|
|
1778
1778
|
getSelectedValue: () => {
|
|
1779
|
-
var
|
|
1780
|
-
return (
|
|
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
|
-
}), (
|
|
1787
|
-
const
|
|
1788
|
-
return o(),
|
|
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] = (
|
|
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:
|
|
1796
|
-
e.button ? (o(!0), y(G, { key: 0 },
|
|
1797
|
-
key:
|
|
1798
|
-
value:
|
|
1799
|
-
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:
|
|
1802
|
-
|
|
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 },
|
|
1806
|
-
key:
|
|
1807
|
-
value:
|
|
1808
|
-
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:
|
|
1812
|
-
|
|
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:
|
|
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 =
|
|
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
|
|
1846
|
+
return F({
|
|
1847
1847
|
isDisabled: () => n.disabled
|
|
1848
|
-
}), (_,
|
|
1849
|
-
const
|
|
1850
|
-
return o(),
|
|
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:
|
|
1859
|
-
|
|
1858
|
+
default: i(() => [
|
|
1859
|
+
h.value ? (o(), y("i", {
|
|
1860
1860
|
key: 0,
|
|
1861
|
-
class: ie(
|
|
1861
|
+
class: ie(h.value)
|
|
1862
1862
|
}, null, 2)) : W("", !0),
|
|
1863
1863
|
Ve(_.$slots, "default", {}, () => [
|
|
1864
|
-
|
|
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:
|
|
1883
|
-
const
|
|
1884
|
-
get: () =>
|
|
1885
|
-
set: (
|
|
1886
|
-
}), 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
|
|
1889
|
-
return ((w = (
|
|
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
|
|
1891
|
+
function h() {
|
|
1892
1892
|
Ze(() => {
|
|
1893
|
-
const
|
|
1894
|
-
if (
|
|
1893
|
+
const b = d();
|
|
1894
|
+
if (b)
|
|
1895
1895
|
if (v.value)
|
|
1896
|
-
|
|
1897
|
-
else if (
|
|
1898
|
-
const w = typeof
|
|
1899
|
-
|
|
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
|
-
|
|
1901
|
+
b.style.height = "", b.style.maxHeight = "90vh", b.style.borderRadius = "";
|
|
1902
1902
|
});
|
|
1903
1903
|
}
|
|
1904
1904
|
function s() {
|
|
1905
|
-
|
|
1905
|
+
h();
|
|
1906
1906
|
}
|
|
1907
|
-
ke(() =>
|
|
1908
|
-
n.value &&
|
|
1907
|
+
ke(() => D.dialogHeight, () => {
|
|
1908
|
+
n.value && h();
|
|
1909
1909
|
});
|
|
1910
|
-
const v =
|
|
1911
|
-
v.value = !v.value,
|
|
1912
|
-
},
|
|
1910
|
+
const v = S(!1), _ = () => {
|
|
1911
|
+
v.value = !v.value, h();
|
|
1912
|
+
}, $ = () => {
|
|
1913
1913
|
v.value = !1, l("update:modelValue", !1), l("close");
|
|
1914
|
-
},
|
|
1914
|
+
}, E = () => {
|
|
1915
1915
|
l("confirm");
|
|
1916
1916
|
};
|
|
1917
|
-
return (
|
|
1918
|
-
const
|
|
1919
|
-
return o(),
|
|
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] = (
|
|
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:
|
|
1932
|
+
onClose: $,
|
|
1933
1933
|
onOpened: s
|
|
1934
1934
|
}, {
|
|
1935
|
-
header:
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
e.icon ? (o(),
|
|
1939
|
-
default:
|
|
1940
|
-
(o(),
|
|
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
|
-
|
|
1944
|
+
O(" " + H(e.title), 1)
|
|
1945
1945
|
]),
|
|
1946
|
-
|
|
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(
|
|
1954
|
-
default:
|
|
1955
|
-
v.value ? (o(), I(
|
|
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
|
-
|
|
1960
|
+
c("button", {
|
|
1961
1961
|
class: "form-dialog-header__close",
|
|
1962
1962
|
title: "关闭",
|
|
1963
|
-
onClick:
|
|
1963
|
+
onClick: $
|
|
1964
1964
|
}, [
|
|
1965
|
-
t(
|
|
1966
|
-
default:
|
|
1967
|
-
t(
|
|
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:
|
|
1976
|
-
|
|
1977
|
-
Ve(
|
|
1978
|
-
t(
|
|
1979
|
-
default:
|
|
1980
|
-
|
|
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(
|
|
1984
|
+
t(R, {
|
|
1985
1985
|
type: "custom",
|
|
1986
|
-
onClick:
|
|
1986
|
+
onClick: E
|
|
1987
1987
|
}, {
|
|
1988
|
-
default:
|
|
1989
|
-
|
|
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:
|
|
1997
|
-
|
|
1998
|
-
Ve(
|
|
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:
|
|
2026
|
-
const l = e, n =
|
|
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
|
|
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
|
|
2035
|
-
return
|
|
2034
|
+
const j = p.full_path || p.name;
|
|
2035
|
+
return L.value === j;
|
|
2036
2036
|
}
|
|
2037
2037
|
async function se() {
|
|
2038
|
-
|
|
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 && (
|
|
2041
|
+
p.code === 200 && ($.value = p.data);
|
|
2042
2042
|
} finally {
|
|
2043
|
-
|
|
2043
|
+
h.value = !1;
|
|
2044
2044
|
}
|
|
2045
2045
|
}
|
|
2046
2046
|
async function pe(p) {
|
|
2047
|
-
|
|
2047
|
+
h.value = !0;
|
|
2048
2048
|
try {
|
|
2049
|
-
const
|
|
2050
|
-
|
|
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
|
-
|
|
2052
|
+
h.value = !1;
|
|
2053
2053
|
}
|
|
2054
2054
|
}
|
|
2055
2055
|
async function fe(p) {
|
|
2056
|
-
|
|
2056
|
+
h.value = !0;
|
|
2057
2057
|
try {
|
|
2058
|
-
const
|
|
2059
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2072
|
+
h.value = !0;
|
|
2073
2073
|
try {
|
|
2074
|
-
const
|
|
2075
|
-
|
|
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
|
-
|
|
2077
|
+
h.value = !1;
|
|
2078
2078
|
}
|
|
2079
2079
|
}, 300);
|
|
2080
2080
|
}
|
|
2081
2081
|
function ve() {
|
|
2082
|
-
l.disabled || (d.value = !0,
|
|
2082
|
+
l.disabled || (d.value = !0, $.value.length === 0 && se());
|
|
2083
2083
|
}
|
|
2084
|
-
function
|
|
2085
|
-
p.has_children &&
|
|
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
|
|
2088
|
-
|
|
2087
|
+
function U(p) {
|
|
2088
|
+
J(p);
|
|
2089
2089
|
}
|
|
2090
|
-
function
|
|
2091
|
-
const
|
|
2092
|
-
if (
|
|
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 },
|
|
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 },
|
|
2098
|
-
} else p.level === 1 && (w.value = p,
|
|
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,
|
|
2101
|
+
function ce(p, j, ue) {
|
|
2102
2102
|
let le = p;
|
|
2103
|
-
return ue && p.endsWith(ue) && (le = p.slice(0, -ue.length)),
|
|
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
|
|
2107
|
-
|
|
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
|
|
2110
|
-
p === 0 ? (_.value = 0, w.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
|
|
2113
|
-
|
|
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
|
|
2118
|
+
function q() {
|
|
2119
2119
|
d.value = !1, s.value = "", v.value = [];
|
|
2120
2120
|
}
|
|
2121
|
-
function
|
|
2122
|
-
n("update:modelValue", a.value), n("change", a.value),
|
|
2121
|
+
function K() {
|
|
2122
|
+
n("update:modelValue", a.value), n("change", a.value), q();
|
|
2123
2123
|
}
|
|
2124
2124
|
function Z() {
|
|
2125
|
-
var
|
|
2126
|
-
const p =
|
|
2125
|
+
var j, ue, le;
|
|
2126
|
+
const p = R.value || g.value || w.value;
|
|
2127
2127
|
return {
|
|
2128
|
-
province: ((
|
|
2129
|
-
city: ((ue =
|
|
2130
|
-
district: ((le =
|
|
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 ? (
|
|
2138
|
-
}, { immediate: !0 }),
|
|
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,
|
|
2142
|
-
const ue =
|
|
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:
|
|
2148
|
-
"onUpdate:modelValue":
|
|
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 ?
|
|
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":
|
|
2161
|
-
title:
|
|
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:
|
|
2167
|
+
onClose: q
|
|
2168
2168
|
}, {
|
|
2169
|
-
header:
|
|
2170
|
-
|
|
2171
|
-
|
|
2169
|
+
header: i(() => [
|
|
2170
|
+
c("div", ca, [
|
|
2171
|
+
c("span", fa, [
|
|
2172
2172
|
t(le, null, {
|
|
2173
|
-
default:
|
|
2174
|
-
t(
|
|
2173
|
+
default: i(() => [
|
|
2174
|
+
t(I(hl))
|
|
2175
2175
|
]),
|
|
2176
2176
|
_: 1
|
|
2177
2177
|
}),
|
|
2178
|
-
|
|
2178
|
+
O(" " + H(k.value), 1)
|
|
2179
2179
|
]),
|
|
2180
|
-
|
|
2180
|
+
c("button", {
|
|
2181
2181
|
class: "form-dialog-header__close",
|
|
2182
|
-
onClick:
|
|
2182
|
+
onClick: q
|
|
2183
2183
|
}, [
|
|
2184
2184
|
t(le, null, {
|
|
2185
|
-
default:
|
|
2186
|
-
t(
|
|
2185
|
+
default: i(() => [
|
|
2186
|
+
t(I(Ce))
|
|
2187
2187
|
]),
|
|
2188
2188
|
_: 1
|
|
2189
2189
|
})
|
|
2190
2190
|
])
|
|
2191
2191
|
])
|
|
2192
2192
|
]),
|
|
2193
|
-
footer:
|
|
2194
|
-
|
|
2195
|
-
t(m, { onClick:
|
|
2196
|
-
default:
|
|
2197
|
-
|
|
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:
|
|
2203
|
+
onClick: K
|
|
2204
2204
|
}, {
|
|
2205
|
-
default:
|
|
2206
|
-
|
|
2205
|
+
default: i(() => [...j[9] || (j[9] = [
|
|
2206
|
+
O("确认", -1)
|
|
2207
2207
|
])]),
|
|
2208
2208
|
_: 1
|
|
2209
2209
|
})
|
|
2210
2210
|
])
|
|
2211
2211
|
]),
|
|
2212
|
-
default:
|
|
2213
|
-
|
|
2214
|
-
|
|
2212
|
+
default: i(() => [
|
|
2213
|
+
c("div", ma, [
|
|
2214
|
+
c("div", pa, [
|
|
2215
2215
|
t(ue, {
|
|
2216
2216
|
modelValue: s.value,
|
|
2217
|
-
"onUpdate:modelValue":
|
|
2217
|
+
"onUpdate:modelValue": j[1] || (j[1] = (Q) => s.value = Q),
|
|
2218
2218
|
placeholder: "搜索省/市/区县",
|
|
2219
|
-
"prefix-icon":
|
|
2219
|
+
"prefix-icon": I(be),
|
|
2220
2220
|
clearable: "",
|
|
2221
2221
|
onInput: ae
|
|
2222
2222
|
}, null, 8, ["modelValue", "prefix-icon"])
|
|
2223
2223
|
]),
|
|
2224
|
-
|
|
2225
|
-
|
|
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
|
-
|
|
2227
|
+
c("span", {
|
|
2228
2228
|
class: ie(["breadcrumb-item", { "is-active": _.value === 0 }]),
|
|
2229
|
-
onClick:
|
|
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:
|
|
2234
|
-
t(
|
|
2233
|
+
default: i(() => [
|
|
2234
|
+
t(I(De))
|
|
2235
2235
|
]),
|
|
2236
2236
|
_: 1
|
|
2237
2237
|
}),
|
|
2238
|
-
|
|
2238
|
+
c("span", {
|
|
2239
2239
|
class: ie(["breadcrumb-item", { "is-active": _.value === 1 }]),
|
|
2240
|
-
onClick:
|
|
2241
|
-
},
|
|
2240
|
+
onClick: j[3] || (j[3] = (Q) => z(1))
|
|
2241
|
+
}, H(w.value.name), 3)
|
|
2242
2242
|
], 64)) : W("", !0),
|
|
2243
|
-
|
|
2243
|
+
g.value ? (o(), y(G, { key: 1 }, [
|
|
2244
2244
|
t(le, { class: "breadcrumb-arrow" }, {
|
|
2245
|
-
default:
|
|
2246
|
-
t(
|
|
2245
|
+
default: i(() => [
|
|
2246
|
+
t(I(De))
|
|
2247
2247
|
]),
|
|
2248
2248
|
_: 1
|
|
2249
2249
|
}),
|
|
2250
|
-
|
|
2250
|
+
c("span", {
|
|
2251
2251
|
class: ie(["breadcrumb-item", { "is-active": _.value === 2 }]),
|
|
2252
|
-
onClick:
|
|
2253
|
-
},
|
|
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
|
-
|
|
2258
|
-
(o(!0), y(G, null,
|
|
2259
|
-
key:
|
|
2260
|
-
class: ie(["area-item", { "is-selected": de(
|
|
2261
|
-
onClick: (Ee) =>
|
|
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
|
-
|
|
2264
|
-
de(
|
|
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:
|
|
2269
|
-
t(
|
|
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(),
|
|
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,
|
|
2281
|
-
key:
|
|
2282
|
-
class: ie(["area-item", { "is-selected": de(
|
|
2283
|
-
onClick: (Ee) =>
|
|
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
|
-
|
|
2286
|
-
|
|
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:
|
|
2291
|
-
t(
|
|
2290
|
+
default: i(() => [
|
|
2291
|
+
t(I(De))
|
|
2292
2292
|
]),
|
|
2293
2293
|
_: 1
|
|
2294
|
-
})) : de(
|
|
2294
|
+
})) : de(Q) ? (o(), P(le, {
|
|
2295
2295
|
key: 1,
|
|
2296
2296
|
class: "area-item__check"
|
|
2297
2297
|
}, {
|
|
2298
|
-
default:
|
|
2299
|
-
t(
|
|
2298
|
+
default: i(() => [
|
|
2299
|
+
t(I(Ke))
|
|
2300
2300
|
]),
|
|
2301
2301
|
_: 1
|
|
2302
2302
|
})) : W("", !0)
|
|
2303
2303
|
], 10, _a))), 128)),
|
|
2304
|
-
|
|
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,
|
|
2311
|
+
[me, h.value]
|
|
2312
2312
|
]),
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
t(
|
|
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:
|
|
2318
|
+
onClose: C
|
|
2319
2319
|
}, {
|
|
2320
|
-
default:
|
|
2321
|
-
|
|
2320
|
+
default: i(() => [
|
|
2321
|
+
O(H(L.value), 1)
|
|
2322
2322
|
]),
|
|
2323
2323
|
_: 1
|
|
2324
2324
|
}),
|
|
2325
|
-
|
|
2325
|
+
u.value ? (o(), P(B, {
|
|
2326
2326
|
key: 0,
|
|
2327
2327
|
type: "info",
|
|
2328
2328
|
class: "destination-tag"
|
|
2329
2329
|
}, {
|
|
2330
|
-
default:
|
|
2331
|
-
|
|
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:
|
|
2548
|
-
const
|
|
2549
|
-
get: () =>
|
|
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 =
|
|
2552
|
-
get: () =>
|
|
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
|
-
},
|
|
2556
|
+
}, h = (s) => {
|
|
2557
2557
|
l("change", { page: s, size: r.value });
|
|
2558
2558
|
};
|
|
2559
2559
|
return (s, v) => {
|
|
2560
|
-
const _ =
|
|
2560
|
+
const _ = A("el-pagination"), $ = A("el-config-provider");
|
|
2561
2561
|
return o(), y("div", Ea, [
|
|
2562
|
-
t(
|
|
2563
|
-
default:
|
|
2562
|
+
t($, { locale: I(Ba) }, {
|
|
2563
|
+
default: i(() => [
|
|
2564
2564
|
t(_, {
|
|
2565
2565
|
"current-page": n.value,
|
|
2566
|
-
"onUpdate:currentPage": v[0] || (v[0] = (
|
|
2566
|
+
"onUpdate:currentPage": v[0] || (v[0] = (E) => n.value = E),
|
|
2567
2567
|
"page-size": r.value,
|
|
2568
|
-
"onUpdate:pageSize": v[1] || (v[1] = (
|
|
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:
|
|
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:
|
|
2597
|
-
const l = e, n =
|
|
2598
|
-
r.value = !0, await new Promise((
|
|
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
|
-
],
|
|
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, (
|
|
2632
|
-
|
|
2631
|
+
}), ke(() => l.formId, (g) => {
|
|
2632
|
+
g && l.modelValue && _(g);
|
|
2633
2633
|
});
|
|
2634
|
-
const
|
|
2635
|
-
n("update:modelValue",
|
|
2636
|
-
},
|
|
2634
|
+
const $ = (g) => {
|
|
2635
|
+
n("update:modelValue", g);
|
|
2636
|
+
}, E = () => {
|
|
2637
2637
|
l.formId && _(l.formId);
|
|
2638
|
-
},
|
|
2638
|
+
}, b = (g) => {
|
|
2639
2639
|
v.value && v.value.scrollBy({
|
|
2640
|
-
left:
|
|
2640
|
+
left: g * 200,
|
|
2641
2641
|
behavior: "smooth"
|
|
2642
2642
|
});
|
|
2643
2643
|
};
|
|
2644
|
-
return
|
|
2645
|
-
scrollSteps:
|
|
2644
|
+
return F({
|
|
2645
|
+
scrollSteps: b,
|
|
2646
2646
|
refresh: () => {
|
|
2647
2647
|
l.formId && _(l.formId);
|
|
2648
2648
|
}
|
|
2649
|
-
}), (
|
|
2650
|
-
const
|
|
2651
|
-
return o(),
|
|
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":
|
|
2658
|
-
onOpen:
|
|
2657
|
+
"onUpdate:modelValue": $,
|
|
2658
|
+
onOpen: E
|
|
2659
2659
|
}, {
|
|
2660
|
-
header:
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
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:
|
|
2665
|
+
onClick: R[0] || (R[0] = (f) => $(!1))
|
|
2666
2666
|
}, [
|
|
2667
|
-
t(
|
|
2668
|
-
default:
|
|
2669
|
-
t(
|
|
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:
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2676
|
+
default: i(() => [
|
|
2677
|
+
c("div", Sa, [
|
|
2678
|
+
c("div", za, [
|
|
2679
|
+
c("div", {
|
|
2680
2680
|
class: "steps-nav steps-nav-prev",
|
|
2681
|
-
onClick:
|
|
2681
|
+
onClick: R[1] || (R[1] = (f) => b(-1))
|
|
2682
2682
|
}, [
|
|
2683
|
-
t(
|
|
2684
|
-
default:
|
|
2685
|
-
t(
|
|
2683
|
+
t(L, null, {
|
|
2684
|
+
default: i(() => [
|
|
2685
|
+
t(I(bl))
|
|
2686
2686
|
]),
|
|
2687
2687
|
_: 1
|
|
2688
2688
|
})
|
|
2689
2689
|
]),
|
|
2690
|
-
|
|
2690
|
+
c("div", {
|
|
2691
2691
|
class: "steps-container",
|
|
2692
2692
|
ref_key: "stepsContainerRef",
|
|
2693
2693
|
ref: v
|
|
2694
2694
|
}, [
|
|
2695
|
-
|
|
2696
|
-
(o(!0), y(G, null,
|
|
2697
|
-
|
|
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":
|
|
2700
|
-
"step-item--active":
|
|
2701
|
-
"step-item--pending":
|
|
2702
|
-
"step-item--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
|
-
|
|
2706
|
-
|
|
2707
|
-
default:
|
|
2708
|
-
t(
|
|
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
|
-
})) :
|
|
2712
|
-
default:
|
|
2713
|
-
t(
|
|
2711
|
+
})) : f.type === "end" ? (o(), P(L, { key: 1 }, {
|
|
2712
|
+
default: i(() => [
|
|
2713
|
+
t(I(_l))
|
|
2714
2714
|
]),
|
|
2715
2715
|
_: 1
|
|
2716
|
-
})) : (o(),
|
|
2717
|
-
default:
|
|
2718
|
-
t(
|
|
2716
|
+
})) : (o(), P(L, { key: 2 }, {
|
|
2717
|
+
default: i(() => [
|
|
2718
|
+
t(I(wl))
|
|
2719
2719
|
]),
|
|
2720
2720
|
_: 1
|
|
2721
2721
|
}))
|
|
2722
2722
|
]),
|
|
2723
|
-
|
|
2723
|
+
c("div", Aa, H(f.title), 1)
|
|
2724
2724
|
], 2),
|
|
2725
|
-
|
|
2725
|
+
X < d.value.length - 1 ? (o(), y("div", {
|
|
2726
2726
|
key: 0,
|
|
2727
2727
|
class: ie(["step-line", {
|
|
2728
|
-
"step-line--done":
|
|
2729
|
-
"step-line--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
|
-
|
|
2735
|
+
c("div", {
|
|
2736
2736
|
class: "steps-nav steps-nav-next",
|
|
2737
|
-
onClick:
|
|
2737
|
+
onClick: R[2] || (R[2] = (f) => b(1))
|
|
2738
2738
|
}, [
|
|
2739
|
-
t(
|
|
2740
|
-
default:
|
|
2741
|
-
t(
|
|
2739
|
+
t(L, null, {
|
|
2740
|
+
default: i(() => [
|
|
2741
|
+
t(I(Vl))
|
|
2742
2742
|
]),
|
|
2743
2743
|
_: 1
|
|
2744
2744
|
})
|
|
2745
2745
|
])
|
|
2746
2746
|
]),
|
|
2747
|
-
|
|
2747
|
+
h.value ? (o(), y("div", Pa, [
|
|
2748
2748
|
t(a, {
|
|
2749
|
-
data: [
|
|
2749
|
+
data: [h.value],
|
|
2750
2750
|
border: ""
|
|
2751
2751
|
}, {
|
|
2752
|
-
default:
|
|
2753
|
-
t(
|
|
2752
|
+
default: i(() => [
|
|
2753
|
+
t(u, {
|
|
2754
2754
|
prop: "stepName",
|
|
2755
2755
|
label: "当前步骤",
|
|
2756
2756
|
width: "150"
|
|
2757
2757
|
}),
|
|
2758
|
-
t(
|
|
2758
|
+
t(u, {
|
|
2759
2759
|
prop: "handler",
|
|
2760
2760
|
label: "当前处理人",
|
|
2761
2761
|
width: "180"
|
|
2762
2762
|
}),
|
|
2763
|
-
t(
|
|
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
|
-
|
|
2771
|
+
c("div", Ia, [
|
|
2772
2772
|
t(a, {
|
|
2773
2773
|
data: s.value,
|
|
2774
2774
|
border: ""
|
|
2775
2775
|
}, {
|
|
2776
|
-
default:
|
|
2777
|
-
t(
|
|
2776
|
+
default: i(() => [
|
|
2777
|
+
t(u, {
|
|
2778
2778
|
prop: "stepName",
|
|
2779
2779
|
label: "审批步骤",
|
|
2780
2780
|
width: "120"
|
|
2781
2781
|
}),
|
|
2782
|
-
t(
|
|
2782
|
+
t(u, {
|
|
2783
2783
|
prop: "approver",
|
|
2784
2784
|
label: "审批人",
|
|
2785
2785
|
width: "160"
|
|
2786
2786
|
}),
|
|
2787
|
-
t(
|
|
2787
|
+
t(u, {
|
|
2788
2788
|
prop: "action",
|
|
2789
2789
|
label: "动作",
|
|
2790
2790
|
width: "80"
|
|
2791
2791
|
}),
|
|
2792
|
-
t(
|
|
2792
|
+
t(u, {
|
|
2793
2793
|
prop: "arriveTime",
|
|
2794
2794
|
label: "到达时间",
|
|
2795
2795
|
width: "180"
|
|
2796
2796
|
}),
|
|
2797
|
-
t(
|
|
2797
|
+
t(u, {
|
|
2798
2798
|
prop: "approveTime",
|
|
2799
2799
|
label: "审批时间",
|
|
2800
2800
|
width: "180"
|
|
2801
2801
|
}),
|
|
2802
|
-
t(
|
|
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:
|
|
2844
|
-
const l = e, n =
|
|
2845
|
-
var
|
|
2846
|
-
return
|
|
2847
|
-
}),
|
|
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
|
|
2850
|
-
v.value = ((ce =
|
|
2851
|
-
},
|
|
2852
|
-
l.disabled || (r.value = !0,
|
|
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 = "",
|
|
2855
|
-
},
|
|
2856
|
-
|
|
2857
|
-
},
|
|
2858
|
-
var
|
|
2859
|
-
|
|
2860
|
-
},
|
|
2861
|
-
w.value.push({ dept_no:
|
|
2862
|
-
},
|
|
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
|
|
2866
|
-
|
|
2865
|
+
const T = w.value[w.value.length - 1];
|
|
2866
|
+
L(T.dept_no);
|
|
2867
2867
|
}
|
|
2868
|
-
},
|
|
2868
|
+
}, oe = (T) => {
|
|
2869
2869
|
if (l.multiple) {
|
|
2870
|
-
const
|
|
2871
|
-
|
|
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
|
-
|
|
2874
|
-
}, de = (
|
|
2875
|
-
const
|
|
2876
|
-
|
|
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
|
-
|
|
2878
|
+
$.value = [...E.value], pe(), a();
|
|
2879
2879
|
}, pe = () => {
|
|
2880
2880
|
if (l.multiple) {
|
|
2881
|
-
const
|
|
2882
|
-
n("update:modelValue",
|
|
2881
|
+
const T = $.value.map((U) => U.cardno);
|
|
2882
|
+
n("update:modelValue", T), n("change", $.value);
|
|
2883
2883
|
} else {
|
|
2884
|
-
const
|
|
2885
|
-
n("update:modelValue",
|
|
2884
|
+
const T = $.value[0];
|
|
2885
|
+
n("update:modelValue", T == null ? void 0 : T.cardno), n("change", T);
|
|
2886
2886
|
}
|
|
2887
2887
|
}, fe = () => {
|
|
2888
|
-
|
|
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
|
-
|
|
2894
|
+
b.value = [];
|
|
2895
2895
|
return;
|
|
2896
2896
|
}
|
|
2897
|
-
const
|
|
2898
|
-
|
|
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 = "",
|
|
2901
|
+
d.value = "", b.value = [];
|
|
2902
2902
|
};
|
|
2903
|
-
return
|
|
2904
|
-
openDialog:
|
|
2905
|
-
getSelectedUsers: () =>
|
|
2906
|
-
getSelectedIds: () =>
|
|
2903
|
+
return F({
|
|
2904
|
+
openDialog: u,
|
|
2905
|
+
getSelectedUsers: () => $.value,
|
|
2906
|
+
getSelectedIds: () => $.value.map((T) => T.cardno),
|
|
2907
2907
|
clear: fe
|
|
2908
|
-
}), (
|
|
2909
|
-
const
|
|
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":
|
|
2915
|
+
"model-value": g.value,
|
|
2916
2916
|
placeholder: e.placeholder,
|
|
2917
2917
|
disabled: e.disabled,
|
|
2918
2918
|
readonly: "",
|
|
2919
|
-
clearable: e.clearable &&
|
|
2920
|
-
onClick:
|
|
2919
|
+
clearable: e.clearable && $.value.length > 0,
|
|
2920
|
+
onClick: u,
|
|
2921
2921
|
onClear: fe
|
|
2922
2922
|
}, {
|
|
2923
|
-
suffix:
|
|
2924
|
-
t(
|
|
2923
|
+
suffix: i(() => [
|
|
2924
|
+
t(J, {
|
|
2925
2925
|
class: "base-user__icon",
|
|
2926
|
-
onClick: ye(
|
|
2926
|
+
onClick: ye(u, ["stop"])
|
|
2927
2927
|
}, {
|
|
2928
|
-
default:
|
|
2929
|
-
t(
|
|
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(
|
|
2936
|
+
t(C, {
|
|
2937
2937
|
modelValue: r.value,
|
|
2938
|
-
"onUpdate:modelValue":
|
|
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:
|
|
2946
|
-
|
|
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:
|
|
2950
|
+
onClick: N
|
|
2951
2951
|
}, [
|
|
2952
|
-
t(
|
|
2953
|
-
default:
|
|
2954
|
-
t(
|
|
2952
|
+
t(J, null, {
|
|
2953
|
+
default: i(() => [
|
|
2954
|
+
t(I(Xe))
|
|
2955
2955
|
]),
|
|
2956
2956
|
_: 1
|
|
2957
2957
|
})
|
|
2958
2958
|
])) : W("", !0),
|
|
2959
|
-
|
|
2960
|
-
|
|
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(
|
|
2965
|
-
default:
|
|
2966
|
-
t(
|
|
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:
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
(o(!0), y(G, null,
|
|
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: (
|
|
2980
|
+
onClose: (q) => de(V)
|
|
2981
2981
|
}, {
|
|
2982
|
-
default:
|
|
2983
|
-
|
|
2982
|
+
default: i(() => [
|
|
2983
|
+
O(H(V.name), 1)
|
|
2984
2984
|
]),
|
|
2985
2985
|
_: 2
|
|
2986
2986
|
}, 1032, ["onClose"]))), 128))
|
|
2987
2987
|
]),
|
|
2988
|
-
t(
|
|
2988
|
+
t(z, {
|
|
2989
2989
|
type: "primary",
|
|
2990
2990
|
onClick: se
|
|
2991
2991
|
}, {
|
|
2992
|
-
default:
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
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:
|
|
3003
|
-
|
|
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":
|
|
3008
|
+
"onUpdate:modelValue": U[0] || (U[0] = (V) => d.value = V),
|
|
3009
3009
|
placeholder: "搜索",
|
|
3010
|
-
"prefix-icon":
|
|
3010
|
+
"prefix-icon": I(be),
|
|
3011
3011
|
clearable: "",
|
|
3012
|
-
onFocus:
|
|
3012
|
+
onFocus: k,
|
|
3013
3013
|
onInput: ae,
|
|
3014
3014
|
onClear: ve
|
|
3015
3015
|
}, null, 8, ["modelValue", "prefix-icon"]),
|
|
3016
|
-
|
|
3016
|
+
h.value ? (o(), y("span", {
|
|
3017
3017
|
key: 0,
|
|
3018
3018
|
class: "user-dialog__search-cancel",
|
|
3019
|
-
onClick:
|
|
3019
|
+
onClick: f
|
|
3020
3020
|
}, "取消")) : W("", !0)
|
|
3021
3021
|
]),
|
|
3022
|
-
|
|
3023
|
-
(o(!0), y(G, null,
|
|
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: (
|
|
3026
|
+
onClick: (q) => oe(V)
|
|
3027
3027
|
}, [
|
|
3028
|
-
|
|
3029
|
-
|
|
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
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
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
|
-
|
|
3036
|
+
c("div", qa, H(V.deptname), 1)
|
|
3037
3037
|
]),
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
class: ie(["user-dialog__checkbox", { "is-checked":
|
|
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 &&
|
|
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(
|
|
3047
|
-
default:
|
|
3048
|
-
t(
|
|
3046
|
+
t(J, { class: "user-dialog__empty-icon" }, {
|
|
3047
|
+
default: i(() => [
|
|
3048
|
+
t(I(be))
|
|
3049
3049
|
]),
|
|
3050
3050
|
_: 1
|
|
3051
3051
|
}),
|
|
3052
|
-
|
|
3052
|
+
U[3] || (U[3] = c("div", null, "请输入关键词搜索", -1))
|
|
3053
3053
|
]))
|
|
3054
3054
|
])) : (o(), y("div", Ja, [
|
|
3055
|
-
(o(!0), y(G, null,
|
|
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: (
|
|
3058
|
+
onClick: (q) => X(V)
|
|
3059
3059
|
}, [
|
|
3060
|
-
|
|
3061
|
-
|
|
3060
|
+
U[4] || (U[4] = c("div", { class: "user-dialog__item-avatar" }, [
|
|
3061
|
+
c("i", { class: "iconfont icon-zuzhibumen" })
|
|
3062
3062
|
], -1)),
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
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
|
-
|
|
3068
|
-
|
|
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,
|
|
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: (
|
|
3074
|
+
onClick: (q) => oe(V)
|
|
3075
3075
|
}, [
|
|
3076
|
-
|
|
3077
|
-
|
|
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
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
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
|
-
|
|
3084
|
+
c("div", st, H(V.deptname), 1)
|
|
3085
3085
|
]),
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
class: ie(["user-dialog__checkbox", { "is-checked":
|
|
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:
|
|
3129
|
-
const l = e, n =
|
|
3130
|
-
var
|
|
3131
|
-
return ((
|
|
3132
|
-
}),
|
|
3133
|
-
var
|
|
3134
|
-
return ((
|
|
3135
|
-
},
|
|
3136
|
-
he().post(`/proxy/sys/dept/api/get_sub_depts/${
|
|
3137
|
-
v.value =
|
|
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,
|
|
3141
|
-
},
|
|
3142
|
-
r.value = !1, d.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
|
-
|
|
3145
|
-
},
|
|
3146
|
-
var
|
|
3147
|
-
|
|
3148
|
-
},
|
|
3149
|
-
|
|
3150
|
-
},
|
|
3151
|
-
|
|
3152
|
-
},
|
|
3153
|
-
if (
|
|
3154
|
-
|
|
3155
|
-
const
|
|
3156
|
-
|
|
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
|
-
},
|
|
3159
|
-
|
|
3158
|
+
}, oe = (T) => {
|
|
3159
|
+
$.value = T;
|
|
3160
3160
|
}, de = () => {
|
|
3161
|
-
|
|
3161
|
+
$.value = null;
|
|
3162
3162
|
}, se = () => {
|
|
3163
|
-
_.value =
|
|
3163
|
+
_.value = $.value ? { ...$.value } : null, pe(), u();
|
|
3164
3164
|
}, pe = () => {
|
|
3165
|
-
var
|
|
3166
|
-
n("update:modelValue", (
|
|
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
|
-
|
|
3174
|
+
E.value = [];
|
|
3175
3175
|
return;
|
|
3176
3176
|
}
|
|
3177
|
-
he().post("/proxy/sys/dept/api/search_dept", { keyword: d.value }).then((
|
|
3178
|
-
|
|
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 = "",
|
|
3182
|
+
d.value = "", E.value = [];
|
|
3183
3183
|
};
|
|
3184
|
-
return
|
|
3185
|
-
openDialog:
|
|
3184
|
+
return F({
|
|
3185
|
+
openDialog: L,
|
|
3186
3186
|
getSelectedDept: () => _.value,
|
|
3187
3187
|
getSelectedId: () => {
|
|
3188
|
-
var
|
|
3189
|
-
return (
|
|
3188
|
+
var T;
|
|
3189
|
+
return (T = _.value) == null ? void 0 : T.dept_no;
|
|
3190
3190
|
},
|
|
3191
3191
|
clear: fe
|
|
3192
|
-
}), (
|
|
3193
|
-
const
|
|
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:
|
|
3208
|
-
t(
|
|
3207
|
+
suffix: i(() => [
|
|
3208
|
+
t(J, {
|
|
3209
3209
|
class: "busi-dept__icon",
|
|
3210
|
-
onClick: ye(
|
|
3210
|
+
onClick: ye(L, ["stop"])
|
|
3211
3211
|
}, {
|
|
3212
|
-
default:
|
|
3213
|
-
t(
|
|
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(
|
|
3220
|
+
t(C, {
|
|
3221
3221
|
modelValue: r.value,
|
|
3222
|
-
"onUpdate:modelValue":
|
|
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:
|
|
3228
|
+
onClose: u
|
|
3229
3229
|
}, {
|
|
3230
|
-
header:
|
|
3231
|
-
|
|
3232
|
-
|
|
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:
|
|
3235
|
+
onClick: N
|
|
3236
3236
|
}, [
|
|
3237
|
-
t(
|
|
3238
|
-
default:
|
|
3239
|
-
t(
|
|
3237
|
+
t(J, null, {
|
|
3238
|
+
default: i(() => [
|
|
3239
|
+
t(I(Xe))
|
|
3240
3240
|
]),
|
|
3241
3241
|
_: 1
|
|
3242
3242
|
})
|
|
3243
3243
|
])) : W("", !0),
|
|
3244
|
-
|
|
3245
|
-
|
|
3244
|
+
c("span", ft, H(e.dialogTitle), 1),
|
|
3245
|
+
c("span", {
|
|
3246
3246
|
class: "dept-dialog__close",
|
|
3247
|
-
onClick:
|
|
3247
|
+
onClick: u
|
|
3248
3248
|
}, [
|
|
3249
|
-
t(
|
|
3250
|
-
default:
|
|
3251
|
-
t(
|
|
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:
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
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:
|
|
3268
|
-
|
|
3267
|
+
default: i(() => [
|
|
3268
|
+
O(H($.value.dept_name), 1)
|
|
3269
3269
|
]),
|
|
3270
3270
|
_: 1
|
|
3271
3271
|
})) : W("", !0)
|
|
3272
3272
|
]),
|
|
3273
|
-
t(
|
|
3273
|
+
t(z, {
|
|
3274
3274
|
type: "primary",
|
|
3275
3275
|
onClick: se
|
|
3276
3276
|
}, {
|
|
3277
|
-
default:
|
|
3278
|
-
|
|
3277
|
+
default: i(() => [...U[6] || (U[6] = [
|
|
3278
|
+
O("确定", -1)
|
|
3279
3279
|
])]),
|
|
3280
3280
|
_: 1
|
|
3281
3281
|
})
|
|
3282
3282
|
])
|
|
3283
3283
|
]),
|
|
3284
|
-
default:
|
|
3285
|
-
|
|
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":
|
|
3290
|
+
"onUpdate:modelValue": U[0] || (U[0] = (V) => d.value = V),
|
|
3291
3291
|
placeholder: "搜索部门",
|
|
3292
|
-
"prefix-icon":
|
|
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
|
-
|
|
3298
|
+
h.value ? (o(), y("span", {
|
|
3299
3299
|
key: 0,
|
|
3300
3300
|
class: "dept-dialog__search-cancel",
|
|
3301
|
-
onClick:
|
|
3301
|
+
onClick: k
|
|
3302
3302
|
}, "取消")) : W("", !0)
|
|
3303
3303
|
]),
|
|
3304
|
-
|
|
3305
|
-
(o(!0), y(G, null,
|
|
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: (
|
|
3308
|
+
onClick: (q) => oe(V)
|
|
3309
3309
|
}, [
|
|
3310
|
-
|
|
3311
|
-
|
|
3310
|
+
U[2] || (U[2] = c("div", { class: "dept-dialog__item-avatar" }, [
|
|
3311
|
+
c("i", { class: "iconfont icon-zuzhibumen" })
|
|
3312
3312
|
], -1)),
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
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
|
-
|
|
3318
|
-
|
|
3319
|
-
class: ie(["dept-dialog__checkbox", { "is-checked":
|
|
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 &&
|
|
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(
|
|
3326
|
-
default:
|
|
3327
|
-
t(
|
|
3325
|
+
t(J, { class: "dept-dialog__empty-icon" }, {
|
|
3326
|
+
default: i(() => [
|
|
3327
|
+
t(I(be))
|
|
3328
3328
|
]),
|
|
3329
3329
|
_: 1
|
|
3330
3330
|
}),
|
|
3331
|
-
|
|
3331
|
+
U[3] || (U[3] = c("div", null, "请输入关键词搜索", -1))
|
|
3332
3332
|
]))
|
|
3333
3333
|
])) : (o(), y("div", Vt, [
|
|
3334
|
-
(o(!0), y(G, null,
|
|
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: (
|
|
3337
|
+
onClick: (q) => X(V)
|
|
3338
3338
|
}, [
|
|
3339
|
-
|
|
3339
|
+
c("div", {
|
|
3340
3340
|
class: "dept-dialog__item-check",
|
|
3341
|
-
onClick: ye((
|
|
3341
|
+
onClick: ye((q) => oe(V), ["stop"])
|
|
3342
3342
|
}, [
|
|
3343
|
-
|
|
3344
|
-
class: ie(["dept-dialog__checkbox", { "is-checked":
|
|
3343
|
+
c("span", {
|
|
3344
|
+
class: ie(["dept-dialog__checkbox", { "is-checked": g(V) }])
|
|
3345
3345
|
}, null, 2)
|
|
3346
3346
|
], 8, Ct),
|
|
3347
|
-
|
|
3348
|
-
|
|
3347
|
+
U[5] || (U[5] = c("div", { class: "dept-dialog__item-avatar" }, [
|
|
3348
|
+
c("i", { class: "iconfont icon-zuzhibumen" })
|
|
3349
3349
|
], -1)),
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
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, [...
|
|
3355
|
-
|
|
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:
|
|
3379
|
-
const l = e, n =
|
|
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 =
|
|
3387
|
-
var
|
|
3388
|
-
return ((
|
|
3389
|
-
}),
|
|
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
|
|
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:
|
|
3395
|
+
keywords: k
|
|
3396
3396
|
});
|
|
3397
|
-
v.value =
|
|
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
|
|
3403
|
-
l.disabled || (r.value = !0,
|
|
3404
|
-
},
|
|
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
|
-
},
|
|
3407
|
-
s.currentPage = 1,
|
|
3408
|
-
},
|
|
3409
|
-
|
|
3410
|
-
},
|
|
3411
|
-
const
|
|
3412
|
-
|
|
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
|
|
3416
|
+
return F({
|
|
3417
3417
|
openDialog: w,
|
|
3418
3418
|
getSelectedUser: () => _.value,
|
|
3419
3419
|
clear: a
|
|
3420
|
-
}), (
|
|
3421
|
-
const
|
|
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(
|
|
3425
|
+
t(N, {
|
|
3426
3426
|
class: "busi-outuser__search",
|
|
3427
|
-
"model-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:
|
|
3436
|
-
t(
|
|
3435
|
+
suffix: i(() => [
|
|
3436
|
+
t(X, {
|
|
3437
3437
|
class: "busi-outuser__icon",
|
|
3438
3438
|
onClick: ye(w, ["stop"])
|
|
3439
3439
|
}, {
|
|
3440
|
-
default:
|
|
3441
|
-
t(
|
|
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":
|
|
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:
|
|
3456
|
+
onClose: g
|
|
3457
3457
|
}, {
|
|
3458
|
-
header:
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
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:
|
|
3463
|
+
onClick: g
|
|
3464
3464
|
}, [
|
|
3465
|
-
t(
|
|
3466
|
-
default:
|
|
3467
|
-
t(
|
|
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:
|
|
3475
|
-
|
|
3476
|
-
t(
|
|
3477
|
-
default:
|
|
3478
|
-
|
|
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(
|
|
3482
|
+
t(oe, {
|
|
3483
3483
|
type: "primary",
|
|
3484
|
-
onClick:
|
|
3484
|
+
onClick: u
|
|
3485
3485
|
}, {
|
|
3486
|
-
default:
|
|
3487
|
-
|
|
3486
|
+
default: i(() => [...f[12] || (f[12] = [
|
|
3487
|
+
O("确定", -1)
|
|
3488
3488
|
])]),
|
|
3489
3489
|
_: 1
|
|
3490
3490
|
})
|
|
3491
3491
|
])
|
|
3492
3492
|
]),
|
|
3493
|
-
default:
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
t(
|
|
3498
|
-
modelValue:
|
|
3499
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
3505
|
-
|
|
3506
|
-
t(
|
|
3507
|
-
modelValue:
|
|
3508
|
-
"onUpdate:modelValue":
|
|
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(
|
|
3514
|
-
default:
|
|
3515
|
-
|
|
3516
|
-
|
|
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
|
-
|
|
3522
|
-
qe((o(),
|
|
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:
|
|
3528
|
+
default: i(() => [
|
|
3529
3529
|
t(se, {
|
|
3530
3530
|
label: "选择",
|
|
3531
3531
|
width: "60",
|
|
3532
3532
|
align: "center"
|
|
3533
3533
|
}, {
|
|
3534
|
-
default:
|
|
3534
|
+
default: i(({ row: ae }) => [
|
|
3535
3535
|
t(de, {
|
|
3536
|
-
modelValue:
|
|
3537
|
-
"onUpdate:modelValue":
|
|
3536
|
+
modelValue: $.value,
|
|
3537
|
+
"onUpdate:modelValue": f[2] || (f[2] = (ve) => $.value = ve),
|
|
3538
3538
|
value: ae.fid,
|
|
3539
|
-
onClick:
|
|
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
|
-
|
|
3581
|
+
c("div", Pt, [
|
|
3582
3582
|
t(Fa, {
|
|
3583
3583
|
page: s.currentPage,
|
|
3584
|
-
"onUpdate:page":
|
|
3584
|
+
"onUpdate:page": f[4] || (f[4] = (ae) => s.currentPage = ae),
|
|
3585
3585
|
size: s.pageSize,
|
|
3586
|
-
"onUpdate:size":
|
|
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:
|
|
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:
|
|
3607
|
-
const
|
|
3608
|
-
get: () =>
|
|
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 =
|
|
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 =
|
|
3620
|
-
var w,
|
|
3621
|
-
v.value && ((
|
|
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:
|
|
3625
|
-
({ mode: w, user:
|
|
3626
|
-
|
|
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
|
|
3630
|
+
const $ = () => {
|
|
3631
3631
|
l("update:modelValue", !1), l("close");
|
|
3632
|
-
},
|
|
3633
|
-
if (!
|
|
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,
|
|
3638
|
-
const
|
|
3639
|
-
return o(),
|
|
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":
|
|
3641
|
+
"onUpdate:modelValue": g[8] || (g[8] = (f) => n.value = f),
|
|
3642
3642
|
title: d.value,
|
|
3643
|
-
icon:
|
|
3643
|
+
icon: h.value,
|
|
3644
3644
|
width: "600px"
|
|
3645
3645
|
}, {
|
|
3646
|
-
footer:
|
|
3647
|
-
t(
|
|
3648
|
-
default:
|
|
3649
|
-
|
|
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(
|
|
3653
|
+
t(k, {
|
|
3654
3654
|
type: "primary",
|
|
3655
|
-
onClick:
|
|
3655
|
+
onClick: b
|
|
3656
3656
|
}, {
|
|
3657
|
-
default:
|
|
3658
|
-
|
|
3657
|
+
default: i(() => [...g[10] || (g[10] = [
|
|
3658
|
+
O("确认", -1)
|
|
3659
3659
|
])]),
|
|
3660
3660
|
_: 1
|
|
3661
3661
|
})
|
|
3662
3662
|
]),
|
|
3663
|
-
default:
|
|
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:
|
|
3672
|
-
t(
|
|
3671
|
+
default: i(() => [
|
|
3672
|
+
t(L, {
|
|
3673
3673
|
label: "工号",
|
|
3674
3674
|
required: "",
|
|
3675
3675
|
for: ""
|
|
3676
3676
|
}, {
|
|
3677
|
-
default:
|
|
3678
|
-
t(
|
|
3677
|
+
default: i(() => [
|
|
3678
|
+
t(R, {
|
|
3679
3679
|
modelValue: s.userno,
|
|
3680
|
-
"onUpdate:modelValue":
|
|
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:
|
|
3693
|
-
t(
|
|
3692
|
+
default: i(() => [
|
|
3693
|
+
t(R, {
|
|
3694
3694
|
modelValue: s.username,
|
|
3695
|
-
"onUpdate:modelValue":
|
|
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:
|
|
3707
|
-
t(
|
|
3706
|
+
default: i(() => [
|
|
3707
|
+
t(R, {
|
|
3708
3708
|
modelValue: s.phone,
|
|
3709
|
-
"onUpdate:modelValue":
|
|
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:
|
|
3721
|
-
t(
|
|
3720
|
+
default: i(() => [
|
|
3721
|
+
t(R, {
|
|
3722
3722
|
modelValue: s.email,
|
|
3723
|
-
"onUpdate:modelValue":
|
|
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:
|
|
3735
|
-
t(
|
|
3734
|
+
default: i(() => [
|
|
3735
|
+
t(R, {
|
|
3736
3736
|
modelValue: s.password,
|
|
3737
|
-
"onUpdate:modelValue":
|
|
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:
|
|
3751
|
-
t(
|
|
3750
|
+
default: i(() => [
|
|
3751
|
+
t(R, {
|
|
3752
3752
|
modelValue: s.confirm_password,
|
|
3753
|
-
"onUpdate:modelValue":
|
|
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(
|
|
3762
|
-
default:
|
|
3763
|
-
t(
|
|
3761
|
+
t(L, { label: "状态" }, {
|
|
3762
|
+
default: i(() => [
|
|
3763
|
+
t(u, {
|
|
3764
3764
|
modelValue: s.is_active,
|
|
3765
|
-
"onUpdate:modelValue":
|
|
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(
|
|
3771
|
-
default:
|
|
3772
|
-
t(
|
|
3770
|
+
t(L, { label: "管理员权限" }, {
|
|
3771
|
+
default: i(() => [
|
|
3772
|
+
t(u, {
|
|
3773
3773
|
modelValue: s.is_admin,
|
|
3774
|
-
"onUpdate:modelValue":
|
|
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:
|
|
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,
|
|
3816
|
-
const
|
|
3817
|
-
return ["png", "jpg", "jpeg", "gif", "bmp", "webp"].includes(
|
|
3818
|
-
}), v =
|
|
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
|
-
|
|
3820
|
+
h("rendered");
|
|
3821
3821
|
}
|
|
3822
|
-
function
|
|
3823
|
-
|
|
3822
|
+
function $(E) {
|
|
3823
|
+
h("error", E);
|
|
3824
3824
|
}
|
|
3825
|
-
return
|
|
3825
|
+
return F({
|
|
3826
3826
|
previewType: s,
|
|
3827
3827
|
isSupported: v
|
|
3828
|
-
}), (
|
|
3829
|
-
const w =
|
|
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:
|
|
3834
|
-
t(
|
|
3833
|
+
default: i(() => [
|
|
3834
|
+
t(I(Cl))
|
|
3835
3835
|
]),
|
|
3836
3836
|
_: 1
|
|
3837
3837
|
}),
|
|
3838
|
-
|
|
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
|
-
|
|
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(
|
|
3846
|
+
t(I(r), {
|
|
3847
3847
|
src: e.src,
|
|
3848
3848
|
onRendered: _,
|
|
3849
|
-
onError:
|
|
3849
|
+
onError: $
|
|
3850
3850
|
}, null, 8, ["src"])
|
|
3851
3851
|
])) : s.value === "docx" ? (o(), y("div", Kt, [
|
|
3852
|
-
t(
|
|
3852
|
+
t(I(l), {
|
|
3853
3853
|
src: e.src,
|
|
3854
3854
|
onRendered: _,
|
|
3855
|
-
onError:
|
|
3855
|
+
onError: $
|
|
3856
3856
|
}, null, 8, ["src"])
|
|
3857
3857
|
])) : s.value === "excel" ? (o(), y("div", Yt, [
|
|
3858
|
-
t(
|
|
3858
|
+
t(I(n), {
|
|
3859
3859
|
src: e.src,
|
|
3860
3860
|
onRendered: _,
|
|
3861
|
-
onError:
|
|
3861
|
+
onError: $
|
|
3862
3862
|
}, null, 8, ["src"])
|
|
3863
3863
|
])) : (o(), y("div", qt, [
|
|
3864
|
-
t(
|
|
3865
|
-
default:
|
|
3866
|
-
Ve(
|
|
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
|
|
3890
|
+
const F = e, D = S(!0), l = S(""), n = S(""), r = S();
|
|
3891
3891
|
function d() {
|
|
3892
|
-
if (!r.value || !
|
|
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(
|
|
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
|
|
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 (!
|
|
3913
|
-
l.value = "文件ID不能为空",
|
|
3912
|
+
if (!F.fid) {
|
|
3913
|
+
l.value = "文件ID不能为空", D.value = !1;
|
|
3914
3914
|
return;
|
|
3915
3915
|
}
|
|
3916
|
-
|
|
3916
|
+
F.fileName && (document.title = `预览 - ${F.fileName}`);
|
|
3917
3917
|
try {
|
|
3918
|
-
const _ = await he().get(`/proxy/workflow/attachment/api/preview/${
|
|
3918
|
+
const _ = await he().get(`/proxy/workflow/attachment/api/preview/${F.fid}`, {
|
|
3919
3919
|
responseType: "blob"
|
|
3920
|
-
}),
|
|
3921
|
-
n.value = window.URL.createObjectURL(
|
|
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
|
-
|
|
3925
|
+
D.value = !1;
|
|
3926
3926
|
}
|
|
3927
3927
|
}
|
|
3928
3928
|
return el(() => {
|
|
3929
3929
|
n.value && window.URL.revokeObjectURL(n.value);
|
|
3930
|
-
}), ke(() =>
|
|
3931
|
-
v && (
|
|
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
|
|
3935
|
+
const $ = A("el-empty");
|
|
3936
3936
|
return o(), y("div", Xt, [
|
|
3937
|
-
|
|
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(
|
|
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":
|
|
3948
|
-
"file-name":
|
|
3949
|
-
loading:
|
|
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
|
|
3964
|
-
if (!
|
|
3965
|
-
const [
|
|
3966
|
-
return
|
|
3967
|
-
},
|
|
3968
|
-
var
|
|
3969
|
-
const
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
return
|
|
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
|
-
},
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
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
|
-
|
|
3999
|
+
continue;
|
|
4017
4000
|
}
|
|
4018
|
-
(
|
|
4019
|
-
}
|
|
4001
|
+
(X = N.children) != null && X.length && k(N.children);
|
|
4002
|
+
}
|
|
4020
4003
|
};
|
|
4021
|
-
return
|
|
4022
|
-
},
|
|
4023
|
-
const
|
|
4024
|
-
return
|
|
4025
|
-
}),
|
|
4026
|
-
var
|
|
4027
|
-
return (
|
|
4028
|
-
}),
|
|
4029
|
-
|
|
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 (
|
|
4032
|
-
const
|
|
4016
|
+
return (u, a) => {
|
|
4017
|
+
const k = A("el-link"), f = A("el-empty");
|
|
4033
4018
|
return o(), y("div", eo, [
|
|
4034
|
-
|
|
4035
|
-
key:
|
|
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
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
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
|
-
|
|
4043
|
-
(o(!0), y(G, null,
|
|
4044
|
-
key:
|
|
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: (
|
|
4033
|
+
onClick: (oe) => L(N.path)
|
|
4049
4034
|
}, {
|
|
4050
|
-
default:
|
|
4051
|
-
|
|
4035
|
+
default: i(() => [
|
|
4036
|
+
O(H(N.name), 1)
|
|
4052
4037
|
]),
|
|
4053
4038
|
_: 2
|
|
4054
4039
|
}, 1032, ["onClick"]))), 128))
|
|
4055
4040
|
])
|
|
4056
|
-
]))), 128)) : (o(),
|
|
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-
|
|
4048
|
+
}), Bo = /* @__PURE__ */ xe(to, [["__scopeId", "data-v-b492c1a2"]]);
|
|
4064
4049
|
export {
|
|
4065
4050
|
_o as BaseApprovalRecord,
|
|
4066
4051
|
Dl as BaseButton,
|