@litianxiang/portal-ui 0.1.11 → 0.1.12
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 +1436 -1400
- package/dist/styles/element-ui.scss +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as ee, ref as
|
|
1
|
+
import { defineComponent as ee, ref as D, computed as W, openBlock as a, createBlock as A, unref as U, createElementBlock as g, normalizeClass as ie, withCtx as i, createCommentVNode as q, renderSlot as Ve, createTextVNode as N, toDisplayString as O, Fragment as G, renderList as ne, watch as Ce, createVNode as n, withModifiers as ye, onMounted as De, resolveComponent as I, createElementVNode as d, resolveDynamicComponent as Xe, nextTick as Je, resolveDirective as Ke, withDirectives as Ye, reactive as He, defineAsyncComponent as $e, onUnmounted as Qe } from "vue";
|
|
2
2
|
import { ElInput as We, ElButton as Ze, ElSwitch as el, ElSelect as ll, ElOption as tl, ElInputNumber as al, ElDatePicker as ol, ElTimePicker as nl, ElTable as sl, ElTableColumn as Ee, ElLink as ul, ElTag as il, ElMessageBox as _e } from "element-plus";
|
|
3
|
-
import { Plus as dl, Download as rl, UploadFilled as cl, Close as
|
|
4
|
-
import { createAuthHttpClient as
|
|
3
|
+
import { Plus as dl, Download as rl, UploadFilled as cl, Close as ke, FullScreen as fl, Aim as ml, ArrowUp as pl, ArrowDown as vl, Search as be, ArrowRight as Fe, Check as je, Location as gl, DArrowLeft as hl, Promotion as bl, Finished as yl, User as _l, DArrowRight as wl, ArrowLeft as qe, Loading as Vl } from "@element-plus/icons-vue";
|
|
4
|
+
import { createAuthHttpClient as kl } from "@litianxiang/portal-core";
|
|
5
5
|
import { useRoute as Cl, useRouter as xl } from "vue-router";
|
|
6
6
|
const Bl = /* @__PURE__ */ ee({
|
|
7
7
|
__name: "base-input",
|
|
@@ -22,47 +22,47 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
22
22
|
suffixIcon: {}
|
|
23
23
|
},
|
|
24
24
|
emits: ["update:modelValue", "input", "change", "focus", "blur", "clear"],
|
|
25
|
-
setup(e, { expose:
|
|
26
|
-
const
|
|
27
|
-
get: () =>
|
|
28
|
-
set: (
|
|
29
|
-
}), v = (
|
|
30
|
-
o("input",
|
|
31
|
-
},
|
|
32
|
-
o("change",
|
|
33
|
-
},
|
|
34
|
-
o("focus",
|
|
35
|
-
}, y = (
|
|
36
|
-
o("blur",
|
|
37
|
-
},
|
|
25
|
+
setup(e, { expose: E, emit: T }) {
|
|
26
|
+
const l = e, o = T, r = D(), u = W({
|
|
27
|
+
get: () => l.modelValue ?? "",
|
|
28
|
+
set: (t) => o("update:modelValue", t)
|
|
29
|
+
}), v = (t) => {
|
|
30
|
+
o("input", t);
|
|
31
|
+
}, h = (t) => {
|
|
32
|
+
o("change", t);
|
|
33
|
+
}, p = (t) => {
|
|
34
|
+
o("focus", t);
|
|
35
|
+
}, y = (t) => {
|
|
36
|
+
o("blur", t);
|
|
37
|
+
}, $ = () => {
|
|
38
38
|
o("clear");
|
|
39
39
|
};
|
|
40
|
-
return
|
|
41
|
-
getValue: () =>
|
|
42
|
-
setValue: (
|
|
43
|
-
o("update:modelValue",
|
|
40
|
+
return E({
|
|
41
|
+
getValue: () => l.modelValue ?? "",
|
|
42
|
+
setValue: (t) => {
|
|
43
|
+
o("update:modelValue", t);
|
|
44
44
|
},
|
|
45
45
|
clear: () => {
|
|
46
46
|
o("update:modelValue", "");
|
|
47
47
|
},
|
|
48
48
|
focus: () => {
|
|
49
|
-
var
|
|
50
|
-
(
|
|
49
|
+
var t;
|
|
50
|
+
(t = r.value) == null || t.focus();
|
|
51
51
|
},
|
|
52
52
|
blur: () => {
|
|
53
|
-
var
|
|
54
|
-
(
|
|
53
|
+
var t;
|
|
54
|
+
(t = r.value) == null || t.blur();
|
|
55
55
|
},
|
|
56
56
|
select: () => {
|
|
57
|
-
var
|
|
58
|
-
(
|
|
57
|
+
var t;
|
|
58
|
+
(t = r.value) == null || t.select();
|
|
59
59
|
},
|
|
60
|
-
getField: () =>
|
|
61
|
-
}), (
|
|
60
|
+
getField: () => l.field ?? ""
|
|
61
|
+
}), (t, C) => (a(), A(U(We), {
|
|
62
62
|
ref_key: "inputRef",
|
|
63
|
-
ref:
|
|
64
|
-
modelValue:
|
|
65
|
-
"onUpdate:modelValue":
|
|
63
|
+
ref: r,
|
|
64
|
+
modelValue: u.value,
|
|
65
|
+
"onUpdate:modelValue": C[0] || (C[0] = (b) => u.value = b),
|
|
66
66
|
type: e.type,
|
|
67
67
|
placeholder: e.placeholder,
|
|
68
68
|
disabled: e.disabled,
|
|
@@ -76,13 +76,48 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
76
76
|
"prefix-icon": e.prefixIcon,
|
|
77
77
|
"suffix-icon": e.suffixIcon,
|
|
78
78
|
onInput: v,
|
|
79
|
-
onChange:
|
|
80
|
-
onFocus:
|
|
79
|
+
onChange: h,
|
|
80
|
+
onFocus: p,
|
|
81
81
|
onBlur: y,
|
|
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
|
-
}), El =
|
|
85
|
+
}), El = ["name", "value", "disabled"], so = /* @__PURE__ */ ee({
|
|
86
|
+
__name: "base-hidden",
|
|
87
|
+
props: {
|
|
88
|
+
modelValue: { default: "" },
|
|
89
|
+
name: { default: "" },
|
|
90
|
+
field: { default: "" },
|
|
91
|
+
disabled: { type: Boolean, default: !1 }
|
|
92
|
+
},
|
|
93
|
+
emits: ["update:modelValue", "input", "change"],
|
|
94
|
+
setup(e, { expose: E, emit: T }) {
|
|
95
|
+
const l = e, o = T, r = D(null), u = W(() => l.modelValue === null || l.modelValue === void 0 ? "" : String(l.modelValue)), v = (k) => {
|
|
96
|
+
const f = k.target, w = (f == null ? void 0 : f.value) ?? "";
|
|
97
|
+
o("update:modelValue", w), o("input", w);
|
|
98
|
+
}, h = (k) => {
|
|
99
|
+
const f = k.target, w = (f == null ? void 0 : f.value) ?? "";
|
|
100
|
+
o("update:modelValue", w), o("change", w);
|
|
101
|
+
};
|
|
102
|
+
return E({
|
|
103
|
+
getValue: () => u.value,
|
|
104
|
+
setValue: (k) => {
|
|
105
|
+
o("update:modelValue", k == null ? "" : String(k));
|
|
106
|
+
},
|
|
107
|
+
getField: () => l.field ?? "",
|
|
108
|
+
hiddenRef: r
|
|
109
|
+
}), (k, f) => (a(), g("input", {
|
|
110
|
+
ref_key: "hiddenRef",
|
|
111
|
+
ref: r,
|
|
112
|
+
type: "hidden",
|
|
113
|
+
name: e.name,
|
|
114
|
+
value: u.value,
|
|
115
|
+
disabled: e.disabled,
|
|
116
|
+
onInput: v,
|
|
117
|
+
onChange: h
|
|
118
|
+
}, null, 40, El));
|
|
119
|
+
}
|
|
120
|
+
}), $l = { key: 1 }, Fl = /* @__PURE__ */ ee({
|
|
86
121
|
__name: "base-button",
|
|
87
122
|
props: {
|
|
88
123
|
type: { default: "" },
|
|
@@ -98,8 +133,8 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
98
133
|
label: { default: "" }
|
|
99
134
|
},
|
|
100
135
|
emits: ["click"],
|
|
101
|
-
setup(e, { expose:
|
|
102
|
-
const
|
|
136
|
+
setup(e, { expose: E, emit: T }) {
|
|
137
|
+
const l = {
|
|
103
138
|
save: "iconfont icon-zancun1",
|
|
104
139
|
submit: "iconfont icon-tijiaoqueren",
|
|
105
140
|
approve: "iconfont icon-shenqingshenpi",
|
|
@@ -122,20 +157,20 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
122
157
|
export: "iconfont icon-export",
|
|
123
158
|
import: "iconfont icon-import",
|
|
124
159
|
form: "iconfont icon-biaodan1"
|
|
125
|
-
}, o = ["custom"],
|
|
126
|
-
const
|
|
127
|
-
return
|
|
128
|
-
}), y =
|
|
129
|
-
const
|
|
130
|
-
return
|
|
131
|
-
}),
|
|
132
|
-
!
|
|
160
|
+
}, o = ["custom"], r = e, u = T, v = W(() => r.icon ? l[r.icon] || r.icon : ""), h = W(() => r.type || ""), p = W(() => {
|
|
161
|
+
const w = h.value;
|
|
162
|
+
return w && o.includes(w) ? "" : w;
|
|
163
|
+
}), y = W(() => {
|
|
164
|
+
const w = h.value;
|
|
165
|
+
return w && o.includes(w) ? `el-button--${w}` : "";
|
|
166
|
+
}), $ = (w) => {
|
|
167
|
+
!r.disabled && !r.loading && u("click", w);
|
|
133
168
|
};
|
|
134
|
-
return
|
|
135
|
-
isDisabled: () =>
|
|
136
|
-
isLoading: () =>
|
|
137
|
-
}), (
|
|
138
|
-
type:
|
|
169
|
+
return E({
|
|
170
|
+
isDisabled: () => r.disabled,
|
|
171
|
+
isLoading: () => r.loading
|
|
172
|
+
}), (w, z) => (a(), A(U(Ze), {
|
|
173
|
+
type: p.value,
|
|
139
174
|
class: ie(y.value),
|
|
140
175
|
size: e.size,
|
|
141
176
|
disabled: e.disabled,
|
|
@@ -145,49 +180,49 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
145
180
|
circle: e.circle,
|
|
146
181
|
link: e.link,
|
|
147
182
|
text: e.text,
|
|
148
|
-
onClick:
|
|
183
|
+
onClick: $
|
|
149
184
|
}, {
|
|
150
|
-
default:
|
|
151
|
-
v.value && !e.loading ? (a(),
|
|
185
|
+
default: i(() => [
|
|
186
|
+
v.value && !e.loading ? (a(), g("i", {
|
|
152
187
|
key: 0,
|
|
153
188
|
class: ie(v.value)
|
|
154
|
-
}, null, 2)) :
|
|
155
|
-
|
|
156
|
-
|
|
189
|
+
}, null, 2)) : q("", !0),
|
|
190
|
+
w.$slots.default || e.label ? (a(), g("span", $l, [
|
|
191
|
+
Ve(w.$slots, "default", {}, () => [
|
|
157
192
|
N(O(e.label), 1)
|
|
158
193
|
])
|
|
159
|
-
])) :
|
|
194
|
+
])) : q("", !0)
|
|
160
195
|
]),
|
|
161
196
|
_: 3
|
|
162
197
|
}, 8, ["type", "class", "size", "disabled", "loading", "plain", "round", "circle", "link", "text"]));
|
|
163
198
|
}
|
|
164
|
-
}),
|
|
199
|
+
}), Dl = ["title"], Tl = {
|
|
165
200
|
key: 0,
|
|
166
201
|
class: "iconfont icon-expand"
|
|
167
|
-
},
|
|
202
|
+
}, Sl = {
|
|
168
203
|
key: 1,
|
|
169
204
|
class: "iconfont icon-collapses"
|
|
170
|
-
},
|
|
205
|
+
}, uo = /* @__PURE__ */ ee({
|
|
171
206
|
__name: "base-collapse-toggle",
|
|
172
207
|
props: {
|
|
173
208
|
modelValue: { type: Boolean, default: !0 }
|
|
174
209
|
},
|
|
175
210
|
emits: ["update:modelValue"],
|
|
176
|
-
setup(e, { expose:
|
|
177
|
-
const
|
|
178
|
-
o("update:modelValue", !
|
|
211
|
+
setup(e, { expose: E, emit: T }) {
|
|
212
|
+
const l = e, o = T, r = () => {
|
|
213
|
+
o("update:modelValue", !l.modelValue);
|
|
179
214
|
};
|
|
180
|
-
return
|
|
181
|
-
toggle:
|
|
182
|
-
}), (
|
|
215
|
+
return E({
|
|
216
|
+
toggle: r
|
|
217
|
+
}), (u, v) => (a(), g("span", {
|
|
183
218
|
class: "base-collapse-toggle",
|
|
184
219
|
title: e.modelValue ? "点击折叠" : "点击展开",
|
|
185
|
-
onClick:
|
|
220
|
+
onClick: r
|
|
186
221
|
}, [
|
|
187
|
-
e.modelValue ? (a(),
|
|
188
|
-
], 8,
|
|
222
|
+
e.modelValue ? (a(), g("i", Tl)) : (a(), g("i", Sl))
|
|
223
|
+
], 8, Dl));
|
|
189
224
|
}
|
|
190
|
-
}),
|
|
225
|
+
}), zl = /* @__PURE__ */ ee({
|
|
191
226
|
__name: "base-switch",
|
|
192
227
|
props: {
|
|
193
228
|
modelValue: { type: [Boolean, String, Number], default: !1 },
|
|
@@ -206,30 +241,30 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
206
241
|
beforeChange: {}
|
|
207
242
|
},
|
|
208
243
|
emits: ["update:modelValue", "change"],
|
|
209
|
-
setup(e, { expose:
|
|
210
|
-
const
|
|
211
|
-
get: () =>
|
|
212
|
-
set: (
|
|
213
|
-
}),
|
|
214
|
-
o("change",
|
|
244
|
+
setup(e, { expose: E, emit: T }) {
|
|
245
|
+
const l = e, o = T, r = W({
|
|
246
|
+
get: () => l.modelValue ?? l.inactiveValue,
|
|
247
|
+
set: (f) => o("update:modelValue", f)
|
|
248
|
+
}), u = (f) => {
|
|
249
|
+
o("change", f);
|
|
215
250
|
};
|
|
216
|
-
return
|
|
217
|
-
getValue: () =>
|
|
218
|
-
setValue: (
|
|
219
|
-
o("update:modelValue",
|
|
251
|
+
return E({
|
|
252
|
+
getValue: () => l.modelValue,
|
|
253
|
+
setValue: (f) => {
|
|
254
|
+
o("update:modelValue", f);
|
|
220
255
|
},
|
|
221
256
|
toggle: () => {
|
|
222
|
-
const
|
|
223
|
-
o("update:modelValue",
|
|
257
|
+
const f = l.modelValue === l.activeValue ? l.inactiveValue : l.activeValue;
|
|
258
|
+
o("update:modelValue", f);
|
|
224
259
|
},
|
|
225
|
-
isActive: () =>
|
|
260
|
+
isActive: () => l.modelValue === l.activeValue,
|
|
226
261
|
clear: () => {
|
|
227
|
-
o("update:modelValue",
|
|
262
|
+
o("update:modelValue", l.inactiveValue);
|
|
228
263
|
},
|
|
229
|
-
getField: () =>
|
|
230
|
-
}), (
|
|
231
|
-
modelValue:
|
|
232
|
-
"onUpdate:modelValue":
|
|
264
|
+
getField: () => l.field ?? ""
|
|
265
|
+
}), (f, w) => (a(), A(U(el), {
|
|
266
|
+
modelValue: r.value,
|
|
267
|
+
"onUpdate:modelValue": w[0] || (w[0] = (z) => r.value = z),
|
|
233
268
|
disabled: e.disabled,
|
|
234
269
|
loading: e.loading,
|
|
235
270
|
size: e.size,
|
|
@@ -242,10 +277,10 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
242
277
|
"active-icon": e.activeIcon,
|
|
243
278
|
"inactive-icon": e.inactiveIcon,
|
|
244
279
|
"before-change": e.beforeChange,
|
|
245
|
-
onChange:
|
|
280
|
+
onChange: u
|
|
246
281
|
}, null, 8, ["modelValue", "disabled", "loading", "size", "width", "inline-prompt", "active-text", "inactive-text", "active-value", "inactive-value", "active-icon", "inactive-icon", "before-change"]));
|
|
247
282
|
}
|
|
248
|
-
}),
|
|
283
|
+
}), Rl = /* @__PURE__ */ ee({
|
|
249
284
|
__name: "base-select",
|
|
250
285
|
props: {
|
|
251
286
|
modelValue: {},
|
|
@@ -263,55 +298,55 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
263
298
|
size: { default: "default" }
|
|
264
299
|
},
|
|
265
300
|
emits: ["update:modelValue", "change", "focus", "blur", "clear"],
|
|
266
|
-
setup(e, { expose:
|
|
267
|
-
const
|
|
268
|
-
get: () =>
|
|
269
|
-
set: (
|
|
270
|
-
}), v = (
|
|
271
|
-
o("change",
|
|
272
|
-
},
|
|
273
|
-
o("focus",
|
|
274
|
-
},
|
|
275
|
-
o("blur",
|
|
301
|
+
setup(e, { expose: E, emit: T }) {
|
|
302
|
+
const l = e, o = T, r = D(), u = W({
|
|
303
|
+
get: () => l.modelValue,
|
|
304
|
+
set: (t) => o("update:modelValue", t)
|
|
305
|
+
}), v = (t) => {
|
|
306
|
+
o("change", t);
|
|
307
|
+
}, h = (t) => {
|
|
308
|
+
o("focus", t);
|
|
309
|
+
}, p = (t) => {
|
|
310
|
+
o("blur", t);
|
|
276
311
|
}, y = () => {
|
|
277
312
|
o("clear");
|
|
278
313
|
};
|
|
279
|
-
return
|
|
280
|
-
getValue: () =>
|
|
281
|
-
setValue: (
|
|
282
|
-
o("update:modelValue",
|
|
314
|
+
return E({
|
|
315
|
+
getValue: () => l.modelValue,
|
|
316
|
+
setValue: (t) => {
|
|
317
|
+
o("update:modelValue", t);
|
|
283
318
|
},
|
|
284
319
|
getSelectedOption: () => {
|
|
285
|
-
if (
|
|
286
|
-
return
|
|
320
|
+
if (l.modelValue)
|
|
321
|
+
return l.multiple && Array.isArray(l.modelValue) ? l.modelValue.map((t) => l.options.find((C) => C.key === t)) : l.options.find((t) => t.key === l.modelValue);
|
|
287
322
|
},
|
|
288
323
|
getSelectedValue: () => {
|
|
289
|
-
if (!
|
|
290
|
-
if (
|
|
291
|
-
return
|
|
292
|
-
const b =
|
|
324
|
+
if (!l.modelValue) return;
|
|
325
|
+
if (l.multiple && Array.isArray(l.modelValue))
|
|
326
|
+
return l.modelValue.map((C) => {
|
|
327
|
+
const b = l.options.find((X) => X.key === C);
|
|
293
328
|
return (b == null ? void 0 : b.value) ?? "";
|
|
294
329
|
});
|
|
295
|
-
const
|
|
296
|
-
return
|
|
330
|
+
const t = l.options.find((C) => C.key === l.modelValue);
|
|
331
|
+
return t == null ? void 0 : t.value;
|
|
297
332
|
},
|
|
298
333
|
clear: () => {
|
|
299
|
-
o("update:modelValue",
|
|
334
|
+
o("update:modelValue", l.multiple ? [] : void 0);
|
|
300
335
|
},
|
|
301
336
|
focus: () => {
|
|
302
|
-
var
|
|
303
|
-
(
|
|
337
|
+
var t;
|
|
338
|
+
(t = r.value) == null || t.focus();
|
|
304
339
|
},
|
|
305
340
|
blur: () => {
|
|
306
|
-
var
|
|
307
|
-
(
|
|
341
|
+
var t;
|
|
342
|
+
(t = r.value) == null || t.blur();
|
|
308
343
|
},
|
|
309
|
-
getField: () =>
|
|
310
|
-
}), (
|
|
344
|
+
getField: () => l.field ?? ""
|
|
345
|
+
}), (t, C) => (a(), A(U(ll), {
|
|
311
346
|
ref_key: "selectRef",
|
|
312
|
-
ref:
|
|
313
|
-
modelValue:
|
|
314
|
-
"onUpdate:modelValue":
|
|
347
|
+
ref: r,
|
|
348
|
+
modelValue: u.value,
|
|
349
|
+
"onUpdate:modelValue": C[0] || (C[0] = (b) => u.value = b),
|
|
315
350
|
placeholder: e.placeholder,
|
|
316
351
|
disabled: e.disabled,
|
|
317
352
|
multiple: e.multiple,
|
|
@@ -323,12 +358,12 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
323
358
|
"max-collapse-tags": e.maxTagCount,
|
|
324
359
|
"no-data-text": e.emptyText,
|
|
325
360
|
onChange: v,
|
|
326
|
-
onFocus:
|
|
327
|
-
onBlur:
|
|
361
|
+
onFocus: h,
|
|
362
|
+
onBlur: p,
|
|
328
363
|
onClear: y
|
|
329
364
|
}, {
|
|
330
|
-
default:
|
|
331
|
-
(a(!0),
|
|
365
|
+
default: i(() => [
|
|
366
|
+
(a(!0), g(G, null, ne(e.options, (b) => (a(), A(U(tl), {
|
|
332
367
|
key: b.key,
|
|
333
368
|
label: b.value,
|
|
334
369
|
value: b.key,
|
|
@@ -338,7 +373,7 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
338
373
|
_: 1
|
|
339
374
|
}, 8, ["modelValue", "placeholder", "disabled", "multiple", "filterable", "clearable", "size", "collapse-tags", "collapse-tags-tooltip", "max-collapse-tags", "no-data-text"]));
|
|
340
375
|
}
|
|
341
|
-
}),
|
|
376
|
+
}), Ul = /* @__PURE__ */ ee({
|
|
342
377
|
__name: "base-number",
|
|
343
378
|
props: {
|
|
344
379
|
modelValue: {},
|
|
@@ -356,53 +391,53 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
356
391
|
size: { default: "default" }
|
|
357
392
|
},
|
|
358
393
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
359
|
-
setup(e, { expose:
|
|
360
|
-
const
|
|
361
|
-
if (
|
|
362
|
-
const
|
|
363
|
-
return Number.isNaN(
|
|
364
|
-
}, v =
|
|
365
|
-
get: () =>
|
|
366
|
-
set: (
|
|
367
|
-
}),
|
|
368
|
-
o("change",
|
|
369
|
-
},
|
|
370
|
-
o("focus",
|
|
371
|
-
}, y = (
|
|
372
|
-
o("blur",
|
|
394
|
+
setup(e, { expose: E, emit: T }) {
|
|
395
|
+
const l = e, o = T, r = D(), u = (t) => {
|
|
396
|
+
if (t === "" || t === null || t === void 0) return null;
|
|
397
|
+
const C = Number(t);
|
|
398
|
+
return Number.isNaN(C) ? null : C;
|
|
399
|
+
}, v = W({
|
|
400
|
+
get: () => u(l.modelValue),
|
|
401
|
+
set: (t) => o("update:modelValue", t)
|
|
402
|
+
}), h = (t, C) => {
|
|
403
|
+
o("change", t ?? null, C ?? null);
|
|
404
|
+
}, p = (t) => {
|
|
405
|
+
o("focus", t);
|
|
406
|
+
}, y = (t) => {
|
|
407
|
+
o("blur", t);
|
|
373
408
|
};
|
|
374
|
-
return
|
|
375
|
-
getValue: () =>
|
|
376
|
-
setValue: (
|
|
377
|
-
o("update:modelValue",
|
|
409
|
+
return E({
|
|
410
|
+
getValue: () => u(l.modelValue),
|
|
411
|
+
setValue: (t) => {
|
|
412
|
+
o("update:modelValue", u(t));
|
|
378
413
|
},
|
|
379
414
|
clear: () => {
|
|
380
415
|
o("update:modelValue", null);
|
|
381
416
|
},
|
|
382
417
|
increase: () => {
|
|
383
|
-
const
|
|
384
|
-
let b =
|
|
385
|
-
|
|
418
|
+
const t = u(l.modelValue) ?? 0, C = l.step ?? 1;
|
|
419
|
+
let b = t + C;
|
|
420
|
+
l.max !== void 0 && b > l.max && (b = l.max), o("update:modelValue", b);
|
|
386
421
|
},
|
|
387
422
|
decrease: () => {
|
|
388
|
-
const
|
|
389
|
-
let b =
|
|
390
|
-
|
|
423
|
+
const t = u(l.modelValue) ?? 0, C = l.step ?? 1;
|
|
424
|
+
let b = t - C;
|
|
425
|
+
l.min !== void 0 && b < l.min && (b = l.min), o("update:modelValue", b);
|
|
391
426
|
},
|
|
392
427
|
focus: () => {
|
|
393
|
-
var
|
|
394
|
-
(
|
|
428
|
+
var t;
|
|
429
|
+
(t = r.value) == null || t.focus();
|
|
395
430
|
},
|
|
396
431
|
blur: () => {
|
|
397
|
-
var
|
|
398
|
-
(
|
|
432
|
+
var t;
|
|
433
|
+
(t = r.value) == null || t.blur();
|
|
399
434
|
},
|
|
400
|
-
getField: () =>
|
|
401
|
-
}), (
|
|
435
|
+
getField: () => l.field ?? ""
|
|
436
|
+
}), (t, C) => (a(), A(U(al), {
|
|
402
437
|
ref_key: "numberRef",
|
|
403
|
-
ref:
|
|
438
|
+
ref: r,
|
|
404
439
|
modelValue: v.value,
|
|
405
|
-
"onUpdate:modelValue":
|
|
440
|
+
"onUpdate:modelValue": C[0] || (C[0] = (b) => v.value = b),
|
|
406
441
|
min: e.min,
|
|
407
442
|
max: e.max,
|
|
408
443
|
step: e.step,
|
|
@@ -414,12 +449,12 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
414
449
|
controls: e.controls,
|
|
415
450
|
"controls-position": e.controlsPosition,
|
|
416
451
|
placeholder: e.placeholder,
|
|
417
|
-
onChange:
|
|
418
|
-
onFocus:
|
|
452
|
+
onChange: h,
|
|
453
|
+
onFocus: p,
|
|
419
454
|
onBlur: y
|
|
420
455
|
}, null, 8, ["modelValue", "min", "max", "step", "step-strictly", "precision", "disabled", "readonly", "size", "controls", "controls-position", "placeholder"]));
|
|
421
456
|
}
|
|
422
|
-
}),
|
|
457
|
+
}), Al = /* @__PURE__ */ ee({
|
|
423
458
|
__name: "base-date",
|
|
424
459
|
props: {
|
|
425
460
|
modelValue: {},
|
|
@@ -439,50 +474,50 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
439
474
|
rangeSeparator: { default: "至" }
|
|
440
475
|
},
|
|
441
476
|
emits: ["update:modelValue", "change", "focus", "blur", "clear"],
|
|
442
|
-
setup(e, { expose:
|
|
443
|
-
const
|
|
444
|
-
get: () =>
|
|
445
|
-
set: (
|
|
446
|
-
}), v = (
|
|
447
|
-
o("change",
|
|
448
|
-
},
|
|
449
|
-
o("focus",
|
|
450
|
-
},
|
|
451
|
-
o("blur",
|
|
477
|
+
setup(e, { expose: E, emit: T }) {
|
|
478
|
+
const l = e, o = T, r = D(), u = W({
|
|
479
|
+
get: () => l.modelValue,
|
|
480
|
+
set: (t) => o("update:modelValue", t)
|
|
481
|
+
}), v = (t) => {
|
|
482
|
+
o("change", t);
|
|
483
|
+
}, h = (t) => {
|
|
484
|
+
o("focus", t);
|
|
485
|
+
}, p = (t) => {
|
|
486
|
+
o("blur", t);
|
|
452
487
|
}, y = () => {
|
|
453
488
|
o("clear");
|
|
454
489
|
};
|
|
455
|
-
return
|
|
456
|
-
getValue: () =>
|
|
457
|
-
setValue: (
|
|
458
|
-
o("update:modelValue",
|
|
490
|
+
return E({
|
|
491
|
+
getValue: () => l.modelValue,
|
|
492
|
+
setValue: (t) => {
|
|
493
|
+
o("update:modelValue", t);
|
|
459
494
|
},
|
|
460
495
|
getDateObject: () => {
|
|
461
|
-
if (
|
|
462
|
-
if (
|
|
463
|
-
if (typeof
|
|
464
|
-
if (Array.isArray(
|
|
465
|
-
return
|
|
496
|
+
if (l.modelValue) {
|
|
497
|
+
if (l.modelValue instanceof Date) return l.modelValue;
|
|
498
|
+
if (typeof l.modelValue == "string") return new Date(l.modelValue);
|
|
499
|
+
if (Array.isArray(l.modelValue))
|
|
500
|
+
return l.modelValue.map((t) => t instanceof Date ? t : new Date(t));
|
|
466
501
|
}
|
|
467
502
|
},
|
|
468
|
-
getFormattedValue: () =>
|
|
503
|
+
getFormattedValue: () => l.modelValue,
|
|
469
504
|
clear: () => {
|
|
470
505
|
o("update:modelValue", void 0);
|
|
471
506
|
},
|
|
472
507
|
focus: () => {
|
|
473
|
-
var
|
|
474
|
-
(
|
|
508
|
+
var t;
|
|
509
|
+
(t = r.value) == null || t.focus();
|
|
475
510
|
},
|
|
476
511
|
blur: () => {
|
|
477
|
-
var
|
|
478
|
-
(
|
|
512
|
+
var t;
|
|
513
|
+
(t = r.value) == null || t.blur();
|
|
479
514
|
},
|
|
480
|
-
getField: () =>
|
|
481
|
-
}), (
|
|
515
|
+
getField: () => l.field ?? ""
|
|
516
|
+
}), (t, C) => (a(), A(U(ol), {
|
|
482
517
|
ref_key: "dateRef",
|
|
483
|
-
ref:
|
|
484
|
-
modelValue:
|
|
485
|
-
"onUpdate:modelValue":
|
|
518
|
+
ref: r,
|
|
519
|
+
modelValue: u.value,
|
|
520
|
+
"onUpdate:modelValue": C[0] || (C[0] = (b) => u.value = b),
|
|
486
521
|
type: e.type,
|
|
487
522
|
placeholder: e.placeholder,
|
|
488
523
|
"start-placeholder": e.startPlaceholder,
|
|
@@ -497,12 +532,12 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
497
532
|
shortcuts: e.shortcuts,
|
|
498
533
|
"range-separator": e.rangeSeparator,
|
|
499
534
|
onChange: v,
|
|
500
|
-
onFocus:
|
|
501
|
-
onBlur:
|
|
535
|
+
onFocus: h,
|
|
536
|
+
onBlur: p,
|
|
502
537
|
onClear: y
|
|
503
538
|
}, null, 8, ["modelValue", "type", "placeholder", "start-placeholder", "end-placeholder", "disabled", "readonly", "clearable", "size", "format", "value-format", "disabled-date", "shortcuts", "range-separator"]));
|
|
504
539
|
}
|
|
505
|
-
}),
|
|
540
|
+
}), Pl = /* @__PURE__ */ ee({
|
|
506
541
|
__name: "base-time",
|
|
507
542
|
props: {
|
|
508
543
|
modelValue: {},
|
|
@@ -524,42 +559,42 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
524
559
|
arrowControl: { type: Boolean, default: !1 }
|
|
525
560
|
},
|
|
526
561
|
emits: ["update:modelValue", "change", "focus", "blur", "clear"],
|
|
527
|
-
setup(e, { expose:
|
|
528
|
-
const
|
|
529
|
-
get: () =>
|
|
562
|
+
setup(e, { expose: E, emit: T }) {
|
|
563
|
+
const l = e, o = T, r = D(), u = W({
|
|
564
|
+
get: () => l.modelValue,
|
|
530
565
|
set: (s) => o("update:modelValue", s)
|
|
531
566
|
}), v = (s) => {
|
|
532
567
|
o("change", s);
|
|
533
|
-
},
|
|
568
|
+
}, h = (s) => {
|
|
534
569
|
o("focus", s);
|
|
535
|
-
},
|
|
570
|
+
}, p = (s) => {
|
|
536
571
|
o("blur", s);
|
|
537
572
|
}, y = () => {
|
|
538
573
|
o("clear");
|
|
539
574
|
};
|
|
540
|
-
return
|
|
541
|
-
getValue: () =>
|
|
575
|
+
return E({
|
|
576
|
+
getValue: () => l.modelValue,
|
|
542
577
|
setValue: (s) => {
|
|
543
578
|
o("update:modelValue", s);
|
|
544
579
|
},
|
|
545
|
-
getFormattedValue: () =>
|
|
580
|
+
getFormattedValue: () => l.modelValue,
|
|
546
581
|
clear: () => {
|
|
547
582
|
o("update:modelValue", void 0);
|
|
548
583
|
},
|
|
549
584
|
focus: () => {
|
|
550
585
|
var s;
|
|
551
|
-
(s =
|
|
586
|
+
(s = r.value) == null || s.focus();
|
|
552
587
|
},
|
|
553
588
|
blur: () => {
|
|
554
589
|
var s;
|
|
555
|
-
(s =
|
|
590
|
+
(s = r.value) == null || s.blur();
|
|
556
591
|
},
|
|
557
|
-
getField: () =>
|
|
558
|
-
}), (s,
|
|
592
|
+
getField: () => l.field ?? ""
|
|
593
|
+
}), (s, t) => (a(), A(U(nl), {
|
|
559
594
|
ref_key: "timeRef",
|
|
560
|
-
ref:
|
|
561
|
-
modelValue:
|
|
562
|
-
"onUpdate:modelValue":
|
|
595
|
+
ref: r,
|
|
596
|
+
modelValue: u.value,
|
|
597
|
+
"onUpdate:modelValue": t[0] || (t[0] = (C) => u.value = C),
|
|
563
598
|
"is-range": e.isRange,
|
|
564
599
|
placeholder: e.placeholder,
|
|
565
600
|
"start-placeholder": e.startPlaceholder,
|
|
@@ -576,18 +611,18 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
576
611
|
"range-separator": e.rangeSeparator,
|
|
577
612
|
"arrow-control": e.arrowControl,
|
|
578
613
|
onChange: v,
|
|
579
|
-
onFocus:
|
|
580
|
-
onBlur:
|
|
614
|
+
onFocus: h,
|
|
615
|
+
onBlur: p,
|
|
581
616
|
onClear: y
|
|
582
617
|
}, null, 8, ["modelValue", "is-range", "placeholder", "start-placeholder", "end-placeholder", "disabled", "readonly", "clearable", "size", "format", "value-format", "disabled-hours", "disabled-minutes", "disabled-seconds", "range-separator", "arrow-control"]));
|
|
583
618
|
}
|
|
584
|
-
}),
|
|
619
|
+
}), Il = { class: "base-table" }, Ll = {
|
|
585
620
|
key: 0,
|
|
586
621
|
class: "base-table__toolbar"
|
|
587
|
-
},
|
|
622
|
+
}, Ml = {
|
|
588
623
|
key: 1,
|
|
589
624
|
class: "base-table__error"
|
|
590
|
-
},
|
|
625
|
+
}, Nl = /* @__PURE__ */ ee({
|
|
591
626
|
__name: "base-table",
|
|
592
627
|
props: {
|
|
593
628
|
modelValue: { default: () => [] },
|
|
@@ -614,103 +649,103 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
614
649
|
highlightCurrentRow: { type: Boolean, default: !1 }
|
|
615
650
|
},
|
|
616
651
|
emits: ["update:modelValue", "change", "row-add", "row-delete", "cell-change", "selection-change", "row-click", "cell-click"],
|
|
617
|
-
setup(e, { expose:
|
|
618
|
-
const
|
|
619
|
-
let
|
|
652
|
+
setup(e, { expose: E, emit: T }) {
|
|
653
|
+
const l = e, o = T, r = D(), u = D([]), v = D([]), h = D("");
|
|
654
|
+
let p = 0;
|
|
620
655
|
const y = () => {
|
|
621
|
-
|
|
622
|
-
...
|
|
623
|
-
_rowKey:
|
|
624
|
-
_rowIndex:
|
|
656
|
+
u.value = (l.modelValue || []).map((x, B) => ({
|
|
657
|
+
...x,
|
|
658
|
+
_rowKey: x._rowKey || `row_${++p}`,
|
|
659
|
+
_rowIndex: B
|
|
625
660
|
}));
|
|
626
661
|
};
|
|
627
|
-
Ce(() =>
|
|
662
|
+
Ce(() => l.modelValue, () => {
|
|
628
663
|
y();
|
|
629
664
|
}, { immediate: !0, deep: !0 });
|
|
630
|
-
const
|
|
631
|
-
if (!
|
|
632
|
-
const
|
|
633
|
-
return (
|
|
665
|
+
const $ = W(() => l.columns.filter((x) => x.visible !== !1)), k = W(() => l.maxRows !== void 0 && u.value.length >= l.maxRows), f = W(() => l.minRows !== void 0 && u.value.length <= l.minRows), w = (x) => x._rowKey || x[l.rowKey], z = (x) => !l.disabled, L = (x, B) => {
|
|
666
|
+
if (!B) return x;
|
|
667
|
+
const c = B.find((P) => P.key === x);
|
|
668
|
+
return (c == null ? void 0 : c.value) ?? x;
|
|
634
669
|
}, K = () => {
|
|
635
|
-
if (
|
|
636
|
-
const
|
|
637
|
-
_rowKey: `row_${++
|
|
638
|
-
...
|
|
670
|
+
if (k.value) return;
|
|
671
|
+
const x = {
|
|
672
|
+
_rowKey: `row_${++p}`,
|
|
673
|
+
...l.defaultRowData
|
|
639
674
|
};
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
}),
|
|
643
|
-
}, s = (
|
|
644
|
-
if (
|
|
645
|
-
const
|
|
646
|
-
|
|
647
|
-
},
|
|
648
|
-
M(), o("cell-change",
|
|
649
|
-
},
|
|
650
|
-
v.value =
|
|
651
|
-
}, b = (
|
|
652
|
-
o("row-click",
|
|
653
|
-
}, X = (
|
|
654
|
-
o("cell-click",
|
|
675
|
+
l.columns.forEach((B) => {
|
|
676
|
+
x[B.field] === void 0 && (x[B.field] = "");
|
|
677
|
+
}), u.value.push(x), M(), o("row-add", x, u.value.length - 1);
|
|
678
|
+
}, s = (x) => {
|
|
679
|
+
if (f.value) return;
|
|
680
|
+
const B = u.value[x];
|
|
681
|
+
u.value.splice(x, 1), M(), o("row-delete", B, x);
|
|
682
|
+
}, t = (x, B, c) => {
|
|
683
|
+
M(), o("cell-change", x, B, c);
|
|
684
|
+
}, C = (x) => {
|
|
685
|
+
v.value = x, o("selection-change", x);
|
|
686
|
+
}, b = (x, B, c) => {
|
|
687
|
+
o("row-click", x, B, c);
|
|
688
|
+
}, X = (x, B, c, P) => {
|
|
689
|
+
o("cell-click", x, B, c, P);
|
|
655
690
|
}, M = () => {
|
|
656
|
-
const
|
|
657
|
-
const { _rowKey:
|
|
691
|
+
const x = u.value.map((B) => {
|
|
692
|
+
const { _rowKey: c, _rowIndex: P, ...me } = B;
|
|
658
693
|
return me;
|
|
659
694
|
});
|
|
660
|
-
o("update:modelValue",
|
|
661
|
-
}, oe = () =>
|
|
662
|
-
const { _rowKey:
|
|
695
|
+
o("update:modelValue", x), o("change", x);
|
|
696
|
+
}, oe = () => u.value.map((x) => {
|
|
697
|
+
const { _rowKey: B, _rowIndex: c, ...P } = x;
|
|
663
698
|
return P;
|
|
664
|
-
}), de = (
|
|
665
|
-
|
|
666
|
-
...
|
|
667
|
-
_rowKey:
|
|
668
|
-
_rowIndex:
|
|
699
|
+
}), de = (x) => {
|
|
700
|
+
u.value = x.map((B, c) => ({
|
|
701
|
+
...B,
|
|
702
|
+
_rowKey: B._rowKey || `row_${++p}`,
|
|
703
|
+
_rowIndex: c
|
|
669
704
|
})), M();
|
|
670
|
-
}, se = (
|
|
671
|
-
if (
|
|
672
|
-
const
|
|
673
|
-
_rowKey: `row_${++
|
|
674
|
-
...
|
|
675
|
-
...
|
|
705
|
+
}, se = (x, B) => {
|
|
706
|
+
if (k.value) return;
|
|
707
|
+
const c = {
|
|
708
|
+
_rowKey: `row_${++p}`,
|
|
709
|
+
...l.defaultRowData,
|
|
710
|
+
...x
|
|
676
711
|
};
|
|
677
|
-
|
|
678
|
-
}, pe = (
|
|
679
|
-
|
|
680
|
-
}, fe = (
|
|
681
|
-
[...
|
|
682
|
-
|
|
712
|
+
B !== void 0 && B >= 0 && B <= u.value.length ? u.value.splice(B, 0, c) : u.value.push(c), M();
|
|
713
|
+
}, pe = (x) => {
|
|
714
|
+
x >= 0 && x < u.value.length && (u.value.splice(x, 1), M());
|
|
715
|
+
}, fe = (x) => {
|
|
716
|
+
[...x].sort((c, P) => P - c).forEach((c) => {
|
|
717
|
+
c >= 0 && c < u.value.length && u.value.splice(c, 1);
|
|
683
718
|
}), M();
|
|
684
|
-
}, re = (
|
|
685
|
-
if (
|
|
686
|
-
const { _rowKey:
|
|
719
|
+
}, re = (x) => {
|
|
720
|
+
if (x >= 0 && x < u.value.length) {
|
|
721
|
+
const { _rowKey: B, _rowIndex: c, ...P } = u.value[x];
|
|
687
722
|
return P;
|
|
688
723
|
}
|
|
689
|
-
}, te = (
|
|
690
|
-
|
|
691
|
-
}, ve = (
|
|
692
|
-
|
|
693
|
-
},
|
|
694
|
-
const { _rowKey:
|
|
724
|
+
}, te = (x, B) => {
|
|
725
|
+
x >= 0 && x < u.value.length && (Object.assign(u.value[x], B), M());
|
|
726
|
+
}, ve = (x, B, c) => {
|
|
727
|
+
x >= 0 && x < u.value.length && (u.value[x][B] = c, M());
|
|
728
|
+
}, F = () => v.value.map((x) => {
|
|
729
|
+
const { _rowKey: B, _rowIndex: c, ...P } = x;
|
|
695
730
|
return P;
|
|
696
|
-
}), R = () => v.value.map((
|
|
697
|
-
var
|
|
698
|
-
(
|
|
731
|
+
}), R = () => v.value.map((x) => u.value.indexOf(x)), J = (x) => {
|
|
732
|
+
var B;
|
|
733
|
+
(B = r.value) == null || B.clearSelection(), x.forEach((c) => {
|
|
699
734
|
var P;
|
|
700
|
-
|
|
735
|
+
c >= 0 && c < u.value.length && ((P = r.value) == null || P.toggleRowSelection(u.value[c], !0));
|
|
701
736
|
});
|
|
702
737
|
}, ce = () => {
|
|
703
|
-
var
|
|
704
|
-
(
|
|
738
|
+
var x;
|
|
739
|
+
(x = r.value) == null || x.clearSelection();
|
|
705
740
|
}, ge = () => {
|
|
706
|
-
|
|
707
|
-
var
|
|
708
|
-
(
|
|
741
|
+
u.value.forEach((x) => {
|
|
742
|
+
var B;
|
|
743
|
+
(B = r.value) == null || B.toggleRowSelection(x, !0);
|
|
709
744
|
});
|
|
710
|
-
},
|
|
711
|
-
return
|
|
745
|
+
}, S = async () => l.required && u.value.length === 0 ? (h.value = `${l.label || l.field}不能为空`, !1) : (h.value = "", !0);
|
|
746
|
+
return E({
|
|
712
747
|
getValue: () => oe(),
|
|
713
|
-
setValue: (
|
|
748
|
+
setValue: (x) => de(x),
|
|
714
749
|
getTableData: oe,
|
|
715
750
|
setTableData: de,
|
|
716
751
|
addRow: se,
|
|
@@ -719,66 +754,66 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
719
754
|
getRow: re,
|
|
720
755
|
updateRow: te,
|
|
721
756
|
updateCell: ve,
|
|
722
|
-
getSelectedRows:
|
|
757
|
+
getSelectedRows: F,
|
|
723
758
|
getSelectedIndexes: R,
|
|
724
759
|
setSelectedRows: J,
|
|
725
760
|
clearSelection: ce,
|
|
726
761
|
selectAll: ge,
|
|
727
|
-
validateAll:
|
|
728
|
-
validateRow: async (
|
|
729
|
-
getRowCount: () =>
|
|
762
|
+
validateAll: S,
|
|
763
|
+
validateRow: async (x) => !0,
|
|
764
|
+
getRowCount: () => u.value.length,
|
|
730
765
|
clear: () => {
|
|
731
|
-
|
|
766
|
+
u.value = [], M();
|
|
732
767
|
},
|
|
733
|
-
validate: async () =>
|
|
768
|
+
validate: async () => S(),
|
|
734
769
|
reset: () => {
|
|
735
|
-
y(),
|
|
770
|
+
y(), h.value = "";
|
|
736
771
|
},
|
|
737
|
-
getField: () =>
|
|
738
|
-
getTableInstance: () =>
|
|
739
|
-
}), (
|
|
740
|
-
e.addable ? (a(),
|
|
741
|
-
n(
|
|
772
|
+
getField: () => l.field,
|
|
773
|
+
getTableInstance: () => r.value
|
|
774
|
+
}), (x, B) => (a(), g("div", Il, [
|
|
775
|
+
e.addable ? (a(), g("div", Ll, [
|
|
776
|
+
n(Fl, {
|
|
742
777
|
icon: "add",
|
|
743
778
|
size: "small",
|
|
744
779
|
label: "新增行",
|
|
745
780
|
onClick: K,
|
|
746
|
-
disabled: e.disabled ||
|
|
781
|
+
disabled: e.disabled || k.value
|
|
747
782
|
}, null, 8, ["disabled"])
|
|
748
|
-
])) :
|
|
783
|
+
])) : q("", !0),
|
|
749
784
|
n(U(sl), {
|
|
750
785
|
ref_key: "tableRef",
|
|
751
|
-
ref:
|
|
752
|
-
data:
|
|
786
|
+
ref: r,
|
|
787
|
+
data: u.value,
|
|
753
788
|
height: e.height,
|
|
754
789
|
"max-height": e.maxHeight,
|
|
755
790
|
stripe: e.stripe,
|
|
756
791
|
border: e.border,
|
|
757
|
-
"row-key":
|
|
792
|
+
"row-key": w,
|
|
758
793
|
"empty-text": e.emptyText,
|
|
759
794
|
"highlight-current-row": e.highlightCurrentRow,
|
|
760
|
-
onSelectionChange:
|
|
795
|
+
onSelectionChange: C,
|
|
761
796
|
onRowClick: b,
|
|
762
797
|
onCellClick: X
|
|
763
798
|
}, {
|
|
764
|
-
default:
|
|
799
|
+
default: i(() => [
|
|
765
800
|
e.showSelection ? (a(), A(U(Ee), {
|
|
766
801
|
key: 0,
|
|
767
802
|
type: "selection",
|
|
768
803
|
width: "55",
|
|
769
804
|
align: "center",
|
|
770
|
-
selectable:
|
|
771
|
-
})) :
|
|
772
|
-
e.deletable ||
|
|
805
|
+
selectable: z
|
|
806
|
+
})) : q("", !0),
|
|
807
|
+
e.deletable || x.$slots.action ? (a(), A(U(Ee), {
|
|
773
808
|
key: 1,
|
|
774
809
|
label: "操作",
|
|
775
810
|
width: e.actionWidth,
|
|
776
811
|
align: "center",
|
|
777
812
|
fixed: "left"
|
|
778
813
|
}, {
|
|
779
|
-
default:
|
|
780
|
-
|
|
781
|
-
row:
|
|
814
|
+
default: i(({ row: c, $index: P }) => [
|
|
815
|
+
Ve(x.$slots, "action", {
|
|
816
|
+
row: c,
|
|
782
817
|
index: P
|
|
783
818
|
}, () => [
|
|
784
819
|
e.deletable ? (a(), A(U(ul), {
|
|
@@ -786,112 +821,112 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
786
821
|
type: "primary",
|
|
787
822
|
underline: "never",
|
|
788
823
|
onClick: ye((me) => s(P), ["stop"]),
|
|
789
|
-
disabled: e.disabled ||
|
|
824
|
+
disabled: e.disabled || f.value
|
|
790
825
|
}, {
|
|
791
|
-
default:
|
|
826
|
+
default: i(() => [...B[0] || (B[0] = [
|
|
792
827
|
N("删除", -1)
|
|
793
828
|
])]),
|
|
794
829
|
_: 1
|
|
795
|
-
}, 8, ["onClick", "disabled"])) :
|
|
830
|
+
}, 8, ["onClick", "disabled"])) : q("", !0)
|
|
796
831
|
], !0)
|
|
797
832
|
]),
|
|
798
833
|
_: 3
|
|
799
|
-
}, 8, ["width"])) :
|
|
834
|
+
}, 8, ["width"])) : q("", !0),
|
|
800
835
|
e.showIndex ? (a(), A(U(Ee), {
|
|
801
836
|
key: 2,
|
|
802
837
|
type: "index",
|
|
803
838
|
label: "序号",
|
|
804
839
|
width: "60",
|
|
805
840
|
align: "center"
|
|
806
|
-
})) :
|
|
807
|
-
(a(!0),
|
|
808
|
-
key:
|
|
809
|
-
prop:
|
|
810
|
-
label:
|
|
811
|
-
width:
|
|
812
|
-
"min-width":
|
|
813
|
-
align:
|
|
814
|
-
"header-align":
|
|
815
|
-
fixed:
|
|
816
|
-
sortable:
|
|
817
|
-
"show-overflow-tooltip":
|
|
841
|
+
})) : q("", !0),
|
|
842
|
+
(a(!0), g(G, null, ne($.value, (c) => (a(), A(U(Ee), {
|
|
843
|
+
key: c.field,
|
|
844
|
+
prop: c.field,
|
|
845
|
+
label: c.label,
|
|
846
|
+
width: c.width,
|
|
847
|
+
"min-width": c.minWidth,
|
|
848
|
+
align: c.align || "left",
|
|
849
|
+
"header-align": c.headerAlign,
|
|
850
|
+
fixed: c.fixed,
|
|
851
|
+
sortable: c.sortable,
|
|
852
|
+
"show-overflow-tooltip": c.showOverflowTooltip !== !1
|
|
818
853
|
}, {
|
|
819
|
-
default:
|
|
854
|
+
default: i(({ row: P, $index: me }) => {
|
|
820
855
|
var Q, Be, Se, ze, Re, Ue, Ae, Pe, Ie, Le, Me;
|
|
821
856
|
return [
|
|
822
|
-
|
|
857
|
+
x.$slots[c.field] ? Ve(x.$slots, c.field, {
|
|
823
858
|
key: 0,
|
|
824
859
|
row: P,
|
|
825
860
|
index: me,
|
|
826
|
-
column:
|
|
827
|
-
}, void 0, !0) :
|
|
828
|
-
|
|
861
|
+
column: c
|
|
862
|
+
}, void 0, !0) : c.editable && !e.disabled && !e.readonly ? (a(), g(G, { key: 1 }, [
|
|
863
|
+
c.controlType === "input" || !c.controlType ? (a(), A(Bl, {
|
|
829
864
|
key: 0,
|
|
830
|
-
modelValue: P[
|
|
831
|
-
"onUpdate:modelValue": (ae) => P[
|
|
832
|
-
placeholder:
|
|
833
|
-
onChange: (ae) =>
|
|
834
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) :
|
|
865
|
+
modelValue: P[c.field],
|
|
866
|
+
"onUpdate:modelValue": (ae) => P[c.field] = ae,
|
|
867
|
+
placeholder: c.placeholder,
|
|
868
|
+
onChange: (ae) => t(me, c.field, P[c.field])
|
|
869
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : c.controlType === "number" ? (a(), A(Ul, {
|
|
835
870
|
key: 1,
|
|
836
|
-
modelValue: P[
|
|
837
|
-
"onUpdate:modelValue": (ae) => P[
|
|
871
|
+
modelValue: P[c.field],
|
|
872
|
+
"onUpdate:modelValue": (ae) => P[c.field] = ae,
|
|
838
873
|
controls: !1,
|
|
839
|
-
min: (Q =
|
|
840
|
-
max: (Be =
|
|
841
|
-
precision: (Se =
|
|
842
|
-
disabled: (ze =
|
|
843
|
-
onChange: (ae) =>
|
|
844
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "precision", "disabled", "onChange"])) :
|
|
874
|
+
min: (Q = c.controlProps) == null ? void 0 : Q.min,
|
|
875
|
+
max: (Be = c.controlProps) == null ? void 0 : Be.max,
|
|
876
|
+
precision: (Se = c.controlProps) == null ? void 0 : Se.precision,
|
|
877
|
+
disabled: (ze = c.controlProps) == null ? void 0 : ze.disabled,
|
|
878
|
+
onChange: (ae) => t(me, c.field, P[c.field])
|
|
879
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "precision", "disabled", "onChange"])) : c.controlType === "select" ? (a(), A(Rl, {
|
|
845
880
|
key: 2,
|
|
846
|
-
modelValue: P[
|
|
847
|
-
"onUpdate:modelValue": (ae) => P[
|
|
848
|
-
placeholder:
|
|
849
|
-
options: ((Re =
|
|
881
|
+
modelValue: P[c.field],
|
|
882
|
+
"onUpdate:modelValue": (ae) => P[c.field] = ae,
|
|
883
|
+
placeholder: c.placeholder || "请选择",
|
|
884
|
+
options: ((Re = c.controlProps) == null ? void 0 : Re.options) || [],
|
|
850
885
|
clearable: "",
|
|
851
|
-
onChange: (ae) =>
|
|
852
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "options", "onChange"])) :
|
|
886
|
+
onChange: (ae) => t(me, c.field, P[c.field])
|
|
887
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "options", "onChange"])) : c.controlType === "date" ? (a(), A(Al, {
|
|
853
888
|
key: 3,
|
|
854
|
-
modelValue: P[
|
|
855
|
-
"onUpdate:modelValue": (ae) => P[
|
|
889
|
+
modelValue: P[c.field],
|
|
890
|
+
"onUpdate:modelValue": (ae) => P[c.field] = ae,
|
|
856
891
|
type: "date",
|
|
857
|
-
placeholder:
|
|
892
|
+
placeholder: c.placeholder || "选择日期",
|
|
858
893
|
"value-format": "YYYY-MM-DD",
|
|
859
|
-
onChange: (ae) =>
|
|
860
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) :
|
|
894
|
+
onChange: (ae) => t(me, c.field, P[c.field])
|
|
895
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : c.controlType === "time" ? (a(), A(Pl, {
|
|
861
896
|
key: 4,
|
|
862
|
-
modelValue: P[
|
|
863
|
-
"onUpdate:modelValue": (ae) => P[
|
|
864
|
-
placeholder:
|
|
865
|
-
format: ((Ue =
|
|
866
|
-
"value-format": ((Ae =
|
|
867
|
-
onChange: (ae) =>
|
|
868
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "format", "value-format", "onChange"])) :
|
|
897
|
+
modelValue: P[c.field],
|
|
898
|
+
"onUpdate:modelValue": (ae) => P[c.field] = ae,
|
|
899
|
+
placeholder: c.placeholder || "选择时间",
|
|
900
|
+
format: ((Ue = c.controlProps) == null ? void 0 : Ue.format) || "HH:mm",
|
|
901
|
+
"value-format": ((Ae = c.controlProps) == null ? void 0 : Ae.valueFormat) || "HH:mm",
|
|
902
|
+
onChange: (ae) => t(me, c.field, P[c.field])
|
|
903
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "format", "value-format", "onChange"])) : c.controlType === "switch" ? (a(), A(zl, {
|
|
869
904
|
key: 5,
|
|
870
|
-
modelValue: P[
|
|
871
|
-
"onUpdate:modelValue": (ae) => P[
|
|
872
|
-
"active-value": ((Pe =
|
|
873
|
-
"inactive-value": ((Ie =
|
|
874
|
-
onChange: (ae) =>
|
|
875
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) :
|
|
876
|
-
], 64)) : (a(),
|
|
877
|
-
|
|
878
|
-
N(O(
|
|
879
|
-
], 64)) :
|
|
880
|
-
N(O(L(P[
|
|
881
|
-
], 64)) :
|
|
905
|
+
modelValue: P[c.field],
|
|
906
|
+
"onUpdate:modelValue": (ae) => P[c.field] = ae,
|
|
907
|
+
"active-value": ((Pe = c.controlProps) == null ? void 0 : Pe.activeValue) ?? !0,
|
|
908
|
+
"inactive-value": ((Ie = c.controlProps) == null ? void 0 : Ie.inactiveValue) ?? !1,
|
|
909
|
+
onChange: (ae) => t(me, c.field, P[c.field])
|
|
910
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : q("", !0)
|
|
911
|
+
], 64)) : (a(), g(G, { key: 2 }, [
|
|
912
|
+
c.formatter ? (a(), g(G, { key: 0 }, [
|
|
913
|
+
N(O(c.formatter(P[c.field], P, me)), 1)
|
|
914
|
+
], 64)) : c.controlType === "select" ? (a(), g(G, { key: 1 }, [
|
|
915
|
+
N(O(L(P[c.field], (Le = c.controlProps) == null ? void 0 : Le.options)), 1)
|
|
916
|
+
], 64)) : c.controlType === "switch" ? (a(), A(U(il), {
|
|
882
917
|
key: 2,
|
|
883
|
-
type: P[
|
|
918
|
+
type: P[c.field] === (((Me = c.controlProps) == null ? void 0 : Me.activeValue) ?? !0) ? "success" : "info",
|
|
884
919
|
size: "small"
|
|
885
920
|
}, {
|
|
886
|
-
default:
|
|
921
|
+
default: i(() => {
|
|
887
922
|
var ae, Ne, Oe;
|
|
888
923
|
return [
|
|
889
|
-
N(O(P[
|
|
924
|
+
N(O(P[c.field] === (((ae = c.controlProps) == null ? void 0 : ae.activeValue) ?? !0) ? ((Ne = c.controlProps) == null ? void 0 : Ne.activeText) || "是" : ((Oe = c.controlProps) == null ? void 0 : Oe.inactiveText) || "否"), 1)
|
|
890
925
|
];
|
|
891
926
|
}),
|
|
892
927
|
_: 2
|
|
893
|
-
}, 1032, ["type"])) : (a(),
|
|
894
|
-
N(O(P[
|
|
928
|
+
}, 1032, ["type"])) : (a(), g(G, { key: 3 }, [
|
|
929
|
+
N(O(P[c.field]), 1)
|
|
895
930
|
], 64))
|
|
896
931
|
], 64))
|
|
897
932
|
];
|
|
@@ -901,15 +936,15 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
901
936
|
]),
|
|
902
937
|
_: 3
|
|
903
938
|
}, 8, ["data", "height", "max-height", "stripe", "border", "empty-text", "highlight-current-row"]),
|
|
904
|
-
|
|
939
|
+
h.value ? (a(), g("div", Ml, O(h.value), 1)) : q("", !0)
|
|
905
940
|
]));
|
|
906
941
|
}
|
|
907
|
-
}), xe = (e,
|
|
908
|
-
const
|
|
909
|
-
for (const [
|
|
910
|
-
|
|
911
|
-
return
|
|
912
|
-
},
|
|
942
|
+
}), xe = (e, E) => {
|
|
943
|
+
const T = e.__vccOpts || e;
|
|
944
|
+
for (const [l, o] of E)
|
|
945
|
+
T[l] = o;
|
|
946
|
+
return T;
|
|
947
|
+
}, io = /* @__PURE__ */ xe(Nl, [["__scopeId", "data-v-8ce855eb"]]), ro = /* @__PURE__ */ ee({
|
|
913
948
|
__name: "base-textarea",
|
|
914
949
|
props: {
|
|
915
950
|
modelValue: {},
|
|
@@ -925,21 +960,21 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
925
960
|
showCount: { type: Boolean, default: !1 }
|
|
926
961
|
},
|
|
927
962
|
emits: ["update:modelValue", "input", "change", "focus", "blur"],
|
|
928
|
-
setup(e, { expose:
|
|
929
|
-
const
|
|
930
|
-
get: () =>
|
|
963
|
+
setup(e, { expose: E, emit: T }) {
|
|
964
|
+
const l = e, o = T, r = D(), u = W({
|
|
965
|
+
get: () => l.modelValue ?? "",
|
|
931
966
|
set: (s) => o("update:modelValue", s)
|
|
932
967
|
}), v = (s) => {
|
|
933
968
|
o("input", s);
|
|
934
|
-
},
|
|
969
|
+
}, h = (s) => {
|
|
935
970
|
o("change", s);
|
|
936
|
-
},
|
|
971
|
+
}, p = (s) => {
|
|
937
972
|
o("focus", s);
|
|
938
973
|
}, y = (s) => {
|
|
939
974
|
o("blur", s);
|
|
940
975
|
};
|
|
941
|
-
return
|
|
942
|
-
getValue: () =>
|
|
976
|
+
return E({
|
|
977
|
+
getValue: () => l.modelValue ?? "",
|
|
943
978
|
setValue: (s) => {
|
|
944
979
|
o("update:modelValue", s);
|
|
945
980
|
},
|
|
@@ -948,19 +983,19 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
948
983
|
},
|
|
949
984
|
focus: () => {
|
|
950
985
|
var s;
|
|
951
|
-
(s =
|
|
986
|
+
(s = r.value) == null || s.focus();
|
|
952
987
|
},
|
|
953
988
|
blur: () => {
|
|
954
989
|
var s;
|
|
955
|
-
(s =
|
|
990
|
+
(s = r.value) == null || s.blur();
|
|
956
991
|
},
|
|
957
|
-
getLength: () => (
|
|
958
|
-
getField: () =>
|
|
959
|
-
}), (s,
|
|
992
|
+
getLength: () => (l.modelValue || "").length,
|
|
993
|
+
getField: () => l.field ?? ""
|
|
994
|
+
}), (s, t) => (a(), A(U(We), {
|
|
960
995
|
ref_key: "textareaRef",
|
|
961
|
-
ref:
|
|
962
|
-
modelValue:
|
|
963
|
-
"onUpdate:modelValue":
|
|
996
|
+
ref: r,
|
|
997
|
+
modelValue: u.value,
|
|
998
|
+
"onUpdate:modelValue": t[0] || (t[0] = (C) => u.value = C),
|
|
964
999
|
type: "textarea",
|
|
965
1000
|
placeholder: e.placeholder,
|
|
966
1001
|
disabled: e.disabled,
|
|
@@ -972,23 +1007,23 @@ const Bl = /* @__PURE__ */ ee({
|
|
|
972
1007
|
resize: e.resize,
|
|
973
1008
|
"show-word-limit": e.showCount,
|
|
974
1009
|
onInput: v,
|
|
975
|
-
onChange:
|
|
976
|
-
onFocus:
|
|
1010
|
+
onChange: h,
|
|
1011
|
+
onFocus: p,
|
|
977
1012
|
onBlur: y
|
|
978
1013
|
}, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "maxlength", "minlength", "rows", "autosize", "resize", "show-word-limit"]));
|
|
979
1014
|
}
|
|
980
1015
|
}), Te = "__portalUiHttp__", Ge = "__portalUiLogoutToAuth__";
|
|
981
|
-
function
|
|
982
|
-
window[Te] = e,
|
|
1016
|
+
function co(e, E) {
|
|
1017
|
+
window[Te] = e, E && (window[Ge] = E);
|
|
983
1018
|
}
|
|
984
|
-
function
|
|
985
|
-
const { http:
|
|
1019
|
+
function fo(e) {
|
|
1020
|
+
const { http: E, logoutToAuth: T } = kl({
|
|
986
1021
|
baseURL: e.baseURL || "",
|
|
987
1022
|
getUserStore: e.getUserStore,
|
|
988
1023
|
getLoadingStore: e.getLoadingStore,
|
|
989
1024
|
onShowError: e.onShowError
|
|
990
1025
|
});
|
|
991
|
-
return window[Te] =
|
|
1026
|
+
return window[Te] = E, window[Ge] = T, { http: E, logoutToAuth: T };
|
|
992
1027
|
}
|
|
993
1028
|
function he() {
|
|
994
1029
|
const e = window[Te];
|
|
@@ -1006,63 +1041,63 @@ const we = {
|
|
|
1006
1041
|
lockScroll: !1,
|
|
1007
1042
|
// 不隐藏父页面滚动条
|
|
1008
1043
|
customClass: "base-message-box"
|
|
1009
|
-
},
|
|
1010
|
-
confirm: (v,
|
|
1044
|
+
}, Ol = () => ({
|
|
1045
|
+
confirm: (v, h = "确认", p) => _e.confirm(v, h, {
|
|
1011
1046
|
...we,
|
|
1012
1047
|
type: "warning",
|
|
1013
1048
|
customClass: "base-message-box base-message-box--warning",
|
|
1014
|
-
...
|
|
1049
|
+
...p
|
|
1015
1050
|
}),
|
|
1016
|
-
alert: (v,
|
|
1051
|
+
alert: (v, h = "提示", p) => _e.alert(v, h, {
|
|
1017
1052
|
...we,
|
|
1018
1053
|
type: "info",
|
|
1019
1054
|
customClass: "base-message-box base-message-box--info",
|
|
1020
|
-
...
|
|
1055
|
+
...p
|
|
1021
1056
|
}),
|
|
1022
|
-
success: (v,
|
|
1057
|
+
success: (v, h = "成功", p) => _e.alert(v, h, {
|
|
1023
1058
|
...we,
|
|
1024
1059
|
type: "success",
|
|
1025
1060
|
customClass: "base-message-box base-message-box--success",
|
|
1026
|
-
...
|
|
1061
|
+
...p
|
|
1027
1062
|
}),
|
|
1028
|
-
error: (v,
|
|
1063
|
+
error: (v, h = "错误", p) => _e.alert(v, h, {
|
|
1029
1064
|
...we,
|
|
1030
1065
|
type: "error",
|
|
1031
1066
|
customClass: "base-message-box base-message-box--error",
|
|
1032
|
-
...
|
|
1067
|
+
...p
|
|
1033
1068
|
}),
|
|
1034
|
-
warning: (v,
|
|
1069
|
+
warning: (v, h = "提示", p) => _e.alert(v, h, {
|
|
1035
1070
|
...we,
|
|
1036
1071
|
type: "warning",
|
|
1037
1072
|
customClass: "base-message-box base-message-box--warning",
|
|
1038
|
-
...
|
|
1073
|
+
...p
|
|
1039
1074
|
}),
|
|
1040
|
-
prompt: (v,
|
|
1075
|
+
prompt: (v, h = "输入", p) => _e.prompt(v, h, {
|
|
1041
1076
|
...we,
|
|
1042
1077
|
customClass: "base-message-box base-message-box--prompt",
|
|
1043
1078
|
inputPlaceholder: "请输入内容",
|
|
1044
|
-
...
|
|
1079
|
+
...p
|
|
1045
1080
|
}),
|
|
1046
|
-
confirmDelete: (v = "确定要删除吗?删除后无法恢复。",
|
|
1081
|
+
confirmDelete: (v = "确定要删除吗?删除后无法恢复。", h = "删除确认") => _e.confirm(v, h, {
|
|
1047
1082
|
...we,
|
|
1048
1083
|
type: "error",
|
|
1049
1084
|
confirmButtonText: "删除",
|
|
1050
1085
|
customClass: "base-message-box base-message-box--delete",
|
|
1051
1086
|
confirmButtonClass: "el-button--danger"
|
|
1052
1087
|
})
|
|
1053
|
-
}),
|
|
1088
|
+
}), Hl = { class: "base-upload" }, jl = { class: "upload-toolbar" }, Kl = { class: "upload-dialog-header" }, Yl = {
|
|
1054
1089
|
key: 0,
|
|
1055
1090
|
class: "pending-file-list"
|
|
1056
|
-
},
|
|
1091
|
+
}, Wl = { class: "progress-cell" }, ql = {
|
|
1057
1092
|
key: 1,
|
|
1058
1093
|
class: "status-success"
|
|
1059
|
-
},
|
|
1094
|
+
}, Gl = {
|
|
1060
1095
|
key: 2,
|
|
1061
1096
|
class: "status-uploading"
|
|
1062
|
-
},
|
|
1097
|
+
}, Xl = {
|
|
1063
1098
|
key: 3,
|
|
1064
1099
|
class: "status-error"
|
|
1065
|
-
},
|
|
1100
|
+
}, Jl = { class: "dropzone-content" }, Ql = { class: "dropzone-icon" }, Zl = { class: "dropzone-tips" }, et = { class: "tips-main" }, lt = { class: "dialog-footer" }, mo = /* @__PURE__ */ ee({
|
|
1066
1101
|
__name: "base-upload",
|
|
1067
1102
|
props: {
|
|
1068
1103
|
modelValue: { default: () => [] },
|
|
@@ -1075,21 +1110,21 @@ const we = {
|
|
|
1075
1110
|
attachTypes: { default: () => [] }
|
|
1076
1111
|
},
|
|
1077
1112
|
emits: ["update:modelValue", "upload-success", "upload-error"],
|
|
1078
|
-
setup(e, { expose:
|
|
1079
|
-
const
|
|
1080
|
-
get: () =>
|
|
1081
|
-
set: (
|
|
1082
|
-
}),
|
|
1083
|
-
if (!
|
|
1084
|
-
return
|
|
1085
|
-
const
|
|
1086
|
-
|
|
1087
|
-
const Z =
|
|
1088
|
-
(
|
|
1113
|
+
setup(e, { expose: E, emit: T }) {
|
|
1114
|
+
const l = he(), { warning: o } = Ol(), r = e, u = T, v = D(!1), h = D(!1), p = D([]), y = D(), $ = D(), k = D([]), f = W({
|
|
1115
|
+
get: () => r.modelValue,
|
|
1116
|
+
set: (S) => u("update:modelValue", S)
|
|
1117
|
+
}), w = W(() => r.attachTypes && r.attachTypes.length > 0), z = W(() => {
|
|
1118
|
+
if (!w.value)
|
|
1119
|
+
return f.value;
|
|
1120
|
+
const S = [];
|
|
1121
|
+
r.attachTypes.forEach((j) => {
|
|
1122
|
+
const Z = f.value.filter(
|
|
1123
|
+
(m) => m.attach_category === j.key || m.attach_category === j.value
|
|
1089
1124
|
);
|
|
1090
|
-
Z.length > 0 ? Z.forEach((
|
|
1091
|
-
|
|
1092
|
-
}) :
|
|
1125
|
+
Z.length > 0 ? Z.forEach((m) => {
|
|
1126
|
+
S.push(m);
|
|
1127
|
+
}) : S.push({
|
|
1093
1128
|
_isPlaceholder: !0,
|
|
1094
1129
|
attach_category: j.value,
|
|
1095
1130
|
file_name: "",
|
|
@@ -1099,83 +1134,83 @@ const we = {
|
|
|
1099
1134
|
creation_date: ""
|
|
1100
1135
|
});
|
|
1101
1136
|
});
|
|
1102
|
-
const
|
|
1103
|
-
return
|
|
1104
|
-
(j) => !j.attach_category || !
|
|
1137
|
+
const V = r.attachTypes.map((j) => j.key), _ = r.attachTypes.map((j) => j.value);
|
|
1138
|
+
return f.value.filter(
|
|
1139
|
+
(j) => !j.attach_category || !V.includes(j.attach_category) && !_.includes(j.attach_category)
|
|
1105
1140
|
).forEach((j) => {
|
|
1106
|
-
|
|
1107
|
-
}),
|
|
1108
|
-
}), L = (
|
|
1141
|
+
S.push(j);
|
|
1142
|
+
}), S;
|
|
1143
|
+
}), L = (S) => !S._isPlaceholder;
|
|
1109
1144
|
De(() => {
|
|
1110
|
-
|
|
1111
|
-
}), Ce(() =>
|
|
1112
|
-
|
|
1145
|
+
r.procBid && K();
|
|
1146
|
+
}), Ce(() => r.procBid, (S) => {
|
|
1147
|
+
S && K();
|
|
1113
1148
|
});
|
|
1114
1149
|
function K() {
|
|
1115
|
-
|
|
1116
|
-
|
|
1150
|
+
r.procBid && l.get(`/proxy/wf/attachment/api/list/${r.procBid}`).then((S) => {
|
|
1151
|
+
S.code === 200 && (f.value = S.data || []);
|
|
1117
1152
|
});
|
|
1118
1153
|
}
|
|
1119
|
-
const s = (
|
|
1154
|
+
const s = (S) => {
|
|
1120
1155
|
var _;
|
|
1121
|
-
return ((_ =
|
|
1122
|
-
},
|
|
1123
|
-
if (
|
|
1124
|
-
const
|
|
1125
|
-
return parseFloat((
|
|
1126
|
-
},
|
|
1127
|
-
if (!
|
|
1128
|
-
if (
|
|
1129
|
-
const
|
|
1130
|
-
if (
|
|
1156
|
+
return ((_ = S.split(".").pop()) == null ? void 0 : _.toLowerCase()) || "";
|
|
1157
|
+
}, t = (S) => {
|
|
1158
|
+
if (S === 0) return "0 B";
|
|
1159
|
+
const V = 1024, _ = ["B", "KB", "MB", "GB"], Y = Math.floor(Math.log(S) / Math.log(V));
|
|
1160
|
+
return parseFloat((S / Math.pow(V, Y)).toFixed(1)) + " " + _[Y];
|
|
1161
|
+
}, C = () => Date.now().toString(36) + Math.random().toString(36).substr(2), b = (S) => {
|
|
1162
|
+
if (!S) return "";
|
|
1163
|
+
if (r.attachTypes) {
|
|
1164
|
+
const V = r.attachTypes.find((_) => _.key === S);
|
|
1165
|
+
if (V) return V.value;
|
|
1131
1166
|
}
|
|
1132
|
-
return
|
|
1167
|
+
return S;
|
|
1133
1168
|
}, X = () => {
|
|
1134
|
-
|
|
1169
|
+
p.value = [], v.value = !0;
|
|
1135
1170
|
}, M = () => {
|
|
1136
|
-
var
|
|
1137
|
-
(
|
|
1138
|
-
}, oe = (
|
|
1139
|
-
const
|
|
1140
|
-
|
|
1141
|
-
}, de = (
|
|
1171
|
+
var S;
|
|
1172
|
+
(S = y.value) == null || S.click();
|
|
1173
|
+
}, oe = (S) => {
|
|
1174
|
+
const V = S.target;
|
|
1175
|
+
V.files && se(Array.from(V.files)), V.value = "";
|
|
1176
|
+
}, de = (S) => {
|
|
1142
1177
|
var _;
|
|
1143
|
-
const
|
|
1144
|
-
|
|
1145
|
-
}, se = (
|
|
1146
|
-
for (const
|
|
1147
|
-
if (
|
|
1148
|
-
console.warn(`文件 ${
|
|
1178
|
+
const V = (_ = S.dataTransfer) == null ? void 0 : _.files;
|
|
1179
|
+
V && se(Array.from(V));
|
|
1180
|
+
}, se = (S) => {
|
|
1181
|
+
for (const V of S) {
|
|
1182
|
+
if (V.size > r.maxSize * 1024 * 1024) {
|
|
1183
|
+
console.warn(`文件 ${V.name} 超过最大限制 ${r.maxSize}MB`);
|
|
1149
1184
|
continue;
|
|
1150
1185
|
}
|
|
1151
|
-
|
|
1152
|
-
uid:
|
|
1153
|
-
name:
|
|
1154
|
-
size:
|
|
1155
|
-
raw:
|
|
1186
|
+
p.value.push({
|
|
1187
|
+
uid: C(),
|
|
1188
|
+
name: V.name,
|
|
1189
|
+
size: V.size,
|
|
1190
|
+
raw: V,
|
|
1156
1191
|
progress: 0,
|
|
1157
1192
|
status: "ready",
|
|
1158
1193
|
attachType: ""
|
|
1159
1194
|
});
|
|
1160
1195
|
}
|
|
1161
|
-
}, pe = (
|
|
1162
|
-
|
|
1196
|
+
}, pe = (S) => {
|
|
1197
|
+
p.value.splice(S, 1);
|
|
1163
1198
|
};
|
|
1164
1199
|
function fe() {
|
|
1165
|
-
if (
|
|
1166
|
-
if (!
|
|
1200
|
+
if (p.value.length === 0) return;
|
|
1201
|
+
if (!r.formBid) {
|
|
1167
1202
|
console.error("表单业务ID不能为空");
|
|
1168
1203
|
return;
|
|
1169
1204
|
}
|
|
1170
|
-
|
|
1171
|
-
const
|
|
1172
|
-
let
|
|
1173
|
-
|
|
1205
|
+
h.value = !0;
|
|
1206
|
+
const S = p.value.filter((_) => _.status === "ready");
|
|
1207
|
+
let V = 0;
|
|
1208
|
+
S.forEach((_) => {
|
|
1174
1209
|
_.status = "uploading";
|
|
1175
1210
|
const Y = new FormData();
|
|
1176
|
-
Y.append("file", _.raw), Y.append("formBid",
|
|
1177
|
-
const j = _.attachType ||
|
|
1178
|
-
Y.append("attachCategory", j),
|
|
1211
|
+
Y.append("file", _.raw), Y.append("formBid", r.formBid), Y.append("procBid", r.procBid || "");
|
|
1212
|
+
const j = _.attachType || r.attachCategory;
|
|
1213
|
+
Y.append("attachCategory", j), l.post("/proxy/wf/attachment/api/upload", Y, {
|
|
1179
1214
|
headers: { "Content-Type": "multipart/form-data" },
|
|
1180
1215
|
onUploadProgress: (Z) => {
|
|
1181
1216
|
Z.total && (_.progress = Math.round(Z.loaded / Z.total * 100));
|
|
@@ -1183,71 +1218,71 @@ const we = {
|
|
|
1183
1218
|
}).then((Z) => {
|
|
1184
1219
|
if (Z.code === 200) {
|
|
1185
1220
|
_.status = "success", _.progress = 100;
|
|
1186
|
-
const
|
|
1187
|
-
!
|
|
1221
|
+
const m = Z.data;
|
|
1222
|
+
!m.attach_category && _.attachType && (m.attach_category = _.attachType), f.value = [...f.value, m], u("upload-success", m);
|
|
1188
1223
|
} else
|
|
1189
|
-
_.status = "error",
|
|
1224
|
+
_.status = "error", u("upload-error", new Error(Z.message || "上传失败"));
|
|
1190
1225
|
}).catch((Z) => {
|
|
1191
|
-
_.status = "error",
|
|
1226
|
+
_.status = "error", u("upload-error", Z);
|
|
1192
1227
|
}).finally(() => {
|
|
1193
|
-
|
|
1228
|
+
V++, V === S.length && (h.value = !1, p.value.every((m) => m.status === "success") && setTimeout(() => {
|
|
1194
1229
|
v.value = !1;
|
|
1195
1230
|
}, 1e3));
|
|
1196
1231
|
});
|
|
1197
1232
|
});
|
|
1198
1233
|
}
|
|
1199
1234
|
const re = ["png", "jpg", "jpeg", "gif", "bmp", "webp", "pdf", "doc", "docx", "xls", "xlsx"];
|
|
1200
|
-
function te(
|
|
1201
|
-
return re.includes(
|
|
1235
|
+
function te(S) {
|
|
1236
|
+
return re.includes(S.toLowerCase());
|
|
1202
1237
|
}
|
|
1203
|
-
function ve(
|
|
1204
|
-
if (!te(
|
|
1205
|
-
o(`该文件类型(.${
|
|
1238
|
+
function ve(S) {
|
|
1239
|
+
if (!te(S.file_ext)) {
|
|
1240
|
+
o(`该文件类型(.${S.file_ext})不支持在线预览,请下载后查看。`, "提示");
|
|
1206
1241
|
return;
|
|
1207
1242
|
}
|
|
1208
|
-
const _ = `${window.location.pathname}#/workflow/file-preview/${
|
|
1243
|
+
const _ = `${window.location.pathname}#/workflow/file-preview/${S.fid}?name=${encodeURIComponent(S.file_name)}&ext=${encodeURIComponent(S.file_ext)}`;
|
|
1209
1244
|
window.open(_, "_blank");
|
|
1210
1245
|
}
|
|
1211
|
-
function
|
|
1212
|
-
|
|
1246
|
+
function F(S) {
|
|
1247
|
+
l.get(`/proxy/wf/attachment/api/download/${S.fid}`, {
|
|
1213
1248
|
responseType: "blob"
|
|
1214
|
-
}).then((
|
|
1215
|
-
const _ = window.URL.createObjectURL(new Blob([
|
|
1216
|
-
Y.href = _, Y.setAttribute("download",
|
|
1217
|
-
}).catch((
|
|
1218
|
-
console.error("下载失败:",
|
|
1249
|
+
}).then((V) => {
|
|
1250
|
+
const _ = window.URL.createObjectURL(new Blob([V])), Y = document.createElement("a");
|
|
1251
|
+
Y.href = _, Y.setAttribute("download", S.file_name), document.body.appendChild(Y), Y.click(), document.body.removeChild(Y), window.URL.revokeObjectURL(_);
|
|
1252
|
+
}).catch((V) => {
|
|
1253
|
+
console.error("下载失败:", V);
|
|
1219
1254
|
});
|
|
1220
1255
|
}
|
|
1221
|
-
function R(
|
|
1222
|
-
|
|
1256
|
+
function R(S) {
|
|
1257
|
+
k.value = S.filter((V) => !V._isPlaceholder);
|
|
1223
1258
|
}
|
|
1224
1259
|
function J() {
|
|
1225
|
-
if (
|
|
1260
|
+
if (k.value.length === 0) {
|
|
1226
1261
|
o("请先选择要下载的文件");
|
|
1227
1262
|
return;
|
|
1228
1263
|
}
|
|
1229
|
-
const
|
|
1230
|
-
|
|
1264
|
+
const S = k.value.map((V) => V.fid);
|
|
1265
|
+
l.post("/proxy/wf/attachment/api/batch_download", { fids: S }, {
|
|
1231
1266
|
responseType: "blob"
|
|
1232
|
-
}).then((
|
|
1233
|
-
const _ = window.URL.createObjectURL(new Blob([
|
|
1267
|
+
}).then((V) => {
|
|
1268
|
+
const _ = window.URL.createObjectURL(new Blob([V])), Y = document.createElement("a");
|
|
1234
1269
|
Y.href = _;
|
|
1235
1270
|
const j = `attachments_${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10).replace(/-/g, "")}.zip`;
|
|
1236
1271
|
Y.setAttribute("download", j), document.body.appendChild(Y), Y.click(), document.body.removeChild(Y), window.URL.revokeObjectURL(_);
|
|
1237
|
-
}).catch((
|
|
1238
|
-
console.error("批量下载失败:",
|
|
1272
|
+
}).catch((V) => {
|
|
1273
|
+
console.error("批量下载失败:", V), o("批量下载失败,请稍后重试");
|
|
1239
1274
|
});
|
|
1240
1275
|
}
|
|
1241
|
-
function ce(
|
|
1242
|
-
const
|
|
1243
|
-
if (!
|
|
1244
|
-
const _ =
|
|
1276
|
+
function ce(S) {
|
|
1277
|
+
const V = z.value[S];
|
|
1278
|
+
if (!V || V._isPlaceholder) return;
|
|
1279
|
+
const _ = f.value.findIndex((j) => j.fid === V.fid);
|
|
1245
1280
|
if (_ === -1) return;
|
|
1246
|
-
const Y =
|
|
1247
|
-
|
|
1281
|
+
const Y = f.value[_];
|
|
1282
|
+
l.delete(`/proxy/wf/attachment/api/delete/${Y.fid}`).then((j) => {
|
|
1248
1283
|
if (j.code === 200) {
|
|
1249
|
-
const Z = [...
|
|
1250
|
-
Z.splice(_, 1),
|
|
1284
|
+
const Z = [...f.value];
|
|
1285
|
+
Z.splice(_, 1), f.value = Z;
|
|
1251
1286
|
} else
|
|
1252
1287
|
console.error("删除失败:", j.message);
|
|
1253
1288
|
});
|
|
@@ -1255,55 +1290,55 @@ const we = {
|
|
|
1255
1290
|
function ge() {
|
|
1256
1291
|
K();
|
|
1257
1292
|
}
|
|
1258
|
-
return
|
|
1293
|
+
return E({
|
|
1259
1294
|
openUploadDialog: X,
|
|
1260
1295
|
refresh: ge,
|
|
1261
|
-
tableRef:
|
|
1262
|
-
getSelectedFiles: () =>
|
|
1263
|
-
}), (
|
|
1264
|
-
const _ = I("el-icon"), Y = I("el-button"), j = I("el-table-column"), Z = I("el-link"),
|
|
1265
|
-
return a(),
|
|
1266
|
-
d("div",
|
|
1296
|
+
tableRef: $,
|
|
1297
|
+
getSelectedFiles: () => k.value
|
|
1298
|
+
}), (S, V) => {
|
|
1299
|
+
const _ = I("el-icon"), Y = I("el-button"), j = I("el-table-column"), Z = I("el-link"), m = I("el-table"), H = I("el-option"), ue = I("el-select"), le = I("el-progress"), x = I("el-dialog");
|
|
1300
|
+
return a(), g("div", Hl, [
|
|
1301
|
+
d("div", jl, [
|
|
1267
1302
|
n(Y, {
|
|
1268
1303
|
onClick: X,
|
|
1269
1304
|
disabled: e.disabled
|
|
1270
1305
|
}, {
|
|
1271
|
-
default:
|
|
1306
|
+
default: i(() => [
|
|
1272
1307
|
n(_, null, {
|
|
1273
|
-
default:
|
|
1308
|
+
default: i(() => [
|
|
1274
1309
|
n(U(dl))
|
|
1275
1310
|
]),
|
|
1276
1311
|
_: 1
|
|
1277
1312
|
}),
|
|
1278
|
-
|
|
1313
|
+
V[3] || (V[3] = N(" 上传 ", -1))
|
|
1279
1314
|
]),
|
|
1280
1315
|
_: 1
|
|
1281
1316
|
}, 8, ["disabled"]),
|
|
1282
1317
|
n(Y, {
|
|
1283
1318
|
onClick: J,
|
|
1284
|
-
disabled:
|
|
1319
|
+
disabled: k.value.length === 0
|
|
1285
1320
|
}, {
|
|
1286
|
-
default:
|
|
1321
|
+
default: i(() => [
|
|
1287
1322
|
n(_, null, {
|
|
1288
|
-
default:
|
|
1323
|
+
default: i(() => [
|
|
1289
1324
|
n(U(rl))
|
|
1290
1325
|
]),
|
|
1291
1326
|
_: 1
|
|
1292
1327
|
}),
|
|
1293
|
-
|
|
1328
|
+
V[4] || (V[4] = N(" 批量下载 ", -1))
|
|
1294
1329
|
]),
|
|
1295
1330
|
_: 1
|
|
1296
1331
|
}, 8, ["disabled"])
|
|
1297
1332
|
]),
|
|
1298
|
-
n(
|
|
1333
|
+
n(m, {
|
|
1299
1334
|
ref_key: "tableRef",
|
|
1300
|
-
ref:
|
|
1301
|
-
data:
|
|
1335
|
+
ref: $,
|
|
1336
|
+
data: z.value,
|
|
1302
1337
|
border: "",
|
|
1303
1338
|
class: "upload-table",
|
|
1304
1339
|
onSelectionChange: R
|
|
1305
1340
|
}, {
|
|
1306
|
-
default:
|
|
1341
|
+
default: i(() => [
|
|
1307
1342
|
n(j, {
|
|
1308
1343
|
type: "selection",
|
|
1309
1344
|
width: "60",
|
|
@@ -1320,26 +1355,26 @@ const we = {
|
|
|
1320
1355
|
width: "120",
|
|
1321
1356
|
align: "center"
|
|
1322
1357
|
}, {
|
|
1323
|
-
default:
|
|
1324
|
-
!
|
|
1358
|
+
default: i((B) => [
|
|
1359
|
+
!B || !B.row || B.row._isPlaceholder ? (a(), g(G, { key: 0 }, [], 64)) : (a(), g(G, { key: 1 }, [
|
|
1325
1360
|
n(Z, {
|
|
1326
1361
|
type: "primary",
|
|
1327
1362
|
underline: "never",
|
|
1328
|
-
onClick: (
|
|
1363
|
+
onClick: (c) => ve(B.row)
|
|
1329
1364
|
}, {
|
|
1330
|
-
default:
|
|
1365
|
+
default: i(() => [...V[5] || (V[5] = [
|
|
1331
1366
|
N("预览", -1)
|
|
1332
1367
|
])]),
|
|
1333
1368
|
_: 1
|
|
1334
1369
|
}, 8, ["onClick"]),
|
|
1335
|
-
e.disabled ?
|
|
1370
|
+
e.disabled ? q("", !0) : (a(), A(Z, {
|
|
1336
1371
|
key: 0,
|
|
1337
1372
|
type: "primary",
|
|
1338
1373
|
underline: "never",
|
|
1339
|
-
onClick: (
|
|
1374
|
+
onClick: (c) => ce(B.$index),
|
|
1340
1375
|
style: { "margin-left": "10px" }
|
|
1341
1376
|
}, {
|
|
1342
|
-
default:
|
|
1377
|
+
default: i(() => [...V[6] || (V[6] = [
|
|
1343
1378
|
N("删除", -1)
|
|
1344
1379
|
])]),
|
|
1345
1380
|
_: 1
|
|
@@ -1348,30 +1383,30 @@ const we = {
|
|
|
1348
1383
|
]),
|
|
1349
1384
|
_: 1
|
|
1350
1385
|
}),
|
|
1351
|
-
|
|
1386
|
+
w.value ? (a(), A(j, {
|
|
1352
1387
|
key: 0,
|
|
1353
1388
|
label: "附件类型",
|
|
1354
1389
|
width: "240",
|
|
1355
1390
|
align: "center"
|
|
1356
1391
|
}, {
|
|
1357
|
-
default:
|
|
1358
|
-
N(O(
|
|
1392
|
+
default: i((B) => [
|
|
1393
|
+
N(O(B && B.row ? b(B.row.attach_category) : ""), 1)
|
|
1359
1394
|
]),
|
|
1360
1395
|
_: 1
|
|
1361
|
-
})) :
|
|
1396
|
+
})) : q("", !0),
|
|
1362
1397
|
n(j, {
|
|
1363
1398
|
label: "附件名称",
|
|
1364
1399
|
"min-width": "300"
|
|
1365
1400
|
}, {
|
|
1366
|
-
default:
|
|
1367
|
-
!
|
|
1401
|
+
default: i((B) => [
|
|
1402
|
+
!B || !B.row || B.row._isPlaceholder ? (a(), g(G, { key: 0 }, [], 64)) : (a(), A(Z, {
|
|
1368
1403
|
key: 1,
|
|
1369
1404
|
type: "primary",
|
|
1370
1405
|
underline: "never",
|
|
1371
|
-
onClick: (
|
|
1406
|
+
onClick: (c) => F(B.row)
|
|
1372
1407
|
}, {
|
|
1373
|
-
default:
|
|
1374
|
-
N(O(
|
|
1408
|
+
default: i(() => [
|
|
1409
|
+
N(O(B.row.file_name), 1)
|
|
1375
1410
|
]),
|
|
1376
1411
|
_: 2
|
|
1377
1412
|
}, 1032, ["onClick"]))
|
|
@@ -1403,34 +1438,34 @@ const we = {
|
|
|
1403
1438
|
]),
|
|
1404
1439
|
_: 1
|
|
1405
1440
|
}, 8, ["data"]),
|
|
1406
|
-
n(
|
|
1441
|
+
n(x, {
|
|
1407
1442
|
modelValue: v.value,
|
|
1408
|
-
"onUpdate:modelValue":
|
|
1443
|
+
"onUpdate:modelValue": V[2] || (V[2] = (B) => v.value = B),
|
|
1409
1444
|
width: "900px",
|
|
1410
1445
|
"close-on-click-modal": !1,
|
|
1411
1446
|
"show-close": !1,
|
|
1412
1447
|
class: "upload-dialog"
|
|
1413
1448
|
}, {
|
|
1414
|
-
header:
|
|
1415
|
-
d("div",
|
|
1416
|
-
|
|
1449
|
+
header: i(() => [
|
|
1450
|
+
d("div", Kl, [
|
|
1451
|
+
V[7] || (V[7] = d("span", { class: "upload-dialog-title" }, "上传附件", -1)),
|
|
1417
1452
|
d("button", {
|
|
1418
1453
|
class: "upload-dialog-close",
|
|
1419
|
-
onClick:
|
|
1454
|
+
onClick: V[0] || (V[0] = (B) => v.value = !1)
|
|
1420
1455
|
}, [
|
|
1421
1456
|
n(_, null, {
|
|
1422
|
-
default:
|
|
1423
|
-
n(U(
|
|
1457
|
+
default: i(() => [
|
|
1458
|
+
n(U(ke))
|
|
1424
1459
|
]),
|
|
1425
1460
|
_: 1
|
|
1426
1461
|
})
|
|
1427
1462
|
])
|
|
1428
1463
|
])
|
|
1429
1464
|
]),
|
|
1430
|
-
footer:
|
|
1431
|
-
d("div",
|
|
1465
|
+
footer: i(() => [
|
|
1466
|
+
d("div", lt, [
|
|
1432
1467
|
n(Y, { onClick: M }, {
|
|
1433
|
-
default:
|
|
1468
|
+
default: i(() => [...V[15] || (V[15] = [
|
|
1434
1469
|
N("添加文件", -1)
|
|
1435
1470
|
])]),
|
|
1436
1471
|
_: 1
|
|
@@ -1438,52 +1473,52 @@ const we = {
|
|
|
1438
1473
|
n(Y, {
|
|
1439
1474
|
type: "primary",
|
|
1440
1475
|
onClick: fe,
|
|
1441
|
-
loading:
|
|
1476
|
+
loading: h.value
|
|
1442
1477
|
}, {
|
|
1443
|
-
default:
|
|
1478
|
+
default: i(() => [...V[16] || (V[16] = [
|
|
1444
1479
|
N("开始上传", -1)
|
|
1445
1480
|
])]),
|
|
1446
1481
|
_: 1
|
|
1447
1482
|
}, 8, ["loading"])
|
|
1448
1483
|
])
|
|
1449
1484
|
]),
|
|
1450
|
-
default:
|
|
1451
|
-
|
|
1452
|
-
(a(!0),
|
|
1453
|
-
key:
|
|
1485
|
+
default: i(() => [
|
|
1486
|
+
p.value.length > 0 ? (a(), g("div", Yl, [
|
|
1487
|
+
(a(!0), g(G, null, ne(p.value, (B, c) => (a(), g("div", {
|
|
1488
|
+
key: B.uid,
|
|
1454
1489
|
class: "pending-file-item"
|
|
1455
1490
|
}, [
|
|
1456
|
-
|
|
1491
|
+
w.value ? (a(), A(m, {
|
|
1457
1492
|
key: 0,
|
|
1458
|
-
data: [
|
|
1493
|
+
data: [B],
|
|
1459
1494
|
border: "",
|
|
1460
1495
|
"show-header": !1
|
|
1461
1496
|
}, {
|
|
1462
|
-
default:
|
|
1497
|
+
default: i(() => [
|
|
1463
1498
|
n(j, {
|
|
1464
1499
|
label: "附件类型",
|
|
1465
1500
|
width: "100"
|
|
1466
1501
|
}, {
|
|
1467
|
-
default:
|
|
1502
|
+
default: i(() => [...V[8] || (V[8] = [
|
|
1468
1503
|
N("附件类型", -1)
|
|
1469
1504
|
])]),
|
|
1470
1505
|
_: 1
|
|
1471
1506
|
}),
|
|
1472
1507
|
n(j, null, {
|
|
1473
|
-
default:
|
|
1508
|
+
default: i(() => [
|
|
1474
1509
|
n(ue, {
|
|
1475
|
-
modelValue:
|
|
1476
|
-
"onUpdate:modelValue": (P) =>
|
|
1510
|
+
modelValue: B.attachType,
|
|
1511
|
+
"onUpdate:modelValue": (P) => B.attachType = P,
|
|
1477
1512
|
placeholder: "--请选择--",
|
|
1478
1513
|
clearable: "",
|
|
1479
1514
|
style: { width: "100%" }
|
|
1480
1515
|
}, {
|
|
1481
|
-
default:
|
|
1516
|
+
default: i(() => [
|
|
1482
1517
|
n(H, {
|
|
1483
1518
|
label: "--请选择--",
|
|
1484
1519
|
value: ""
|
|
1485
1520
|
}),
|
|
1486
|
-
(a(!0),
|
|
1521
|
+
(a(!0), g(G, null, ne(e.attachTypes, (P) => (a(), A(H, {
|
|
1487
1522
|
key: P.key,
|
|
1488
1523
|
label: P.value,
|
|
1489
1524
|
value: P.key
|
|
@@ -1496,113 +1531,113 @@ const we = {
|
|
|
1496
1531
|
}, 1024)
|
|
1497
1532
|
]),
|
|
1498
1533
|
_: 2
|
|
1499
|
-
}, 1032, ["data"])) :
|
|
1500
|
-
n(
|
|
1501
|
-
data: [
|
|
1534
|
+
}, 1032, ["data"])) : q("", !0),
|
|
1535
|
+
n(m, {
|
|
1536
|
+
data: [B],
|
|
1502
1537
|
border: "",
|
|
1503
1538
|
"show-header": !1
|
|
1504
1539
|
}, {
|
|
1505
|
-
default:
|
|
1540
|
+
default: i(() => [
|
|
1506
1541
|
n(j, {
|
|
1507
1542
|
label: "文件名称",
|
|
1508
1543
|
width: "100"
|
|
1509
1544
|
}, {
|
|
1510
|
-
default:
|
|
1545
|
+
default: i(() => [...V[9] || (V[9] = [
|
|
1511
1546
|
N("文件名称", -1)
|
|
1512
1547
|
])]),
|
|
1513
1548
|
_: 1
|
|
1514
1549
|
}),
|
|
1515
1550
|
n(j, null, {
|
|
1516
|
-
default:
|
|
1517
|
-
N(O(
|
|
1551
|
+
default: i(() => [
|
|
1552
|
+
N(O(B.name), 1)
|
|
1518
1553
|
]),
|
|
1519
1554
|
_: 2
|
|
1520
1555
|
}, 1024)
|
|
1521
1556
|
]),
|
|
1522
1557
|
_: 2
|
|
1523
1558
|
}, 1032, ["data"]),
|
|
1524
|
-
n(
|
|
1525
|
-
data: [
|
|
1559
|
+
n(m, {
|
|
1560
|
+
data: [B],
|
|
1526
1561
|
border: "",
|
|
1527
1562
|
"show-header": !1
|
|
1528
1563
|
}, {
|
|
1529
|
-
default:
|
|
1564
|
+
default: i(() => [
|
|
1530
1565
|
n(j, {
|
|
1531
1566
|
label: "文件类型",
|
|
1532
1567
|
width: "100"
|
|
1533
1568
|
}, {
|
|
1534
|
-
default:
|
|
1569
|
+
default: i(() => [...V[10] || (V[10] = [
|
|
1535
1570
|
N("文件类型", -1)
|
|
1536
1571
|
])]),
|
|
1537
1572
|
_: 1
|
|
1538
1573
|
}),
|
|
1539
1574
|
n(j, null, {
|
|
1540
|
-
default:
|
|
1541
|
-
N(O(s(
|
|
1575
|
+
default: i(() => [
|
|
1576
|
+
N(O(s(B.name)), 1)
|
|
1542
1577
|
]),
|
|
1543
1578
|
_: 2
|
|
1544
1579
|
}, 1024)
|
|
1545
1580
|
]),
|
|
1546
1581
|
_: 2
|
|
1547
1582
|
}, 1032, ["data"]),
|
|
1548
|
-
n(
|
|
1549
|
-
data: [
|
|
1583
|
+
n(m, {
|
|
1584
|
+
data: [B],
|
|
1550
1585
|
border: "",
|
|
1551
1586
|
"show-header": !1
|
|
1552
1587
|
}, {
|
|
1553
|
-
default:
|
|
1588
|
+
default: i(() => [
|
|
1554
1589
|
n(j, {
|
|
1555
1590
|
label: "文件大小",
|
|
1556
1591
|
width: "100"
|
|
1557
1592
|
}, {
|
|
1558
|
-
default:
|
|
1593
|
+
default: i(() => [...V[11] || (V[11] = [
|
|
1559
1594
|
N("文件大小", -1)
|
|
1560
1595
|
])]),
|
|
1561
1596
|
_: 1
|
|
1562
1597
|
}),
|
|
1563
1598
|
n(j, null, {
|
|
1564
|
-
default:
|
|
1565
|
-
N(O(
|
|
1599
|
+
default: i(() => [
|
|
1600
|
+
N(O(t(B.size)), 1)
|
|
1566
1601
|
]),
|
|
1567
1602
|
_: 2
|
|
1568
1603
|
}, 1024)
|
|
1569
1604
|
]),
|
|
1570
1605
|
_: 2
|
|
1571
1606
|
}, 1032, ["data"]),
|
|
1572
|
-
n(
|
|
1573
|
-
data: [
|
|
1607
|
+
n(m, {
|
|
1608
|
+
data: [B],
|
|
1574
1609
|
border: "",
|
|
1575
1610
|
"show-header": !1
|
|
1576
1611
|
}, {
|
|
1577
|
-
default:
|
|
1612
|
+
default: i(() => [
|
|
1578
1613
|
n(j, {
|
|
1579
1614
|
label: "进度",
|
|
1580
1615
|
width: "100"
|
|
1581
1616
|
}, {
|
|
1582
|
-
default:
|
|
1617
|
+
default: i(() => [...V[12] || (V[12] = [
|
|
1583
1618
|
N("进度", -1)
|
|
1584
1619
|
])]),
|
|
1585
1620
|
_: 1
|
|
1586
1621
|
}),
|
|
1587
1622
|
n(j, null, {
|
|
1588
|
-
default:
|
|
1589
|
-
d("div",
|
|
1623
|
+
default: i(() => [
|
|
1624
|
+
d("div", Wl, [
|
|
1590
1625
|
n(le, {
|
|
1591
|
-
percentage:
|
|
1626
|
+
percentage: B.progress || 0,
|
|
1592
1627
|
"stroke-width": 20,
|
|
1593
1628
|
"text-inside": !0
|
|
1594
1629
|
}, null, 8, ["percentage"]),
|
|
1595
|
-
|
|
1630
|
+
B.status === "ready" ? (a(), A(Z, {
|
|
1596
1631
|
key: 0,
|
|
1597
1632
|
type: "primary",
|
|
1598
1633
|
underline: "never",
|
|
1599
|
-
onClick: (P) => pe(
|
|
1634
|
+
onClick: (P) => pe(c)
|
|
1600
1635
|
}, {
|
|
1601
|
-
default:
|
|
1636
|
+
default: i(() => [...V[13] || (V[13] = [
|
|
1602
1637
|
N("删除", -1)
|
|
1603
1638
|
])]),
|
|
1604
1639
|
_: 1
|
|
1605
|
-
}, 8, ["onClick"])) :
|
|
1640
|
+
}, 8, ["onClick"])) : B.status === "success" ? (a(), g("span", ql, "成功")) : B.status === "uploading" ? (a(), g("span", Gl, "正在上传")) : B.status === "error" ? (a(), g("span", Xl, "失败")) : q("", !0)
|
|
1606
1641
|
])
|
|
1607
1642
|
]),
|
|
1608
1643
|
_: 2
|
|
@@ -1611,26 +1646,26 @@ const we = {
|
|
|
1611
1646
|
_: 2
|
|
1612
1647
|
}, 1032, ["data"])
|
|
1613
1648
|
]))), 128))
|
|
1614
|
-
])) : (a(),
|
|
1649
|
+
])) : (a(), g("div", {
|
|
1615
1650
|
key: 1,
|
|
1616
1651
|
class: "upload-dropzone",
|
|
1617
1652
|
onClick: M,
|
|
1618
|
-
onDragover:
|
|
1653
|
+
onDragover: V[1] || (V[1] = ye(() => {
|
|
1619
1654
|
}, ["prevent"])),
|
|
1620
1655
|
onDrop: ye(de, ["prevent"])
|
|
1621
1656
|
}, [
|
|
1622
|
-
d("div",
|
|
1623
|
-
d("div",
|
|
1657
|
+
d("div", Jl, [
|
|
1658
|
+
d("div", Ql, [
|
|
1624
1659
|
n(_, { size: 100 }, {
|
|
1625
|
-
default:
|
|
1660
|
+
default: i(() => [
|
|
1626
1661
|
n(U(cl))
|
|
1627
1662
|
]),
|
|
1628
1663
|
_: 1
|
|
1629
1664
|
})
|
|
1630
1665
|
]),
|
|
1631
|
-
d("div",
|
|
1632
|
-
d("p",
|
|
1633
|
-
|
|
1666
|
+
d("div", Zl, [
|
|
1667
|
+
d("p", et, "建议单个附件不要超过" + O(e.maxSize) + "Mb,最大不能超过" + O(e.maxTotal) + "Mb", 1),
|
|
1668
|
+
V[14] || (V[14] = d("p", { class: "tips-security" }, "安全提示:文件若上传,将被公司记录存档", -1))
|
|
1634
1669
|
])
|
|
1635
1670
|
])
|
|
1636
1671
|
], 32)),
|
|
@@ -1648,7 +1683,7 @@ const we = {
|
|
|
1648
1683
|
]);
|
|
1649
1684
|
};
|
|
1650
1685
|
}
|
|
1651
|
-
}),
|
|
1686
|
+
}), po = /* @__PURE__ */ ee({
|
|
1652
1687
|
__name: "base-checkbox",
|
|
1653
1688
|
props: {
|
|
1654
1689
|
modelValue: { type: [Array, Boolean, String, Number] },
|
|
@@ -1667,48 +1702,48 @@ const we = {
|
|
|
1667
1702
|
falseValue: { type: [Boolean, String, Number], default: !1 }
|
|
1668
1703
|
},
|
|
1669
1704
|
emits: ["update:modelValue", "change"],
|
|
1670
|
-
setup(e, { expose:
|
|
1671
|
-
const
|
|
1672
|
-
get: () =>
|
|
1705
|
+
setup(e, { expose: E, emit: T }) {
|
|
1706
|
+
const l = e, o = T, r = W({
|
|
1707
|
+
get: () => l.modelValue,
|
|
1673
1708
|
set: (s) => o("update:modelValue", s)
|
|
1674
|
-
}),
|
|
1675
|
-
get: () => Array.isArray(
|
|
1709
|
+
}), u = W({
|
|
1710
|
+
get: () => Array.isArray(l.modelValue) ? l.modelValue : [],
|
|
1676
1711
|
set: (s) => o("update:modelValue", s)
|
|
1677
1712
|
}), v = (s) => {
|
|
1678
1713
|
o("change", s);
|
|
1679
|
-
},
|
|
1714
|
+
}, h = (s) => {
|
|
1680
1715
|
o("change", s);
|
|
1681
|
-
},
|
|
1716
|
+
}, p = () => l.modelValue, y = (s) => {
|
|
1682
1717
|
o("update:modelValue", s);
|
|
1683
|
-
},
|
|
1684
|
-
const s =
|
|
1718
|
+
}, $ = () => Array.isArray(l.modelValue) ? l.modelValue : [], k = () => Array.isArray(l.modelValue) ? l.modelValue.map((s) => l.options.find((t) => t.key === s)).filter(Boolean) : [], f = () => {
|
|
1719
|
+
const s = l.options.filter((t) => !t.disabled).map((t) => t.key);
|
|
1685
1720
|
o("update:modelValue", s);
|
|
1686
|
-
},
|
|
1687
|
-
|
|
1688
|
-
},
|
|
1689
|
-
const s =
|
|
1690
|
-
if (s.length === 0 || !Array.isArray(
|
|
1691
|
-
const
|
|
1692
|
-
return s.every((
|
|
1721
|
+
}, w = () => {
|
|
1722
|
+
l.single ? o("update:modelValue", l.falseValue) : o("update:modelValue", []);
|
|
1723
|
+
}, z = () => {
|
|
1724
|
+
const s = l.options.filter((C) => !C.disabled);
|
|
1725
|
+
if (s.length === 0 || !Array.isArray(l.modelValue)) return !1;
|
|
1726
|
+
const t = l.modelValue;
|
|
1727
|
+
return s.every((C) => t.includes(C.key));
|
|
1693
1728
|
};
|
|
1694
|
-
return
|
|
1695
|
-
getValue:
|
|
1729
|
+
return E({
|
|
1730
|
+
getValue: p,
|
|
1696
1731
|
setValue: y,
|
|
1697
|
-
getCheckedKeys:
|
|
1698
|
-
getCheckedOptions:
|
|
1699
|
-
checkAll:
|
|
1700
|
-
clear:
|
|
1732
|
+
getCheckedKeys: $,
|
|
1733
|
+
getCheckedOptions: k,
|
|
1734
|
+
checkAll: f,
|
|
1735
|
+
clear: w,
|
|
1701
1736
|
toggleAll: () => {
|
|
1702
|
-
|
|
1737
|
+
z() ? w() : f();
|
|
1703
1738
|
},
|
|
1704
|
-
isAllChecked:
|
|
1705
|
-
getField: () =>
|
|
1706
|
-
}), (s,
|
|
1707
|
-
const
|
|
1708
|
-
return e.single ? (a(), A(
|
|
1739
|
+
isAllChecked: z,
|
|
1740
|
+
getField: () => l.field ?? ""
|
|
1741
|
+
}), (s, t) => {
|
|
1742
|
+
const C = I("el-checkbox"), b = I("el-checkbox-button"), X = I("el-checkbox-group");
|
|
1743
|
+
return e.single ? (a(), A(C, {
|
|
1709
1744
|
key: 0,
|
|
1710
|
-
modelValue:
|
|
1711
|
-
"onUpdate:modelValue":
|
|
1745
|
+
modelValue: r.value,
|
|
1746
|
+
"onUpdate:modelValue": t[0] || (t[0] = (M) => r.value = M),
|
|
1712
1747
|
disabled: e.disabled,
|
|
1713
1748
|
size: e.size,
|
|
1714
1749
|
border: e.border,
|
|
@@ -1716,37 +1751,37 @@ const we = {
|
|
|
1716
1751
|
"false-value": e.falseValue,
|
|
1717
1752
|
onChange: v
|
|
1718
1753
|
}, {
|
|
1719
|
-
default:
|
|
1754
|
+
default: i(() => [
|
|
1720
1755
|
N(O(e.checkboxLabel || e.label), 1)
|
|
1721
1756
|
]),
|
|
1722
1757
|
_: 1
|
|
1723
1758
|
}, 8, ["modelValue", "disabled", "size", "border", "true-value", "false-value"])) : (a(), A(X, {
|
|
1724
1759
|
key: 1,
|
|
1725
|
-
modelValue:
|
|
1726
|
-
"onUpdate:modelValue":
|
|
1760
|
+
modelValue: u.value,
|
|
1761
|
+
"onUpdate:modelValue": t[1] || (t[1] = (M) => u.value = M),
|
|
1727
1762
|
disabled: e.disabled,
|
|
1728
1763
|
size: e.size,
|
|
1729
1764
|
min: e.min,
|
|
1730
1765
|
max: e.max,
|
|
1731
|
-
onChange:
|
|
1766
|
+
onChange: h
|
|
1732
1767
|
}, {
|
|
1733
|
-
default:
|
|
1734
|
-
e.button ? (a(!0),
|
|
1768
|
+
default: i(() => [
|
|
1769
|
+
e.button ? (a(!0), g(G, { key: 0 }, ne(e.options, (M) => (a(), A(b, {
|
|
1735
1770
|
key: M.key,
|
|
1736
1771
|
value: M.key,
|
|
1737
1772
|
disabled: M.disabled
|
|
1738
1773
|
}, {
|
|
1739
|
-
default:
|
|
1774
|
+
default: i(() => [
|
|
1740
1775
|
N(O(M.value), 1)
|
|
1741
1776
|
]),
|
|
1742
1777
|
_: 2
|
|
1743
|
-
}, 1032, ["value", "disabled"]))), 128)) : (a(!0),
|
|
1778
|
+
}, 1032, ["value", "disabled"]))), 128)) : (a(!0), g(G, { key: 1 }, ne(e.options, (M) => (a(), A(C, {
|
|
1744
1779
|
key: M.key,
|
|
1745
1780
|
value: M.key,
|
|
1746
1781
|
disabled: M.disabled,
|
|
1747
1782
|
border: e.border
|
|
1748
1783
|
}, {
|
|
1749
|
-
default:
|
|
1784
|
+
default: i(() => [
|
|
1750
1785
|
N(O(M.value), 1)
|
|
1751
1786
|
]),
|
|
1752
1787
|
_: 2
|
|
@@ -1756,7 +1791,7 @@ const we = {
|
|
|
1756
1791
|
}, 8, ["modelValue", "disabled", "size", "min", "max"]));
|
|
1757
1792
|
};
|
|
1758
1793
|
}
|
|
1759
|
-
}),
|
|
1794
|
+
}), vo = /* @__PURE__ */ ee({
|
|
1760
1795
|
__name: "base-radio",
|
|
1761
1796
|
props: {
|
|
1762
1797
|
modelValue: {},
|
|
@@ -1768,53 +1803,53 @@ const we = {
|
|
|
1768
1803
|
size: { default: "default" }
|
|
1769
1804
|
},
|
|
1770
1805
|
emits: ["update:modelValue", "change"],
|
|
1771
|
-
setup(e, { expose:
|
|
1772
|
-
const
|
|
1773
|
-
get: () =>
|
|
1774
|
-
set: (
|
|
1775
|
-
}),
|
|
1776
|
-
o("change",
|
|
1806
|
+
setup(e, { expose: E, emit: T }) {
|
|
1807
|
+
const l = e, o = T, r = W({
|
|
1808
|
+
get: () => l.modelValue,
|
|
1809
|
+
set: (f) => o("update:modelValue", f)
|
|
1810
|
+
}), u = (f) => {
|
|
1811
|
+
o("change", f);
|
|
1777
1812
|
};
|
|
1778
|
-
return
|
|
1779
|
-
getValue: () =>
|
|
1780
|
-
setValue: (
|
|
1781
|
-
o("update:modelValue",
|
|
1813
|
+
return E({
|
|
1814
|
+
getValue: () => l.modelValue,
|
|
1815
|
+
setValue: (f) => {
|
|
1816
|
+
o("update:modelValue", f);
|
|
1782
1817
|
},
|
|
1783
|
-
getSelectedOption: () =>
|
|
1818
|
+
getSelectedOption: () => l.options.find((f) => f.key === l.modelValue),
|
|
1784
1819
|
getSelectedValue: () => {
|
|
1785
|
-
var
|
|
1786
|
-
return (
|
|
1820
|
+
var f;
|
|
1821
|
+
return (f = l.options.find((w) => w.key === l.modelValue)) == null ? void 0 : f.value;
|
|
1787
1822
|
},
|
|
1788
1823
|
clear: () => {
|
|
1789
1824
|
o("update:modelValue", void 0);
|
|
1790
1825
|
},
|
|
1791
|
-
getField: () =>
|
|
1792
|
-
}), (
|
|
1793
|
-
const
|
|
1826
|
+
getField: () => l.field ?? ""
|
|
1827
|
+
}), (f, w) => {
|
|
1828
|
+
const z = I("el-radio-button"), L = I("el-radio"), K = I("el-radio-group");
|
|
1794
1829
|
return a(), A(K, {
|
|
1795
|
-
modelValue:
|
|
1796
|
-
"onUpdate:modelValue":
|
|
1830
|
+
modelValue: r.value,
|
|
1831
|
+
"onUpdate:modelValue": w[0] || (w[0] = (s) => r.value = s),
|
|
1797
1832
|
disabled: e.disabled,
|
|
1798
1833
|
size: e.size,
|
|
1799
|
-
onChange:
|
|
1834
|
+
onChange: u
|
|
1800
1835
|
}, {
|
|
1801
|
-
default:
|
|
1802
|
-
e.button ? (a(!0),
|
|
1836
|
+
default: i(() => [
|
|
1837
|
+
e.button ? (a(!0), g(G, { key: 0 }, ne(e.options, (s) => (a(), A(z, {
|
|
1803
1838
|
key: s.key,
|
|
1804
1839
|
value: s.key,
|
|
1805
1840
|
disabled: s.disabled
|
|
1806
1841
|
}, {
|
|
1807
|
-
default:
|
|
1842
|
+
default: i(() => [
|
|
1808
1843
|
N(O(s.value), 1)
|
|
1809
1844
|
]),
|
|
1810
1845
|
_: 2
|
|
1811
|
-
}, 1032, ["value", "disabled"]))), 128)) : (a(!0),
|
|
1846
|
+
}, 1032, ["value", "disabled"]))), 128)) : (a(!0), g(G, { key: 1 }, ne(e.options, (s) => (a(), A(L, {
|
|
1812
1847
|
key: s.key,
|
|
1813
1848
|
value: s.key,
|
|
1814
1849
|
disabled: s.disabled,
|
|
1815
1850
|
border: e.border
|
|
1816
1851
|
}, {
|
|
1817
|
-
default:
|
|
1852
|
+
default: i(() => [
|
|
1818
1853
|
N(O(s.value), 1)
|
|
1819
1854
|
]),
|
|
1820
1855
|
_: 2
|
|
@@ -1824,7 +1859,7 @@ const we = {
|
|
|
1824
1859
|
}, 8, ["modelValue", "disabled", "size"]);
|
|
1825
1860
|
};
|
|
1826
1861
|
}
|
|
1827
|
-
}),
|
|
1862
|
+
}), go = /* @__PURE__ */ ee({
|
|
1828
1863
|
__name: "base-link",
|
|
1829
1864
|
props: {
|
|
1830
1865
|
type: { default: "primary" },
|
|
@@ -1836,8 +1871,8 @@ const we = {
|
|
|
1836
1871
|
label: { default: "" }
|
|
1837
1872
|
},
|
|
1838
1873
|
emits: ["click"],
|
|
1839
|
-
setup(e, { expose:
|
|
1840
|
-
const
|
|
1874
|
+
setup(e, { expose: E, emit: T }) {
|
|
1875
|
+
const l = {
|
|
1841
1876
|
view: "iconfont icon-chakan",
|
|
1842
1877
|
edit: "iconfont icon-edit",
|
|
1843
1878
|
delete: "iconfont icon-delete",
|
|
@@ -1846,27 +1881,27 @@ const we = {
|
|
|
1846
1881
|
share: "iconfont icon-fenxiang",
|
|
1847
1882
|
copy: "iconfont icon-fuzhi",
|
|
1848
1883
|
external: "iconfont icon-wailian"
|
|
1849
|
-
}, o = e,
|
|
1850
|
-
o.disabled ||
|
|
1884
|
+
}, o = e, r = W(() => typeof o.underline == "boolean" ? o.underline ? "always" : "never" : o.underline), u = T, v = W(() => o.icon ? l[o.icon] || o.icon : ""), h = (y) => {
|
|
1885
|
+
o.disabled || u("click", y);
|
|
1851
1886
|
};
|
|
1852
|
-
return
|
|
1887
|
+
return E({
|
|
1853
1888
|
isDisabled: () => o.disabled
|
|
1854
|
-
}), (y,
|
|
1855
|
-
const
|
|
1856
|
-
return a(), A(
|
|
1889
|
+
}), (y, $) => {
|
|
1890
|
+
const k = I("el-link");
|
|
1891
|
+
return a(), A(k, {
|
|
1857
1892
|
type: e.type,
|
|
1858
|
-
underline:
|
|
1893
|
+
underline: r.value,
|
|
1859
1894
|
disabled: e.disabled,
|
|
1860
1895
|
href: e.href,
|
|
1861
1896
|
target: e.target,
|
|
1862
|
-
onClick:
|
|
1897
|
+
onClick: h
|
|
1863
1898
|
}, {
|
|
1864
|
-
default:
|
|
1865
|
-
v.value ? (a(),
|
|
1899
|
+
default: i(() => [
|
|
1900
|
+
v.value ? (a(), g("i", {
|
|
1866
1901
|
key: 0,
|
|
1867
1902
|
class: ie(v.value)
|
|
1868
|
-
}, null, 2)) :
|
|
1869
|
-
|
|
1903
|
+
}, null, 2)) : q("", !0),
|
|
1904
|
+
Ve(y.$slots, "default", {}, () => [
|
|
1870
1905
|
N(O(e.label), 1)
|
|
1871
1906
|
])
|
|
1872
1907
|
]),
|
|
@@ -1874,7 +1909,7 @@ const we = {
|
|
|
1874
1909
|
}, 8, ["type", "underline", "disabled", "href", "target"]);
|
|
1875
1910
|
};
|
|
1876
1911
|
}
|
|
1877
|
-
}),
|
|
1912
|
+
}), tt = { class: "form-dialog-header" }, at = { class: "form-dialog-header__title" }, ot = { style: { display: "flex", "align-items": "center", gap: "4px" } }, nt = ["title"], st = { class: "form-dialog-content" }, ut = { class: "form-dialog-footer" }, ho = /* @__PURE__ */ ee({
|
|
1878
1913
|
__name: "base-dialog",
|
|
1879
1914
|
props: {
|
|
1880
1915
|
modelValue: { type: Boolean },
|
|
@@ -1885,92 +1920,92 @@ const we = {
|
|
|
1885
1920
|
showFullscreen: { type: Boolean, default: !1 }
|
|
1886
1921
|
},
|
|
1887
1922
|
emits: ["update:modelValue", "close", "confirm"],
|
|
1888
|
-
setup(e, { emit:
|
|
1889
|
-
const
|
|
1890
|
-
get: () =>
|
|
1891
|
-
set: (
|
|
1892
|
-
}),
|
|
1893
|
-
function
|
|
1894
|
-
var
|
|
1895
|
-
return ((
|
|
1923
|
+
setup(e, { emit: E }) {
|
|
1924
|
+
const T = e, l = E, o = W({
|
|
1925
|
+
get: () => T.modelValue,
|
|
1926
|
+
set: (f) => l("update:modelValue", f)
|
|
1927
|
+
}), r = D();
|
|
1928
|
+
function u() {
|
|
1929
|
+
var f, w, z;
|
|
1930
|
+
return ((w = (f = r.value) == null ? void 0 : f.dialogContentRef) == null ? void 0 : w.$el) || ((z = r.value) == null ? void 0 : z.dialogContentRef);
|
|
1896
1931
|
}
|
|
1897
1932
|
function v() {
|
|
1898
1933
|
Je(() => {
|
|
1899
|
-
const
|
|
1900
|
-
if (
|
|
1901
|
-
if (
|
|
1902
|
-
|
|
1903
|
-
else if (
|
|
1904
|
-
const
|
|
1905
|
-
|
|
1934
|
+
const f = u();
|
|
1935
|
+
if (f)
|
|
1936
|
+
if (p.value)
|
|
1937
|
+
f.style.height = "100vh", f.style.maxHeight = "100vh", f.style.borderRadius = "0";
|
|
1938
|
+
else if (T.dialogHeight) {
|
|
1939
|
+
const w = typeof T.dialogHeight == "number" ? `${T.dialogHeight}px` : T.dialogHeight;
|
|
1940
|
+
f.style.height = w, f.style.maxHeight = "90vh", f.style.borderRadius = "";
|
|
1906
1941
|
} else
|
|
1907
|
-
|
|
1942
|
+
f.style.height = "", f.style.maxHeight = "90vh", f.style.borderRadius = "";
|
|
1908
1943
|
});
|
|
1909
1944
|
}
|
|
1910
|
-
function
|
|
1945
|
+
function h() {
|
|
1911
1946
|
v();
|
|
1912
1947
|
}
|
|
1913
|
-
Ce(() =>
|
|
1948
|
+
Ce(() => T.dialogHeight, () => {
|
|
1914
1949
|
o.value && v();
|
|
1915
1950
|
});
|
|
1916
|
-
const
|
|
1917
|
-
|
|
1918
|
-
},
|
|
1919
|
-
|
|
1920
|
-
},
|
|
1921
|
-
|
|
1951
|
+
const p = D(!1), y = () => {
|
|
1952
|
+
p.value = !p.value, v();
|
|
1953
|
+
}, $ = () => {
|
|
1954
|
+
p.value = !1, l("update:modelValue", !1), l("close");
|
|
1955
|
+
}, k = () => {
|
|
1956
|
+
l("confirm");
|
|
1922
1957
|
};
|
|
1923
|
-
return (
|
|
1924
|
-
const
|
|
1958
|
+
return (f, w) => {
|
|
1959
|
+
const z = I("el-icon"), L = I("el-button"), K = I("el-dialog");
|
|
1925
1960
|
return a(), A(K, {
|
|
1926
1961
|
ref_key: "dialogRef",
|
|
1927
|
-
ref:
|
|
1962
|
+
ref: r,
|
|
1928
1963
|
modelValue: o.value,
|
|
1929
|
-
"onUpdate:modelValue":
|
|
1964
|
+
"onUpdate:modelValue": w[0] || (w[0] = (s) => o.value = s),
|
|
1930
1965
|
width: e.width,
|
|
1931
|
-
fullscreen:
|
|
1966
|
+
fullscreen: p.value,
|
|
1932
1967
|
class: "form-dialog base-dialog",
|
|
1933
1968
|
"close-on-click-modal": !1,
|
|
1934
1969
|
"close-on-press-escape": !1,
|
|
1935
1970
|
"show-close": !1,
|
|
1936
1971
|
"align-center": "",
|
|
1937
1972
|
"append-to-body": "",
|
|
1938
|
-
onClose:
|
|
1939
|
-
onOpened:
|
|
1973
|
+
onClose: $,
|
|
1974
|
+
onOpened: h
|
|
1940
1975
|
}, {
|
|
1941
|
-
header:
|
|
1942
|
-
d("div",
|
|
1943
|
-
d("span",
|
|
1944
|
-
e.icon ? (a(), A(
|
|
1945
|
-
default:
|
|
1976
|
+
header: i(() => [
|
|
1977
|
+
d("div", tt, [
|
|
1978
|
+
d("span", at, [
|
|
1979
|
+
e.icon ? (a(), A(z, { key: 0 }, {
|
|
1980
|
+
default: i(() => [
|
|
1946
1981
|
(a(), A(Xe(e.icon)))
|
|
1947
1982
|
]),
|
|
1948
1983
|
_: 1
|
|
1949
|
-
})) :
|
|
1984
|
+
})) : q("", !0),
|
|
1950
1985
|
N(" " + O(e.title), 1)
|
|
1951
1986
|
]),
|
|
1952
|
-
d("div",
|
|
1953
|
-
e.showFullscreen ? (a(),
|
|
1987
|
+
d("div", ot, [
|
|
1988
|
+
e.showFullscreen ? (a(), g("button", {
|
|
1954
1989
|
key: 0,
|
|
1955
1990
|
class: "form-dialog-header__close",
|
|
1956
|
-
title:
|
|
1991
|
+
title: p.value ? "退出全屏" : "全屏",
|
|
1957
1992
|
onClick: y
|
|
1958
1993
|
}, [
|
|
1959
|
-
n(
|
|
1960
|
-
default:
|
|
1961
|
-
|
|
1994
|
+
n(z, null, {
|
|
1995
|
+
default: i(() => [
|
|
1996
|
+
p.value ? (a(), A(U(ml), { key: 1 })) : (a(), A(U(fl), { key: 0 }))
|
|
1962
1997
|
]),
|
|
1963
1998
|
_: 1
|
|
1964
1999
|
})
|
|
1965
|
-
], 8,
|
|
2000
|
+
], 8, nt)) : q("", !0),
|
|
1966
2001
|
d("button", {
|
|
1967
2002
|
class: "form-dialog-header__close",
|
|
1968
2003
|
title: "关闭",
|
|
1969
|
-
onClick:
|
|
2004
|
+
onClick: $
|
|
1970
2005
|
}, [
|
|
1971
|
-
n(
|
|
1972
|
-
default:
|
|
1973
|
-
n(U(
|
|
2006
|
+
n(z, null, {
|
|
2007
|
+
default: i(() => [
|
|
2008
|
+
n(U(ke))
|
|
1974
2009
|
]),
|
|
1975
2010
|
_: 1
|
|
1976
2011
|
})
|
|
@@ -1978,20 +2013,20 @@ const we = {
|
|
|
1978
2013
|
])
|
|
1979
2014
|
])
|
|
1980
2015
|
]),
|
|
1981
|
-
footer:
|
|
1982
|
-
d("div",
|
|
1983
|
-
|
|
1984
|
-
n(L, { onClick:
|
|
1985
|
-
default:
|
|
2016
|
+
footer: i(() => [
|
|
2017
|
+
d("div", ut, [
|
|
2018
|
+
Ve(f.$slots, "footer", {}, () => [
|
|
2019
|
+
n(L, { onClick: $ }, {
|
|
2020
|
+
default: i(() => [...w[1] || (w[1] = [
|
|
1986
2021
|
N("取消", -1)
|
|
1987
2022
|
])]),
|
|
1988
2023
|
_: 1
|
|
1989
2024
|
}),
|
|
1990
2025
|
n(L, {
|
|
1991
2026
|
type: "custom",
|
|
1992
|
-
onClick:
|
|
2027
|
+
onClick: k
|
|
1993
2028
|
}, {
|
|
1994
|
-
default:
|
|
2029
|
+
default: i(() => [...w[2] || (w[2] = [
|
|
1995
2030
|
N("确认", -1)
|
|
1996
2031
|
])]),
|
|
1997
2032
|
_: 1
|
|
@@ -1999,25 +2034,25 @@ const we = {
|
|
|
1999
2034
|
])
|
|
2000
2035
|
])
|
|
2001
2036
|
]),
|
|
2002
|
-
default:
|
|
2003
|
-
d("div",
|
|
2004
|
-
|
|
2037
|
+
default: i(() => [
|
|
2038
|
+
d("div", st, [
|
|
2039
|
+
Ve(f.$slots, "default")
|
|
2005
2040
|
])
|
|
2006
2041
|
]),
|
|
2007
2042
|
_: 3
|
|
2008
2043
|
}, 8, ["modelValue", "width", "fullscreen"]);
|
|
2009
2044
|
};
|
|
2010
2045
|
}
|
|
2011
|
-
}),
|
|
2046
|
+
}), it = { class: "base-china-area" }, dt = { class: "form-dialog-header" }, rt = { class: "form-dialog-header__title" }, ct = { class: "base-china-area-panel" }, ft = { class: "base-china-area-panel__search" }, mt = {
|
|
2012
2047
|
key: 0,
|
|
2013
2048
|
class: "base-china-area-panel__breadcrumb"
|
|
2014
|
-
},
|
|
2049
|
+
}, pt = {
|
|
2015
2050
|
key: 1,
|
|
2016
2051
|
class: "base-china-area-panel__breadcrumb"
|
|
2017
|
-
},
|
|
2052
|
+
}, vt = { class: "base-china-area-panel__list" }, gt = ["onClick"], ht = { class: "area-item__name" }, bt = ["onClick"], yt = { class: "area-item__name" }, _t = { class: "base-china-area-panel__selected" }, wt = {
|
|
2018
2053
|
key: 1,
|
|
2019
2054
|
class: "selected-empty"
|
|
2020
|
-
},
|
|
2055
|
+
}, Vt = { class: "form-dialog-footer" }, kt = /* @__PURE__ */ ee({
|
|
2021
2056
|
__name: "base-china-area",
|
|
2022
2057
|
props: {
|
|
2023
2058
|
modelValue: { default: null },
|
|
@@ -2028,41 +2063,41 @@ const we = {
|
|
|
2028
2063
|
showDestination: { type: Boolean, default: !0 }
|
|
2029
2064
|
},
|
|
2030
2065
|
emits: ["update:modelValue", "change"],
|
|
2031
|
-
setup(e, { expose:
|
|
2032
|
-
const
|
|
2033
|
-
var
|
|
2034
|
-
return ((
|
|
2066
|
+
setup(e, { expose: E, emit: T }) {
|
|
2067
|
+
const l = e, o = T, r = D(), u = D(!1), v = D(!1), h = D(""), p = D([]), y = D(0), $ = D([]), k = D([]), f = D([]), w = D(null), z = D(null), L = D(null), K = D(""), s = D(""), t = D(null), C = W(() => "选择地区"), b = W(() => h.value.trim().length > 0), X = W(() => y.value === 0 ? $.value : y.value === 1 ? k.value : y.value === 2 ? f.value : []), M = W(() => {
|
|
2068
|
+
var m;
|
|
2069
|
+
return ((m = l.modelValue) == null ? void 0 : m.fullPath) || "";
|
|
2035
2070
|
});
|
|
2036
|
-
function oe(
|
|
2037
|
-
return !(
|
|
2071
|
+
function oe(m) {
|
|
2072
|
+
return !(l.level === 1 || l.level === 2 && m.level >= 2 || l.level === 3 && m.level >= 3);
|
|
2038
2073
|
}
|
|
2039
|
-
function de(
|
|
2040
|
-
const H =
|
|
2074
|
+
function de(m) {
|
|
2075
|
+
const H = m.full_path || m.name;
|
|
2041
2076
|
return K.value === H;
|
|
2042
2077
|
}
|
|
2043
2078
|
async function se() {
|
|
2044
2079
|
v.value = !0;
|
|
2045
2080
|
try {
|
|
2046
|
-
const
|
|
2047
|
-
|
|
2081
|
+
const m = await he().post("/proxy/sys/china_area/api/get_provinces");
|
|
2082
|
+
m.code === 200 && ($.value = m.data);
|
|
2048
2083
|
} finally {
|
|
2049
2084
|
v.value = !1;
|
|
2050
2085
|
}
|
|
2051
2086
|
}
|
|
2052
|
-
async function pe(
|
|
2087
|
+
async function pe(m) {
|
|
2053
2088
|
v.value = !0;
|
|
2054
2089
|
try {
|
|
2055
|
-
const H = await he().post(`/proxy/sys/china_area/api/get_cities/${encodeURIComponent(
|
|
2056
|
-
H.code === 200 && (
|
|
2090
|
+
const H = await he().post(`/proxy/sys/china_area/api/get_cities/${encodeURIComponent(m)}`);
|
|
2091
|
+
H.code === 200 && (k.value = H.data);
|
|
2057
2092
|
} finally {
|
|
2058
2093
|
v.value = !1;
|
|
2059
2094
|
}
|
|
2060
2095
|
}
|
|
2061
|
-
async function fe(
|
|
2096
|
+
async function fe(m) {
|
|
2062
2097
|
v.value = !0;
|
|
2063
2098
|
try {
|
|
2064
|
-
const H = await he().post(`/proxy/sys/china_area/api/get_districts/${encodeURIComponent(
|
|
2065
|
-
H.code === 200 && (
|
|
2099
|
+
const H = await he().post(`/proxy/sys/china_area/api/get_districts/${encodeURIComponent(m)}`);
|
|
2100
|
+
H.code === 200 && (f.value = H.data);
|
|
2066
2101
|
} finally {
|
|
2067
2102
|
v.value = !1;
|
|
2068
2103
|
}
|
|
@@ -2070,101 +2105,101 @@ const we = {
|
|
|
2070
2105
|
let re = null;
|
|
2071
2106
|
function te() {
|
|
2072
2107
|
re && clearTimeout(re), re = setTimeout(async () => {
|
|
2073
|
-
const
|
|
2074
|
-
if (!
|
|
2075
|
-
|
|
2108
|
+
const m = h.value.trim();
|
|
2109
|
+
if (!m) {
|
|
2110
|
+
p.value = [];
|
|
2076
2111
|
return;
|
|
2077
2112
|
}
|
|
2078
2113
|
v.value = !0;
|
|
2079
2114
|
try {
|
|
2080
|
-
const H = await he().post("/proxy/sys/china_area/api/search", { keyword:
|
|
2081
|
-
H.code === 200 && (
|
|
2115
|
+
const H = await he().post("/proxy/sys/china_area/api/search", { keyword: m });
|
|
2116
|
+
H.code === 200 && (p.value = H.data);
|
|
2082
2117
|
} finally {
|
|
2083
2118
|
v.value = !1;
|
|
2084
2119
|
}
|
|
2085
2120
|
}, 300);
|
|
2086
2121
|
}
|
|
2087
2122
|
function ve() {
|
|
2088
|
-
|
|
2123
|
+
l.disabled || (u.value = !0, $.value.length === 0 && se());
|
|
2089
2124
|
}
|
|
2090
|
-
function
|
|
2091
|
-
|
|
2125
|
+
function F(m) {
|
|
2126
|
+
m.has_children && oe(m) ? m.level === 1 ? (w.value = m, z.value = null, L.value = null, y.value = 1, pe(m.name)) : m.level === 2 && (z.value = m, L.value = null, y.value = 2, fe(m.name)) : ge(m);
|
|
2092
2127
|
}
|
|
2093
|
-
function R(
|
|
2094
|
-
J(
|
|
2128
|
+
function R(m) {
|
|
2129
|
+
J(m);
|
|
2095
2130
|
}
|
|
2096
|
-
function J(
|
|
2097
|
-
const H =
|
|
2098
|
-
if (K.value = H, s.value =
|
|
2099
|
-
const ue =
|
|
2100
|
-
|
|
2101
|
-
} else if (
|
|
2102
|
-
const ue =
|
|
2103
|
-
|
|
2104
|
-
} else
|
|
2105
|
-
y.value = 0,
|
|
2131
|
+
function J(m) {
|
|
2132
|
+
const H = m.full_path || m.name;
|
|
2133
|
+
if (K.value = H, s.value = m.destination || "", m.full_path && m.level === 3) {
|
|
2134
|
+
const ue = m.parent_name || "", le = ce(m.full_path, ue, m.name);
|
|
2135
|
+
w.value = { fid: "", name: le, level: 1 }, z.value = { fid: "", name: ue, level: 2, parent_name: le }, L.value = m;
|
|
2136
|
+
} else if (m.full_path && m.level === 2) {
|
|
2137
|
+
const ue = m.parent_name || "";
|
|
2138
|
+
w.value = { fid: "", name: ue, level: 1 }, z.value = m, L.value = null;
|
|
2139
|
+
} else m.level === 1 && (w.value = m, z.value = null, L.value = null);
|
|
2140
|
+
y.value = 0, t.value = Z();
|
|
2106
2141
|
}
|
|
2107
|
-
function ce(
|
|
2108
|
-
let le =
|
|
2109
|
-
return ue &&
|
|
2142
|
+
function ce(m, H, ue) {
|
|
2143
|
+
let le = m;
|
|
2144
|
+
return ue && m.endsWith(ue) && (le = m.slice(0, -ue.length)), H && le.endsWith(H) && (le = le.slice(0, -H.length)), le;
|
|
2110
2145
|
}
|
|
2111
|
-
function ge(
|
|
2112
|
-
const H =
|
|
2113
|
-
K.value = H, s.value =
|
|
2146
|
+
function ge(m) {
|
|
2147
|
+
const H = m.full_path || m.name;
|
|
2148
|
+
K.value = H, s.value = m.destination || "", m.level === 1 ? (w.value = m, z.value = null, L.value = null) : m.level === 2 ? (z.value = m, L.value = null) : m.level === 3 && (L.value = m), t.value = Z();
|
|
2114
2149
|
}
|
|
2115
|
-
function
|
|
2116
|
-
|
|
2150
|
+
function S(m) {
|
|
2151
|
+
m === 0 ? (y.value = 0, w.value = null, z.value = null, L.value = null) : m === 1 ? (y.value = 1, z.value = null, L.value = null, w.value && pe(w.value.name)) : m === 2 && (y.value = 2, L.value = null);
|
|
2117
2152
|
}
|
|
2118
|
-
function
|
|
2119
|
-
K.value = "", s.value = "",
|
|
2153
|
+
function V() {
|
|
2154
|
+
K.value = "", s.value = "", t.value = null, w.value = null, z.value = null, L.value = null;
|
|
2120
2155
|
}
|
|
2121
2156
|
function _() {
|
|
2122
2157
|
o("update:modelValue", null), o("change", null);
|
|
2123
2158
|
}
|
|
2124
2159
|
function Y() {
|
|
2125
|
-
|
|
2160
|
+
u.value = !1, h.value = "", p.value = [];
|
|
2126
2161
|
}
|
|
2127
2162
|
function j() {
|
|
2128
|
-
o("update:modelValue",
|
|
2163
|
+
o("update:modelValue", t.value), o("change", t.value), Y();
|
|
2129
2164
|
}
|
|
2130
2165
|
function Z() {
|
|
2131
2166
|
var H, ue, le;
|
|
2132
|
-
const
|
|
2167
|
+
const m = L.value || z.value || w.value;
|
|
2133
2168
|
return {
|
|
2134
|
-
province: ((H =
|
|
2135
|
-
city: ((ue =
|
|
2169
|
+
province: ((H = w.value) == null ? void 0 : H.name) || "",
|
|
2170
|
+
city: ((ue = z.value) == null ? void 0 : ue.name) || "",
|
|
2136
2171
|
district: ((le = L.value) == null ? void 0 : le.name) || "",
|
|
2137
|
-
fullPath: (
|
|
2138
|
-
destinationType: (
|
|
2139
|
-
destination: (
|
|
2172
|
+
fullPath: (m == null ? void 0 : m.full_path) || (m == null ? void 0 : m.name) || "",
|
|
2173
|
+
destinationType: (m == null ? void 0 : m.destination_type) || "",
|
|
2174
|
+
destination: (m == null ? void 0 : m.destination) || ""
|
|
2140
2175
|
};
|
|
2141
2176
|
}
|
|
2142
|
-
return Ce(() =>
|
|
2143
|
-
|
|
2144
|
-
}, { immediate: !0 }),
|
|
2177
|
+
return Ce(() => l.modelValue, (m) => {
|
|
2178
|
+
m ? (K.value = m.fullPath || "", s.value = m.destination || "", t.value = m) : (K.value = "", s.value = "", t.value = null);
|
|
2179
|
+
}, { immediate: !0 }), E({
|
|
2145
2180
|
open: () => ve(),
|
|
2146
2181
|
clear: () => _()
|
|
2147
|
-
}), (
|
|
2148
|
-
const ue = I("el-input"), le = I("el-icon"),
|
|
2149
|
-
return a(),
|
|
2182
|
+
}), (m, H) => {
|
|
2183
|
+
const ue = I("el-input"), le = I("el-icon"), x = I("el-empty"), B = I("el-tag"), c = I("el-button"), P = I("el-dialog"), me = Ke("loading");
|
|
2184
|
+
return a(), g("div", it, [
|
|
2150
2185
|
n(ue, {
|
|
2151
2186
|
ref_key: "inputRef",
|
|
2152
|
-
ref:
|
|
2187
|
+
ref: r,
|
|
2153
2188
|
modelValue: M.value,
|
|
2154
2189
|
"onUpdate:modelValue": H[0] || (H[0] = (Q) => M.value = Q),
|
|
2155
2190
|
placeholder: e.placeholder,
|
|
2156
2191
|
disabled: e.disabled,
|
|
2157
2192
|
clearable: e.clearable,
|
|
2158
2193
|
readonly: !0,
|
|
2159
|
-
"suffix-icon":
|
|
2194
|
+
"suffix-icon": u.value ? U(pl) : U(vl),
|
|
2160
2195
|
class: "base-china-area__input",
|
|
2161
2196
|
onClick: ve,
|
|
2162
2197
|
onClear: _
|
|
2163
2198
|
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "suffix-icon"]),
|
|
2164
2199
|
n(P, {
|
|
2165
|
-
modelValue:
|
|
2166
|
-
"onUpdate:modelValue": H[5] || (H[5] = (Q) =>
|
|
2167
|
-
title:
|
|
2200
|
+
modelValue: u.value,
|
|
2201
|
+
"onUpdate:modelValue": H[5] || (H[5] = (Q) => u.value = Q),
|
|
2202
|
+
title: C.value,
|
|
2168
2203
|
width: "600px",
|
|
2169
2204
|
"show-close": !1,
|
|
2170
2205
|
"close-on-click-modal": !1,
|
|
@@ -2172,128 +2207,128 @@ const we = {
|
|
|
2172
2207
|
class: "form-dialog base-china-area-dialog",
|
|
2173
2208
|
onClose: Y
|
|
2174
2209
|
}, {
|
|
2175
|
-
header:
|
|
2176
|
-
d("div",
|
|
2177
|
-
d("span",
|
|
2210
|
+
header: i(() => [
|
|
2211
|
+
d("div", dt, [
|
|
2212
|
+
d("span", rt, [
|
|
2178
2213
|
n(le, null, {
|
|
2179
|
-
default:
|
|
2214
|
+
default: i(() => [
|
|
2180
2215
|
n(U(gl))
|
|
2181
2216
|
]),
|
|
2182
2217
|
_: 1
|
|
2183
2218
|
}),
|
|
2184
|
-
N(" " + O(
|
|
2219
|
+
N(" " + O(C.value), 1)
|
|
2185
2220
|
]),
|
|
2186
2221
|
d("button", {
|
|
2187
2222
|
class: "form-dialog-header__close",
|
|
2188
2223
|
onClick: Y
|
|
2189
2224
|
}, [
|
|
2190
2225
|
n(le, null, {
|
|
2191
|
-
default:
|
|
2192
|
-
n(U(
|
|
2226
|
+
default: i(() => [
|
|
2227
|
+
n(U(ke))
|
|
2193
2228
|
]),
|
|
2194
2229
|
_: 1
|
|
2195
2230
|
})
|
|
2196
2231
|
])
|
|
2197
2232
|
])
|
|
2198
2233
|
]),
|
|
2199
|
-
footer:
|
|
2200
|
-
d("div",
|
|
2201
|
-
n(
|
|
2202
|
-
default:
|
|
2234
|
+
footer: i(() => [
|
|
2235
|
+
d("div", Vt, [
|
|
2236
|
+
n(c, { onClick: Y }, {
|
|
2237
|
+
default: i(() => [...H[8] || (H[8] = [
|
|
2203
2238
|
N("取消", -1)
|
|
2204
2239
|
])]),
|
|
2205
2240
|
_: 1
|
|
2206
2241
|
}),
|
|
2207
|
-
n(
|
|
2242
|
+
n(c, {
|
|
2208
2243
|
type: "primary",
|
|
2209
2244
|
onClick: j
|
|
2210
2245
|
}, {
|
|
2211
|
-
default:
|
|
2246
|
+
default: i(() => [...H[9] || (H[9] = [
|
|
2212
2247
|
N("确认", -1)
|
|
2213
2248
|
])]),
|
|
2214
2249
|
_: 1
|
|
2215
2250
|
})
|
|
2216
2251
|
])
|
|
2217
2252
|
]),
|
|
2218
|
-
default:
|
|
2219
|
-
d("div",
|
|
2220
|
-
d("div",
|
|
2253
|
+
default: i(() => [
|
|
2254
|
+
d("div", ct, [
|
|
2255
|
+
d("div", ft, [
|
|
2221
2256
|
n(ue, {
|
|
2222
|
-
modelValue:
|
|
2223
|
-
"onUpdate:modelValue": H[1] || (H[1] = (Q) =>
|
|
2257
|
+
modelValue: h.value,
|
|
2258
|
+
"onUpdate:modelValue": H[1] || (H[1] = (Q) => h.value = Q),
|
|
2224
2259
|
placeholder: "搜索省/市/区县",
|
|
2225
2260
|
"prefix-icon": U(be),
|
|
2226
2261
|
clearable: "",
|
|
2227
2262
|
onInput: te
|
|
2228
2263
|
}, null, 8, ["modelValue", "prefix-icon"])
|
|
2229
2264
|
]),
|
|
2230
|
-
b.value ? (a(),
|
|
2265
|
+
b.value ? (a(), g("div", pt, [...H[6] || (H[6] = [
|
|
2231
2266
|
d("span", { class: "breadcrumb-item is-active" }, "搜索结果", -1)
|
|
2232
|
-
])])) : (a(),
|
|
2267
|
+
])])) : (a(), g("div", mt, [
|
|
2233
2268
|
d("span", {
|
|
2234
2269
|
class: ie(["breadcrumb-item", { "is-active": y.value === 0 }]),
|
|
2235
|
-
onClick: H[2] || (H[2] = (Q) =>
|
|
2270
|
+
onClick: H[2] || (H[2] = (Q) => S(0))
|
|
2236
2271
|
}, " 全国 ", 2),
|
|
2237
|
-
|
|
2272
|
+
w.value ? (a(), g(G, { key: 0 }, [
|
|
2238
2273
|
n(le, { class: "breadcrumb-arrow" }, {
|
|
2239
|
-
default:
|
|
2274
|
+
default: i(() => [
|
|
2240
2275
|
n(U(Fe))
|
|
2241
2276
|
]),
|
|
2242
2277
|
_: 1
|
|
2243
2278
|
}),
|
|
2244
2279
|
d("span", {
|
|
2245
2280
|
class: ie(["breadcrumb-item", { "is-active": y.value === 1 }]),
|
|
2246
|
-
onClick: H[3] || (H[3] = (Q) =>
|
|
2247
|
-
}, O(
|
|
2248
|
-
], 64)) :
|
|
2249
|
-
|
|
2281
|
+
onClick: H[3] || (H[3] = (Q) => S(1))
|
|
2282
|
+
}, O(w.value.name), 3)
|
|
2283
|
+
], 64)) : q("", !0),
|
|
2284
|
+
z.value ? (a(), g(G, { key: 1 }, [
|
|
2250
2285
|
n(le, { class: "breadcrumb-arrow" }, {
|
|
2251
|
-
default:
|
|
2286
|
+
default: i(() => [
|
|
2252
2287
|
n(U(Fe))
|
|
2253
2288
|
]),
|
|
2254
2289
|
_: 1
|
|
2255
2290
|
}),
|
|
2256
2291
|
d("span", {
|
|
2257
2292
|
class: ie(["breadcrumb-item", { "is-active": y.value === 2 }]),
|
|
2258
|
-
onClick: H[4] || (H[4] = (Q) =>
|
|
2259
|
-
}, O(
|
|
2260
|
-
], 64)) :
|
|
2293
|
+
onClick: H[4] || (H[4] = (Q) => S(2))
|
|
2294
|
+
}, O(z.value.name), 3)
|
|
2295
|
+
], 64)) : q("", !0)
|
|
2261
2296
|
])),
|
|
2262
|
-
Ye((a(),
|
|
2263
|
-
b.value ? (a(),
|
|
2264
|
-
(a(!0),
|
|
2297
|
+
Ye((a(), g("div", vt, [
|
|
2298
|
+
b.value ? (a(), g(G, { key: 0 }, [
|
|
2299
|
+
(a(!0), g(G, null, ne(p.value, (Q) => (a(), g("div", {
|
|
2265
2300
|
key: Q.fid,
|
|
2266
2301
|
class: ie(["area-item", { "is-selected": de(Q) }]),
|
|
2267
2302
|
onClick: (Be) => R(Q)
|
|
2268
2303
|
}, [
|
|
2269
|
-
d("span",
|
|
2304
|
+
d("span", ht, O(Q.full_path || Q.name), 1),
|
|
2270
2305
|
de(Q) ? (a(), A(le, {
|
|
2271
2306
|
key: 0,
|
|
2272
2307
|
class: "area-item__check"
|
|
2273
2308
|
}, {
|
|
2274
|
-
default:
|
|
2309
|
+
default: i(() => [
|
|
2275
2310
|
n(U(je))
|
|
2276
2311
|
]),
|
|
2277
2312
|
_: 1
|
|
2278
|
-
})) :
|
|
2279
|
-
], 10,
|
|
2280
|
-
|
|
2313
|
+
})) : q("", !0)
|
|
2314
|
+
], 10, gt))), 128)),
|
|
2315
|
+
p.value.length === 0 ? (a(), A(x, {
|
|
2281
2316
|
key: 0,
|
|
2282
2317
|
description: "暂无匹配结果",
|
|
2283
2318
|
"image-size": 60
|
|
2284
|
-
})) :
|
|
2285
|
-
], 64)) : (a(),
|
|
2286
|
-
(a(!0),
|
|
2319
|
+
})) : q("", !0)
|
|
2320
|
+
], 64)) : (a(), g(G, { key: 1 }, [
|
|
2321
|
+
(a(!0), g(G, null, ne(X.value, (Q) => (a(), g("div", {
|
|
2287
2322
|
key: Q.fid,
|
|
2288
2323
|
class: ie(["area-item", { "is-selected": de(Q) }]),
|
|
2289
|
-
onClick: (Be) =>
|
|
2324
|
+
onClick: (Be) => F(Q)
|
|
2290
2325
|
}, [
|
|
2291
|
-
d("span",
|
|
2326
|
+
d("span", yt, O(Q.name), 1),
|
|
2292
2327
|
Q.has_children && oe(Q) ? (a(), A(le, {
|
|
2293
2328
|
key: 0,
|
|
2294
2329
|
class: "area-item__arrow"
|
|
2295
2330
|
}, {
|
|
2296
|
-
default:
|
|
2331
|
+
default: i(() => [
|
|
2297
2332
|
n(U(Fe))
|
|
2298
2333
|
]),
|
|
2299
2334
|
_: 1
|
|
@@ -2301,44 +2336,44 @@ const we = {
|
|
|
2301
2336
|
key: 1,
|
|
2302
2337
|
class: "area-item__check"
|
|
2303
2338
|
}, {
|
|
2304
|
-
default:
|
|
2339
|
+
default: i(() => [
|
|
2305
2340
|
n(U(je))
|
|
2306
2341
|
]),
|
|
2307
2342
|
_: 1
|
|
2308
|
-
})) :
|
|
2309
|
-
], 10,
|
|
2310
|
-
X.value.length === 0 && !v.value ? (a(), A(
|
|
2343
|
+
})) : q("", !0)
|
|
2344
|
+
], 10, bt))), 128)),
|
|
2345
|
+
X.value.length === 0 && !v.value ? (a(), A(x, {
|
|
2311
2346
|
key: 0,
|
|
2312
2347
|
description: "暂无数据",
|
|
2313
2348
|
"image-size": 60
|
|
2314
|
-
})) :
|
|
2349
|
+
})) : q("", !0)
|
|
2315
2350
|
], 64))
|
|
2316
2351
|
])), [
|
|
2317
2352
|
[me, v.value]
|
|
2318
2353
|
]),
|
|
2319
|
-
d("div",
|
|
2354
|
+
d("div", _t, [
|
|
2320
2355
|
H[7] || (H[7] = d("span", { class: "selected-label" }, "已选择:", -1)),
|
|
2321
|
-
K.value ? (a(),
|
|
2322
|
-
n(
|
|
2356
|
+
K.value ? (a(), g(G, { key: 0 }, [
|
|
2357
|
+
n(B, {
|
|
2323
2358
|
closable: "",
|
|
2324
|
-
onClose:
|
|
2359
|
+
onClose: V
|
|
2325
2360
|
}, {
|
|
2326
|
-
default:
|
|
2361
|
+
default: i(() => [
|
|
2327
2362
|
N(O(K.value), 1)
|
|
2328
2363
|
]),
|
|
2329
2364
|
_: 1
|
|
2330
2365
|
}),
|
|
2331
|
-
s.value ? (a(), A(
|
|
2366
|
+
s.value ? (a(), A(B, {
|
|
2332
2367
|
key: 0,
|
|
2333
2368
|
type: "info",
|
|
2334
2369
|
class: "destination-tag"
|
|
2335
2370
|
}, {
|
|
2336
|
-
default:
|
|
2371
|
+
default: i(() => [
|
|
2337
2372
|
N(O(s.value), 1)
|
|
2338
2373
|
]),
|
|
2339
2374
|
_: 1
|
|
2340
|
-
})) :
|
|
2341
|
-
], 64)) : (a(),
|
|
2375
|
+
})) : q("", !0)
|
|
2376
|
+
], 64)) : (a(), g("span", wt, "未选择"))
|
|
2342
2377
|
])
|
|
2343
2378
|
])
|
|
2344
2379
|
]),
|
|
@@ -2347,8 +2382,8 @@ const we = {
|
|
|
2347
2382
|
]);
|
|
2348
2383
|
};
|
|
2349
2384
|
}
|
|
2350
|
-
}),
|
|
2351
|
-
var
|
|
2385
|
+
}), bo = /* @__PURE__ */ xe(kt, [["__scopeId", "data-v-6b47a337"]]);
|
|
2386
|
+
var Ct = {
|
|
2352
2387
|
name: "zh-cn",
|
|
2353
2388
|
el: {
|
|
2354
2389
|
breadcrumb: {
|
|
@@ -2526,7 +2561,7 @@ var Vt = {
|
|
|
2526
2561
|
}
|
|
2527
2562
|
}
|
|
2528
2563
|
};
|
|
2529
|
-
const
|
|
2564
|
+
const xt = { class: "page-pagination" }, Bt = /* @__PURE__ */ ee({
|
|
2530
2565
|
__name: "base-pagination",
|
|
2531
2566
|
props: {
|
|
2532
2567
|
total: { type: Number, default: 0 },
|
|
@@ -2550,34 +2585,34 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
2550
2585
|
}
|
|
2551
2586
|
},
|
|
2552
2587
|
emits: ["update:page", "update:size", "change"],
|
|
2553
|
-
setup(e, { emit:
|
|
2554
|
-
const
|
|
2555
|
-
get: () =>
|
|
2556
|
-
set: (
|
|
2557
|
-
}),
|
|
2558
|
-
get: () =>
|
|
2559
|
-
set: (
|
|
2560
|
-
}),
|
|
2561
|
-
|
|
2562
|
-
}, v = (
|
|
2563
|
-
|
|
2588
|
+
setup(e, { emit: E }) {
|
|
2589
|
+
const T = e, l = E, o = W({
|
|
2590
|
+
get: () => T.page,
|
|
2591
|
+
set: (h) => l("update:page", h)
|
|
2592
|
+
}), r = W({
|
|
2593
|
+
get: () => T.size,
|
|
2594
|
+
set: (h) => l("update:size", h)
|
|
2595
|
+
}), u = (h) => {
|
|
2596
|
+
l("change", { page: o.value, size: h });
|
|
2597
|
+
}, v = (h) => {
|
|
2598
|
+
l("change", { page: h, size: r.value });
|
|
2564
2599
|
};
|
|
2565
|
-
return (
|
|
2566
|
-
const y = I("el-pagination"),
|
|
2567
|
-
return a(),
|
|
2568
|
-
n(
|
|
2569
|
-
default:
|
|
2600
|
+
return (h, p) => {
|
|
2601
|
+
const y = I("el-pagination"), $ = I("el-config-provider");
|
|
2602
|
+
return a(), g("div", xt, [
|
|
2603
|
+
n($, { locale: U(Ct) }, {
|
|
2604
|
+
default: i(() => [
|
|
2570
2605
|
n(y, {
|
|
2571
2606
|
"current-page": o.value,
|
|
2572
|
-
"onUpdate:currentPage":
|
|
2573
|
-
"page-size":
|
|
2574
|
-
"onUpdate:pageSize":
|
|
2607
|
+
"onUpdate:currentPage": p[0] || (p[0] = (k) => o.value = k),
|
|
2608
|
+
"page-size": r.value,
|
|
2609
|
+
"onUpdate:pageSize": p[1] || (p[1] = (k) => r.value = k),
|
|
2575
2610
|
"page-sizes": e.pageSizes,
|
|
2576
2611
|
layout: e.layout,
|
|
2577
2612
|
background: e.background,
|
|
2578
2613
|
disabled: e.disabled,
|
|
2579
2614
|
total: e.total,
|
|
2580
|
-
onSizeChange:
|
|
2615
|
+
onSizeChange: u,
|
|
2581
2616
|
onCurrentChange: v
|
|
2582
2617
|
}, null, 8, ["current-page", "page-size", "page-sizes", "layout", "background", "disabled", "total"])
|
|
2583
2618
|
]),
|
|
@@ -2586,10 +2621,10 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
2586
2621
|
]);
|
|
2587
2622
|
};
|
|
2588
2623
|
}
|
|
2589
|
-
}),
|
|
2624
|
+
}), Et = /* @__PURE__ */ xe(Bt, [["__scopeId", "data-v-7ca8689a"]]), $t = { class: "approval-drawer-header" }, Ft = { class: "approval-drawer-title" }, Dt = { class: "base-approval-record" }, Tt = { class: "approval-steps" }, St = { class: "steps-wrapper" }, zt = { class: "step-icon" }, Rt = { class: "step-title" }, Ut = {
|
|
2590
2625
|
key: 0,
|
|
2591
2626
|
class: "current-step-info"
|
|
2592
|
-
},
|
|
2627
|
+
}, At = { class: "approval-records" }, yo = /* @__PURE__ */ ee({
|
|
2593
2628
|
__name: "busi-approval-record",
|
|
2594
2629
|
props: {
|
|
2595
2630
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -2599,9 +2634,9 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
2599
2634
|
size: { default: "50%" }
|
|
2600
2635
|
},
|
|
2601
2636
|
emits: ["update:modelValue"],
|
|
2602
|
-
setup(e, { expose:
|
|
2603
|
-
const
|
|
2604
|
-
|
|
2637
|
+
setup(e, { expose: E, emit: T }) {
|
|
2638
|
+
const l = e, o = T, r = D(!1), u = D([]), v = D(null), h = D([]), p = D(), y = async (z) => {
|
|
2639
|
+
r.value = !0, await new Promise((L) => setTimeout(L, 300)), console.log("获取审批记录,表单ID:", z, "流程ID:", l.procBid), u.value = [
|
|
2605
2640
|
{ title: "发起", status: "done", type: "start" },
|
|
2606
2641
|
{ title: "一级审批", status: "done" },
|
|
2607
2642
|
{ title: "三级审批", status: "active" },
|
|
@@ -2613,7 +2648,7 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
2613
2648
|
stepName: "三级审批",
|
|
2614
2649
|
handler: "裴奕琴(50215802)",
|
|
2615
2650
|
arriveTime: "2026-01-30 11:07:38"
|
|
2616
|
-
},
|
|
2651
|
+
}, h.value = [
|
|
2617
2652
|
{
|
|
2618
2653
|
stepName: "发起",
|
|
2619
2654
|
approver: "李天翔(50226718)",
|
|
@@ -2630,64 +2665,64 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
2630
2665
|
approveTime: "2026-01-30 11:07:37",
|
|
2631
2666
|
comment: ""
|
|
2632
2667
|
}
|
|
2633
|
-
],
|
|
2668
|
+
], r.value = !1;
|
|
2634
2669
|
};
|
|
2635
2670
|
De(() => {
|
|
2636
|
-
|
|
2637
|
-
}), Ce(() =>
|
|
2638
|
-
|
|
2671
|
+
l.modelValue && l.formId && y(l.formId);
|
|
2672
|
+
}), Ce(() => l.formId, (z) => {
|
|
2673
|
+
z && l.modelValue && y(z);
|
|
2639
2674
|
});
|
|
2640
|
-
const
|
|
2641
|
-
o("update:modelValue",
|
|
2642
|
-
},
|
|
2643
|
-
|
|
2644
|
-
},
|
|
2645
|
-
|
|
2646
|
-
left:
|
|
2675
|
+
const $ = (z) => {
|
|
2676
|
+
o("update:modelValue", z);
|
|
2677
|
+
}, k = () => {
|
|
2678
|
+
l.formId && y(l.formId);
|
|
2679
|
+
}, f = (z) => {
|
|
2680
|
+
p.value && p.value.scrollBy({
|
|
2681
|
+
left: z * 200,
|
|
2647
2682
|
behavior: "smooth"
|
|
2648
2683
|
});
|
|
2649
2684
|
};
|
|
2650
|
-
return
|
|
2651
|
-
scrollSteps:
|
|
2685
|
+
return E({
|
|
2686
|
+
scrollSteps: f,
|
|
2652
2687
|
refresh: () => {
|
|
2653
|
-
|
|
2688
|
+
l.formId && y(l.formId);
|
|
2654
2689
|
}
|
|
2655
|
-
}), (
|
|
2656
|
-
const K = I("el-icon"), s = I("el-table-column"),
|
|
2657
|
-
return a(), A(
|
|
2690
|
+
}), (z, L) => {
|
|
2691
|
+
const K = I("el-icon"), s = I("el-table-column"), t = I("el-table"), C = I("el-drawer");
|
|
2692
|
+
return a(), A(C, {
|
|
2658
2693
|
"model-value": e.modelValue,
|
|
2659
2694
|
direction: "rtl",
|
|
2660
2695
|
size: e.size,
|
|
2661
2696
|
"show-close": !1,
|
|
2662
2697
|
class: "approval-drawer",
|
|
2663
|
-
"onUpdate:modelValue":
|
|
2664
|
-
onOpen:
|
|
2698
|
+
"onUpdate:modelValue": $,
|
|
2699
|
+
onOpen: k
|
|
2665
2700
|
}, {
|
|
2666
|
-
header:
|
|
2667
|
-
d("div",
|
|
2668
|
-
d("span",
|
|
2701
|
+
header: i(() => [
|
|
2702
|
+
d("div", $t, [
|
|
2703
|
+
d("span", Ft, O(e.title), 1),
|
|
2669
2704
|
d("button", {
|
|
2670
2705
|
class: "approval-drawer-close",
|
|
2671
|
-
onClick: L[0] || (L[0] = (b) =>
|
|
2706
|
+
onClick: L[0] || (L[0] = (b) => $(!1))
|
|
2672
2707
|
}, [
|
|
2673
2708
|
n(K, null, {
|
|
2674
|
-
default:
|
|
2675
|
-
n(U(
|
|
2709
|
+
default: i(() => [
|
|
2710
|
+
n(U(ke))
|
|
2676
2711
|
]),
|
|
2677
2712
|
_: 1
|
|
2678
2713
|
})
|
|
2679
2714
|
])
|
|
2680
2715
|
])
|
|
2681
2716
|
]),
|
|
2682
|
-
default:
|
|
2683
|
-
d("div",
|
|
2684
|
-
d("div",
|
|
2717
|
+
default: i(() => [
|
|
2718
|
+
d("div", Dt, [
|
|
2719
|
+
d("div", Tt, [
|
|
2685
2720
|
d("div", {
|
|
2686
2721
|
class: "steps-nav steps-nav-prev",
|
|
2687
|
-
onClick: L[1] || (L[1] = (b) =>
|
|
2722
|
+
onClick: L[1] || (L[1] = (b) => f(-1))
|
|
2688
2723
|
}, [
|
|
2689
2724
|
n(K, null, {
|
|
2690
|
-
default:
|
|
2725
|
+
default: i(() => [
|
|
2691
2726
|
n(U(hl))
|
|
2692
2727
|
]),
|
|
2693
2728
|
_: 1
|
|
@@ -2696,10 +2731,10 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
2696
2731
|
d("div", {
|
|
2697
2732
|
class: "steps-container",
|
|
2698
2733
|
ref_key: "stepsContainerRef",
|
|
2699
|
-
ref:
|
|
2734
|
+
ref: p
|
|
2700
2735
|
}, [
|
|
2701
|
-
d("div",
|
|
2702
|
-
(a(!0),
|
|
2736
|
+
d("div", St, [
|
|
2737
|
+
(a(!0), g(G, null, ne(u.value, (b, X) => (a(), g(G, { key: X }, [
|
|
2703
2738
|
d("div", {
|
|
2704
2739
|
class: ie(["step-item", {
|
|
2705
2740
|
"step-item--done": b.status === "done",
|
|
@@ -2708,54 +2743,54 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
2708
2743
|
"step-item--end": b.type === "end"
|
|
2709
2744
|
}])
|
|
2710
2745
|
}, [
|
|
2711
|
-
d("div",
|
|
2746
|
+
d("div", zt, [
|
|
2712
2747
|
b.type === "start" ? (a(), A(K, { key: 0 }, {
|
|
2713
|
-
default:
|
|
2748
|
+
default: i(() => [
|
|
2714
2749
|
n(U(bl))
|
|
2715
2750
|
]),
|
|
2716
2751
|
_: 1
|
|
2717
2752
|
})) : b.type === "end" ? (a(), A(K, { key: 1 }, {
|
|
2718
|
-
default:
|
|
2753
|
+
default: i(() => [
|
|
2719
2754
|
n(U(yl))
|
|
2720
2755
|
]),
|
|
2721
2756
|
_: 1
|
|
2722
2757
|
})) : (a(), A(K, { key: 2 }, {
|
|
2723
|
-
default:
|
|
2758
|
+
default: i(() => [
|
|
2724
2759
|
n(U(_l))
|
|
2725
2760
|
]),
|
|
2726
2761
|
_: 1
|
|
2727
2762
|
}))
|
|
2728
2763
|
]),
|
|
2729
|
-
d("div",
|
|
2764
|
+
d("div", Rt, O(b.title), 1)
|
|
2730
2765
|
], 2),
|
|
2731
|
-
X <
|
|
2766
|
+
X < u.value.length - 1 ? (a(), g("div", {
|
|
2732
2767
|
key: 0,
|
|
2733
2768
|
class: ie(["step-line", {
|
|
2734
2769
|
"step-line--done": b.status === "done",
|
|
2735
2770
|
"step-line--active": b.status === "active"
|
|
2736
2771
|
}])
|
|
2737
|
-
}, null, 2)) :
|
|
2772
|
+
}, null, 2)) : q("", !0)
|
|
2738
2773
|
], 64))), 128))
|
|
2739
2774
|
])
|
|
2740
2775
|
], 512),
|
|
2741
2776
|
d("div", {
|
|
2742
2777
|
class: "steps-nav steps-nav-next",
|
|
2743
|
-
onClick: L[2] || (L[2] = (b) =>
|
|
2778
|
+
onClick: L[2] || (L[2] = (b) => f(1))
|
|
2744
2779
|
}, [
|
|
2745
2780
|
n(K, null, {
|
|
2746
|
-
default:
|
|
2781
|
+
default: i(() => [
|
|
2747
2782
|
n(U(wl))
|
|
2748
2783
|
]),
|
|
2749
2784
|
_: 1
|
|
2750
2785
|
})
|
|
2751
2786
|
])
|
|
2752
2787
|
]),
|
|
2753
|
-
v.value ? (a(),
|
|
2754
|
-
n(
|
|
2788
|
+
v.value ? (a(), g("div", Ut, [
|
|
2789
|
+
n(t, {
|
|
2755
2790
|
data: [v.value],
|
|
2756
2791
|
border: ""
|
|
2757
2792
|
}, {
|
|
2758
|
-
default:
|
|
2793
|
+
default: i(() => [
|
|
2759
2794
|
n(s, {
|
|
2760
2795
|
prop: "stepName",
|
|
2761
2796
|
label: "当前步骤",
|
|
@@ -2773,13 +2808,13 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
2773
2808
|
]),
|
|
2774
2809
|
_: 1
|
|
2775
2810
|
}, 8, ["data"])
|
|
2776
|
-
])) :
|
|
2777
|
-
d("div",
|
|
2778
|
-
n(
|
|
2779
|
-
data:
|
|
2811
|
+
])) : q("", !0),
|
|
2812
|
+
d("div", At, [
|
|
2813
|
+
n(t, {
|
|
2814
|
+
data: h.value,
|
|
2780
2815
|
border: ""
|
|
2781
2816
|
}, {
|
|
2782
|
-
default:
|
|
2817
|
+
default: i(() => [
|
|
2783
2818
|
n(s, {
|
|
2784
2819
|
prop: "stepName",
|
|
2785
2820
|
label: "审批步骤",
|
|
@@ -2819,22 +2854,22 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
2819
2854
|
}, 8, ["model-value", "size"]);
|
|
2820
2855
|
};
|
|
2821
2856
|
}
|
|
2822
|
-
}),
|
|
2857
|
+
}), Pt = { class: "user-dialog__header" }, It = { class: "user-dialog__title" }, Lt = { class: "user-dialog__search" }, Mt = {
|
|
2823
2858
|
key: 0,
|
|
2824
2859
|
class: "user-dialog__content"
|
|
2825
|
-
},
|
|
2860
|
+
}, Nt = ["onClick"], Ot = { class: "user-dialog__item-info" }, Ht = { class: "user-dialog__item-name" }, jt = { class: "user-dialog__item-cardno" }, Kt = { class: "user-dialog__item-desc" }, Yt = { class: "user-dialog__item-check" }, Wt = {
|
|
2826
2861
|
key: 0,
|
|
2827
2862
|
class: "user-dialog__empty"
|
|
2828
|
-
},
|
|
2863
|
+
}, qt = {
|
|
2829
2864
|
key: 1,
|
|
2830
2865
|
class: "user-dialog__empty user-dialog__empty--hint"
|
|
2831
|
-
},
|
|
2866
|
+
}, Gt = {
|
|
2832
2867
|
key: 1,
|
|
2833
2868
|
class: "user-dialog__content"
|
|
2834
|
-
},
|
|
2869
|
+
}, Xt = ["onClick"], Jt = { class: "user-dialog__item-info" }, Qt = { class: "user-dialog__item-name" }, Zt = { class: "user-dialog__item-desc" }, ea = ["onClick"], la = { class: "user-dialog__item-info" }, ta = { class: "user-dialog__item-name" }, aa = { class: "user-dialog__item-cardno" }, oa = { class: "user-dialog__item-desc" }, na = { class: "user-dialog__item-check" }, sa = {
|
|
2835
2870
|
key: 0,
|
|
2836
2871
|
class: "user-dialog__empty"
|
|
2837
|
-
},
|
|
2872
|
+
}, ua = { class: "user-dialog__footer" }, ia = { class: "user-dialog__selected" }, _o = /* @__PURE__ */ ee({
|
|
2838
2873
|
__name: "busi-user",
|
|
2839
2874
|
props: {
|
|
2840
2875
|
modelValue: {},
|
|
@@ -2846,92 +2881,92 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
2846
2881
|
maxTagCount: { default: 3 }
|
|
2847
2882
|
},
|
|
2848
2883
|
emits: ["update:modelValue", "change"],
|
|
2849
|
-
setup(e, { expose:
|
|
2850
|
-
const
|
|
2851
|
-
var
|
|
2852
|
-
return
|
|
2853
|
-
}), L = (
|
|
2884
|
+
setup(e, { expose: E, emit: T }) {
|
|
2885
|
+
const l = e, o = T, r = D(!1), u = D(""), v = D(!1), h = D(), p = D([]), y = D([]), $ = D([]), k = D([]), f = D([]), w = D([]), z = W(() => {
|
|
2886
|
+
var F;
|
|
2887
|
+
return $.value.length === 0 ? "" : l.multiple ? $.value.map((R) => R.name).join(", ") : ((F = $.value[0]) == null ? void 0 : F.name) || "";
|
|
2888
|
+
}), L = (F) => k.value.some((R) => R.cardno === F.cardno), K = async (F) => {
|
|
2854
2889
|
var ce, ge;
|
|
2855
|
-
const J = await he().post(`/proxy/sys/user/api/get_dept_user/${
|
|
2856
|
-
|
|
2890
|
+
const J = await he().post(`/proxy/sys/user/api/get_dept_user/${F}`);
|
|
2891
|
+
p.value = ((ce = J == null ? void 0 : J.data) == null ? void 0 : ce.departments) || [], y.value = ((ge = J == null ? void 0 : J.data) == null ? void 0 : ge.users) || [];
|
|
2857
2892
|
}, s = () => {
|
|
2858
|
-
|
|
2859
|
-
},
|
|
2860
|
-
|
|
2861
|
-
},
|
|
2893
|
+
l.disabled || (r.value = !0, k.value = [...$.value], w.value = [{ dept_no: "10000001", dept_name: "迈瑞(Mindray)" }], K("10000001"));
|
|
2894
|
+
}, t = () => {
|
|
2895
|
+
r.value = !1, u.value = "", v.value = !1, f.value = [];
|
|
2896
|
+
}, C = () => {
|
|
2862
2897
|
v.value = !0;
|
|
2863
2898
|
}, b = () => {
|
|
2864
|
-
var
|
|
2865
|
-
v.value = !1,
|
|
2866
|
-
}, X = (
|
|
2867
|
-
|
|
2899
|
+
var F;
|
|
2900
|
+
v.value = !1, u.value = "", f.value = [], (F = h.value) == null || F.blur();
|
|
2901
|
+
}, X = (F) => {
|
|
2902
|
+
w.value.push({ dept_no: F.dept_no, dept_name: F.dept_name }), K(F.dept_no);
|
|
2868
2903
|
}, M = () => {
|
|
2869
|
-
if (
|
|
2870
|
-
|
|
2871
|
-
const
|
|
2872
|
-
K(
|
|
2904
|
+
if (w.value.length > 1) {
|
|
2905
|
+
w.value.pop();
|
|
2906
|
+
const F = w.value[w.value.length - 1];
|
|
2907
|
+
K(F.dept_no);
|
|
2873
2908
|
}
|
|
2874
|
-
}, oe = (
|
|
2875
|
-
if (
|
|
2876
|
-
const R =
|
|
2877
|
-
R > -1 ?
|
|
2909
|
+
}, oe = (F) => {
|
|
2910
|
+
if (l.multiple) {
|
|
2911
|
+
const R = k.value.findIndex((J) => J.cardno === F.cardno);
|
|
2912
|
+
R > -1 ? k.value.splice(R, 1) : k.value.push(F);
|
|
2878
2913
|
} else
|
|
2879
|
-
|
|
2880
|
-
}, de = (
|
|
2881
|
-
const R =
|
|
2882
|
-
R > -1 &&
|
|
2914
|
+
k.value = [F];
|
|
2915
|
+
}, de = (F) => {
|
|
2916
|
+
const R = k.value.findIndex((J) => J.cardno === F.cardno);
|
|
2917
|
+
R > -1 && k.value.splice(R, 1);
|
|
2883
2918
|
}, se = () => {
|
|
2884
|
-
|
|
2919
|
+
$.value = [...k.value], pe(), t();
|
|
2885
2920
|
}, pe = () => {
|
|
2886
|
-
if (
|
|
2887
|
-
const
|
|
2888
|
-
o("update:modelValue",
|
|
2921
|
+
if (l.multiple) {
|
|
2922
|
+
const F = $.value.map((R) => R.cardno);
|
|
2923
|
+
o("update:modelValue", F), o("change", $.value);
|
|
2889
2924
|
} else {
|
|
2890
|
-
const
|
|
2891
|
-
o("update:modelValue",
|
|
2925
|
+
const F = $.value[0];
|
|
2926
|
+
o("update:modelValue", F == null ? void 0 : F.cardno), o("change", F);
|
|
2892
2927
|
}
|
|
2893
2928
|
}, fe = () => {
|
|
2894
|
-
|
|
2929
|
+
$.value = [], o("update:modelValue", l.multiple ? [] : void 0), o("change", void 0);
|
|
2895
2930
|
};
|
|
2896
2931
|
let re;
|
|
2897
2932
|
const te = () => {
|
|
2898
2933
|
clearTimeout(re), re = setTimeout(async () => {
|
|
2899
|
-
if (!
|
|
2900
|
-
|
|
2934
|
+
if (!u.value.trim()) {
|
|
2935
|
+
f.value = [];
|
|
2901
2936
|
return;
|
|
2902
2937
|
}
|
|
2903
|
-
const R = await he().post("/proxy/sys/user/api/search_user", { keyword:
|
|
2904
|
-
|
|
2938
|
+
const R = await he().post("/proxy/sys/user/api/search_user", { keyword: u.value });
|
|
2939
|
+
f.value = (R == null ? void 0 : R.data) || [];
|
|
2905
2940
|
}, 300);
|
|
2906
2941
|
}, ve = () => {
|
|
2907
|
-
|
|
2942
|
+
u.value = "", f.value = [];
|
|
2908
2943
|
};
|
|
2909
|
-
return
|
|
2944
|
+
return E({
|
|
2910
2945
|
openDialog: s,
|
|
2911
|
-
getSelectedUsers: () =>
|
|
2912
|
-
getSelectedIds: () =>
|
|
2946
|
+
getSelectedUsers: () => $.value,
|
|
2947
|
+
getSelectedIds: () => $.value.map((F) => F.cardno),
|
|
2913
2948
|
clear: fe
|
|
2914
|
-
}), (
|
|
2915
|
-
const J = I("el-icon"), ce = I("el-input"), ge = I("el-tag"),
|
|
2916
|
-
return a(),
|
|
2949
|
+
}), (F, R) => {
|
|
2950
|
+
const J = I("el-icon"), ce = I("el-input"), ge = I("el-tag"), S = I("el-button"), V = I("el-dialog");
|
|
2951
|
+
return a(), g("div", {
|
|
2917
2952
|
class: ie(["base-user", { "is-disabled": e.disabled }])
|
|
2918
2953
|
}, [
|
|
2919
2954
|
n(ce, {
|
|
2920
2955
|
class: "base-user__search",
|
|
2921
|
-
"model-value":
|
|
2956
|
+
"model-value": z.value,
|
|
2922
2957
|
placeholder: e.placeholder,
|
|
2923
2958
|
disabled: e.disabled,
|
|
2924
2959
|
readonly: "",
|
|
2925
|
-
clearable: e.clearable &&
|
|
2960
|
+
clearable: e.clearable && $.value.length > 0,
|
|
2926
2961
|
onClick: s,
|
|
2927
2962
|
onClear: fe
|
|
2928
2963
|
}, {
|
|
2929
|
-
suffix:
|
|
2964
|
+
suffix: i(() => [
|
|
2930
2965
|
n(J, {
|
|
2931
2966
|
class: "base-user__icon",
|
|
2932
2967
|
onClick: ye(s, ["stop"])
|
|
2933
2968
|
}, {
|
|
2934
|
-
default:
|
|
2969
|
+
default: i(() => [
|
|
2935
2970
|
n(U(be))
|
|
2936
2971
|
]),
|
|
2937
2972
|
_: 1
|
|
@@ -2939,94 +2974,94 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
2939
2974
|
]),
|
|
2940
2975
|
_: 1
|
|
2941
2976
|
}, 8, ["model-value", "placeholder", "disabled", "clearable"]),
|
|
2942
|
-
n(
|
|
2943
|
-
modelValue:
|
|
2944
|
-
"onUpdate:modelValue": R[1] || (R[1] = (_) =>
|
|
2977
|
+
n(V, {
|
|
2978
|
+
modelValue: r.value,
|
|
2979
|
+
"onUpdate:modelValue": R[1] || (R[1] = (_) => r.value = _),
|
|
2945
2980
|
width: "960px",
|
|
2946
2981
|
"close-on-click-modal": !1,
|
|
2947
2982
|
"show-close": !1,
|
|
2948
2983
|
class: "user-dialog",
|
|
2949
|
-
onClose:
|
|
2984
|
+
onClose: t
|
|
2950
2985
|
}, {
|
|
2951
|
-
header:
|
|
2952
|
-
d("div",
|
|
2953
|
-
|
|
2986
|
+
header: i(() => [
|
|
2987
|
+
d("div", Pt, [
|
|
2988
|
+
w.value.length > 1 ? (a(), g("span", {
|
|
2954
2989
|
key: 0,
|
|
2955
2990
|
class: "user-dialog__back",
|
|
2956
2991
|
onClick: M
|
|
2957
2992
|
}, [
|
|
2958
2993
|
n(J, null, {
|
|
2959
|
-
default:
|
|
2994
|
+
default: i(() => [
|
|
2960
2995
|
n(U(qe))
|
|
2961
2996
|
]),
|
|
2962
2997
|
_: 1
|
|
2963
2998
|
})
|
|
2964
|
-
])) :
|
|
2965
|
-
d("span",
|
|
2999
|
+
])) : q("", !0),
|
|
3000
|
+
d("span", It, O(e.dialogTitle), 1),
|
|
2966
3001
|
d("span", {
|
|
2967
3002
|
class: "user-dialog__close",
|
|
2968
|
-
onClick:
|
|
3003
|
+
onClick: t
|
|
2969
3004
|
}, [
|
|
2970
3005
|
n(J, null, {
|
|
2971
|
-
default:
|
|
2972
|
-
n(U(
|
|
3006
|
+
default: i(() => [
|
|
3007
|
+
n(U(ke))
|
|
2973
3008
|
]),
|
|
2974
3009
|
_: 1
|
|
2975
3010
|
})
|
|
2976
3011
|
])
|
|
2977
3012
|
])
|
|
2978
3013
|
]),
|
|
2979
|
-
footer:
|
|
2980
|
-
d("div",
|
|
2981
|
-
d("div",
|
|
2982
|
-
(a(!0),
|
|
3014
|
+
footer: i(() => [
|
|
3015
|
+
d("div", ua, [
|
|
3016
|
+
d("div", ia, [
|
|
3017
|
+
(a(!0), g(G, null, ne(k.value, (_) => (a(), A(ge, {
|
|
2983
3018
|
key: _.cardno,
|
|
2984
3019
|
type: "danger",
|
|
2985
3020
|
closable: "",
|
|
2986
3021
|
onClose: (Y) => de(_)
|
|
2987
3022
|
}, {
|
|
2988
|
-
default:
|
|
3023
|
+
default: i(() => [
|
|
2989
3024
|
N(O(_.name), 1)
|
|
2990
3025
|
]),
|
|
2991
3026
|
_: 2
|
|
2992
3027
|
}, 1032, ["onClose"]))), 128))
|
|
2993
3028
|
]),
|
|
2994
|
-
n(
|
|
3029
|
+
n(S, {
|
|
2995
3030
|
type: "custom",
|
|
2996
3031
|
onClick: se
|
|
2997
3032
|
}, {
|
|
2998
|
-
default:
|
|
3033
|
+
default: i(() => [
|
|
2999
3034
|
R[7] || (R[7] = N(" 确定", -1)),
|
|
3000
|
-
|
|
3001
|
-
N("(" + O(
|
|
3002
|
-
], 64)) :
|
|
3035
|
+
k.value.length > 0 ? (a(), g(G, { key: 0 }, [
|
|
3036
|
+
N("(" + O(k.value.length) + ")", 1)
|
|
3037
|
+
], 64)) : q("", !0)
|
|
3003
3038
|
]),
|
|
3004
3039
|
_: 1
|
|
3005
3040
|
})
|
|
3006
3041
|
])
|
|
3007
3042
|
]),
|
|
3008
|
-
default:
|
|
3009
|
-
d("div",
|
|
3043
|
+
default: i(() => [
|
|
3044
|
+
d("div", Lt, [
|
|
3010
3045
|
n(ce, {
|
|
3011
3046
|
ref_key: "searchInputRef",
|
|
3012
|
-
ref:
|
|
3013
|
-
modelValue:
|
|
3014
|
-
"onUpdate:modelValue": R[0] || (R[0] = (_) =>
|
|
3047
|
+
ref: h,
|
|
3048
|
+
modelValue: u.value,
|
|
3049
|
+
"onUpdate:modelValue": R[0] || (R[0] = (_) => u.value = _),
|
|
3015
3050
|
placeholder: "搜索",
|
|
3016
3051
|
"prefix-icon": U(be),
|
|
3017
3052
|
clearable: "",
|
|
3018
|
-
onFocus:
|
|
3053
|
+
onFocus: C,
|
|
3019
3054
|
onInput: te,
|
|
3020
3055
|
onClear: ve
|
|
3021
3056
|
}, null, 8, ["modelValue", "prefix-icon"]),
|
|
3022
|
-
v.value ? (a(),
|
|
3057
|
+
v.value ? (a(), g("span", {
|
|
3023
3058
|
key: 0,
|
|
3024
3059
|
class: "user-dialog__search-cancel",
|
|
3025
3060
|
onClick: b
|
|
3026
|
-
}, "取消")) :
|
|
3061
|
+
}, "取消")) : q("", !0)
|
|
3027
3062
|
]),
|
|
3028
|
-
v.value ? (a(),
|
|
3029
|
-
(a(!0),
|
|
3063
|
+
v.value ? (a(), g("div", Mt, [
|
|
3064
|
+
(a(!0), g(G, null, ne(f.value, (_) => (a(), g("div", {
|
|
3030
3065
|
key: _.cardno,
|
|
3031
3066
|
class: "user-dialog__item user-dialog__item--user",
|
|
3032
3067
|
onClick: (Y) => oe(_)
|
|
@@ -3034,31 +3069,31 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3034
3069
|
R[2] || (R[2] = d("div", { class: "user-dialog__item-avatar user-dialog__item-avatar--user" }, [
|
|
3035
3070
|
d("i", { class: "iconfont icon-wode" })
|
|
3036
3071
|
], -1)),
|
|
3037
|
-
d("div",
|
|
3038
|
-
d("div",
|
|
3072
|
+
d("div", Ot, [
|
|
3073
|
+
d("div", Ht, [
|
|
3039
3074
|
N(O(_.name) + " ", 1),
|
|
3040
|
-
d("span",
|
|
3075
|
+
d("span", jt, "(" + O(_.cardno) + ")", 1)
|
|
3041
3076
|
]),
|
|
3042
|
-
d("div",
|
|
3077
|
+
d("div", Kt, O(_.deptname), 1)
|
|
3043
3078
|
]),
|
|
3044
|
-
d("div",
|
|
3079
|
+
d("div", Yt, [
|
|
3045
3080
|
d("span", {
|
|
3046
3081
|
class: ie(["user-dialog__checkbox", { "is-checked": L(_) }])
|
|
3047
3082
|
}, null, 2)
|
|
3048
3083
|
])
|
|
3049
|
-
], 8,
|
|
3050
|
-
|
|
3051
|
-
|
|
3084
|
+
], 8, Nt))), 128)),
|
|
3085
|
+
u.value && f.value.length === 0 ? (a(), g("div", Wt, " 未找到相关用户 ")) : q("", !0),
|
|
3086
|
+
u.value ? q("", !0) : (a(), g("div", qt, [
|
|
3052
3087
|
n(J, { class: "user-dialog__empty-icon" }, {
|
|
3053
|
-
default:
|
|
3088
|
+
default: i(() => [
|
|
3054
3089
|
n(U(be))
|
|
3055
3090
|
]),
|
|
3056
3091
|
_: 1
|
|
3057
3092
|
}),
|
|
3058
3093
|
R[3] || (R[3] = d("div", null, "请输入关键词搜索", -1))
|
|
3059
3094
|
]))
|
|
3060
|
-
])) : (a(),
|
|
3061
|
-
(a(!0),
|
|
3095
|
+
])) : (a(), g("div", Gt, [
|
|
3096
|
+
(a(!0), g(G, null, ne(p.value, (_) => (a(), g("div", {
|
|
3062
3097
|
key: _.dept_no,
|
|
3063
3098
|
class: "user-dialog__item user-dialog__item--dept",
|
|
3064
3099
|
onClick: (Y) => X(_)
|
|
@@ -3066,15 +3101,15 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3066
3101
|
R[4] || (R[4] = d("div", { class: "user-dialog__item-avatar" }, [
|
|
3067
3102
|
d("i", { class: "iconfont icon-zuzhibumen" })
|
|
3068
3103
|
], -1)),
|
|
3069
|
-
d("div",
|
|
3070
|
-
d("div",
|
|
3071
|
-
d("div",
|
|
3104
|
+
d("div", Jt, [
|
|
3105
|
+
d("div", Qt, O(_.dept_name), 1),
|
|
3106
|
+
d("div", Zt, O(_.dept_pname), 1)
|
|
3072
3107
|
]),
|
|
3073
3108
|
R[5] || (R[5] = d("div", { class: "user-dialog__item-arrow" }, [
|
|
3074
3109
|
d("i", { class: "iconfont icon-arrow-right" })
|
|
3075
3110
|
], -1))
|
|
3076
|
-
], 8,
|
|
3077
|
-
(a(!0),
|
|
3111
|
+
], 8, Xt))), 128)),
|
|
3112
|
+
(a(!0), g(G, null, ne(y.value, (_) => (a(), g("div", {
|
|
3078
3113
|
key: _.cardno,
|
|
3079
3114
|
class: "user-dialog__item user-dialog__item--user",
|
|
3080
3115
|
onClick: (Y) => oe(_)
|
|
@@ -3082,20 +3117,20 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3082
3117
|
R[6] || (R[6] = d("div", { class: "user-dialog__item-avatar user-dialog__item-avatar--user" }, [
|
|
3083
3118
|
d("i", { class: "iconfont icon-wode" })
|
|
3084
3119
|
], -1)),
|
|
3085
|
-
d("div",
|
|
3086
|
-
d("div",
|
|
3120
|
+
d("div", la, [
|
|
3121
|
+
d("div", ta, [
|
|
3087
3122
|
N(O(_.name) + " ", 1),
|
|
3088
|
-
d("span",
|
|
3123
|
+
d("span", aa, "(" + O(_.cardno) + ")", 1)
|
|
3089
3124
|
]),
|
|
3090
|
-
d("div",
|
|
3125
|
+
d("div", oa, O(_.deptname), 1)
|
|
3091
3126
|
]),
|
|
3092
|
-
d("div",
|
|
3127
|
+
d("div", na, [
|
|
3093
3128
|
d("span", {
|
|
3094
3129
|
class: ie(["user-dialog__checkbox", { "is-checked": L(_) }])
|
|
3095
3130
|
}, null, 2)
|
|
3096
3131
|
])
|
|
3097
|
-
], 8,
|
|
3098
|
-
|
|
3132
|
+
], 8, ea))), 128)),
|
|
3133
|
+
p.value.length === 0 && y.value.length === 0 ? (a(), g("div", sa, " 暂无数据 ")) : q("", !0)
|
|
3099
3134
|
]))
|
|
3100
3135
|
]),
|
|
3101
3136
|
_: 1
|
|
@@ -3103,25 +3138,25 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3103
3138
|
], 2);
|
|
3104
3139
|
};
|
|
3105
3140
|
}
|
|
3106
|
-
}),
|
|
3141
|
+
}), da = { class: "dept-dialog__header" }, ra = { class: "dept-dialog__title" }, ca = { class: "dept-dialog__search" }, fa = {
|
|
3107
3142
|
key: 0,
|
|
3108
3143
|
class: "dept-dialog__content"
|
|
3109
|
-
},
|
|
3144
|
+
}, ma = ["onClick"], pa = { class: "dept-dialog__item-info" }, va = { class: "dept-dialog__item-name" }, ga = { class: "dept-dialog__item-desc" }, ha = { class: "dept-dialog__item-check" }, ba = {
|
|
3110
3145
|
key: 0,
|
|
3111
3146
|
class: "dept-dialog__empty"
|
|
3112
|
-
},
|
|
3147
|
+
}, ya = {
|
|
3113
3148
|
key: 1,
|
|
3114
3149
|
class: "dept-dialog__empty dept-dialog__empty--hint"
|
|
3115
|
-
},
|
|
3150
|
+
}, _a = {
|
|
3116
3151
|
key: 1,
|
|
3117
3152
|
class: "dept-dialog__content"
|
|
3118
|
-
},
|
|
3153
|
+
}, wa = ["onClick"], Va = ["onClick"], ka = { class: "dept-dialog__item-info" }, Ca = { class: "dept-dialog__item-name" }, xa = { class: "dept-dialog__item-desc" }, Ba = {
|
|
3119
3154
|
key: 0,
|
|
3120
3155
|
class: "dept-dialog__item-arrow"
|
|
3121
|
-
},
|
|
3156
|
+
}, Ea = {
|
|
3122
3157
|
key: 0,
|
|
3123
3158
|
class: "dept-dialog__empty"
|
|
3124
|
-
},
|
|
3159
|
+
}, $a = { class: "dept-dialog__footer" }, Fa = { class: "dept-dialog__selected" }, wo = /* @__PURE__ */ ee({
|
|
3125
3160
|
__name: "busi-dept",
|
|
3126
3161
|
props: {
|
|
3127
3162
|
modelValue: {},
|
|
@@ -3131,78 +3166,78 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3131
3166
|
dialogTitle: { default: "选择部门" }
|
|
3132
3167
|
},
|
|
3133
3168
|
emits: ["update:modelValue", "change"],
|
|
3134
|
-
setup(e, { expose:
|
|
3135
|
-
const
|
|
3136
|
-
var
|
|
3137
|
-
return ((
|
|
3138
|
-
}),
|
|
3169
|
+
setup(e, { expose: E, emit: T }) {
|
|
3170
|
+
const l = e, o = T, r = D(!1), u = D(""), v = D(!1), h = D(), p = D([]), y = D(null), $ = D(null), k = D([]), f = D([]), w = W(() => {
|
|
3171
|
+
var F;
|
|
3172
|
+
return ((F = y.value) == null ? void 0 : F.dept_name) || "";
|
|
3173
|
+
}), z = (F) => {
|
|
3139
3174
|
var R;
|
|
3140
|
-
return ((R =
|
|
3141
|
-
}, L = (
|
|
3142
|
-
he().post(`/proxy/sys/dept/api/get_sub_depts/${
|
|
3143
|
-
|
|
3175
|
+
return ((R = $.value) == null ? void 0 : R.dept_no) === F.dept_no;
|
|
3176
|
+
}, L = (F) => {
|
|
3177
|
+
he().post(`/proxy/sys/dept/api/get_sub_depts/${F}`).then((R) => {
|
|
3178
|
+
p.value = R.data || [];
|
|
3144
3179
|
});
|
|
3145
3180
|
}, K = () => {
|
|
3146
|
-
|
|
3181
|
+
l.disabled || (r.value = !0, $.value = y.value ? { ...y.value } : null, f.value = [{ dept_no: "10000001", dept_name: "迈瑞(Mindray)" }], L("10000001"));
|
|
3147
3182
|
}, s = () => {
|
|
3148
|
-
|
|
3149
|
-
},
|
|
3183
|
+
r.value = !1, u.value = "", v.value = !1, k.value = [];
|
|
3184
|
+
}, t = () => {
|
|
3150
3185
|
v.value = !0;
|
|
3151
|
-
},
|
|
3152
|
-
var
|
|
3153
|
-
v.value = !1,
|
|
3154
|
-
}, b = (
|
|
3155
|
-
|
|
3156
|
-
}, X = (
|
|
3157
|
-
|
|
3186
|
+
}, C = () => {
|
|
3187
|
+
var F;
|
|
3188
|
+
v.value = !1, u.value = "", k.value = [], (F = h.value) == null || F.blur();
|
|
3189
|
+
}, b = (F) => {
|
|
3190
|
+
f.value.push({ dept_no: F.dept_no, dept_name: F.dept_name }), L(F.dept_no);
|
|
3191
|
+
}, X = (F) => {
|
|
3192
|
+
F.has_children ? b(F) : oe(F);
|
|
3158
3193
|
}, M = () => {
|
|
3159
|
-
if (
|
|
3160
|
-
|
|
3161
|
-
const
|
|
3162
|
-
L(
|
|
3194
|
+
if (f.value.length > 1) {
|
|
3195
|
+
f.value.pop();
|
|
3196
|
+
const F = f.value[f.value.length - 1];
|
|
3197
|
+
L(F.dept_no);
|
|
3163
3198
|
}
|
|
3164
|
-
}, oe = (
|
|
3165
|
-
|
|
3199
|
+
}, oe = (F) => {
|
|
3200
|
+
$.value = F;
|
|
3166
3201
|
}, de = () => {
|
|
3167
|
-
|
|
3202
|
+
$.value = null;
|
|
3168
3203
|
}, se = () => {
|
|
3169
|
-
y.value =
|
|
3204
|
+
y.value = $.value ? { ...$.value } : null, pe(), s();
|
|
3170
3205
|
}, pe = () => {
|
|
3171
|
-
var
|
|
3172
|
-
o("update:modelValue", (
|
|
3206
|
+
var F;
|
|
3207
|
+
o("update:modelValue", (F = y.value) == null ? void 0 : F.dept_no), o("change", y.value || void 0);
|
|
3173
3208
|
}, fe = () => {
|
|
3174
3209
|
y.value = null, o("update:modelValue", void 0), o("change", void 0);
|
|
3175
3210
|
};
|
|
3176
3211
|
let re;
|
|
3177
3212
|
const te = () => {
|
|
3178
3213
|
clearTimeout(re), re = setTimeout(() => {
|
|
3179
|
-
if (!
|
|
3180
|
-
|
|
3214
|
+
if (!u.value.trim()) {
|
|
3215
|
+
k.value = [];
|
|
3181
3216
|
return;
|
|
3182
3217
|
}
|
|
3183
|
-
he().post("/proxy/sys/dept/api/search_dept", { keyword:
|
|
3184
|
-
|
|
3218
|
+
he().post("/proxy/sys/dept/api/search_dept", { keyword: u.value }).then((F) => {
|
|
3219
|
+
k.value = F.data || [];
|
|
3185
3220
|
});
|
|
3186
3221
|
}, 300);
|
|
3187
3222
|
}, ve = () => {
|
|
3188
|
-
|
|
3223
|
+
u.value = "", k.value = [];
|
|
3189
3224
|
};
|
|
3190
|
-
return
|
|
3225
|
+
return E({
|
|
3191
3226
|
openDialog: K,
|
|
3192
3227
|
getSelectedDept: () => y.value,
|
|
3193
3228
|
getSelectedId: () => {
|
|
3194
|
-
var
|
|
3195
|
-
return (
|
|
3229
|
+
var F;
|
|
3230
|
+
return (F = y.value) == null ? void 0 : F.dept_no;
|
|
3196
3231
|
},
|
|
3197
3232
|
clear: fe
|
|
3198
|
-
}), (
|
|
3199
|
-
const J = I("el-icon"), ce = I("el-input"), ge = I("el-tag"),
|
|
3200
|
-
return a(),
|
|
3233
|
+
}), (F, R) => {
|
|
3234
|
+
const J = I("el-icon"), ce = I("el-input"), ge = I("el-tag"), S = I("el-button"), V = I("el-dialog");
|
|
3235
|
+
return a(), g("div", {
|
|
3201
3236
|
class: ie(["busi-dept", { "is-disabled": e.disabled }])
|
|
3202
3237
|
}, [
|
|
3203
3238
|
n(ce, {
|
|
3204
3239
|
class: "busi-dept__search",
|
|
3205
|
-
"model-value":
|
|
3240
|
+
"model-value": w.value,
|
|
3206
3241
|
placeholder: e.placeholder,
|
|
3207
3242
|
disabled: e.disabled,
|
|
3208
3243
|
readonly: "",
|
|
@@ -3210,12 +3245,12 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3210
3245
|
onClick: K,
|
|
3211
3246
|
onClear: fe
|
|
3212
3247
|
}, {
|
|
3213
|
-
suffix:
|
|
3248
|
+
suffix: i(() => [
|
|
3214
3249
|
n(J, {
|
|
3215
3250
|
class: "busi-dept__icon",
|
|
3216
3251
|
onClick: ye(K, ["stop"])
|
|
3217
3252
|
}, {
|
|
3218
|
-
default:
|
|
3253
|
+
default: i(() => [
|
|
3219
3254
|
n(U(be))
|
|
3220
3255
|
]),
|
|
3221
3256
|
_: 1
|
|
@@ -3223,9 +3258,9 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3223
3258
|
]),
|
|
3224
3259
|
_: 1
|
|
3225
3260
|
}, 8, ["model-value", "placeholder", "disabled", "clearable"]),
|
|
3226
|
-
n(
|
|
3227
|
-
modelValue:
|
|
3228
|
-
"onUpdate:modelValue": R[1] || (R[1] = (_) =>
|
|
3261
|
+
n(V, {
|
|
3262
|
+
modelValue: r.value,
|
|
3263
|
+
"onUpdate:modelValue": R[1] || (R[1] = (_) => r.value = _),
|
|
3229
3264
|
width: "960px",
|
|
3230
3265
|
"close-on-click-modal": !1,
|
|
3231
3266
|
"show-close": !1,
|
|
@@ -3233,82 +3268,82 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3233
3268
|
class: "dept-dialog",
|
|
3234
3269
|
onClose: s
|
|
3235
3270
|
}, {
|
|
3236
|
-
header:
|
|
3237
|
-
d("div",
|
|
3238
|
-
|
|
3271
|
+
header: i(() => [
|
|
3272
|
+
d("div", da, [
|
|
3273
|
+
f.value.length > 1 ? (a(), g("span", {
|
|
3239
3274
|
key: 0,
|
|
3240
3275
|
class: "dept-dialog__back",
|
|
3241
3276
|
onClick: M
|
|
3242
3277
|
}, [
|
|
3243
3278
|
n(J, null, {
|
|
3244
|
-
default:
|
|
3279
|
+
default: i(() => [
|
|
3245
3280
|
n(U(qe))
|
|
3246
3281
|
]),
|
|
3247
3282
|
_: 1
|
|
3248
3283
|
})
|
|
3249
|
-
])) :
|
|
3250
|
-
d("span",
|
|
3284
|
+
])) : q("", !0),
|
|
3285
|
+
d("span", ra, O(e.dialogTitle), 1),
|
|
3251
3286
|
d("span", {
|
|
3252
3287
|
class: "dept-dialog__close",
|
|
3253
3288
|
onClick: s
|
|
3254
3289
|
}, [
|
|
3255
3290
|
n(J, null, {
|
|
3256
|
-
default:
|
|
3257
|
-
n(U(
|
|
3291
|
+
default: i(() => [
|
|
3292
|
+
n(U(ke))
|
|
3258
3293
|
]),
|
|
3259
3294
|
_: 1
|
|
3260
3295
|
})
|
|
3261
3296
|
])
|
|
3262
3297
|
])
|
|
3263
3298
|
]),
|
|
3264
|
-
footer:
|
|
3265
|
-
d("div",
|
|
3266
|
-
d("div",
|
|
3267
|
-
|
|
3299
|
+
footer: i(() => [
|
|
3300
|
+
d("div", $a, [
|
|
3301
|
+
d("div", Fa, [
|
|
3302
|
+
$.value ? (a(), A(ge, {
|
|
3268
3303
|
key: 0,
|
|
3269
3304
|
type: "danger",
|
|
3270
3305
|
closable: "",
|
|
3271
3306
|
onClose: de
|
|
3272
3307
|
}, {
|
|
3273
|
-
default:
|
|
3274
|
-
N(O(
|
|
3308
|
+
default: i(() => [
|
|
3309
|
+
N(O($.value.dept_name), 1)
|
|
3275
3310
|
]),
|
|
3276
3311
|
_: 1
|
|
3277
|
-
})) :
|
|
3312
|
+
})) : q("", !0)
|
|
3278
3313
|
]),
|
|
3279
|
-
n(
|
|
3314
|
+
n(S, {
|
|
3280
3315
|
type: "custom",
|
|
3281
3316
|
onClick: se
|
|
3282
3317
|
}, {
|
|
3283
|
-
default:
|
|
3318
|
+
default: i(() => [...R[6] || (R[6] = [
|
|
3284
3319
|
N("确定", -1)
|
|
3285
3320
|
])]),
|
|
3286
3321
|
_: 1
|
|
3287
3322
|
})
|
|
3288
3323
|
])
|
|
3289
3324
|
]),
|
|
3290
|
-
default:
|
|
3291
|
-
d("div",
|
|
3325
|
+
default: i(() => [
|
|
3326
|
+
d("div", ca, [
|
|
3292
3327
|
n(ce, {
|
|
3293
3328
|
ref_key: "searchInputRef",
|
|
3294
|
-
ref:
|
|
3295
|
-
modelValue:
|
|
3296
|
-
"onUpdate:modelValue": R[0] || (R[0] = (_) =>
|
|
3329
|
+
ref: h,
|
|
3330
|
+
modelValue: u.value,
|
|
3331
|
+
"onUpdate:modelValue": R[0] || (R[0] = (_) => u.value = _),
|
|
3297
3332
|
placeholder: "搜索部门",
|
|
3298
3333
|
"prefix-icon": U(be),
|
|
3299
3334
|
clearable: "",
|
|
3300
|
-
onFocus:
|
|
3335
|
+
onFocus: t,
|
|
3301
3336
|
onInput: te,
|
|
3302
3337
|
onClear: ve
|
|
3303
3338
|
}, null, 8, ["modelValue", "prefix-icon"]),
|
|
3304
|
-
v.value ? (a(),
|
|
3339
|
+
v.value ? (a(), g("span", {
|
|
3305
3340
|
key: 0,
|
|
3306
3341
|
class: "dept-dialog__search-cancel",
|
|
3307
|
-
onClick:
|
|
3308
|
-
}, "取消")) :
|
|
3342
|
+
onClick: C
|
|
3343
|
+
}, "取消")) : q("", !0)
|
|
3309
3344
|
]),
|
|
3310
|
-
v.value ? (a(),
|
|
3311
|
-
(a(!0),
|
|
3345
|
+
v.value ? (a(), g("div", fa, [
|
|
3346
|
+
(a(!0), g(G, null, ne(k.value, (_) => (a(), g("div", {
|
|
3312
3347
|
key: _.dept_no,
|
|
3313
3348
|
class: "dept-dialog__item",
|
|
3314
3349
|
onClick: (Y) => oe(_)
|
|
@@ -3316,28 +3351,28 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3316
3351
|
R[2] || (R[2] = d("div", { class: "dept-dialog__item-avatar" }, [
|
|
3317
3352
|
d("i", { class: "iconfont icon-zuzhibumen" })
|
|
3318
3353
|
], -1)),
|
|
3319
|
-
d("div",
|
|
3320
|
-
d("div",
|
|
3321
|
-
d("div",
|
|
3354
|
+
d("div", pa, [
|
|
3355
|
+
d("div", va, O(_.dept_name), 1),
|
|
3356
|
+
d("div", ga, O(_.dept_pname), 1)
|
|
3322
3357
|
]),
|
|
3323
|
-
d("div",
|
|
3358
|
+
d("div", ha, [
|
|
3324
3359
|
d("span", {
|
|
3325
|
-
class: ie(["dept-dialog__checkbox", { "is-checked":
|
|
3360
|
+
class: ie(["dept-dialog__checkbox", { "is-checked": z(_) }])
|
|
3326
3361
|
}, null, 2)
|
|
3327
3362
|
])
|
|
3328
|
-
], 8,
|
|
3329
|
-
|
|
3330
|
-
|
|
3363
|
+
], 8, ma))), 128)),
|
|
3364
|
+
u.value && k.value.length === 0 ? (a(), g("div", ba, " 未找到相关部门 ")) : q("", !0),
|
|
3365
|
+
u.value ? q("", !0) : (a(), g("div", ya, [
|
|
3331
3366
|
n(J, { class: "dept-dialog__empty-icon" }, {
|
|
3332
|
-
default:
|
|
3367
|
+
default: i(() => [
|
|
3333
3368
|
n(U(be))
|
|
3334
3369
|
]),
|
|
3335
3370
|
_: 1
|
|
3336
3371
|
}),
|
|
3337
3372
|
R[3] || (R[3] = d("div", null, "请输入关键词搜索", -1))
|
|
3338
3373
|
]))
|
|
3339
|
-
])) : (a(),
|
|
3340
|
-
(a(!0),
|
|
3374
|
+
])) : (a(), g("div", _a, [
|
|
3375
|
+
(a(!0), g(G, null, ne(p.value, (_) => (a(), g("div", {
|
|
3341
3376
|
key: _.dept_no,
|
|
3342
3377
|
class: "dept-dialog__item",
|
|
3343
3378
|
onClick: (Y) => X(_)
|
|
@@ -3347,21 +3382,21 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3347
3382
|
onClick: ye((Y) => oe(_), ["stop"])
|
|
3348
3383
|
}, [
|
|
3349
3384
|
d("span", {
|
|
3350
|
-
class: ie(["dept-dialog__checkbox", { "is-checked":
|
|
3385
|
+
class: ie(["dept-dialog__checkbox", { "is-checked": z(_) }])
|
|
3351
3386
|
}, null, 2)
|
|
3352
|
-
], 8,
|
|
3387
|
+
], 8, Va),
|
|
3353
3388
|
R[5] || (R[5] = d("div", { class: "dept-dialog__item-avatar" }, [
|
|
3354
3389
|
d("i", { class: "iconfont icon-zuzhibumen" })
|
|
3355
3390
|
], -1)),
|
|
3356
3391
|
d("div", ka, [
|
|
3357
|
-
d("div",
|
|
3358
|
-
d("div",
|
|
3392
|
+
d("div", Ca, O(_.dept_name), 1),
|
|
3393
|
+
d("div", xa, O(_.dept_pname), 1)
|
|
3359
3394
|
]),
|
|
3360
|
-
_.has_children ? (a(),
|
|
3395
|
+
_.has_children ? (a(), g("div", Ba, [...R[4] || (R[4] = [
|
|
3361
3396
|
d("i", { class: "iconfont icon-arrow-right" }, null, -1)
|
|
3362
|
-
])])) :
|
|
3363
|
-
], 8,
|
|
3364
|
-
|
|
3397
|
+
])])) : q("", !0)
|
|
3398
|
+
], 8, wa))), 128)),
|
|
3399
|
+
p.value.length === 0 ? (a(), g("div", Ea, " 暂无数据 ")) : q("", !0)
|
|
3365
3400
|
]))
|
|
3366
3401
|
]),
|
|
3367
3402
|
_: 1
|
|
@@ -3369,10 +3404,10 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3369
3404
|
], 2);
|
|
3370
3405
|
};
|
|
3371
3406
|
}
|
|
3372
|
-
}),
|
|
3407
|
+
}), Da = { class: "outuser-dialog__header" }, Ta = { class: "outuser-dialog__filter" }, Sa = { class: "outuser-dialog__filter-item" }, za = { class: "outuser-dialog__filter-item" }, Ra = {
|
|
3373
3408
|
class: "outuser-dialog__table-wrapper",
|
|
3374
3409
|
style: { height: "360px" }
|
|
3375
|
-
},
|
|
3410
|
+
}, Ua = { class: "outuser-dialog__pagination" }, Aa = { class: "outuser-dialog__footer" }, Vo = /* @__PURE__ */ ee({
|
|
3376
3411
|
__name: "busi-outuser",
|
|
3377
3412
|
props: {
|
|
3378
3413
|
modelValue: {},
|
|
@@ -3381,69 +3416,69 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3381
3416
|
clearable: { type: Boolean, default: !0 }
|
|
3382
3417
|
},
|
|
3383
3418
|
emits: ["update:modelValue", "change"],
|
|
3384
|
-
setup(e, { expose:
|
|
3385
|
-
const
|
|
3419
|
+
setup(e, { expose: E, emit: T }) {
|
|
3420
|
+
const l = e, o = T, r = D(!1), u = D(!1), v = He({
|
|
3386
3421
|
username: "",
|
|
3387
3422
|
userno: ""
|
|
3388
|
-
}),
|
|
3423
|
+
}), h = He({
|
|
3389
3424
|
currentPage: 1,
|
|
3390
3425
|
pageSize: 10,
|
|
3391
3426
|
total: 0
|
|
3392
|
-
}),
|
|
3393
|
-
var
|
|
3394
|
-
return ((
|
|
3395
|
-
}),
|
|
3396
|
-
|
|
3427
|
+
}), p = D([]), y = D(null), $ = D(""), k = W(() => {
|
|
3428
|
+
var C;
|
|
3429
|
+
return ((C = y.value) == null ? void 0 : C.username) || "";
|
|
3430
|
+
}), f = async () => {
|
|
3431
|
+
u.value = !0;
|
|
3397
3432
|
try {
|
|
3398
|
-
const
|
|
3399
|
-
currentPage:
|
|
3400
|
-
pageSize:
|
|
3401
|
-
keywords:
|
|
3433
|
+
const C = [v.username, v.userno].filter(Boolean).join(" "), b = await he().post("/proxy/sys/outuser/api/list", {
|
|
3434
|
+
currentPage: h.currentPage,
|
|
3435
|
+
pageSize: h.pageSize,
|
|
3436
|
+
keywords: C
|
|
3402
3437
|
});
|
|
3403
|
-
|
|
3438
|
+
p.value = b.data.items || [], h.total = b.data.total_items || 0;
|
|
3404
3439
|
} finally {
|
|
3405
|
-
|
|
3440
|
+
u.value = !1;
|
|
3406
3441
|
}
|
|
3407
|
-
},
|
|
3408
|
-
var
|
|
3409
|
-
|
|
3410
|
-
},
|
|
3411
|
-
|
|
3442
|
+
}, w = () => {
|
|
3443
|
+
var C;
|
|
3444
|
+
l.disabled || (r.value = !0, $.value = ((C = y.value) == null ? void 0 : C.fid) || "", h.currentPage = 1, v.username = "", v.userno = "", f());
|
|
3445
|
+
}, z = () => {
|
|
3446
|
+
r.value = !1;
|
|
3412
3447
|
}, L = () => {
|
|
3413
|
-
|
|
3414
|
-
}, K = (
|
|
3415
|
-
|
|
3448
|
+
h.currentPage = 1, f();
|
|
3449
|
+
}, K = (C) => {
|
|
3450
|
+
$.value = C.fid;
|
|
3416
3451
|
}, s = () => {
|
|
3417
|
-
const
|
|
3418
|
-
|
|
3419
|
-
},
|
|
3452
|
+
const C = p.value.find((b) => b.fid === $.value);
|
|
3453
|
+
C && (y.value = C, o("update:modelValue", C.userno), o("change", C)), z();
|
|
3454
|
+
}, t = () => {
|
|
3420
3455
|
y.value = null, o("update:modelValue", void 0), o("change", void 0);
|
|
3421
3456
|
};
|
|
3422
|
-
return
|
|
3423
|
-
openDialog:
|
|
3457
|
+
return E({
|
|
3458
|
+
openDialog: w,
|
|
3424
3459
|
getSelectedUser: () => y.value,
|
|
3425
|
-
clear:
|
|
3426
|
-
}), (
|
|
3460
|
+
clear: t
|
|
3461
|
+
}), (C, b) => {
|
|
3427
3462
|
const X = I("el-icon"), M = I("el-input"), oe = I("el-button"), de = I("el-radio"), se = I("el-table-column"), pe = I("el-table"), fe = I("el-dialog"), re = Ke("loading");
|
|
3428
|
-
return a(),
|
|
3463
|
+
return a(), g("div", {
|
|
3429
3464
|
class: ie(["busi-outuser", { "is-disabled": e.disabled }])
|
|
3430
3465
|
}, [
|
|
3431
3466
|
n(M, {
|
|
3432
3467
|
class: "busi-outuser__search",
|
|
3433
|
-
"model-value":
|
|
3468
|
+
"model-value": k.value,
|
|
3434
3469
|
placeholder: e.placeholder,
|
|
3435
3470
|
disabled: e.disabled,
|
|
3436
3471
|
readonly: "",
|
|
3437
3472
|
clearable: e.clearable && y.value !== null,
|
|
3438
|
-
onClick:
|
|
3439
|
-
onClear:
|
|
3473
|
+
onClick: w,
|
|
3474
|
+
onClear: t
|
|
3440
3475
|
}, {
|
|
3441
|
-
suffix:
|
|
3476
|
+
suffix: i(() => [
|
|
3442
3477
|
n(X, {
|
|
3443
3478
|
class: "busi-outuser__icon",
|
|
3444
|
-
onClick: ye(
|
|
3479
|
+
onClick: ye(w, ["stop"])
|
|
3445
3480
|
}, {
|
|
3446
|
-
default:
|
|
3481
|
+
default: i(() => [
|
|
3447
3482
|
n(U(be))
|
|
3448
3483
|
]),
|
|
3449
3484
|
_: 1
|
|
@@ -3452,35 +3487,35 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3452
3487
|
_: 1
|
|
3453
3488
|
}, 8, ["model-value", "placeholder", "disabled", "clearable"]),
|
|
3454
3489
|
n(fe, {
|
|
3455
|
-
modelValue:
|
|
3456
|
-
"onUpdate:modelValue": b[6] || (b[6] = (te) =>
|
|
3490
|
+
modelValue: r.value,
|
|
3491
|
+
"onUpdate:modelValue": b[6] || (b[6] = (te) => r.value = te),
|
|
3457
3492
|
width: "960px",
|
|
3458
3493
|
"close-on-click-modal": !1,
|
|
3459
3494
|
"show-close": !1,
|
|
3460
3495
|
"align-center": "",
|
|
3461
3496
|
class: "outuser-dialog",
|
|
3462
|
-
onClose:
|
|
3497
|
+
onClose: z
|
|
3463
3498
|
}, {
|
|
3464
|
-
header:
|
|
3465
|
-
d("div",
|
|
3499
|
+
header: i(() => [
|
|
3500
|
+
d("div", Da, [
|
|
3466
3501
|
b[7] || (b[7] = d("span", { class: "outuser-dialog__title" }, "选择外包顾问", -1)),
|
|
3467
3502
|
d("span", {
|
|
3468
3503
|
class: "outuser-dialog__close",
|
|
3469
|
-
onClick:
|
|
3504
|
+
onClick: z
|
|
3470
3505
|
}, [
|
|
3471
3506
|
n(X, null, {
|
|
3472
|
-
default:
|
|
3473
|
-
n(U(
|
|
3507
|
+
default: i(() => [
|
|
3508
|
+
n(U(ke))
|
|
3474
3509
|
]),
|
|
3475
3510
|
_: 1
|
|
3476
3511
|
})
|
|
3477
3512
|
])
|
|
3478
3513
|
])
|
|
3479
3514
|
]),
|
|
3480
|
-
footer:
|
|
3481
|
-
d("div",
|
|
3482
|
-
n(oe, { onClick:
|
|
3483
|
-
default:
|
|
3515
|
+
footer: i(() => [
|
|
3516
|
+
d("div", Aa, [
|
|
3517
|
+
n(oe, { onClick: z }, {
|
|
3518
|
+
default: i(() => [...b[11] || (b[11] = [
|
|
3484
3519
|
N("取消", -1)
|
|
3485
3520
|
])]),
|
|
3486
3521
|
_: 1
|
|
@@ -3489,16 +3524,16 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3489
3524
|
type: "custom",
|
|
3490
3525
|
onClick: s
|
|
3491
3526
|
}, {
|
|
3492
|
-
default:
|
|
3527
|
+
default: i(() => [...b[12] || (b[12] = [
|
|
3493
3528
|
N("确定", -1)
|
|
3494
3529
|
])]),
|
|
3495
3530
|
_: 1
|
|
3496
3531
|
})
|
|
3497
3532
|
])
|
|
3498
3533
|
]),
|
|
3499
|
-
default:
|
|
3500
|
-
d("div",
|
|
3501
|
-
d("div",
|
|
3534
|
+
default: i(() => [
|
|
3535
|
+
d("div", Ta, [
|
|
3536
|
+
d("div", Sa, [
|
|
3502
3537
|
b[8] || (b[8] = d("span", { class: "outuser-dialog__filter-label" }, "姓名", -1)),
|
|
3503
3538
|
n(M, {
|
|
3504
3539
|
modelValue: v.username,
|
|
@@ -3507,7 +3542,7 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3507
3542
|
clearable: ""
|
|
3508
3543
|
}, null, 8, ["modelValue"])
|
|
3509
3544
|
]),
|
|
3510
|
-
d("div",
|
|
3545
|
+
d("div", za, [
|
|
3511
3546
|
b[9] || (b[9] = d("span", { class: "outuser-dialog__filter-label" }, "工号", -1)),
|
|
3512
3547
|
n(M, {
|
|
3513
3548
|
modelValue: v.userno,
|
|
@@ -3517,30 +3552,30 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3517
3552
|
}, null, 8, ["modelValue"])
|
|
3518
3553
|
]),
|
|
3519
3554
|
n(oe, { onClick: L }, {
|
|
3520
|
-
default:
|
|
3555
|
+
default: i(() => [...b[10] || (b[10] = [
|
|
3521
3556
|
d("i", { class: "iconfont icon-search" }, null, -1),
|
|
3522
3557
|
N(" 搜 索 ", -1)
|
|
3523
3558
|
])]),
|
|
3524
3559
|
_: 1
|
|
3525
3560
|
})
|
|
3526
3561
|
]),
|
|
3527
|
-
d("div",
|
|
3562
|
+
d("div", Ra, [
|
|
3528
3563
|
Ye((a(), A(pe, {
|
|
3529
|
-
data:
|
|
3564
|
+
data: p.value,
|
|
3530
3565
|
border: "",
|
|
3531
3566
|
class: "outuser-dialog__table",
|
|
3532
3567
|
onRowClick: K
|
|
3533
3568
|
}, {
|
|
3534
|
-
default:
|
|
3569
|
+
default: i(() => [
|
|
3535
3570
|
n(se, {
|
|
3536
3571
|
label: "选择",
|
|
3537
3572
|
width: "60",
|
|
3538
3573
|
align: "center"
|
|
3539
3574
|
}, {
|
|
3540
|
-
default:
|
|
3575
|
+
default: i(({ row: te }) => [
|
|
3541
3576
|
n(de, {
|
|
3542
|
-
modelValue:
|
|
3543
|
-
"onUpdate:modelValue": b[2] || (b[2] = (ve) =>
|
|
3577
|
+
modelValue: $.value,
|
|
3578
|
+
"onUpdate:modelValue": b[2] || (b[2] = (ve) => $.value = ve),
|
|
3544
3579
|
value: te.fid,
|
|
3545
3580
|
onClick: b[3] || (b[3] = ye(() => {
|
|
3546
3581
|
}, ["stop"]))
|
|
@@ -3581,18 +3616,18 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3581
3616
|
]),
|
|
3582
3617
|
_: 1
|
|
3583
3618
|
}, 8, ["data"])), [
|
|
3584
|
-
[re,
|
|
3619
|
+
[re, u.value]
|
|
3585
3620
|
])
|
|
3586
3621
|
]),
|
|
3587
|
-
d("div",
|
|
3588
|
-
n(
|
|
3589
|
-
page:
|
|
3590
|
-
"onUpdate:page": b[4] || (b[4] = (te) =>
|
|
3591
|
-
size:
|
|
3592
|
-
"onUpdate:size": b[5] || (b[5] = (te) =>
|
|
3593
|
-
total:
|
|
3622
|
+
d("div", Ua, [
|
|
3623
|
+
n(Et, {
|
|
3624
|
+
page: h.currentPage,
|
|
3625
|
+
"onUpdate:page": b[4] || (b[4] = (te) => h.currentPage = te),
|
|
3626
|
+
size: h.pageSize,
|
|
3627
|
+
"onUpdate:size": b[5] || (b[5] = (te) => h.pageSize = te),
|
|
3628
|
+
total: h.total,
|
|
3594
3629
|
layout: "sizes, prev, pager, next, jumper, total",
|
|
3595
|
-
onChange:
|
|
3630
|
+
onChange: f
|
|
3596
3631
|
}, null, 8, ["page", "size", "total"])
|
|
3597
3632
|
])
|
|
3598
3633
|
]),
|
|
@@ -3601,25 +3636,25 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3601
3636
|
], 2);
|
|
3602
3637
|
};
|
|
3603
3638
|
}
|
|
3604
|
-
}),
|
|
3639
|
+
}), Pa = { class: "base-file-preview" }, Ia = {
|
|
3605
3640
|
key: 0,
|
|
3606
3641
|
class: "preview-loading"
|
|
3607
|
-
},
|
|
3642
|
+
}, La = {
|
|
3608
3643
|
key: 0,
|
|
3609
3644
|
class: "preview-content preview-image"
|
|
3610
|
-
},
|
|
3645
|
+
}, Ma = ["src", "alt"], Na = {
|
|
3611
3646
|
key: 1,
|
|
3612
3647
|
class: "preview-content preview-pdf"
|
|
3613
|
-
},
|
|
3648
|
+
}, Oa = {
|
|
3614
3649
|
key: 2,
|
|
3615
3650
|
class: "preview-content preview-docx"
|
|
3616
|
-
},
|
|
3651
|
+
}, Ha = {
|
|
3617
3652
|
key: 3,
|
|
3618
3653
|
class: "preview-content preview-excel"
|
|
3619
|
-
},
|
|
3654
|
+
}, ja = {
|
|
3620
3655
|
key: 4,
|
|
3621
3656
|
class: "preview-content preview-unsupported"
|
|
3622
|
-
},
|
|
3657
|
+
}, Ka = /* @__PURE__ */ ee({
|
|
3623
3658
|
__name: "base-file-preview",
|
|
3624
3659
|
props: {
|
|
3625
3660
|
src: {},
|
|
@@ -3628,59 +3663,59 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3628
3663
|
loading: { type: Boolean, default: !1 }
|
|
3629
3664
|
},
|
|
3630
3665
|
emits: ["rendered", "error"],
|
|
3631
|
-
setup(e, { expose:
|
|
3632
|
-
const
|
|
3633
|
-
const
|
|
3634
|
-
return ["png", "jpg", "jpeg", "gif", "bmp", "webp"].includes(
|
|
3635
|
-
}),
|
|
3666
|
+
setup(e, { expose: E, emit: T }) {
|
|
3667
|
+
const l = $e(async () => (await Promise.resolve({ }), (await import("./vue-office-docx-q6qJ2vqb.js")).default)), o = $e(async () => (await Promise.resolve({ }), (await import("./vue-office-excel-B3pq0cRz.js")).default)), r = $e(async () => (await import("./vue-office-pdf-DOPbwMbO.js")).default), u = e, v = T, h = W(() => {
|
|
3668
|
+
const k = u.fileExt.toLowerCase();
|
|
3669
|
+
return ["png", "jpg", "jpeg", "gif", "bmp", "webp"].includes(k) ? "image" : k === "pdf" ? "pdf" : ["doc", "docx"].includes(k) ? "docx" : ["xls", "xlsx"].includes(k) ? "excel" : "unsupported";
|
|
3670
|
+
}), p = W(() => h.value !== "unsupported");
|
|
3636
3671
|
function y() {
|
|
3637
3672
|
v("rendered");
|
|
3638
3673
|
}
|
|
3639
|
-
function
|
|
3640
|
-
v("error",
|
|
3674
|
+
function $(k) {
|
|
3675
|
+
v("error", k);
|
|
3641
3676
|
}
|
|
3642
|
-
return
|
|
3643
|
-
previewType:
|
|
3644
|
-
isSupported:
|
|
3645
|
-
}), (
|
|
3646
|
-
const
|
|
3647
|
-
return a(),
|
|
3648
|
-
e.loading ? (a(),
|
|
3649
|
-
n(
|
|
3650
|
-
default:
|
|
3651
|
-
n(U(
|
|
3677
|
+
return E({
|
|
3678
|
+
previewType: h,
|
|
3679
|
+
isSupported: p
|
|
3680
|
+
}), (k, f) => {
|
|
3681
|
+
const w = I("el-icon"), z = I("el-empty");
|
|
3682
|
+
return a(), g("div", Pa, [
|
|
3683
|
+
e.loading ? (a(), g("div", Ia, [
|
|
3684
|
+
n(w, { class: "loading-icon" }, {
|
|
3685
|
+
default: i(() => [
|
|
3686
|
+
n(U(Vl))
|
|
3652
3687
|
]),
|
|
3653
3688
|
_: 1
|
|
3654
3689
|
}),
|
|
3655
|
-
|
|
3656
|
-
])) : (a(),
|
|
3657
|
-
|
|
3690
|
+
f[0] || (f[0] = d("span", null, "加载中...", -1))
|
|
3691
|
+
])) : (a(), g(G, { key: 1 }, [
|
|
3692
|
+
h.value === "image" ? (a(), g("div", La, [
|
|
3658
3693
|
d("img", {
|
|
3659
3694
|
src: e.src,
|
|
3660
3695
|
alt: e.fileName
|
|
3661
|
-
}, null, 8,
|
|
3662
|
-
])) :
|
|
3663
|
-
n(U(
|
|
3696
|
+
}, null, 8, Ma)
|
|
3697
|
+
])) : h.value === "pdf" ? (a(), g("div", Na, [
|
|
3698
|
+
n(U(r), {
|
|
3664
3699
|
src: e.src,
|
|
3665
3700
|
onRendered: y,
|
|
3666
|
-
onError:
|
|
3701
|
+
onError: $
|
|
3667
3702
|
}, null, 8, ["src"])
|
|
3668
|
-
])) :
|
|
3669
|
-
n(U(
|
|
3703
|
+
])) : h.value === "docx" ? (a(), g("div", Oa, [
|
|
3704
|
+
n(U(l), {
|
|
3670
3705
|
src: e.src,
|
|
3671
3706
|
onRendered: y,
|
|
3672
|
-
onError:
|
|
3707
|
+
onError: $
|
|
3673
3708
|
}, null, 8, ["src"])
|
|
3674
|
-
])) :
|
|
3709
|
+
])) : h.value === "excel" ? (a(), g("div", Ha, [
|
|
3675
3710
|
n(U(o), {
|
|
3676
3711
|
src: e.src,
|
|
3677
3712
|
onRendered: y,
|
|
3678
|
-
onError:
|
|
3713
|
+
onError: $
|
|
3679
3714
|
}, null, 8, ["src"])
|
|
3680
|
-
])) : (a(),
|
|
3681
|
-
n(
|
|
3682
|
-
default:
|
|
3683
|
-
|
|
3715
|
+
])) : (a(), g("div", ja, [
|
|
3716
|
+
n(z, { description: "该文件类型不支持在线预览" }, {
|
|
3717
|
+
default: i(() => [
|
|
3718
|
+
Ve(k.$slots, "unsupported-action", {}, void 0, !0)
|
|
3684
3719
|
]),
|
|
3685
3720
|
_: 3
|
|
3686
3721
|
})
|
|
@@ -3689,13 +3724,13 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3689
3724
|
]);
|
|
3690
3725
|
};
|
|
3691
3726
|
}
|
|
3692
|
-
}),
|
|
3727
|
+
}), Ya = /* @__PURE__ */ xe(Ka, [["__scopeId", "data-v-6e771bad"]]), Wa = { class: "file-preview-page" }, qa = {
|
|
3693
3728
|
key: 0,
|
|
3694
3729
|
class: "preview-error"
|
|
3695
|
-
},
|
|
3730
|
+
}, Ga = {
|
|
3696
3731
|
key: 1,
|
|
3697
3732
|
class: "preview-body"
|
|
3698
|
-
},
|
|
3733
|
+
}, Xa = /* @__PURE__ */ ee({
|
|
3699
3734
|
__name: "busi-file-preview",
|
|
3700
3735
|
props: {
|
|
3701
3736
|
fid: {},
|
|
@@ -3704,13 +3739,13 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3704
3739
|
watermarkText: { default: "" }
|
|
3705
3740
|
},
|
|
3706
3741
|
setup(e) {
|
|
3707
|
-
const
|
|
3708
|
-
function
|
|
3709
|
-
if (!
|
|
3710
|
-
const
|
|
3711
|
-
y && (
|
|
3742
|
+
const E = e, T = D(!0), l = D(""), o = D(""), r = D();
|
|
3743
|
+
function u() {
|
|
3744
|
+
if (!r.value || !E.watermarkText) return;
|
|
3745
|
+
const p = document.createElement("canvas"), y = p.getContext("2d");
|
|
3746
|
+
y && (p.width = 200, p.height = 150, y.font = "16px Arial", y.fillStyle = "rgba(0, 0, 0, 0.12)", y.textAlign = "center", y.textBaseline = "middle", y.translate(p.width / 2, p.height / 2), y.rotate(-25 * Math.PI / 180), y.fillText(E.watermarkText, 0, 0), r.value.style.backgroundImage = `url(${p.toDataURL("image/png")})`);
|
|
3712
3747
|
}
|
|
3713
|
-
function v(
|
|
3748
|
+
function v(p) {
|
|
3714
3749
|
return {
|
|
3715
3750
|
pdf: "application/pdf",
|
|
3716
3751
|
png: "image/png",
|
|
@@ -3723,53 +3758,53 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3723
3758
|
docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
3724
3759
|
xls: "application/vnd.ms-excel",
|
|
3725
3760
|
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
3726
|
-
}[
|
|
3761
|
+
}[p.toLowerCase()] || "application/octet-stream";
|
|
3727
3762
|
}
|
|
3728
|
-
async function
|
|
3729
|
-
if (!
|
|
3730
|
-
|
|
3763
|
+
async function h() {
|
|
3764
|
+
if (!E.fid) {
|
|
3765
|
+
l.value = "文件ID不能为空", T.value = !1;
|
|
3731
3766
|
return;
|
|
3732
3767
|
}
|
|
3733
|
-
|
|
3768
|
+
E.fileName && (document.title = `预览 - ${E.fileName}`);
|
|
3734
3769
|
try {
|
|
3735
|
-
const y = await he().get(`/proxy/wf/attachment/api/preview/${
|
|
3770
|
+
const y = await he().get(`/proxy/wf/attachment/api/preview/${E.fid}`, {
|
|
3736
3771
|
responseType: "blob"
|
|
3737
|
-
}),
|
|
3738
|
-
o.value = window.URL.createObjectURL(
|
|
3739
|
-
} catch (
|
|
3740
|
-
console.error("加载文件失败:",
|
|
3772
|
+
}), $ = v(E.fileExt), k = new Blob([y], { type: $ });
|
|
3773
|
+
o.value = window.URL.createObjectURL(k);
|
|
3774
|
+
} catch (p) {
|
|
3775
|
+
console.error("加载文件失败:", p), l.value = "加载文件失败,请稍后重试";
|
|
3741
3776
|
} finally {
|
|
3742
|
-
|
|
3777
|
+
T.value = !1;
|
|
3743
3778
|
}
|
|
3744
3779
|
}
|
|
3745
3780
|
return Qe(() => {
|
|
3746
3781
|
o.value && window.URL.revokeObjectURL(o.value);
|
|
3747
|
-
}), Ce(() =>
|
|
3748
|
-
|
|
3782
|
+
}), Ce(() => E.fid, (p) => {
|
|
3783
|
+
p && (T.value = !0, l.value = "", o.value && (window.URL.revokeObjectURL(o.value), o.value = ""), h());
|
|
3749
3784
|
}), De(() => {
|
|
3750
|
-
|
|
3751
|
-
}), (
|
|
3752
|
-
const
|
|
3753
|
-
return a(),
|
|
3785
|
+
u(), h();
|
|
3786
|
+
}), (p, y) => {
|
|
3787
|
+
const $ = I("el-empty");
|
|
3788
|
+
return a(), g("div", Wa, [
|
|
3754
3789
|
d("div", {
|
|
3755
3790
|
class: "watermark-layer",
|
|
3756
3791
|
ref_key: "watermarkRef",
|
|
3757
|
-
ref:
|
|
3792
|
+
ref: r
|
|
3758
3793
|
}, null, 512),
|
|
3759
|
-
|
|
3760
|
-
n(
|
|
3761
|
-
])) : (a(),
|
|
3762
|
-
n(
|
|
3794
|
+
l.value ? (a(), g("div", qa, [
|
|
3795
|
+
n($, { description: l.value }, null, 8, ["description"])
|
|
3796
|
+
])) : (a(), g("div", Ga, [
|
|
3797
|
+
n(Ya, {
|
|
3763
3798
|
src: o.value,
|
|
3764
|
-
"file-ext":
|
|
3765
|
-
"file-name":
|
|
3766
|
-
loading:
|
|
3799
|
+
"file-ext": E.fileExt,
|
|
3800
|
+
"file-name": E.fileName,
|
|
3801
|
+
loading: T.value
|
|
3767
3802
|
}, null, 8, ["src", "file-ext", "file-name", "loading"])
|
|
3768
3803
|
]))
|
|
3769
3804
|
]);
|
|
3770
3805
|
};
|
|
3771
3806
|
}
|
|
3772
|
-
}),
|
|
3807
|
+
}), ko = /* @__PURE__ */ xe(Xa, [["__scopeId", "data-v-851b5060"]]), Ja = { class: "workflow-process-page" }, Qa = { class: "flow-module-title" }, Za = { class: "flow-page-grid" }, eo = /* @__PURE__ */ ee({
|
|
3773
3808
|
__name: "busi-workflow-process",
|
|
3774
3809
|
props: {
|
|
3775
3810
|
menuTree: {},
|
|
@@ -3777,79 +3812,79 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3777
3812
|
currentPath: { default: "" }
|
|
3778
3813
|
},
|
|
3779
3814
|
setup(e) {
|
|
3780
|
-
const
|
|
3815
|
+
const E = e, T = Cl(), l = xl(), o = Number.MAX_SAFE_INTEGER, r = (s) => {
|
|
3781
3816
|
if (!s) return "";
|
|
3782
|
-
const [
|
|
3783
|
-
return
|
|
3784
|
-
},
|
|
3785
|
-
var
|
|
3817
|
+
const [t] = s.split("?");
|
|
3818
|
+
return t ? t.startsWith("/") ? t : `/${t}` : "";
|
|
3819
|
+
}, u = (s = [], t) => {
|
|
3820
|
+
var C;
|
|
3786
3821
|
for (const b of s) {
|
|
3787
|
-
if (
|
|
3788
|
-
if ((
|
|
3789
|
-
const X =
|
|
3822
|
+
if (t(b)) return b;
|
|
3823
|
+
if ((C = b.children) != null && C.length) {
|
|
3824
|
+
const X = u(b.children, t);
|
|
3790
3825
|
if (X) return X;
|
|
3791
3826
|
}
|
|
3792
3827
|
}
|
|
3793
3828
|
return null;
|
|
3794
|
-
}, v = (s,
|
|
3795
|
-
const
|
|
3796
|
-
return
|
|
3797
|
-
},
|
|
3798
|
-
const b = Number(
|
|
3829
|
+
}, v = (s, t) => {
|
|
3830
|
+
const C = r(t);
|
|
3831
|
+
return C ? u(s, (b) => r(b.path) === C) : null;
|
|
3832
|
+
}, h = (s) => s == null ? "" : Array.isArray(s) ? h(s[0]) : String(s), p = (s, t) => t ? u(s, (C) => h(C.id) === t) : null, y = (s = []) => [...s].sort((t, C) => {
|
|
3833
|
+
const b = Number(t.order_num ?? o), X = Number(C.order_num ?? o);
|
|
3799
3834
|
return b - X;
|
|
3800
|
-
}),
|
|
3801
|
-
id:
|
|
3802
|
-
name:
|
|
3803
|
-
path:
|
|
3804
|
-
order_num:
|
|
3805
|
-
})),
|
|
3806
|
-
const
|
|
3835
|
+
}), $ = (s = []) => y(s).filter((t) => t.category === "flow-page" && !!t.path).map((t) => ({
|
|
3836
|
+
id: t.id ?? t.path,
|
|
3837
|
+
name: t.name || "未命名流程",
|
|
3838
|
+
path: r(t.path),
|
|
3839
|
+
order_num: t.order_num
|
|
3840
|
+
})), k = (s = []) => {
|
|
3841
|
+
const t = [], C = (b) => {
|
|
3807
3842
|
var X;
|
|
3808
3843
|
for (const M of y(b)) {
|
|
3809
3844
|
if (M.category === "flow-module") {
|
|
3810
|
-
|
|
3811
|
-
id: M.id ?? M.name ?? String(
|
|
3845
|
+
t.push({
|
|
3846
|
+
id: M.id ?? M.name ?? String(t.length),
|
|
3812
3847
|
name: M.name || "未命名流程模块",
|
|
3813
3848
|
order_num: M.order_num,
|
|
3814
|
-
pages:
|
|
3849
|
+
pages: $(M.children || [])
|
|
3815
3850
|
});
|
|
3816
3851
|
continue;
|
|
3817
3852
|
}
|
|
3818
|
-
(X = M.children) != null && X.length &&
|
|
3853
|
+
(X = M.children) != null && X.length && C(M.children);
|
|
3819
3854
|
}
|
|
3820
3855
|
};
|
|
3821
|
-
return
|
|
3822
|
-
},
|
|
3823
|
-
const s =
|
|
3824
|
-
return s || v(
|
|
3825
|
-
}), L =
|
|
3826
|
-
var s,
|
|
3827
|
-
return (
|
|
3856
|
+
return C(s), t;
|
|
3857
|
+
}, f = W(() => E.currentPath || T.path), w = W(() => h(E.menuId || T.query.mid)), z = W(() => {
|
|
3858
|
+
const s = p(E.menuTree || [], w.value);
|
|
3859
|
+
return s || v(E.menuTree || [], f.value);
|
|
3860
|
+
}), L = W(() => {
|
|
3861
|
+
var s, t;
|
|
3862
|
+
return (t = (s = z.value) == null ? void 0 : s.children) != null && t.length ? k(z.value.children) : [];
|
|
3828
3863
|
}), K = (s) => {
|
|
3829
3864
|
if (!s) return;
|
|
3830
|
-
const
|
|
3831
|
-
window.open(
|
|
3865
|
+
const t = l.resolve(s);
|
|
3866
|
+
window.open(t.href, "_blank", "noopener,noreferrer");
|
|
3832
3867
|
};
|
|
3833
|
-
return (s,
|
|
3834
|
-
const
|
|
3835
|
-
return a(),
|
|
3836
|
-
L.value.length ? (a(!0),
|
|
3868
|
+
return (s, t) => {
|
|
3869
|
+
const C = I("el-link"), b = I("el-empty");
|
|
3870
|
+
return a(), g("div", Ja, [
|
|
3871
|
+
L.value.length ? (a(!0), g(G, { key: 0 }, ne(L.value, (X) => (a(), g("section", {
|
|
3837
3872
|
key: X.id,
|
|
3838
3873
|
class: "flow-module-section"
|
|
3839
3874
|
}, [
|
|
3840
|
-
d("div",
|
|
3841
|
-
|
|
3875
|
+
d("div", Qa, [
|
|
3876
|
+
t[0] || (t[0] = d("span", { class: "title-arrow" }, "▶", -1)),
|
|
3842
3877
|
d("span", null, O(X.name), 1)
|
|
3843
3878
|
]),
|
|
3844
|
-
d("div",
|
|
3845
|
-
(a(!0),
|
|
3879
|
+
d("div", Za, [
|
|
3880
|
+
(a(!0), g(G, null, ne(X.pages, (M) => (a(), A(C, {
|
|
3846
3881
|
key: M.id,
|
|
3847
3882
|
type: "primary",
|
|
3848
3883
|
underline: "never",
|
|
3849
3884
|
class: "flow-page-link",
|
|
3850
3885
|
onClick: (oe) => K(M.path)
|
|
3851
3886
|
}, {
|
|
3852
|
-
default:
|
|
3887
|
+
default: i(() => [
|
|
3853
3888
|
N(O(M.name), 1)
|
|
3854
3889
|
]),
|
|
3855
3890
|
_: 2
|
|
@@ -3862,32 +3897,33 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
|
|
|
3862
3897
|
]);
|
|
3863
3898
|
};
|
|
3864
3899
|
}
|
|
3865
|
-
}),
|
|
3900
|
+
}), Co = /* @__PURE__ */ xe(eo, [["__scopeId", "data-v-b615549b"]]);
|
|
3866
3901
|
export {
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3902
|
+
yo as BaseApprovalRecord,
|
|
3903
|
+
Fl as BaseButton,
|
|
3904
|
+
po as BaseCheckbox,
|
|
3905
|
+
bo as BaseChinaArea,
|
|
3906
|
+
uo as BaseCollapseToggle,
|
|
3907
|
+
Al as BaseDate,
|
|
3908
|
+
ho as BaseDialog,
|
|
3909
|
+
so as BaseHidden,
|
|
3874
3910
|
Bl as BaseInput,
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3911
|
+
go as BaseLink,
|
|
3912
|
+
Ul as BaseNumber,
|
|
3913
|
+
Et as BasePagination,
|
|
3914
|
+
vo as BaseRadio,
|
|
3915
|
+
Rl as BaseSelect,
|
|
3916
|
+
zl as BaseSwitch,
|
|
3917
|
+
io as BaseTable,
|
|
3918
|
+
ro as BaseTextarea,
|
|
3919
|
+
Pl as BaseTime,
|
|
3920
|
+
mo as BaseUpload,
|
|
3921
|
+
_o as BaseUser,
|
|
3922
|
+
wo as BusiDept,
|
|
3923
|
+
ko as BusiFilePreview,
|
|
3924
|
+
Vo as BusiOutUser,
|
|
3925
|
+
Co as BusiWorkflowProcess,
|
|
3926
|
+
Ol as baseMessageBox,
|
|
3927
|
+
fo as initPortalUiHttp,
|
|
3928
|
+
co as setPortalUiHttp
|
|
3893
3929
|
};
|