nbb-component-ui 1.7.3 → 1.7.4
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.es.js
CHANGED
|
@@ -1,391 +1,391 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as pe, resolveComponent as Y, openBlock as P, createElementBlock as L, Fragment as fe, createVNode as X, withCtx as Q, createTextVNode as Z, createElementVNode as D, toDisplayString as m, unref as $, createCommentVNode as O, renderList as Ne, createBlock as re, ref as ee, watch as _e } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
var
|
|
4
|
-
function
|
|
5
|
-
return
|
|
3
|
+
var me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
|
+
function be(r) {
|
|
5
|
+
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
8
|
-
(function(
|
|
9
|
-
(function(
|
|
10
|
-
|
|
11
|
-
})(
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
return "[" +
|
|
15
|
-
} },
|
|
16
|
-
var i = String(
|
|
17
|
-
return !i || i.length >=
|
|
18
|
-
}, G = { s:
|
|
19
|
-
var
|
|
20
|
-
return (
|
|
21
|
-
}, m: function
|
|
22
|
-
if (
|
|
23
|
-
return -
|
|
24
|
-
var i = 12 * (
|
|
25
|
-
return +(-(i + (
|
|
26
|
-
}, a: function(
|
|
27
|
-
return
|
|
28
|
-
}, p: function(
|
|
29
|
-
return { M:
|
|
30
|
-
}, u: function(
|
|
31
|
-
return
|
|
32
|
-
} },
|
|
33
|
-
|
|
34
|
-
var
|
|
35
|
-
return
|
|
36
|
-
}, H = function
|
|
37
|
-
var
|
|
38
|
-
if (!
|
|
39
|
-
return
|
|
40
|
-
if (typeof
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
var
|
|
44
|
-
if (!
|
|
45
|
-
return
|
|
7
|
+
var ge = { exports: {} };
|
|
8
|
+
(function(r, b) {
|
|
9
|
+
(function(d, g) {
|
|
10
|
+
r.exports = g();
|
|
11
|
+
})(me, function() {
|
|
12
|
+
var d = 1e3, g = 6e4, S = 36e5, h = "millisecond", N = "second", v = "minute", c = "hour", A = "day", R = "week", p = "month", z = "quarter", y = "year", C = "date", e = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, F = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, q = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
|
|
13
|
+
var a = ["th", "st", "nd", "rd"], t = s % 100;
|
|
14
|
+
return "[" + s + (a[(t - 20) % 10] || a[t] || a[0]) + "]";
|
|
15
|
+
} }, E = function(s, a, t) {
|
|
16
|
+
var i = String(s);
|
|
17
|
+
return !i || i.length >= a ? s : "" + Array(a + 1 - i.length).join(t) + s;
|
|
18
|
+
}, G = { s: E, z: function(s) {
|
|
19
|
+
var a = -s.utcOffset(), t = Math.abs(a), i = Math.floor(t / 60), n = t % 60;
|
|
20
|
+
return (a <= 0 ? "+" : "-") + E(i, 2, "0") + ":" + E(n, 2, "0");
|
|
21
|
+
}, m: function s(a, t) {
|
|
22
|
+
if (a.date() < t.date())
|
|
23
|
+
return -s(t, a);
|
|
24
|
+
var i = 12 * (t.year() - a.year()) + (t.month() - a.month()), n = a.clone().add(i, p), o = t - n < 0, l = a.clone().add(i + (o ? -1 : 1), p);
|
|
25
|
+
return +(-(i + (t - n) / (o ? n - l : l - n)) || 0);
|
|
26
|
+
}, a: function(s) {
|
|
27
|
+
return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
|
|
28
|
+
}, p: function(s) {
|
|
29
|
+
return { M: p, y, w: R, d: A, D: C, h: c, m: v, s: N, ms: h, Q: z }[s] || String(s || "").toLowerCase().replace(/s$/, "");
|
|
30
|
+
}, u: function(s) {
|
|
31
|
+
return s === void 0;
|
|
32
|
+
} }, B = "en", I = {};
|
|
33
|
+
I[B] = q;
|
|
34
|
+
var J = "$isDayjsObject", te = function(s) {
|
|
35
|
+
return s instanceof se || !(!s || !s[J]);
|
|
36
|
+
}, H = function s(a, t, i) {
|
|
37
|
+
var n;
|
|
38
|
+
if (!a)
|
|
39
|
+
return B;
|
|
40
|
+
if (typeof a == "string") {
|
|
41
|
+
var o = a.toLowerCase();
|
|
42
|
+
I[o] && (n = o), t && (I[o] = t, n = o);
|
|
43
|
+
var l = a.split("-");
|
|
44
|
+
if (!n && l.length > 1)
|
|
45
|
+
return s(l[0]);
|
|
46
46
|
} else {
|
|
47
|
-
var
|
|
48
|
-
|
|
47
|
+
var u = a.name;
|
|
48
|
+
I[u] = a, n = u;
|
|
49
49
|
}
|
|
50
|
-
return !i &&
|
|
51
|
-
},
|
|
52
|
-
if (
|
|
53
|
-
return
|
|
54
|
-
var
|
|
55
|
-
return
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
return
|
|
50
|
+
return !i && n && (B = n), n || !i && B;
|
|
51
|
+
}, _ = function(s, a) {
|
|
52
|
+
if (te(s))
|
|
53
|
+
return s.clone();
|
|
54
|
+
var t = typeof a == "object" ? a : {};
|
|
55
|
+
return t.date = s, t.args = arguments, new se(t);
|
|
56
|
+
}, f = G;
|
|
57
|
+
f.l = H, f.i = te, f.w = function(s, a) {
|
|
58
|
+
return _(s, { locale: a.$L, utc: a.$u, x: a.$x, $offset: a.$offset });
|
|
59
59
|
};
|
|
60
60
|
var se = function() {
|
|
61
|
-
function
|
|
62
|
-
this.$L = H(
|
|
61
|
+
function s(t) {
|
|
62
|
+
this.$L = H(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[J] = !0;
|
|
63
63
|
}
|
|
64
|
-
var
|
|
65
|
-
return
|
|
64
|
+
var a = s.prototype;
|
|
65
|
+
return a.parse = function(t) {
|
|
66
66
|
this.$d = function(i) {
|
|
67
|
-
var
|
|
68
|
-
if (
|
|
67
|
+
var n = i.date, o = i.utc;
|
|
68
|
+
if (n === null)
|
|
69
69
|
return /* @__PURE__ */ new Date(NaN);
|
|
70
|
-
if (
|
|
70
|
+
if (f.u(n))
|
|
71
71
|
return /* @__PURE__ */ new Date();
|
|
72
|
-
if (
|
|
73
|
-
return new Date(
|
|
74
|
-
if (typeof
|
|
75
|
-
var
|
|
76
|
-
if (
|
|
77
|
-
var
|
|
78
|
-
return
|
|
72
|
+
if (n instanceof Date)
|
|
73
|
+
return new Date(n);
|
|
74
|
+
if (typeof n == "string" && !/Z$/i.test(n)) {
|
|
75
|
+
var l = n.match(M);
|
|
76
|
+
if (l) {
|
|
77
|
+
var u = l[2] - 1 || 0, w = (l[7] || "0").substring(0, 3);
|
|
78
|
+
return o ? new Date(Date.UTC(l[1], u, l[3] || 1, l[4] || 0, l[5] || 0, l[6] || 0, w)) : new Date(l[1], u, l[3] || 1, l[4] || 0, l[5] || 0, l[6] || 0, w);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
return new Date(
|
|
82
|
-
}(
|
|
83
|
-
},
|
|
84
|
-
var
|
|
85
|
-
this.$y =
|
|
86
|
-
},
|
|
87
|
-
return
|
|
88
|
-
},
|
|
89
|
-
return this.$d.toString() !==
|
|
90
|
-
},
|
|
91
|
-
var
|
|
92
|
-
return this.startOf(i) <=
|
|
93
|
-
},
|
|
94
|
-
return
|
|
95
|
-
},
|
|
96
|
-
return this.endOf(i) <
|
|
97
|
-
},
|
|
98
|
-
return
|
|
99
|
-
},
|
|
81
|
+
return new Date(n);
|
|
82
|
+
}(t), this.init();
|
|
83
|
+
}, a.init = function() {
|
|
84
|
+
var t = this.$d;
|
|
85
|
+
this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
|
|
86
|
+
}, a.$utils = function() {
|
|
87
|
+
return f;
|
|
88
|
+
}, a.isValid = function() {
|
|
89
|
+
return this.$d.toString() !== e;
|
|
90
|
+
}, a.isSame = function(t, i) {
|
|
91
|
+
var n = _(t);
|
|
92
|
+
return this.startOf(i) <= n && n <= this.endOf(i);
|
|
93
|
+
}, a.isAfter = function(t, i) {
|
|
94
|
+
return _(t) < this.startOf(i);
|
|
95
|
+
}, a.isBefore = function(t, i) {
|
|
96
|
+
return this.endOf(i) < _(t);
|
|
97
|
+
}, a.$g = function(t, i, n) {
|
|
98
|
+
return f.u(t) ? this[i] : this.set(n, t);
|
|
99
|
+
}, a.unix = function() {
|
|
100
100
|
return Math.floor(this.valueOf() / 1e3);
|
|
101
|
-
},
|
|
101
|
+
}, a.valueOf = function() {
|
|
102
102
|
return this.$d.getTime();
|
|
103
|
-
},
|
|
104
|
-
var
|
|
105
|
-
var j =
|
|
106
|
-
return
|
|
107
|
-
},
|
|
108
|
-
return
|
|
109
|
-
},
|
|
110
|
-
switch (
|
|
111
|
-
case
|
|
112
|
-
return
|
|
113
|
-
case
|
|
114
|
-
return
|
|
103
|
+
}, a.startOf = function(t, i) {
|
|
104
|
+
var n = this, o = !!f.u(i) || i, l = f.p(t), u = function(V, k) {
|
|
105
|
+
var j = f.w(n.$u ? Date.UTC(n.$y, k, V) : new Date(n.$y, k, V), n);
|
|
106
|
+
return o ? j : j.endOf(A);
|
|
107
|
+
}, w = function(V, k) {
|
|
108
|
+
return f.w(n.toDate()[V].apply(n.toDate("s"), (o ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(k)), n);
|
|
109
|
+
}, T = this.$W, x = this.$M, U = this.$D, K = "set" + (this.$u ? "UTC" : "");
|
|
110
|
+
switch (l) {
|
|
111
|
+
case y:
|
|
112
|
+
return o ? u(1, 0) : u(31, 11);
|
|
113
|
+
case p:
|
|
114
|
+
return o ? u(1, x) : u(0, x + 1);
|
|
115
115
|
case R:
|
|
116
|
-
var W = this.$locale().weekStart || 0,
|
|
117
|
-
return
|
|
118
|
-
case
|
|
119
|
-
case
|
|
120
|
-
return
|
|
121
|
-
case
|
|
122
|
-
return
|
|
116
|
+
var W = this.$locale().weekStart || 0, ne = (T < W ? T + 7 : T) - W;
|
|
117
|
+
return u(o ? U - ne : U + (6 - ne), x);
|
|
118
|
+
case A:
|
|
119
|
+
case C:
|
|
120
|
+
return w(K + "Hours", 0);
|
|
121
|
+
case c:
|
|
122
|
+
return w(K + "Minutes", 1);
|
|
123
123
|
case v:
|
|
124
|
-
return
|
|
125
|
-
case
|
|
126
|
-
return
|
|
124
|
+
return w(K + "Seconds", 2);
|
|
125
|
+
case N:
|
|
126
|
+
return w(K + "Milliseconds", 3);
|
|
127
127
|
default:
|
|
128
128
|
return this.clone();
|
|
129
129
|
}
|
|
130
|
-
},
|
|
131
|
-
return this.startOf(
|
|
132
|
-
},
|
|
133
|
-
var
|
|
134
|
-
if (
|
|
135
|
-
var
|
|
136
|
-
|
|
130
|
+
}, a.endOf = function(t) {
|
|
131
|
+
return this.startOf(t, !1);
|
|
132
|
+
}, a.$set = function(t, i) {
|
|
133
|
+
var n, o = f.p(t), l = "set" + (this.$u ? "UTC" : ""), u = (n = {}, n[A] = l + "Date", n[C] = l + "Date", n[p] = l + "Month", n[y] = l + "FullYear", n[c] = l + "Hours", n[v] = l + "Minutes", n[N] = l + "Seconds", n[h] = l + "Milliseconds", n)[o], w = o === A ? this.$D + (i - this.$W) : i;
|
|
134
|
+
if (o === p || o === y) {
|
|
135
|
+
var T = this.clone().set(C, 1);
|
|
136
|
+
T.$d[u](w), T.init(), this.$d = T.set(C, Math.min(this.$D, T.daysInMonth())).$d;
|
|
137
137
|
} else
|
|
138
|
-
|
|
138
|
+
u && this.$d[u](w);
|
|
139
139
|
return this.init(), this;
|
|
140
|
-
},
|
|
141
|
-
return this.clone().$set(
|
|
142
|
-
},
|
|
143
|
-
return this[
|
|
144
|
-
},
|
|
145
|
-
var
|
|
146
|
-
|
|
147
|
-
var
|
|
148
|
-
var
|
|
149
|
-
return
|
|
140
|
+
}, a.set = function(t, i) {
|
|
141
|
+
return this.clone().$set(t, i);
|
|
142
|
+
}, a.get = function(t) {
|
|
143
|
+
return this[f.p(t)]();
|
|
144
|
+
}, a.add = function(t, i) {
|
|
145
|
+
var n, o = this;
|
|
146
|
+
t = Number(t);
|
|
147
|
+
var l = f.p(i), u = function(x) {
|
|
148
|
+
var U = _(o);
|
|
149
|
+
return f.w(U.date(U.date() + Math.round(x * t)), o);
|
|
150
150
|
};
|
|
151
|
-
if (
|
|
152
|
-
return this.set(
|
|
153
|
-
if (
|
|
154
|
-
return this.set(
|
|
155
|
-
if (
|
|
156
|
-
return
|
|
157
|
-
if (
|
|
158
|
-
return
|
|
159
|
-
var
|
|
160
|
-
return
|
|
161
|
-
},
|
|
162
|
-
return this.add(-1 *
|
|
163
|
-
},
|
|
164
|
-
var i = this,
|
|
151
|
+
if (l === p)
|
|
152
|
+
return this.set(p, this.$M + t);
|
|
153
|
+
if (l === y)
|
|
154
|
+
return this.set(y, this.$y + t);
|
|
155
|
+
if (l === A)
|
|
156
|
+
return u(1);
|
|
157
|
+
if (l === R)
|
|
158
|
+
return u(7);
|
|
159
|
+
var w = (n = {}, n[v] = g, n[c] = S, n[N] = d, n)[l] || 1, T = this.$d.getTime() + t * w;
|
|
160
|
+
return f.w(T, this);
|
|
161
|
+
}, a.subtract = function(t, i) {
|
|
162
|
+
return this.add(-1 * t, i);
|
|
163
|
+
}, a.format = function(t) {
|
|
164
|
+
var i = this, n = this.$locale();
|
|
165
165
|
if (!this.isValid())
|
|
166
|
-
return
|
|
167
|
-
var
|
|
168
|
-
return
|
|
169
|
-
},
|
|
170
|
-
return
|
|
171
|
-
}, V =
|
|
172
|
-
var oe =
|
|
173
|
-
return
|
|
166
|
+
return n.invalidDate || e;
|
|
167
|
+
var o = t || "YYYY-MM-DDTHH:mm:ssZ", l = f.z(this), u = this.$H, w = this.$m, T = this.$M, x = n.weekdays, U = n.months, K = n.meridiem, W = function(k, j, ae, oe) {
|
|
168
|
+
return k && (k[j] || k(i, o)) || ae[j].slice(0, oe);
|
|
169
|
+
}, ne = function(k) {
|
|
170
|
+
return f.s(u % 12 || 12, k, "0");
|
|
171
|
+
}, V = K || function(k, j, ae) {
|
|
172
|
+
var oe = k < 12 ? "AM" : "PM";
|
|
173
|
+
return ae ? oe.toLowerCase() : oe;
|
|
174
174
|
};
|
|
175
|
-
return
|
|
176
|
-
return j || function(
|
|
177
|
-
switch (
|
|
175
|
+
return o.replace(F, function(k, j) {
|
|
176
|
+
return j || function(ae) {
|
|
177
|
+
switch (ae) {
|
|
178
178
|
case "YY":
|
|
179
179
|
return String(i.$y).slice(-2);
|
|
180
180
|
case "YYYY":
|
|
181
|
-
return
|
|
181
|
+
return f.s(i.$y, 4, "0");
|
|
182
182
|
case "M":
|
|
183
|
-
return
|
|
183
|
+
return T + 1;
|
|
184
184
|
case "MM":
|
|
185
|
-
return
|
|
185
|
+
return f.s(T + 1, 2, "0");
|
|
186
186
|
case "MMM":
|
|
187
|
-
return W(
|
|
187
|
+
return W(n.monthsShort, T, U, 3);
|
|
188
188
|
case "MMMM":
|
|
189
|
-
return W(
|
|
189
|
+
return W(U, T);
|
|
190
190
|
case "D":
|
|
191
191
|
return i.$D;
|
|
192
192
|
case "DD":
|
|
193
|
-
return
|
|
193
|
+
return f.s(i.$D, 2, "0");
|
|
194
194
|
case "d":
|
|
195
195
|
return String(i.$W);
|
|
196
196
|
case "dd":
|
|
197
|
-
return W(
|
|
197
|
+
return W(n.weekdaysMin, i.$W, x, 2);
|
|
198
198
|
case "ddd":
|
|
199
|
-
return W(
|
|
199
|
+
return W(n.weekdaysShort, i.$W, x, 3);
|
|
200
200
|
case "dddd":
|
|
201
|
-
return
|
|
201
|
+
return x[i.$W];
|
|
202
202
|
case "H":
|
|
203
|
-
return String(
|
|
203
|
+
return String(u);
|
|
204
204
|
case "HH":
|
|
205
|
-
return
|
|
205
|
+
return f.s(u, 2, "0");
|
|
206
206
|
case "h":
|
|
207
|
-
return
|
|
207
|
+
return ne(1);
|
|
208
208
|
case "hh":
|
|
209
|
-
return
|
|
209
|
+
return ne(2);
|
|
210
210
|
case "a":
|
|
211
|
-
return V(
|
|
211
|
+
return V(u, w, !0);
|
|
212
212
|
case "A":
|
|
213
|
-
return V(
|
|
213
|
+
return V(u, w, !1);
|
|
214
214
|
case "m":
|
|
215
|
-
return String(
|
|
215
|
+
return String(w);
|
|
216
216
|
case "mm":
|
|
217
|
-
return
|
|
217
|
+
return f.s(w, 2, "0");
|
|
218
218
|
case "s":
|
|
219
219
|
return String(i.$s);
|
|
220
220
|
case "ss":
|
|
221
|
-
return
|
|
221
|
+
return f.s(i.$s, 2, "0");
|
|
222
222
|
case "SSS":
|
|
223
|
-
return
|
|
223
|
+
return f.s(i.$ms, 3, "0");
|
|
224
224
|
case "Z":
|
|
225
|
-
return
|
|
225
|
+
return l;
|
|
226
226
|
}
|
|
227
227
|
return null;
|
|
228
|
-
}(
|
|
228
|
+
}(k) || l.replace(":", "");
|
|
229
229
|
});
|
|
230
|
-
},
|
|
230
|
+
}, a.utcOffset = function() {
|
|
231
231
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
232
|
-
},
|
|
233
|
-
var
|
|
234
|
-
return
|
|
232
|
+
}, a.diff = function(t, i, n) {
|
|
233
|
+
var o, l = this, u = f.p(i), w = _(t), T = (w.utcOffset() - this.utcOffset()) * g, x = this - w, U = function() {
|
|
234
|
+
return f.m(l, w);
|
|
235
235
|
};
|
|
236
|
-
switch (
|
|
237
|
-
case
|
|
238
|
-
|
|
236
|
+
switch (u) {
|
|
237
|
+
case y:
|
|
238
|
+
o = U() / 12;
|
|
239
239
|
break;
|
|
240
|
-
case
|
|
241
|
-
|
|
240
|
+
case p:
|
|
241
|
+
o = U();
|
|
242
242
|
break;
|
|
243
|
-
case
|
|
244
|
-
|
|
243
|
+
case z:
|
|
244
|
+
o = U() / 3;
|
|
245
245
|
break;
|
|
246
246
|
case R:
|
|
247
|
-
|
|
247
|
+
o = (x - T) / 6048e5;
|
|
248
248
|
break;
|
|
249
|
-
case
|
|
250
|
-
|
|
249
|
+
case A:
|
|
250
|
+
o = (x - T) / 864e5;
|
|
251
251
|
break;
|
|
252
|
-
case
|
|
253
|
-
|
|
252
|
+
case c:
|
|
253
|
+
o = x / S;
|
|
254
254
|
break;
|
|
255
255
|
case v:
|
|
256
|
-
|
|
256
|
+
o = x / g;
|
|
257
257
|
break;
|
|
258
|
-
case
|
|
259
|
-
|
|
258
|
+
case N:
|
|
259
|
+
o = x / d;
|
|
260
260
|
break;
|
|
261
261
|
default:
|
|
262
|
-
|
|
262
|
+
o = x;
|
|
263
263
|
}
|
|
264
|
-
return
|
|
265
|
-
},
|
|
266
|
-
return this.endOf(
|
|
267
|
-
},
|
|
268
|
-
return
|
|
269
|
-
},
|
|
270
|
-
if (!
|
|
264
|
+
return n ? o : f.a(o);
|
|
265
|
+
}, a.daysInMonth = function() {
|
|
266
|
+
return this.endOf(p).$D;
|
|
267
|
+
}, a.$locale = function() {
|
|
268
|
+
return I[this.$L];
|
|
269
|
+
}, a.locale = function(t, i) {
|
|
270
|
+
if (!t)
|
|
271
271
|
return this.$L;
|
|
272
|
-
var
|
|
273
|
-
return
|
|
274
|
-
},
|
|
275
|
-
return
|
|
276
|
-
},
|
|
272
|
+
var n = this.clone(), o = H(t, i, !0);
|
|
273
|
+
return o && (n.$L = o), n;
|
|
274
|
+
}, a.clone = function() {
|
|
275
|
+
return f.w(this.$d, this);
|
|
276
|
+
}, a.toDate = function() {
|
|
277
277
|
return new Date(this.valueOf());
|
|
278
|
-
},
|
|
278
|
+
}, a.toJSON = function() {
|
|
279
279
|
return this.isValid() ? this.toISOString() : null;
|
|
280
|
-
},
|
|
280
|
+
}, a.toISOString = function() {
|
|
281
281
|
return this.$d.toISOString();
|
|
282
|
-
},
|
|
282
|
+
}, a.toString = function() {
|
|
283
283
|
return this.$d.toUTCString();
|
|
284
|
-
},
|
|
284
|
+
}, s;
|
|
285
285
|
}(), ce = se.prototype;
|
|
286
|
-
return
|
|
287
|
-
ce[
|
|
288
|
-
return this.$g(
|
|
286
|
+
return _.prototype = ce, [["$ms", h], ["$s", N], ["$m", v], ["$H", c], ["$W", A], ["$M", p], ["$y", y], ["$D", C]].forEach(function(s) {
|
|
287
|
+
ce[s[1]] = function(a) {
|
|
288
|
+
return this.$g(a, s[0], s[1]);
|
|
289
289
|
};
|
|
290
|
-
}),
|
|
291
|
-
return
|
|
292
|
-
},
|
|
293
|
-
return
|
|
294
|
-
},
|
|
290
|
+
}), _.extend = function(s, a) {
|
|
291
|
+
return s.$i || (s(a, se, _), s.$i = !0), _;
|
|
292
|
+
}, _.locale = H, _.isDayjs = te, _.unix = function(s) {
|
|
293
|
+
return _(1e3 * s);
|
|
294
|
+
}, _.en = I[B], _.Ls = I, _.p = {}, _;
|
|
295
295
|
});
|
|
296
|
-
})(
|
|
297
|
-
var Te =
|
|
298
|
-
const
|
|
299
|
-
var
|
|
300
|
-
(function(
|
|
301
|
-
(function(
|
|
302
|
-
|
|
303
|
-
})(
|
|
304
|
-
var
|
|
305
|
-
return function(
|
|
306
|
-
var
|
|
307
|
-
v.utc = function(
|
|
308
|
-
var M = { date:
|
|
309
|
-
return new
|
|
310
|
-
},
|
|
296
|
+
})(ge);
|
|
297
|
+
var Te = ge.exports;
|
|
298
|
+
const ye = /* @__PURE__ */ be(Te);
|
|
299
|
+
var we = { exports: {} };
|
|
300
|
+
(function(r, b) {
|
|
301
|
+
(function(d, g) {
|
|
302
|
+
r.exports = g();
|
|
303
|
+
})(me, function() {
|
|
304
|
+
var d = "minute", g = /[+-]\d\d(?::?\d\d)?/g, S = /([+-]|\d\d)/g;
|
|
305
|
+
return function(h, N, v) {
|
|
306
|
+
var c = N.prototype;
|
|
307
|
+
v.utc = function(e) {
|
|
308
|
+
var M = { date: e, utc: !0, args: arguments };
|
|
309
|
+
return new N(M);
|
|
310
|
+
}, c.utc = function(e) {
|
|
311
311
|
var M = v(this.toDate(), { locale: this.$L, utc: !0 });
|
|
312
|
-
return
|
|
313
|
-
},
|
|
312
|
+
return e ? M.add(this.utcOffset(), d) : M;
|
|
313
|
+
}, c.local = function() {
|
|
314
314
|
return v(this.toDate(), { locale: this.$L, utc: !1 });
|
|
315
315
|
};
|
|
316
|
-
var
|
|
317
|
-
|
|
318
|
-
|
|
316
|
+
var A = c.parse;
|
|
317
|
+
c.parse = function(e) {
|
|
318
|
+
e.utc && (this.$u = !0), this.$utils().u(e.$offset) || (this.$offset = e.$offset), A.call(this, e);
|
|
319
319
|
};
|
|
320
|
-
var R =
|
|
321
|
-
|
|
320
|
+
var R = c.init;
|
|
321
|
+
c.init = function() {
|
|
322
322
|
if (this.$u) {
|
|
323
|
-
var
|
|
324
|
-
this.$y =
|
|
323
|
+
var e = this.$d;
|
|
324
|
+
this.$y = e.getUTCFullYear(), this.$M = e.getUTCMonth(), this.$D = e.getUTCDate(), this.$W = e.getUTCDay(), this.$H = e.getUTCHours(), this.$m = e.getUTCMinutes(), this.$s = e.getUTCSeconds(), this.$ms = e.getUTCMilliseconds();
|
|
325
325
|
} else
|
|
326
326
|
R.call(this);
|
|
327
327
|
};
|
|
328
|
-
var
|
|
329
|
-
|
|
330
|
-
var
|
|
331
|
-
if (
|
|
332
|
-
return this.$u ? 0 :
|
|
333
|
-
if (typeof
|
|
334
|
-
|
|
335
|
-
var
|
|
336
|
-
if (!
|
|
328
|
+
var p = c.utcOffset;
|
|
329
|
+
c.utcOffset = function(e, M) {
|
|
330
|
+
var F = this.$utils().u;
|
|
331
|
+
if (F(e))
|
|
332
|
+
return this.$u ? 0 : F(this.$offset) ? p.call(this) : this.$offset;
|
|
333
|
+
if (typeof e == "string" && (e = function(B) {
|
|
334
|
+
B === void 0 && (B = "");
|
|
335
|
+
var I = B.match(g);
|
|
336
|
+
if (!I)
|
|
337
337
|
return null;
|
|
338
|
-
var
|
|
339
|
-
return H === 0 ? 0 :
|
|
340
|
-
}(
|
|
338
|
+
var J = ("" + I[0]).match(S) || ["-", 0, 0], te = J[0], H = 60 * +J[1] + +J[2];
|
|
339
|
+
return H === 0 ? 0 : te === "+" ? H : -H;
|
|
340
|
+
}(e), e === null))
|
|
341
341
|
return this;
|
|
342
|
-
var
|
|
343
|
-
if (
|
|
342
|
+
var q = Math.abs(e) <= 16 ? 60 * e : e;
|
|
343
|
+
if (q === 0)
|
|
344
344
|
return this.utc(M);
|
|
345
|
-
var
|
|
345
|
+
var E = this.clone();
|
|
346
346
|
if (M)
|
|
347
|
-
return
|
|
347
|
+
return E.$offset = q, E.$u = !1, E;
|
|
348
348
|
var G = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
349
|
-
return (
|
|
349
|
+
return (E = this.local().add(q + G, d)).$offset = q, E.$x.$localOffset = G, E;
|
|
350
350
|
};
|
|
351
|
-
var
|
|
352
|
-
|
|
353
|
-
var M =
|
|
354
|
-
return
|
|
355
|
-
},
|
|
356
|
-
var
|
|
357
|
-
return this.$d.valueOf() - 6e4 *
|
|
358
|
-
},
|
|
351
|
+
var z = c.format;
|
|
352
|
+
c.format = function(e) {
|
|
353
|
+
var M = e || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
354
|
+
return z.call(this, M);
|
|
355
|
+
}, c.valueOf = function() {
|
|
356
|
+
var e = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
357
|
+
return this.$d.valueOf() - 6e4 * e;
|
|
358
|
+
}, c.isUTC = function() {
|
|
359
359
|
return !!this.$u;
|
|
360
|
-
},
|
|
360
|
+
}, c.toISOString = function() {
|
|
361
361
|
return this.toDate().toISOString();
|
|
362
|
-
},
|
|
362
|
+
}, c.toString = function() {
|
|
363
363
|
return this.toDate().toUTCString();
|
|
364
364
|
};
|
|
365
|
-
var
|
|
366
|
-
|
|
367
|
-
return
|
|
365
|
+
var y = c.toDate;
|
|
366
|
+
c.toDate = function(e) {
|
|
367
|
+
return e === "s" && this.$offset ? v(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : y.call(this);
|
|
368
368
|
};
|
|
369
|
-
var
|
|
370
|
-
|
|
371
|
-
if (
|
|
372
|
-
return
|
|
373
|
-
var
|
|
374
|
-
return
|
|
369
|
+
var C = c.diff;
|
|
370
|
+
c.diff = function(e, M, F) {
|
|
371
|
+
if (e && this.$u === e.$u)
|
|
372
|
+
return C.call(this, e, M, F);
|
|
373
|
+
var q = this.local(), E = v(e).local();
|
|
374
|
+
return C.call(q, E, M, F);
|
|
375
375
|
};
|
|
376
376
|
};
|
|
377
377
|
});
|
|
378
|
-
})(
|
|
379
|
-
var ve =
|
|
380
|
-
const Me = /* @__PURE__ */
|
|
381
|
-
|
|
378
|
+
})(we);
|
|
379
|
+
var ve = we.exports;
|
|
380
|
+
const Me = /* @__PURE__ */ be(ve);
|
|
381
|
+
ye.extend(Me);
|
|
382
382
|
function Se() {
|
|
383
|
-
let
|
|
384
|
-
const
|
|
385
|
-
return
|
|
383
|
+
let r = (/* @__PURE__ */ new Date()).getTimezoneOffset();
|
|
384
|
+
const b = Math.abs(Math.floor(r / 60)), d = r < 0 ? "+" : "-";
|
|
385
|
+
return r = Math.abs(r % 60), d + b.toString().padStart(2, "0") + r.toString().padStart(2, "0");
|
|
386
386
|
}
|
|
387
|
-
function le(
|
|
388
|
-
return
|
|
387
|
+
function le(r, b, d) {
|
|
388
|
+
return r ? (b === void 0 && (b = "YYYY-MM-DD HH:mm:ss"), d || (d = Se()), ye.utc(r).utcOffset(d).format(b)) : "";
|
|
389
389
|
}
|
|
390
390
|
const xe = {
|
|
391
391
|
cn: {
|
|
@@ -401,14 +401,14 @@ const xe = {
|
|
|
401
401
|
days: "d"
|
|
402
402
|
}
|
|
403
403
|
};
|
|
404
|
-
function
|
|
405
|
-
const
|
|
406
|
-
return
|
|
404
|
+
function ue(r, b = "cn") {
|
|
405
|
+
const d = xe[b], g = Math.floor(r / (24 * 60 * 60 * 1e3)), S = Math.floor(r / (60 * 60 * 1e3) - g * 24), h = Math.floor(r / (60 * 1e3) - g * 24 * 60 - S * 60), N = Math.floor(r / 1e3 - g * 24 * 60 * 60 - S * 60 * 60 - h * 60);
|
|
406
|
+
return g > 0 ? g + d.days + S + d.hours + h + d.minutes : S > 0 ? S + d.hours + h + d.minutes : h > 0 ? h + d.minutes : N > 0 ? N + d.seconds : 0 + d.seconds;
|
|
407
407
|
}
|
|
408
408
|
const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-between" }, $e = { class: "text-18px font-bold" }, Pe = {
|
|
409
409
|
class: "text-14px font-bold",
|
|
410
410
|
style: { color: "#005aae" }
|
|
411
|
-
}, Ae = { class: "flex items-center" }, ke = { class: "flow-start" }, Fe = { key: 0 }, Ie = { class: "mt-30px block" },
|
|
411
|
+
}, Ae = { class: "flex items-center" }, ke = { class: "flow-start" }, Fe = { key: 0 }, Ie = { class: "mt-30px block" }, Ce = ["src"], Be = { style: { "font-weight": "700" } }, Ue = {
|
|
412
412
|
key: 0,
|
|
413
413
|
style: { "margin-right": "30px", "font-weight": "normal" }
|
|
414
414
|
}, Le = {
|
|
@@ -432,17 +432,19 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
|
|
|
432
432
|
}, je = {
|
|
433
433
|
key: 5,
|
|
434
434
|
style: { "font-weight": "normal", color: "#8a909c" }
|
|
435
|
-
}, Ge = { key: 2 }, We = /* @__PURE__ */
|
|
435
|
+
}, Ge = { key: 2 }, We = /* @__PURE__ */ pe({
|
|
436
436
|
name: "BpmProcessInstanceTaskList",
|
|
437
437
|
__name: "CmcFlowList",
|
|
438
438
|
props: {
|
|
439
439
|
processInstance: {},
|
|
440
440
|
tasks: {}
|
|
441
441
|
},
|
|
442
|
-
setup(
|
|
443
|
-
const
|
|
444
|
-
|
|
445
|
-
|
|
442
|
+
setup(r) {
|
|
443
|
+
const b = () => {
|
|
444
|
+
console.log(d("processFlow.flow"));
|
|
445
|
+
}, d = et();
|
|
446
|
+
console.log("ttttttttttttttttttttttt", d);
|
|
447
|
+
const g = {
|
|
446
448
|
1: "svg-icon:approvalPending",
|
|
447
449
|
// 审批中
|
|
448
450
|
2: "svg-icon:approvalPass",
|
|
@@ -451,131 +453,139 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
|
|
|
451
453
|
// 拒绝
|
|
452
454
|
4: "svg-icon:approvalCanceled"
|
|
453
455
|
// 取消
|
|
454
|
-
},
|
|
455
|
-
return (
|
|
456
|
+
}, S = (h) => [0, 1, 6, 7].includes(h.status) ? "primary" : h.status === 2 ? "success" : h.status === 3 ? "danger" : h.status === 4 ? "info" : h.status === 5 ? "warning" : "";
|
|
457
|
+
return (h, N) => {
|
|
456
458
|
var C;
|
|
457
|
-
const
|
|
458
|
-
return
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
459
|
+
const v = Y("el-button"), c = Y("Icon"), A = Y("dict-tag"), R = Y("el-tag"), p = Y("el-card"), z = Y("el-timeline-item"), y = Y("el-timeline");
|
|
460
|
+
return P(), L(fe, null, [
|
|
461
|
+
X(v, { onClick: b }, {
|
|
462
|
+
default: Q(() => [...N[0] || (N[0] = [
|
|
463
|
+
Z("获取国际化值", -1)
|
|
464
|
+
])]),
|
|
465
|
+
_: 1
|
|
466
|
+
}),
|
|
467
|
+
D("div", Ee, [
|
|
468
|
+
D("div", De, [
|
|
469
|
+
D("div", $e, [
|
|
470
|
+
D("span", null, m($(d)("processFlow.flow")), 1),
|
|
471
|
+
D("span", null, m(r.processInstance.id), 1)
|
|
472
|
+
]),
|
|
473
|
+
D("div", Pe, [
|
|
474
|
+
D("span", null, m(r.processInstance.name), 1)
|
|
475
|
+
])
|
|
463
476
|
]),
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
477
|
+
D("div", Ae, [
|
|
478
|
+
D("div", ke, [
|
|
479
|
+
D("p", null, m($(d)("processFlow.startTime")) + m($(le)(r.processInstance.startTime)), 1),
|
|
480
|
+
D("p", null, m($(d)("processFlow.endTime")) + m($(le)(r.processInstance.endTime)), 1),
|
|
481
|
+
r.processInstance.durationInMillis ? (P(), L("p", Fe, m($(d)("processFlow.duration")) + m($(ue)((C = r.processInstance) == null ? void 0 : C.durationInMillis)), 1)) : O("", !0)
|
|
482
|
+
]),
|
|
483
|
+
X(c, {
|
|
484
|
+
size: 100,
|
|
485
|
+
icon: g[r.processInstance.status] || "svg-icon:approvalPending"
|
|
486
|
+
}, null, 8, ["icon"])
|
|
473
487
|
]),
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
488
|
+
D("div", Ie, [
|
|
489
|
+
X(y, null, {
|
|
490
|
+
default: Q(() => [
|
|
491
|
+
(P(!0), L(fe, null, Ne(r.tasks, (e, M) => (P(), re(z, {
|
|
492
|
+
key: M,
|
|
493
|
+
type: S(e) || "info"
|
|
494
|
+
}, {
|
|
495
|
+
dot: Q(() => {
|
|
496
|
+
var F;
|
|
497
|
+
return [
|
|
498
|
+
D("img", {
|
|
499
|
+
src: ((F = e == null ? void 0 : e.assigneeUser) == null ? void 0 : F.avatar) || "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",
|
|
500
|
+
class: "avatar-wrap"
|
|
501
|
+
}, null, 8, Ce)
|
|
502
|
+
];
|
|
503
|
+
}),
|
|
504
|
+
default: Q(() => [
|
|
505
|
+
D("p", Be, [
|
|
506
|
+
Z(m(e.name) + " ", 1),
|
|
507
|
+
e.status ? (P(), re(A, {
|
|
508
|
+
key: 0,
|
|
509
|
+
type: "bpm_task_status",
|
|
510
|
+
value: e.status || ""
|
|
511
|
+
}, null, 8, ["value"])) : O("", !0)
|
|
512
|
+
]),
|
|
513
|
+
X(p, { "body-style": { padding: "10px" } }, {
|
|
514
|
+
default: Q(() => {
|
|
515
|
+
var F, q, E, G;
|
|
516
|
+
return [
|
|
517
|
+
M === 0 ? (P(), L("label", Ue, [
|
|
518
|
+
Z(m(((F = e.assigneeUser) == null ? void 0 : F.nickname) || ((q = e.ownerUser) == null ? void 0 : q.nickname)) + " ", 1),
|
|
519
|
+
X(R, {
|
|
520
|
+
size: "small",
|
|
521
|
+
type: "info",
|
|
522
|
+
style: { "vertical-align": "1px" }
|
|
523
|
+
}, {
|
|
524
|
+
default: Q(() => {
|
|
525
|
+
var B, I;
|
|
526
|
+
return [
|
|
527
|
+
Z(m((I = (B = r.processInstance) == null ? void 0 : B.startUser) == null ? void 0 : I.deptName), 1)
|
|
528
|
+
];
|
|
529
|
+
}),
|
|
530
|
+
_: 1
|
|
531
|
+
})
|
|
532
|
+
])) : O("", !0),
|
|
533
|
+
e.assigneeUser ? (P(), L("label", Le, [
|
|
534
|
+
Z(m($(d)("processFlow.approver")) + m(((E = e.assigneeUser) == null ? void 0 : E.nickname) || ((G = e.ownerUser) == null ? void 0 : G.nickname)) + " ", 1),
|
|
535
|
+
X(R, {
|
|
536
|
+
size: "small",
|
|
537
|
+
type: "info",
|
|
538
|
+
style: { "vertical-align": "1px" }
|
|
539
|
+
}, {
|
|
540
|
+
default: Q(() => [
|
|
541
|
+
Z(m(e.assigneeUser.deptName), 1)
|
|
542
|
+
]),
|
|
543
|
+
_: 2
|
|
544
|
+
}, 1024)
|
|
545
|
+
])) : O("", !0),
|
|
546
|
+
D("div", null, [
|
|
547
|
+
e.createTime && !e.endTime ? (P(), L("label", Re, m($(d)("processFlow.createTime")), 1)) : O("", !0),
|
|
548
|
+
e.createTime && !e.endTime ? (P(), L("label", qe, m($(le)(e == null ? void 0 : e.createTime, "MM-DD HH:mm")), 1)) : O("", !0),
|
|
549
|
+
e.endTime ? (P(), L("label", Oe, m($(d)("processFlow.approvalTime")), 1)) : O("", !0),
|
|
550
|
+
e.endTime ? (P(), L("label", ze, m($(le)(e == null ? void 0 : e.endTime, "MM-DD HH:mm")), 1)) : O("", !0),
|
|
551
|
+
e.durationInMillis ? (P(), L("label", He, m($(d)("processFlow.duration")), 1)) : O("", !0),
|
|
552
|
+
e.durationInMillis ? (P(), L("label", je, m($(ue)(e == null ? void 0 : e.durationInMillis)), 1)) : O("", !0)
|
|
553
|
+
]),
|
|
554
|
+
e.reason ? (P(), L("div", Ge, m($(d)("processFlow.approvalSuggestion")) + m(e.reason), 1)) : O("", !0)
|
|
555
|
+
];
|
|
556
|
+
}),
|
|
557
|
+
_: 2
|
|
558
|
+
}, 1024)
|
|
503
559
|
]),
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
ne(u, {
|
|
511
|
-
size: "small",
|
|
512
|
-
type: "info",
|
|
513
|
-
style: { "vertical-align": "1px" }
|
|
514
|
-
}, {
|
|
515
|
-
default: K(() => {
|
|
516
|
-
var x, G;
|
|
517
|
-
return [
|
|
518
|
-
ae(g((G = (x = d.processInstance) == null ? void 0 : x.startUser) == null ? void 0 : G.deptName), 1)
|
|
519
|
-
];
|
|
520
|
-
}),
|
|
521
|
-
_: 1
|
|
522
|
-
})
|
|
523
|
-
])) : L("", !0),
|
|
524
|
-
a.assigneeUser ? (D(), B("label", Le, [
|
|
525
|
-
ae(g(E(c)("processFlow.approver")) + g(((q = a.assigneeUser) == null ? void 0 : q.nickname) || ((U = a.ownerUser) == null ? void 0 : U.nickname)) + " ", 1),
|
|
526
|
-
ne(u, {
|
|
527
|
-
size: "small",
|
|
528
|
-
type: "info",
|
|
529
|
-
style: { "vertical-align": "1px" }
|
|
530
|
-
}, {
|
|
531
|
-
default: K(() => [
|
|
532
|
-
ae(g(a.assigneeUser.deptName), 1)
|
|
533
|
-
]),
|
|
534
|
-
_: 2
|
|
535
|
-
}, 1024)
|
|
536
|
-
])) : L("", !0),
|
|
537
|
-
A("div", null, [
|
|
538
|
-
a.createTime && !a.endTime ? (D(), B("label", Re, g(E(c)("processFlow.createTime")), 1)) : L("", !0),
|
|
539
|
-
a.createTime && !a.endTime ? (D(), B("label", qe, g(E(le)(a == null ? void 0 : a.createTime, "MM-DD HH:mm")), 1)) : L("", !0),
|
|
540
|
-
a.endTime ? (D(), B("label", Oe, g(E(c)("processFlow.approvalTime")), 1)) : L("", !0),
|
|
541
|
-
a.endTime ? (D(), B("label", ze, g(E(le)(a == null ? void 0 : a.endTime, "MM-DD HH:mm")), 1)) : L("", !0),
|
|
542
|
-
a.durationInMillis ? (D(), B("label", He, g(E(c)("processFlow.duration")), 1)) : L("", !0),
|
|
543
|
-
a.durationInMillis ? (D(), B("label", je, g(E(fe)(a == null ? void 0 : a.durationInMillis)), 1)) : L("", !0)
|
|
544
|
-
]),
|
|
545
|
-
a.reason ? (D(), B("div", Ge, g(E(c)("processFlow.approvalSuggestion")) + g(a.reason), 1)) : L("", !0)
|
|
546
|
-
];
|
|
547
|
-
}),
|
|
548
|
-
_: 2
|
|
549
|
-
}, 1024)
|
|
550
|
-
]),
|
|
551
|
-
_: 2
|
|
552
|
-
}, 1032, ["type"]))), 128))
|
|
553
|
-
]),
|
|
554
|
-
_: 1
|
|
555
|
-
})
|
|
560
|
+
_: 2
|
|
561
|
+
}, 1032, ["type"]))), 128))
|
|
562
|
+
]),
|
|
563
|
+
_: 1
|
|
564
|
+
})
|
|
565
|
+
])
|
|
556
566
|
])
|
|
557
|
-
]);
|
|
567
|
+
], 64);
|
|
558
568
|
};
|
|
559
569
|
}
|
|
560
570
|
});
|
|
561
|
-
const
|
|
562
|
-
const
|
|
563
|
-
for (const [
|
|
564
|
-
|
|
565
|
-
return
|
|
566
|
-
}, Ve = /* @__PURE__ */
|
|
571
|
+
const he = (r, b) => {
|
|
572
|
+
const d = r.__vccOpts || r;
|
|
573
|
+
for (const [g, S] of b)
|
|
574
|
+
d[g] = S;
|
|
575
|
+
return d;
|
|
576
|
+
}, Ve = /* @__PURE__ */ he(We, [["__scopeId", "data-v-e07cfd42"]]), Ye = /* @__PURE__ */ pe({
|
|
567
577
|
__name: "CmcProcessFlow",
|
|
568
578
|
props: {
|
|
569
579
|
processInstanceId: {}
|
|
570
580
|
},
|
|
571
|
-
setup(
|
|
572
|
-
const
|
|
573
|
-
v.value =
|
|
574
|
-
},
|
|
575
|
-
var
|
|
581
|
+
setup(r) {
|
|
582
|
+
const b = r, d = ee(!1), g = ee({}), S = ee({}), h = ee(""), N = ee([]), v = ee(""), c = (p) => {
|
|
583
|
+
v.value = p, A(), R();
|
|
584
|
+
}, A = async () => {
|
|
585
|
+
var p, z;
|
|
576
586
|
try {
|
|
577
|
-
|
|
578
|
-
const
|
|
587
|
+
d.value = !0;
|
|
588
|
+
const y = {
|
|
579
589
|
status: 1,
|
|
580
590
|
activityNodes: [
|
|
581
591
|
{
|
|
@@ -1095,12 +1105,12 @@ const we = (d, c) => {
|
|
|
1095
1105
|
tasks: null
|
|
1096
1106
|
}
|
|
1097
1107
|
};
|
|
1098
|
-
|
|
1108
|
+
g.value = y == null ? void 0 : y.processInstance, h.value = (z = (p = y == null ? void 0 : y.processInstance) == null ? void 0 : p.formVariables) == null ? void 0 : z.applicationPrefix, S.value = y == null ? void 0 : y.todoTask;
|
|
1099
1109
|
} finally {
|
|
1100
|
-
|
|
1110
|
+
d.value = !1;
|
|
1101
1111
|
}
|
|
1102
1112
|
}, R = async () => {
|
|
1103
|
-
|
|
1113
|
+
N.value = [
|
|
1104
1114
|
{
|
|
1105
1115
|
id: "0fff48cd-2f25-11f1-9259-fa163e43f4f0",
|
|
1106
1116
|
name: "发起人",
|
|
@@ -1224,18 +1234,18 @@ const we = (d, c) => {
|
|
|
1224
1234
|
];
|
|
1225
1235
|
};
|
|
1226
1236
|
return _e(
|
|
1227
|
-
() =>
|
|
1228
|
-
(
|
|
1229
|
-
|
|
1237
|
+
() => b.processInstanceId,
|
|
1238
|
+
(p) => {
|
|
1239
|
+
p && p !== v.value && c(p);
|
|
1230
1240
|
},
|
|
1231
1241
|
{ immediate: !0, deep: !0 }
|
|
1232
|
-
), (
|
|
1233
|
-
"process-instance":
|
|
1234
|
-
tasks:
|
|
1242
|
+
), (p, z) => (P(), re(Ve, {
|
|
1243
|
+
"process-instance": g.value,
|
|
1244
|
+
tasks: N.value
|
|
1235
1245
|
}, null, 8, ["process-instance", "tasks"]));
|
|
1236
1246
|
}
|
|
1237
1247
|
});
|
|
1238
|
-
const Qe = /* @__PURE__ */
|
|
1248
|
+
const Qe = /* @__PURE__ */ he(Ye, [["__scopeId", "data-v-a4649f52"]]), Je = {
|
|
1239
1249
|
taskNotExist: "任务不不在"
|
|
1240
1250
|
}, Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1241
1251
|
__proto__: null,
|
|
@@ -1248,10 +1258,10 @@ const Qe = /* @__PURE__ */ we(Ye, [["__scopeId", "data-v-a4649f52"]]), Je = {
|
|
|
1248
1258
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1249
1259
|
let de = null, ie = null;
|
|
1250
1260
|
const at = {
|
|
1251
|
-
install(
|
|
1252
|
-
if (console.log("插件install执行,options:",
|
|
1261
|
+
install(r, b) {
|
|
1262
|
+
if (console.log("插件install执行,options:", b), !(b != null && b.request))
|
|
1253
1263
|
throw new Error("请在 app.use(NbbComponentUi) 时传入 { request }");
|
|
1254
|
-
de =
|
|
1264
|
+
de = b.request, ie = b.i18n, ie.global.mergeLocaleMessage("zh-CN", Ke), ie.global.mergeLocaleMessage("en", Ze), r.component("CmcProcessFlow", Qe);
|
|
1255
1265
|
}
|
|
1256
1266
|
};
|
|
1257
1267
|
function et() {
|