qk-pc-ui 4.5.4 → 4.5.5
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/qk-pc-ui.css +1 -1
- package/dist/qk-pc-ui.mjs +257 -257
- package/dist/qk-pc-ui.umd.js +14 -14
- package/package.json +1 -1
package/dist/qk-pc-ui.mjs
CHANGED
|
@@ -1070,31 +1070,31 @@ function eval_fmt(e, r, t, a) {
|
|
|
1070
1070
|
n[l].t = "t", n[l].v = SSF_general(r, t);
|
|
1071
1071
|
break;
|
|
1072
1072
|
}
|
|
1073
|
-
var j = "", z,
|
|
1073
|
+
var j = "", z, C;
|
|
1074
1074
|
if (N.length > 0) {
|
|
1075
|
-
N.charCodeAt(0) == 40 ? (z = r < 0 && N.charCodeAt(0) === 45 ? -r : r,
|
|
1075
|
+
N.charCodeAt(0) == 40 ? (z = r < 0 && N.charCodeAt(0) === 45 ? -r : r, C = write_num("n", N, z)) : (z = r < 0 && a > 1 ? -r : r, C = write_num("n", N, z), z < 0 && n[0] && n[0].t == "t" && (C = C.substr(1), n[0].v = "-" + n[0].v)), D = C.length - 1;
|
|
1076
1076
|
var F = n.length;
|
|
1077
1077
|
for (l = 0; l < n.length; ++l) if (n[l] != null && n[l].t != "t" && n[l].v.indexOf(".") > -1) {
|
|
1078
1078
|
F = l;
|
|
1079
1079
|
break;
|
|
1080
1080
|
}
|
|
1081
|
-
var
|
|
1082
|
-
if (F === n.length &&
|
|
1081
|
+
var S = n.length;
|
|
1082
|
+
if (F === n.length && C.indexOf("E") === -1) {
|
|
1083
1083
|
for (l = n.length - 1; l >= 0; --l)
|
|
1084
|
-
n[l] == null || "n?".indexOf(n[l].t) === -1 || (D >= n[l].v.length - 1 ? (D -= n[l].v.length, n[l].v =
|
|
1085
|
-
D >= 0 &&
|
|
1086
|
-
} else if (F !== n.length &&
|
|
1087
|
-
for (D =
|
|
1084
|
+
n[l] == null || "n?".indexOf(n[l].t) === -1 || (D >= n[l].v.length - 1 ? (D -= n[l].v.length, n[l].v = C.substr(D + 1, n[l].v.length)) : D < 0 ? n[l].v = "" : (n[l].v = C.substr(0, D + 1), D = -1), n[l].t = "t", S = l);
|
|
1085
|
+
D >= 0 && S < n.length && (n[S].v = C.substr(0, D + 1) + n[S].v);
|
|
1086
|
+
} else if (F !== n.length && C.indexOf("E") === -1) {
|
|
1087
|
+
for (D = C.indexOf(".") - 1, l = F; l >= 0; --l)
|
|
1088
1088
|
if (!(n[l] == null || "n?".indexOf(n[l].t) === -1)) {
|
|
1089
1089
|
for (c = n[l].v.indexOf(".") > -1 && l === F ? n[l].v.indexOf(".") - 1 : n[l].v.length - 1, j = n[l].v.substr(c + 1); c >= 0; --c)
|
|
1090
|
-
D >= 0 && (n[l].v.charAt(c) === "0" || n[l].v.charAt(c) === "#") && (j =
|
|
1091
|
-
n[l].v = j, n[l].t = "t",
|
|
1090
|
+
D >= 0 && (n[l].v.charAt(c) === "0" || n[l].v.charAt(c) === "#") && (j = C.charAt(D--) + j);
|
|
1091
|
+
n[l].v = j, n[l].t = "t", S = l;
|
|
1092
1092
|
}
|
|
1093
|
-
for (D >= 0 &&
|
|
1093
|
+
for (D >= 0 && S < n.length && (n[S].v = C.substr(0, D + 1) + n[S].v), D = C.indexOf(".") + 1, l = F; l < n.length; ++l)
|
|
1094
1094
|
if (!(n[l] == null || "n?(".indexOf(n[l].t) === -1 && l !== F)) {
|
|
1095
1095
|
for (c = n[l].v.indexOf(".") > -1 && l === F ? n[l].v.indexOf(".") + 1 : 0, j = n[l].v.substr(0, c); c < n[l].v.length; ++c)
|
|
1096
|
-
D <
|
|
1097
|
-
n[l].v = j, n[l].t = "t",
|
|
1096
|
+
D < C.length && (j += C.charAt(D++));
|
|
1097
|
+
n[l].v = j, n[l].t = "t", S = l;
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
@@ -1232,34 +1232,34 @@ var CRC32 = /* @__PURE__ */ (function() {
|
|
|
1232
1232
|
var e = {};
|
|
1233
1233
|
e.version = "1.2.0";
|
|
1234
1234
|
function r() {
|
|
1235
|
-
for (var
|
|
1236
|
-
|
|
1235
|
+
for (var C = 0, F = new Array(256), S = 0; S != 256; ++S)
|
|
1236
|
+
C = S, C = C & 1 ? -306674912 ^ C >>> 1 : C >>> 1, C = C & 1 ? -306674912 ^ C >>> 1 : C >>> 1, C = C & 1 ? -306674912 ^ C >>> 1 : C >>> 1, C = C & 1 ? -306674912 ^ C >>> 1 : C >>> 1, C = C & 1 ? -306674912 ^ C >>> 1 : C >>> 1, C = C & 1 ? -306674912 ^ C >>> 1 : C >>> 1, C = C & 1 ? -306674912 ^ C >>> 1 : C >>> 1, C = C & 1 ? -306674912 ^ C >>> 1 : C >>> 1, F[S] = C;
|
|
1237
1237
|
return typeof Int32Array < "u" ? new Int32Array(F) : F;
|
|
1238
1238
|
}
|
|
1239
1239
|
var t = r();
|
|
1240
|
-
function a(
|
|
1241
|
-
var F = 0,
|
|
1242
|
-
for (b = 0; b != 256; ++b) V[b] =
|
|
1240
|
+
function a(C) {
|
|
1241
|
+
var F = 0, S = 0, b = 0, V = typeof Int32Array < "u" ? new Int32Array(4096) : new Array(4096);
|
|
1242
|
+
for (b = 0; b != 256; ++b) V[b] = C[b];
|
|
1243
1243
|
for (b = 0; b != 256; ++b)
|
|
1244
|
-
for (
|
|
1244
|
+
for (S = C[b], F = 256 + b; F < 4096; F += 256) S = V[F] = S >>> 8 ^ C[S & 255];
|
|
1245
1245
|
var R = [];
|
|
1246
1246
|
for (b = 1; b != 16; ++b) R[b - 1] = typeof Int32Array < "u" ? V.subarray(b * 256, b * 256 + 256) : V.slice(b * 256, b * 256 + 256);
|
|
1247
1247
|
return R;
|
|
1248
1248
|
}
|
|
1249
1249
|
var n = a(t), i = n[0], l = n[1], s = n[2], o = n[3], f = n[4], c = n[5], p = n[6], _ = n[7], u = n[8], m = n[9], d = n[10], x = n[11], k = n[12], B = n[13], N = n[14];
|
|
1250
|
-
function D(
|
|
1251
|
-
for (var
|
|
1252
|
-
return ~
|
|
1250
|
+
function D(C, F) {
|
|
1251
|
+
for (var S = F ^ -1, b = 0, V = C.length; b < V; ) S = S >>> 8 ^ t[(S ^ C.charCodeAt(b++)) & 255];
|
|
1252
|
+
return ~S;
|
|
1253
1253
|
}
|
|
1254
|
-
function j(
|
|
1255
|
-
for (var
|
|
1256
|
-
for (b += 15; V < b; )
|
|
1257
|
-
return ~
|
|
1254
|
+
function j(C, F) {
|
|
1255
|
+
for (var S = F ^ -1, b = C.length - 15, V = 0; V < b; ) S = N[C[V++] ^ S & 255] ^ B[C[V++] ^ S >> 8 & 255] ^ k[C[V++] ^ S >> 16 & 255] ^ x[C[V++] ^ S >>> 24] ^ d[C[V++]] ^ m[C[V++]] ^ u[C[V++]] ^ _[C[V++]] ^ p[C[V++]] ^ c[C[V++]] ^ f[C[V++]] ^ o[C[V++]] ^ s[C[V++]] ^ l[C[V++]] ^ i[C[V++]] ^ t[C[V++]];
|
|
1256
|
+
for (b += 15; V < b; ) S = S >>> 8 ^ t[(S ^ C[V++]) & 255];
|
|
1257
|
+
return ~S;
|
|
1258
1258
|
}
|
|
1259
|
-
function z(
|
|
1260
|
-
for (var
|
|
1261
|
-
R =
|
|
1262
|
-
return ~
|
|
1259
|
+
function z(C, F) {
|
|
1260
|
+
for (var S = F ^ -1, b = 0, V = C.length, R = 0, G = 0; b < V; )
|
|
1261
|
+
R = C.charCodeAt(b++), R < 128 ? S = S >>> 8 ^ t[(S ^ R) & 255] : R < 2048 ? (S = S >>> 8 ^ t[(S ^ (192 | R >> 6 & 31)) & 255], S = S >>> 8 ^ t[(S ^ (128 | R & 63)) & 255]) : R >= 55296 && R < 57344 ? (R = (R & 1023) + 64, G = C.charCodeAt(b++) & 1023, S = S >>> 8 ^ t[(S ^ (240 | R >> 8 & 7)) & 255], S = S >>> 8 ^ t[(S ^ (128 | R >> 2 & 63)) & 255], S = S >>> 8 ^ t[(S ^ (128 | G >> 6 & 15 | (R & 3) << 4)) & 255], S = S >>> 8 ^ t[(S ^ (128 | G & 63)) & 255]) : (S = S >>> 8 ^ t[(S ^ (224 | R >> 12 & 15)) & 255], S = S >>> 8 ^ t[(S ^ (128 | R >> 6 & 63)) & 255], S = S >>> 8 ^ t[(S ^ (128 | R & 63)) & 255]);
|
|
1262
|
+
return ~S;
|
|
1263
1263
|
}
|
|
1264
1264
|
return e.table = t, e.bstr = D, e.buf = j, e.str = z, e;
|
|
1265
1265
|
})(), CFB = /* @__PURE__ */ (function() {
|
|
@@ -1500,7 +1500,7 @@ var CRC32 = /* @__PURE__ */ (function() {
|
|
|
1500
1500
|
y
|
|
1501
1501
|
);
|
|
1502
1502
|
}
|
|
1503
|
-
function
|
|
1503
|
+
function C(g, y) {
|
|
1504
1504
|
var w = y || {}, v = w.root || "Root Entry";
|
|
1505
1505
|
if (g.FullPaths || (g.FullPaths = []), g.FileIndex || (g.FileIndex = []), g.FullPaths.length !== g.FileIndex.length) throw new Error("inconsistent CFB structure");
|
|
1506
1506
|
g.FullPaths.length === 0 && (g.FullPaths[0] = v + "/", g.FileIndex[0] = { name: v, type: 5 }), w.CLSID && (g.FileIndex[0].clsid = w.CLSID), F(g);
|
|
@@ -1509,11 +1509,11 @@ var CRC32 = /* @__PURE__ */ (function() {
|
|
|
1509
1509
|
var y = "Sh33tJ5";
|
|
1510
1510
|
if (!CFB.find(g, "/" + y)) {
|
|
1511
1511
|
var w = new_buf(4);
|
|
1512
|
-
w[0] = 55, w[1] = w[3] = 50, w[2] = 54, g.FileIndex.push({ name: y, type: 2, content: w, size: 4, L: 69, R: 69, C: 69 }), g.FullPaths.push(g.FullPaths[0] + y),
|
|
1512
|
+
w[0] = 55, w[1] = w[3] = 50, w[2] = 54, g.FileIndex.push({ name: y, type: 2, content: w, size: 4, L: 69, R: 69, C: 69 }), g.FullPaths.push(g.FullPaths[0] + y), S(g);
|
|
1513
1513
|
}
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1516
|
-
|
|
1515
|
+
function S(g, y) {
|
|
1516
|
+
C(g);
|
|
1517
1517
|
for (var w = !1, v = !1, T = g.FullPaths.length - 1; T >= 0; --T) {
|
|
1518
1518
|
var A = g.FileIndex[T];
|
|
1519
1519
|
switch (A.type) {
|
|
@@ -1565,7 +1565,7 @@ var CRC32 = /* @__PURE__ */ (function() {
|
|
|
1565
1565
|
function b(g, y) {
|
|
1566
1566
|
var w = y || {};
|
|
1567
1567
|
if (w.fileType == "mad") return ft(g, w);
|
|
1568
|
-
switch (
|
|
1568
|
+
switch (S(g), w.fileType) {
|
|
1569
1569
|
case "zip":
|
|
1570
1570
|
return rt(g, w);
|
|
1571
1571
|
}
|
|
@@ -1967,7 +1967,7 @@ var CRC32 = /* @__PURE__ */ (function() {
|
|
|
1967
1967
|
FileIndex: v,
|
|
1968
1968
|
FullPaths: T
|
|
1969
1969
|
};
|
|
1970
|
-
|
|
1970
|
+
C(A, { root: y.root });
|
|
1971
1971
|
for (var W = w.length - 4; (w[W] != 80 || w[W + 1] != 75 || w[W + 2] != 5 || w[W + 3] != 6) && W >= 0; ) --W;
|
|
1972
1972
|
w.l = W + 4, w.l += 4;
|
|
1973
1973
|
var K = w.read_shift(2);
|
|
@@ -2139,7 +2139,7 @@ var CRC32 = /* @__PURE__ */ (function() {
|
|
|
2139
2139
|
FileIndex: U,
|
|
2140
2140
|
FullPaths: X
|
|
2141
2141
|
};
|
|
2142
|
-
|
|
2142
|
+
C(H);
|
|
2143
2143
|
var J, Q = 0;
|
|
2144
2144
|
for (T = 0; T < v.length; ++T) {
|
|
2145
2145
|
var ie = v[T];
|
|
@@ -2173,11 +2173,11 @@ var CRC32 = /* @__PURE__ */ (function() {
|
|
|
2173
2173
|
}
|
|
2174
2174
|
function ct(g) {
|
|
2175
2175
|
var y = {};
|
|
2176
|
-
return
|
|
2176
|
+
return C(y, g), y;
|
|
2177
2177
|
}
|
|
2178
2178
|
function Ue(g, y, w, v) {
|
|
2179
2179
|
var T = v && v.unsafe;
|
|
2180
|
-
T ||
|
|
2180
|
+
T || C(g);
|
|
2181
2181
|
var A = !T && CFB.find(g, y);
|
|
2182
2182
|
if (!A) {
|
|
2183
2183
|
var W = g.FullPaths[0];
|
|
@@ -2186,7 +2186,7 @@ var CRC32 = /* @__PURE__ */ (function() {
|
|
|
2186
2186
|
return A.content = w, A.size = w ? w.length : 0, v && (v.CLSID && (A.clsid = v.CLSID), v.mt && (A.mt = v.mt), v.ct && (A.ct = v.ct)), A;
|
|
2187
2187
|
}
|
|
2188
2188
|
function ut(g, y) {
|
|
2189
|
-
|
|
2189
|
+
C(g);
|
|
2190
2190
|
var w = CFB.find(g, y);
|
|
2191
2191
|
if (w) {
|
|
2192
2192
|
for (var v = 0; v < g.FileIndex.length; ++v) if (g.FileIndex[v] == w)
|
|
@@ -2195,7 +2195,7 @@ var CRC32 = /* @__PURE__ */ (function() {
|
|
|
2195
2195
|
return !1;
|
|
2196
2196
|
}
|
|
2197
2197
|
function dt(g, y, w) {
|
|
2198
|
-
|
|
2198
|
+
C(g);
|
|
2199
2199
|
var v = CFB.find(g, y);
|
|
2200
2200
|
if (v) {
|
|
2201
2201
|
for (var T = 0; T < g.FileIndex.length; ++T) if (g.FileIndex[T] == v)
|
|
@@ -2204,7 +2204,7 @@ var CRC32 = /* @__PURE__ */ (function() {
|
|
|
2204
2204
|
return !1;
|
|
2205
2205
|
}
|
|
2206
2206
|
function ht(g) {
|
|
2207
|
-
|
|
2207
|
+
S(g, !0);
|
|
2208
2208
|
}
|
|
2209
2209
|
return r.find = V, r.read = z, r.parse = c, r.write = xe, r.writeFile = _e, r.utils = {
|
|
2210
2210
|
cfb_new: ct,
|
|
@@ -4532,40 +4532,40 @@ var DBF = /* @__PURE__ */ (function() {
|
|
|
4532
4532
|
}
|
|
4533
4533
|
if (c[c.l] !== 13 && (c.l = x - 1), c.read_shift(1) !== 13) throw new Error("DBF Terminator not found " + c.l + " " + c[c.l]);
|
|
4534
4534
|
c.l = x;
|
|
4535
|
-
var
|
|
4535
|
+
var C = 0, F = 0;
|
|
4536
4536
|
for (f[0] = [], F = 0; F != N.length; ++F) f[0][F] = N[F].name;
|
|
4537
4537
|
for (; d-- > 0; ) {
|
|
4538
4538
|
if (c[c.l] === 42) {
|
|
4539
4539
|
c.l += k;
|
|
4540
4540
|
continue;
|
|
4541
4541
|
}
|
|
4542
|
-
for (++c.l, f[++
|
|
4543
|
-
var
|
|
4544
|
-
c.l += N[F].len, prep_blob(
|
|
4545
|
-
var b = $cptable.utils.decode(B,
|
|
4542
|
+
for (++c.l, f[++C] = [], F = 0, F = 0; F != N.length; ++F) {
|
|
4543
|
+
var S = c.slice(c.l, c.l + N[F].len);
|
|
4544
|
+
c.l += N[F].len, prep_blob(S, 0);
|
|
4545
|
+
var b = $cptable.utils.decode(B, S);
|
|
4546
4546
|
switch (N[F].type) {
|
|
4547
4547
|
case "C":
|
|
4548
|
-
b.trim().length && (f[
|
|
4548
|
+
b.trim().length && (f[C][F] = b.replace(/\s+$/, ""));
|
|
4549
4549
|
break;
|
|
4550
4550
|
case "D":
|
|
4551
|
-
b.length === 8 ? f[
|
|
4551
|
+
b.length === 8 ? f[C][F] = new Date(+b.slice(0, 4), +b.slice(4, 6) - 1, +b.slice(6, 8)) : f[C][F] = b;
|
|
4552
4552
|
break;
|
|
4553
4553
|
case "F":
|
|
4554
|
-
f[
|
|
4554
|
+
f[C][F] = parseFloat(b.trim());
|
|
4555
4555
|
break;
|
|
4556
4556
|
case "+":
|
|
4557
4557
|
case "I":
|
|
4558
|
-
f[
|
|
4558
|
+
f[C][F] = m ? S.read_shift(-4, "i") ^ 2147483648 : S.read_shift(4, "i");
|
|
4559
4559
|
break;
|
|
4560
4560
|
case "L":
|
|
4561
4561
|
switch (b.trim().toUpperCase()) {
|
|
4562
4562
|
case "Y":
|
|
4563
4563
|
case "T":
|
|
4564
|
-
f[
|
|
4564
|
+
f[C][F] = !0;
|
|
4565
4565
|
break;
|
|
4566
4566
|
case "N":
|
|
4567
4567
|
case "F":
|
|
4568
|
-
f[
|
|
4568
|
+
f[C][F] = !1;
|
|
4569
4569
|
break;
|
|
4570
4570
|
case "":
|
|
4571
4571
|
case "?":
|
|
@@ -4576,32 +4576,32 @@ var DBF = /* @__PURE__ */ (function() {
|
|
|
4576
4576
|
break;
|
|
4577
4577
|
case "M":
|
|
4578
4578
|
if (!_) throw new Error("DBF Unexpected MEMO for type " + p.toString(16));
|
|
4579
|
-
f[
|
|
4579
|
+
f[C][F] = "##MEMO##" + (m ? parseInt(b.trim(), 10) : S.read_shift(4));
|
|
4580
4580
|
break;
|
|
4581
4581
|
case "N":
|
|
4582
|
-
b = b.replace(/\u0000/g, "").trim(), b && b != "." && (f[
|
|
4582
|
+
b = b.replace(/\u0000/g, "").trim(), b && b != "." && (f[C][F] = +b || 0);
|
|
4583
4583
|
break;
|
|
4584
4584
|
case "@":
|
|
4585
|
-
f[
|
|
4585
|
+
f[C][F] = new Date(S.read_shift(-8, "f") - 621356832e5);
|
|
4586
4586
|
break;
|
|
4587
4587
|
case "T":
|
|
4588
|
-
f[
|
|
4588
|
+
f[C][F] = new Date((S.read_shift(4) - 2440588) * 864e5 + S.read_shift(4));
|
|
4589
4589
|
break;
|
|
4590
4590
|
case "Y":
|
|
4591
|
-
f[
|
|
4591
|
+
f[C][F] = S.read_shift(4, "i") / 1e4 + S.read_shift(4, "i") / 1e4 * Math.pow(2, 32);
|
|
4592
4592
|
break;
|
|
4593
4593
|
case "O":
|
|
4594
|
-
f[
|
|
4594
|
+
f[C][F] = -S.read_shift(-8, "f");
|
|
4595
4595
|
break;
|
|
4596
4596
|
case "B":
|
|
4597
4597
|
if (u && N[F].len == 8) {
|
|
4598
|
-
f[
|
|
4598
|
+
f[C][F] = S.read_shift(8, "f");
|
|
4599
4599
|
break;
|
|
4600
4600
|
}
|
|
4601
4601
|
/* falls through */
|
|
4602
4602
|
case "G":
|
|
4603
4603
|
case "P":
|
|
4604
|
-
|
|
4604
|
+
S.l += N[F].len;
|
|
4605
4605
|
break;
|
|
4606
4606
|
case "0":
|
|
4607
4607
|
if (N[F].name === "_NullFlags") break;
|
|
@@ -4656,7 +4656,7 @@ var DBF = /* @__PURE__ */ (function() {
|
|
|
4656
4656
|
}
|
|
4657
4657
|
var N = safe_decode_range(s["!ref"]), D = [], j = [], z = [];
|
|
4658
4658
|
for (d = 0; d <= N.e.c - N.s.c; ++d) {
|
|
4659
|
-
var
|
|
4659
|
+
var C = "", F = "", S = 0, b = [];
|
|
4660
4660
|
for (x = 0; x < u.length; ++x)
|
|
4661
4661
|
u[x][d] != null && b.push(u[x][d]);
|
|
4662
4662
|
if (b.length == 0 || _[d] == null) {
|
|
@@ -4681,9 +4681,9 @@ var DBF = /* @__PURE__ */ (function() {
|
|
|
4681
4681
|
default:
|
|
4682
4682
|
F = "C";
|
|
4683
4683
|
}
|
|
4684
|
-
|
|
4684
|
+
S = Math.max(S, String(b[x]).length), C = C && C != F ? "C" : F;
|
|
4685
4685
|
}
|
|
4686
|
-
|
|
4686
|
+
S > 250 && (S = 250), F = ((m[d] || {}).DBF || {}).type, F == "C" && m[d].DBF.len > S && (S = m[d].DBF.len), C == "B" && F == "N" && (C = "N", z[d] = m[d].DBF.dec, S = m[d].DBF.len), j[d] = C == "C" || F == "N" ? S : i[C] || 0, B += j[d], D[d] = C;
|
|
4687
4687
|
}
|
|
4688
4688
|
var V = c.next(32);
|
|
4689
4689
|
for (V.write_shift(4, 318902576), V.write_shift(4, u.length), V.write_shift(2, 296 + 32 * k), V.write_shift(2, B), d = 0; d < 4; ++d) V.write_shift(4, 0);
|
|
@@ -4848,7 +4848,7 @@ var DBF = /* @__PURE__ */ (function() {
|
|
|
4848
4848
|
throw new Error("Unrecognized type " + u.type);
|
|
4849
4849
|
}
|
|
4850
4850
|
function i(_, u) {
|
|
4851
|
-
var m = _.split(/[\n\r]+/), d = -1, x = -1, k = 0, B = 0, N = [], D = [], j = null, z = {},
|
|
4851
|
+
var m = _.split(/[\n\r]+/), d = -1, x = -1, k = 0, B = 0, N = [], D = [], j = null, z = {}, C = [], F = [], S = [], b = 0, V;
|
|
4852
4852
|
for (+u.codepage >= 0 && set_cp(+u.codepage); k !== m.length; ++k) {
|
|
4853
4853
|
b = 0;
|
|
4854
4854
|
var R = m[k].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g, a).replace(r, t), G = R.replace(/;;/g, "\0").split(";").map(function(O) {
|
|
@@ -4946,14 +4946,14 @@ var DBF = /* @__PURE__ */ (function() {
|
|
|
4946
4946
|
break;
|
|
4947
4947
|
/* font */
|
|
4948
4948
|
case "W":
|
|
4949
|
-
for (
|
|
4950
|
-
b = parseInt(
|
|
4949
|
+
for (S = G[B].slice(1).split(" "), V = parseInt(S[0], 10); V <= parseInt(S[1], 10); ++V)
|
|
4950
|
+
b = parseInt(S[2], 10), F[V - 1] = b === 0 ? { hidden: !0 } : { wch: b }, process_col(F[V - 1]);
|
|
4951
4951
|
break;
|
|
4952
4952
|
case "C":
|
|
4953
4953
|
x = parseInt(G[B].slice(1)) - 1, F[x] || (F[x] = {});
|
|
4954
4954
|
break;
|
|
4955
4955
|
case "R":
|
|
4956
|
-
d = parseInt(G[B].slice(1)) - 1,
|
|
4956
|
+
d = parseInt(G[B].slice(1)) - 1, C[d] || (C[d] = {}), b > 0 ? (C[d].hpt = b, C[d].hpx = pt2px(b)) : b === 0 && (C[d].hidden = !0);
|
|
4957
4957
|
break;
|
|
4958
4958
|
default:
|
|
4959
4959
|
if (u && u.WTF) throw new Error("SYLK bad record " + R);
|
|
@@ -4964,7 +4964,7 @@ var DBF = /* @__PURE__ */ (function() {
|
|
|
4964
4964
|
if (u && u.WTF) throw new Error("SYLK bad record " + R);
|
|
4965
4965
|
}
|
|
4966
4966
|
}
|
|
4967
|
-
return
|
|
4967
|
+
return C.length > 0 && (z["!rows"] = C), F.length > 0 && (z["!cols"] = F), u && u.sheetRows && (N = N.slice(0, u.sheetRows)), [N, z];
|
|
4968
4968
|
}
|
|
4969
4969
|
function l(_, u) {
|
|
4970
4970
|
var m = n(_, u), d = m[0], x = m[1], k = aoa_to_sheet(d, u);
|
|
@@ -5273,10 +5273,10 @@ var DBF = /* @__PURE__ */ (function() {
|
|
|
5273
5273
|
function i(c, p) {
|
|
5274
5274
|
var _ = p || {}, u = "", m = _.dense ? [] : {}, d = { s: { c: 0, r: 0 }, e: { c: 0, r: 0 } };
|
|
5275
5275
|
c.slice(0, 4) == "sep=" ? c.charCodeAt(5) == 13 && c.charCodeAt(6) == 10 ? (u = c.charAt(4), c = c.slice(7)) : c.charCodeAt(5) == 13 || c.charCodeAt(5) == 10 ? (u = c.charAt(4), c = c.slice(6)) : u = n(c.slice(0, 1024)) : _ && _.FS ? u = _.FS : u = n(c.slice(0, 1024));
|
|
5276
|
-
var x = 0, k = 0, B = 0, N = 0, D = 0, j = u.charCodeAt(0), z = !1,
|
|
5276
|
+
var x = 0, k = 0, B = 0, N = 0, D = 0, j = u.charCodeAt(0), z = !1, C = 0, F = c.charCodeAt(0);
|
|
5277
5277
|
c = c.replace(/\r\n/mg, `
|
|
5278
5278
|
`);
|
|
5279
|
-
var
|
|
5279
|
+
var S = _.dateNF != null ? dateNF_regex(_.dateNF) : null;
|
|
5280
5280
|
function b() {
|
|
5281
5281
|
var V = c.slice(N, D), R = {};
|
|
5282
5282
|
if (V.charAt(0) == '"' && V.charAt(V.length - 1) == '"' && (V = V.slice(1, -1).replace(/""/g, '"')), V.length === 0) R.t = "z";
|
|
@@ -5292,16 +5292,16 @@ var DBF = /* @__PURE__ */ (function() {
|
|
|
5292
5292
|
R.t = "b", R.v = !1;
|
|
5293
5293
|
else if (!isNaN(B = fuzzynum(V)))
|
|
5294
5294
|
R.t = "n", _.cellText !== !1 && (R.w = V), R.v = B;
|
|
5295
|
-
else if (!isNaN(fuzzydate(V).getDate()) ||
|
|
5295
|
+
else if (!isNaN(fuzzydate(V).getDate()) || S && V.match(S)) {
|
|
5296
5296
|
R.z = _.dateNF || table_fmt[14];
|
|
5297
5297
|
var G = 0;
|
|
5298
|
-
|
|
5298
|
+
S && V.match(S) && (V = dateNF_fix(V, _.dateNF, V.match(S) || []), G = 1), _.cellDates ? (R.t = "d", R.v = parseDate(V, G)) : (R.t = "n", R.v = datenum(parseDate(V, G))), _.cellText !== !1 && (R.w = SSF_format(R.z, R.v instanceof Date ? datenum(R.v) : R.v)), _.cellNF || delete R.z;
|
|
5299
5299
|
} else
|
|
5300
5300
|
R.t = "s", R.v = V;
|
|
5301
|
-
if (R.t == "z" || (_.dense ? (m[x] || (m[x] = []), m[x][k] = R) : m[encode_cell({ c: k, r: x })] = R), N = D + 1, F = c.charCodeAt(N), d.e.c < k && (d.e.c = k), d.e.r < x && (d.e.r = x),
|
|
5301
|
+
if (R.t == "z" || (_.dense ? (m[x] || (m[x] = []), m[x][k] = R) : m[encode_cell({ c: k, r: x })] = R), N = D + 1, F = c.charCodeAt(N), d.e.c < k && (d.e.c = k), d.e.r < x && (d.e.r = x), C == j) ++k;
|
|
5302
5302
|
else if (k = 0, ++x, _.sheetRows && _.sheetRows <= x) return !0;
|
|
5303
5303
|
}
|
|
5304
|
-
e: for (; D < c.length; ++D) switch (
|
|
5304
|
+
e: for (; D < c.length; ++D) switch (C = c.charCodeAt(D)) {
|
|
5305
5305
|
case 34:
|
|
5306
5306
|
F === 34 && (z = !z);
|
|
5307
5307
|
break;
|
|
@@ -5503,7 +5503,7 @@ var DBF = /* @__PURE__ */ (function() {
|
|
|
5503
5503
|
write_biff_rec(O, 23, b(he, ve, fe, Te.v));
|
|
5504
5504
|
else {
|
|
5505
5505
|
var Ae = format_cell(Te);
|
|
5506
|
-
write_biff_rec(O, 22,
|
|
5506
|
+
write_biff_rec(O, 22, C(he, ve, fe, Ae.slice(0, 239)));
|
|
5507
5507
|
}
|
|
5508
5508
|
}
|
|
5509
5509
|
++fe;
|
|
@@ -5706,7 +5706,7 @@ var DBF = /* @__PURE__ */ (function() {
|
|
|
5706
5706
|
var P = j(I);
|
|
5707
5707
|
return P[1].t = "s", P[1].v = I.read_shift(M - 4, "cstr"), P;
|
|
5708
5708
|
}
|
|
5709
|
-
function
|
|
5709
|
+
function C(I, M, P, O) {
|
|
5710
5710
|
var Y = new_buf(6 + O.length);
|
|
5711
5711
|
Y.write_shift(2, I), Y.write_shift(1, P), Y.write_shift(1, M), Y.write_shift(1, 39);
|
|
5712
5712
|
for (var oe = 0; oe < O.length; ++oe) {
|
|
@@ -5748,7 +5748,7 @@ var DBF = /* @__PURE__ */ (function() {
|
|
|
5748
5748
|
}
|
|
5749
5749
|
return P[1].v = O, P;
|
|
5750
5750
|
}
|
|
5751
|
-
function
|
|
5751
|
+
function S(I, M) {
|
|
5752
5752
|
var P = j(I), O = I.read_shift(4), Y = I.read_shift(4), oe = I.read_shift(2);
|
|
5753
5753
|
if (oe == 65535)
|
|
5754
5754
|
return O === 0 && Y === 3221225472 ? (P[1].t = "e", P[1].v = 15) : O === 0 && Y === 3489660928 ? (P[1].t = "e", P[1].v = 42) : P[1].v = 0, P;
|
|
@@ -5763,7 +5763,7 @@ var DBF = /* @__PURE__ */ (function() {
|
|
|
5763
5763
|
return O < 0 && (oe = 1, O = -O), fe = Math.log2(O) | 0, O /= Math.pow(2, fe - 31), re = O >>> 0, (re & 2147483648) == 0 && (O /= 2, ++fe, re = O >>> 0), O -= re, re |= 2147483648, re >>>= 0, O *= Math.pow(2, 32), se = O >>> 0, Y.write_shift(4, se), Y.write_shift(4, re), fe += 16383 + (oe ? 32768 : 0), Y.write_shift(2, fe), Y;
|
|
5764
5764
|
}
|
|
5765
5765
|
function V(I, M) {
|
|
5766
|
-
var P =
|
|
5766
|
+
var P = S(I);
|
|
5767
5767
|
return I.l += M - 14, P;
|
|
5768
5768
|
}
|
|
5769
5769
|
function R(I, M) {
|
|
@@ -5992,7 +5992,7 @@ var DBF = /* @__PURE__ */ (function() {
|
|
|
5992
5992
|
/*::[*/
|
|
5993
5993
|
22: { n: "LABEL16", f: z },
|
|
5994
5994
|
/*::[*/
|
|
5995
|
-
23: { n: "NUMBER17", f:
|
|
5995
|
+
23: { n: "NUMBER17", f: S },
|
|
5996
5996
|
/*::[*/
|
|
5997
5997
|
24: { n: "NUMBER18", f: F },
|
|
5998
5998
|
/*::[*/
|
|
@@ -7648,21 +7648,21 @@ function stringify_formula(e, r, t, a, n) {
|
|
|
7648
7648
|
break;
|
|
7649
7649
|
case "PtgName":
|
|
7650
7650
|
_ = N[1][2];
|
|
7651
|
-
var
|
|
7651
|
+
var C = (a.names || [])[_ - 1] || (a[0] || [])[_], F = C ? C.Name : "SH33TJSNAME" + String(_);
|
|
7652
7652
|
F && F.slice(0, 6) == "_xlfn." && !n.xlfn && (F = F.slice(6)), s.push(F);
|
|
7653
7653
|
break;
|
|
7654
7654
|
case "PtgNameX":
|
|
7655
|
-
var
|
|
7655
|
+
var S = N[1][1];
|
|
7656
7656
|
_ = N[1][2];
|
|
7657
7657
|
var b;
|
|
7658
7658
|
if (n.biff <= 5)
|
|
7659
|
-
|
|
7659
|
+
S < 0 && (S = -S), a[S] && (b = a[S][_]);
|
|
7660
7660
|
else {
|
|
7661
7661
|
var V = "";
|
|
7662
|
-
if (((a[
|
|
7662
|
+
if (((a[S] || [])[0] || [])[0] == 14849 || (((a[S] || [])[0] || [])[0] == 1025 ? a[S][_] && a[S][_].itab > 0 && (V = a.SheetNames[a[S][_].itab - 1] + "!") : V = a.SheetNames[_ - 1] + "!"), a[S] && a[S][_]) V += a[S][_].Name;
|
|
7663
7663
|
else if (a[0] && a[0][_]) V += a[0][_].Name;
|
|
7664
7664
|
else {
|
|
7665
|
-
var R = (get_ixti_raw(a,
|
|
7665
|
+
var R = (get_ixti_raw(a, S, n) || "").split(";;");
|
|
7666
7666
|
R[_ - 1] ? V = R[_ - 1] : V += "SH33TJSERRX";
|
|
7667
7667
|
}
|
|
7668
7668
|
s.push(V);
|
|
@@ -14415,14 +14415,14 @@ function sheet_add_dom(e, r, t) {
|
|
|
14415
14415
|
for (x = k = 0; x < j.length; ++x) {
|
|
14416
14416
|
var z = j[x];
|
|
14417
14417
|
if (!(a.display && is_dom_element_hidden(z))) {
|
|
14418
|
-
var
|
|
14418
|
+
var C = z.hasAttribute("data-v") ? z.getAttribute("data-v") : z.hasAttribute("v") ? z.getAttribute("v") : htmldecode(z.innerHTML), F = z.getAttribute("data-z") || z.getAttribute("z");
|
|
14419
14419
|
for (_ = 0; _ < p.length; ++_) {
|
|
14420
|
-
var
|
|
14421
|
-
|
|
14420
|
+
var S = p[_];
|
|
14421
|
+
S.s.c == k + i && S.s.r < d + n && d + n <= S.e.r && (k = S.e.c + 1 - i, _ = -1);
|
|
14422
14422
|
}
|
|
14423
14423
|
N = +z.getAttribute("colspan") || 1, ((B = +z.getAttribute("rowspan") || 1) > 1 || N > 1) && p.push({ s: { r: d + n, c: k + i }, e: { r: d + n + (B || 1) - 1, c: k + i + (N || 1) - 1 } });
|
|
14424
|
-
var b = { t: "s", v:
|
|
14425
|
-
|
|
14424
|
+
var b = { t: "s", v: C }, V = z.getAttribute("data-t") || z.getAttribute("t") || "";
|
|
14425
|
+
C != null && (C.length == 0 ? b.t = V || "z" : a.raw || C.trim().length == 0 || V == "s" || (C === "TRUE" ? b = { t: "b", v: !0 } : C === "FALSE" ? b = { t: "b", v: !1 } : isNaN(fuzzynum(C)) ? isNaN(fuzzydate(C).getDate()) || (b = { t: "d", v: parseDate(C) }, a.cellDates || (b = { t: "n", v: datenum(b.v) }), b.z = a.dateNF || table_fmt[14]) : b = { t: "n", v: fuzzynum(C) })), b.z === void 0 && F != null && (b.z = F);
|
|
14426
14426
|
var R = "", G = z.getElementsByTagName("A");
|
|
14427
14427
|
if (G && G.length) for (var Z = 0; Z < G.length && !(G[Z].hasAttribute("href") && (R = G[Z].getAttribute("href"), R.charAt(0) != "#")); ++Z) ;
|
|
14428
14428
|
R && R.charAt(0) != "#" && (b.l = { Target: R }), a.dense ? (e[d + n] || (e[d + n] = []), e[d + n][k + i] = b) : e[encode_cell({ c: k + i, r: d + n })] = b, f.e.c < k + i && (f.e.c = k + i), k += N;
|
|
@@ -14534,12 +14534,12 @@ var write_styles_ods = /* @__PURE__ */ (function() {
|
|
|
14534
14534
|
o.push(r);
|
|
14535
14535
|
continue;
|
|
14536
14536
|
}
|
|
14537
|
-
var
|
|
14537
|
+
var C = e(N);
|
|
14538
14538
|
if (j.l && j.l.Target) {
|
|
14539
14539
|
var F = j.l.Target;
|
|
14540
|
-
F = F.charAt(0) == "#" ? "#" + csf_to_ods_3D(F.slice(1)) : F, F.charAt(0) != "#" && !F.match(/^\w+:/) && (F = "../" + F),
|
|
14540
|
+
F = F.charAt(0) == "#" ? "#" + csf_to_ods_3D(F.slice(1)) : F, F.charAt(0) != "#" && !F.match(/^\w+:/) && (F = "../" + F), C = writextag("text:a", C, { "xlink:href": F.replace(/&/g, "&") });
|
|
14541
14541
|
}
|
|
14542
|
-
o.push(" " + writextag("table:table-cell", writextag("text:p",
|
|
14542
|
+
o.push(" " + writextag("table:table-cell", writextag("text:p", C, {}), B) + `
|
|
14543
14543
|
`);
|
|
14544
14544
|
}
|
|
14545
14545
|
o.push(` </table:table-row>
|
|
@@ -14996,13 +14996,13 @@ function write_numbers_iwa(e, r) {
|
|
|
14996
14996
|
throw "Bad ColumnRowUIDMapArchive";
|
|
14997
14997
|
var z = parse_shallow(D[j].messages[0].data);
|
|
14998
14998
|
z[1] = [], z[2] = [], z[3] = [];
|
|
14999
|
-
for (var
|
|
14999
|
+
for (var C = 0; C <= a.e.c; ++C) {
|
|
15000
15000
|
var F = [];
|
|
15001
|
-
F[1] = F[2] = [{ type: 0, data: write_varint49(
|
|
15001
|
+
F[1] = F[2] = [{ type: 0, data: write_varint49(C + 420690) }], z[1].push({ type: 2, data: write_shallow(F) }), z[2].push({ type: 0, data: write_varint49(C) }), z[3].push({ type: 0, data: write_varint49(C) });
|
|
15002
15002
|
}
|
|
15003
15003
|
z[4] = [], z[5] = [], z[6] = [];
|
|
15004
|
-
for (var
|
|
15005
|
-
F = [], F[1] = F[2] = [{ type: 0, data: write_varint49(
|
|
15004
|
+
for (var S = 0; S <= a.e.r; ++S)
|
|
15005
|
+
F = [], F[1] = F[2] = [{ type: 0, data: write_varint49(S + 726270) }], z[4].push({ type: 2, data: write_shallow(F) }), z[5].push({ type: 0, data: write_varint49(S) }), z[6].push({ type: 0, data: write_varint49(S) });
|
|
15006
15006
|
D[j].messages[0].data = write_shallow(z);
|
|
15007
15007
|
}
|
|
15008
15008
|
N.content = compress_iwa_file(write_iwa_file(D)), N.size = N.content.length, delete k[46];
|
|
@@ -15015,9 +15015,9 @@ function write_numbers_iwa(e, r) {
|
|
|
15015
15015
|
if (D[0].id != R)
|
|
15016
15016
|
throw "Bad HeaderStorageBucket";
|
|
15017
15017
|
var G = parse_shallow(D[0].messages[0].data);
|
|
15018
|
-
for (
|
|
15018
|
+
for (S = 0; S < i.length; ++S) {
|
|
15019
15019
|
var Z = parse_shallow(G[2][0].data);
|
|
15020
|
-
Z[1][0].data = write_varint49(
|
|
15020
|
+
Z[1][0].data = write_varint49(S), Z[4][0].data = write_varint49(i[S].length), G[2][S] = { type: G[2][0].type, data: write_shallow(Z) };
|
|
15021
15021
|
}
|
|
15022
15022
|
D[0].messages[0].data = write_shallow(G);
|
|
15023
15023
|
}
|
|
@@ -15027,8 +15027,8 @@ function write_numbers_iwa(e, r) {
|
|
|
15027
15027
|
{
|
|
15028
15028
|
if (D[0].id != ee)
|
|
15029
15029
|
throw "Bad HeaderStorageBucket";
|
|
15030
|
-
for (G = parse_shallow(D[0].messages[0].data),
|
|
15031
|
-
Z = parse_shallow(G[2][0].data), Z[1][0].data = write_varint49(
|
|
15030
|
+
for (G = parse_shallow(D[0].messages[0].data), C = 0; C <= a.e.c; ++C)
|
|
15031
|
+
Z = parse_shallow(G[2][0].data), Z[1][0].data = write_varint49(C), Z[4][0].data = write_varint49(a.e.r + 1), G[2][C] = { type: G[2][0].type, data: write_shallow(Z) };
|
|
15032
15032
|
D[0].messages[0].data = write_shallow(G);
|
|
15033
15033
|
}
|
|
15034
15034
|
N.content = compress_iwa_file(write_iwa_file(D)), N.size = N.content.length;
|
|
@@ -15708,8 +15708,8 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
15708
15708
|
u.TitleArray && u.TitleArray.length > 0 ? m = u.TitleArray.map((N, D) => `<tr><th colspan='100' style="font-size:${20 - D * 3}px;border:none;">${N}</th></tr>`).join("") : m = `<tr><th colspan='100' style='font-size:20px;border:none'>${t.title}</th></tr>`, u.FootArray && u.FootArray.length > 0 && (d = u.FootArray.map((N) => `<tr><td colspan='100' style="font-size:18ddpx;border:none;text-align:right">${N}</td></tr>`).join(""));
|
|
15709
15709
|
let x = t.columnArray, k = _.map(
|
|
15710
15710
|
(N, D) => `<tr>${x.map((j, z) => {
|
|
15711
|
-
let
|
|
15712
|
-
return
|
|
15711
|
+
let C = c(N, j, z, D);
|
|
15712
|
+
return C.colspan == "0" || C.rowspan == "0" ? "" : `<td rowspan="${C.rowspan > 1 ? C.rowspan : ""}" colspan="${C.colspan > 1 ? C.colspan : ""}">${o(N, j.title)}</td>`;
|
|
15713
15713
|
}).join("")}</tr>`
|
|
15714
15714
|
).join("");
|
|
15715
15715
|
return `
|
|
@@ -16371,11 +16371,11 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16371
16371
|
columnFilterArray: {}
|
|
16372
16372
|
}), i = t;
|
|
16373
16373
|
let l = null;
|
|
16374
|
-
const s = (F,
|
|
16375
|
-
i("command", F,
|
|
16376
|
-
}, o = computed(() => [...f.columnArray]), f = e, c = /* @__PURE__ */ new Map(), p = ({ row: F, column:
|
|
16377
|
-
if (
|
|
16378
|
-
let R =
|
|
16374
|
+
const s = (F, S) => {
|
|
16375
|
+
i("command", F, S);
|
|
16376
|
+
}, o = computed(() => [...f.columnArray]), f = e, c = /* @__PURE__ */ new Map(), p = ({ row: F, column: S, columnIndex: b, rowIndex: V }) => {
|
|
16377
|
+
if (S.property == null) return { rowspan: 1, colspan: 1 };
|
|
16378
|
+
let R = S.property, G = o.value.FirstOrDefault((ue) => ue.dataKey == R);
|
|
16379
16379
|
if (G == null || !G.isHeBing) return { rowspan: 1, colspan: 1 };
|
|
16380
16380
|
const Z = `${V}-${R}`;
|
|
16381
16381
|
if (c.has(Z))
|
|
@@ -16394,10 +16394,10 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16394
16394
|
colspan: 1
|
|
16395
16395
|
};
|
|
16396
16396
|
return c.set(Z, _e), _e;
|
|
16397
|
-
}, _ = async (F,
|
|
16397
|
+
}, _ = async (F, S) => {
|
|
16398
16398
|
try {
|
|
16399
16399
|
let b = [];
|
|
16400
|
-
|
|
16400
|
+
S ? b = S : (b = a.value.filter((G) => G.src.checked), b.length == 0 && (await ElMessageBox.confirm(L(`您尚未选择任何数据!您是想${F}全部数据吗??`), L(`数据${F}确认`), {
|
|
16401
16401
|
cancelButtonText: L("取消"),
|
|
16402
16402
|
confirmButtonText: L("确定")
|
|
16403
16403
|
}), b = a.value)), b = f.fnGetSelectData(b, F);
|
|
@@ -16420,25 +16420,25 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16420
16420
|
}), V.push(G);
|
|
16421
16421
|
}
|
|
16422
16422
|
return V;
|
|
16423
|
-
} catch {
|
|
16424
|
-
return ElMessage({ message: L("数据处理失败"), type: "error" }), [];
|
|
16423
|
+
} catch (b) {
|
|
16424
|
+
return console.log(b), ElMessage({ message: L("数据处理失败"), type: "error" }), [];
|
|
16425
16425
|
}
|
|
16426
16426
|
}, u = async (F) => {
|
|
16427
16427
|
try {
|
|
16428
|
-
let
|
|
16429
|
-
if (
|
|
16428
|
+
let S = await _("导出", F);
|
|
16429
|
+
if (S.length === 0) {
|
|
16430
16430
|
ElMessage({ message: L("没有数据可导出"), type: "warning" });
|
|
16431
16431
|
return;
|
|
16432
16432
|
}
|
|
16433
|
-
let b = 0, V =
|
|
16434
|
-
for (let te in
|
|
16433
|
+
let b = 0, V = S.length, R = [];
|
|
16434
|
+
for (let te in S[0])
|
|
16435
16435
|
b++, R.push(te);
|
|
16436
16436
|
let G = [];
|
|
16437
16437
|
f.printOption.TitleArray.forEach((te) => {
|
|
16438
16438
|
G.push([te]);
|
|
16439
16439
|
}), G.push(R);
|
|
16440
|
-
for (let te = 0; te <
|
|
16441
|
-
let _e = R.map((ue) =>
|
|
16440
|
+
for (let te = 0; te < S.length; te++) {
|
|
16441
|
+
let _e = R.map((ue) => S[te][ue]);
|
|
16442
16442
|
G.push(_e);
|
|
16443
16443
|
}
|
|
16444
16444
|
f.printOption.FootArray.forEach((te) => {
|
|
@@ -16486,7 +16486,7 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16486
16486
|
}
|
|
16487
16487
|
};
|
|
16488
16488
|
let m = /^[+-]?([0-9]+[.][0-9]*|[.][0-9]+)$/;
|
|
16489
|
-
const d = ({ columns: F, data:
|
|
16489
|
+
const d = ({ columns: F, data: S }) => {
|
|
16490
16490
|
let b = [];
|
|
16491
16491
|
return F.forEach((V, R) => {
|
|
16492
16492
|
if (R === 0) {
|
|
@@ -16500,7 +16500,7 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16500
16500
|
}
|
|
16501
16501
|
b[R] = 0;
|
|
16502
16502
|
let Z = !1;
|
|
16503
|
-
|
|
16503
|
+
S.forEach((ee) => {
|
|
16504
16504
|
if (!ee.src.IgnoreSummary) {
|
|
16505
16505
|
let ne = ee[G.dataKey];
|
|
16506
16506
|
!Z && m.test(ne) && (Z = !0);
|
|
@@ -16509,17 +16509,17 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16509
16509
|
}
|
|
16510
16510
|
}), Z && (b[R] = b[R].toFixed(2));
|
|
16511
16511
|
}), b;
|
|
16512
|
-
}, x = async (F,
|
|
16512
|
+
}, x = async (F, S) => {
|
|
16513
16513
|
try {
|
|
16514
|
-
let b = F[
|
|
16514
|
+
let b = F[S.dataKey];
|
|
16515
16515
|
if (b == "合计") return b;
|
|
16516
|
-
if (
|
|
16517
|
-
let V =
|
|
16516
|
+
if (S.EnumType) {
|
|
16517
|
+
let V = S.EnumType;
|
|
16518
16518
|
for (let R in V)
|
|
16519
16519
|
if (V[R] == b) return L(R);
|
|
16520
16520
|
return "";
|
|
16521
16521
|
}
|
|
16522
|
-
return
|
|
16522
|
+
return S.FnGet ? await S.FnGet(F) : b;
|
|
16523
16523
|
} catch (b) {
|
|
16524
16524
|
return console.error("获取列值失败:", b), "";
|
|
16525
16525
|
}
|
|
@@ -16532,7 +16532,7 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16532
16532
|
};
|
|
16533
16533
|
watch(
|
|
16534
16534
|
() => f.data,
|
|
16535
|
-
(F,
|
|
16535
|
+
(F, S) => {
|
|
16536
16536
|
B();
|
|
16537
16537
|
}
|
|
16538
16538
|
), onMounted(() => {
|
|
@@ -16540,14 +16540,14 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16540
16540
|
}), onUnmounted(() => {
|
|
16541
16541
|
l && clearTimeout(l);
|
|
16542
16542
|
});
|
|
16543
|
-
const N = (F,
|
|
16544
|
-
n.columnFilterArray[F.dataKey] =
|
|
16543
|
+
const N = (F, S) => {
|
|
16544
|
+
n.columnFilterArray[F.dataKey] = S, B();
|
|
16545
16545
|
}, D = /* @__PURE__ */ new Map(), j = async (F) => {
|
|
16546
16546
|
try {
|
|
16547
16547
|
F = F || f.data;
|
|
16548
|
-
const
|
|
16549
|
-
if (D.has(
|
|
16550
|
-
return D.get(
|
|
16548
|
+
const S = JSON.stringify(F.map((R) => ({ id: R.id || R.src?.id, data: R })));
|
|
16549
|
+
if (D.has(S))
|
|
16550
|
+
return D.get(S);
|
|
16551
16551
|
let b = [];
|
|
16552
16552
|
const V = 50;
|
|
16553
16553
|
for (let R = 0; R < F.length; R += V) {
|
|
@@ -16565,25 +16565,25 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16565
16565
|
}), ne = await Promise.all(ee);
|
|
16566
16566
|
b.push(...ne);
|
|
16567
16567
|
}
|
|
16568
|
-
return D.set(
|
|
16569
|
-
} catch {
|
|
16570
|
-
return ElMessage({ message: L("数据处理失败"), type: "error" }), [];
|
|
16568
|
+
return D.set(S, b), b;
|
|
16569
|
+
} catch (S) {
|
|
16570
|
+
return console.log(S), ElMessage({ message: L("数据处理失败"), type: "error" }), [];
|
|
16571
16571
|
}
|
|
16572
16572
|
}, z = async () => {
|
|
16573
16573
|
try {
|
|
16574
|
-
c.clear(), n.srcDataArray = await j(), a.value = n.srcDataArray.filter((F) => !o.value.some((
|
|
16575
|
-
if (
|
|
16576
|
-
let b = n.columnFilterArray[
|
|
16574
|
+
c.clear(), n.srcDataArray = await j(), a.value = n.srcDataArray.filter((F) => !o.value.some((S) => {
|
|
16575
|
+
if (S.isFilter && n.columnFilterArray[S.dataKey]) {
|
|
16576
|
+
let b = n.columnFilterArray[S.dataKey];
|
|
16577
16577
|
if (b.length > 0)
|
|
16578
|
-
return !b.includes(F[
|
|
16578
|
+
return !b.includes(F[S.dataKey]);
|
|
16579
16579
|
}
|
|
16580
16580
|
return !1;
|
|
16581
16581
|
}));
|
|
16582
16582
|
} catch {
|
|
16583
16583
|
ElMessage({ message: L("数据更新失败"), type: "error" });
|
|
16584
16584
|
}
|
|
16585
|
-
},
|
|
16586
|
-
a.value.ForEach((
|
|
16585
|
+
}, C = (F) => {
|
|
16586
|
+
a.value.ForEach((S) => S.src.checked = !1), F.forEach((S) => S.src.checked = !0), i("select", F);
|
|
16587
16587
|
};
|
|
16588
16588
|
return r({
|
|
16589
16589
|
onUpdateData: z,
|
|
@@ -16597,7 +16597,7 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16597
16597
|
ElMessage({ message: L("打印准备失败"), type: "error" });
|
|
16598
16598
|
}
|
|
16599
16599
|
}
|
|
16600
|
-
}), (F,
|
|
16600
|
+
}), (F, S) => (openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
16601
16601
|
createVNode(unref(ElTable), {
|
|
16602
16602
|
data: a.value,
|
|
16603
16603
|
height: "full",
|
|
@@ -16609,7 +16609,7 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16609
16609
|
"sum-text": unref(L)("合计"),
|
|
16610
16610
|
"span-method": p,
|
|
16611
16611
|
"summary-method": d,
|
|
16612
|
-
onSelectionChange:
|
|
16612
|
+
onSelectionChange: C
|
|
16613
16613
|
}, {
|
|
16614
16614
|
default: withCtx(() => [
|
|
16615
16615
|
f.showCheck ? (openBlock(), createBlock(unref(ElTableColumn), {
|
|
@@ -16656,7 +16656,7 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16656
16656
|
}, 8, ["data", "show-summary", "sum-text"]),
|
|
16657
16657
|
createVNode(_sfc_main$u, {
|
|
16658
16658
|
modelValue: n.IsVisible,
|
|
16659
|
-
"onUpdate:modelValue":
|
|
16659
|
+
"onUpdate:modelValue": S[0] || (S[0] = (b) => n.IsVisible = b),
|
|
16660
16660
|
data: n.dataArray,
|
|
16661
16661
|
title: f.tabName,
|
|
16662
16662
|
columnArray: o.value,
|
|
@@ -16664,7 +16664,7 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16664
16664
|
}, null, 8, ["modelValue", "data", "title", "columnArray", "printOption"])
|
|
16665
16665
|
]));
|
|
16666
16666
|
}
|
|
16667
|
-
}, DataListV1 = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-
|
|
16667
|
+
}, DataListV1 = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-420a64a7"]]), _hoisted_1$d = { style: { height: "100%", width: "100%" } }, _sfc_main$l = {
|
|
16668
16668
|
__name: "index",
|
|
16669
16669
|
props: {
|
|
16670
16670
|
showCheck: { type: Boolean, default: !0 },
|
|
@@ -16701,25 +16701,25 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16701
16701
|
columnFilterArray: {}
|
|
16702
16702
|
}), i = t;
|
|
16703
16703
|
let l = null;
|
|
16704
|
-
const s = (
|
|
16705
|
-
i("command",
|
|
16704
|
+
const s = (C, F) => {
|
|
16705
|
+
i("command", C, F);
|
|
16706
16706
|
}, o = computed(() => [...f.columnArray]), f = e, c = computed(() => {
|
|
16707
|
-
const
|
|
16708
|
-
return f.showCheck &&
|
|
16707
|
+
const C = [];
|
|
16708
|
+
return f.showCheck && C.push({
|
|
16709
16709
|
key: "selection",
|
|
16710
16710
|
title: "",
|
|
16711
16711
|
align: "center",
|
|
16712
16712
|
fixed: "left",
|
|
16713
16713
|
dataKey: "selection",
|
|
16714
16714
|
width: 55,
|
|
16715
|
-
cellRenderer: ({ rowData: F, rowIndex:
|
|
16715
|
+
cellRenderer: ({ rowData: F, rowIndex: S }) => h("input", {
|
|
16716
16716
|
type: "checkbox",
|
|
16717
16717
|
checked: F.src?.checked || !1,
|
|
16718
16718
|
onChange: (b) => {
|
|
16719
16719
|
F.src.checked = b.target.checked, z();
|
|
16720
16720
|
}
|
|
16721
16721
|
})
|
|
16722
|
-
}), f.showLineNo &&
|
|
16722
|
+
}), f.showLineNo && C.push({
|
|
16723
16723
|
key: "index",
|
|
16724
16724
|
title: L("行号"),
|
|
16725
16725
|
align: "center",
|
|
@@ -16728,7 +16728,7 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16728
16728
|
width: 80,
|
|
16729
16729
|
cellRenderer: ({ rowIndex: F }) => F + 1
|
|
16730
16730
|
}), o.value.forEach((F) => {
|
|
16731
|
-
const
|
|
16731
|
+
const S = {
|
|
16732
16732
|
key: F.dataKey,
|
|
16733
16733
|
title: L(F.title),
|
|
16734
16734
|
dataKey: F.dataKey,
|
|
@@ -16748,8 +16748,8 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16748
16748
|
onChange: N
|
|
16749
16749
|
})
|
|
16750
16750
|
};
|
|
16751
|
-
|
|
16752
|
-
}), f.commandArray.length > 0 &&
|
|
16751
|
+
C.push(S);
|
|
16752
|
+
}), f.commandArray.length > 0 && C.push({
|
|
16753
16753
|
key: "actions",
|
|
16754
16754
|
title: L("功能"),
|
|
16755
16755
|
fixed: "right",
|
|
@@ -16763,27 +16763,27 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16763
16763
|
maxCommand: f.maxCommand,
|
|
16764
16764
|
onCommand: s
|
|
16765
16765
|
})
|
|
16766
|
-
}),
|
|
16767
|
-
}), p = ({ rowIndex:
|
|
16768
|
-
}, u = async (
|
|
16766
|
+
}), C;
|
|
16767
|
+
}), p = ({ rowIndex: C }) => C % 2 === 0 ? "even-row" : "odd-row", _ = ({ rowData: C }) => {
|
|
16768
|
+
}, u = async (C, F) => {
|
|
16769
16769
|
try {
|
|
16770
|
-
let
|
|
16771
|
-
F ?
|
|
16770
|
+
let S = [];
|
|
16771
|
+
F ? S = F : (S = a.value.filter((R) => R.src.checked), S.length == 0 && (await ElMessageBox.confirm(L(`您尚未选择任何数据!您是想${C}全部数据吗??`), L(`数据${C}确认`), {
|
|
16772
16772
|
cancelButtonText: L("取消"),
|
|
16773
16773
|
confirmButtonText: L("确定")
|
|
16774
|
-
}),
|
|
16775
|
-
let b =
|
|
16774
|
+
}), S = a.value)), S = f.fnGetSelectData(S, C);
|
|
16775
|
+
let b = S.map((R) => {
|
|
16776
16776
|
let G = {};
|
|
16777
16777
|
for (let Z in R) {
|
|
16778
16778
|
if (Z == "src") {
|
|
16779
|
-
|
|
16779
|
+
C == "打印" && (G[Z] = R.src);
|
|
16780
16780
|
continue;
|
|
16781
16781
|
}
|
|
16782
16782
|
let ee = o.value.FirstOrDefault((ne) => ne.dataKey == Z);
|
|
16783
16783
|
ee != null && (G[ee.title] = R[Z]);
|
|
16784
16784
|
}
|
|
16785
16785
|
return G;
|
|
16786
|
-
}), V = x({ columns: o.value.Select((R) => ({ property: R.dataKey, title: R.title })), data:
|
|
16786
|
+
}), V = x({ columns: o.value.Select((R) => ({ property: R.dataKey, title: R.title })), data: S });
|
|
16787
16787
|
if (V.Exists((R) => R > 0)) {
|
|
16788
16788
|
let R = {};
|
|
16789
16789
|
o.value.ForEach((G, Z) => {
|
|
@@ -16791,19 +16791,19 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16791
16791
|
}), b.push(R);
|
|
16792
16792
|
}
|
|
16793
16793
|
return b;
|
|
16794
|
-
} catch {
|
|
16795
|
-
return ElMessage({ message: L("数据处理失败"), type: "error" }), [];
|
|
16794
|
+
} catch (S) {
|
|
16795
|
+
return console.log(S), ElMessage({ message: L("数据处理失败"), type: "error" }), [];
|
|
16796
16796
|
}
|
|
16797
|
-
}, m = async (
|
|
16797
|
+
}, m = async (C) => {
|
|
16798
16798
|
try {
|
|
16799
|
-
let F = await u("导出",
|
|
16799
|
+
let F = await u("导出", C);
|
|
16800
16800
|
if (F.length === 0) {
|
|
16801
16801
|
ElMessage({ message: L("没有数据可导出"), type: "warning" });
|
|
16802
16802
|
return;
|
|
16803
16803
|
}
|
|
16804
|
-
let
|
|
16804
|
+
let S = 0, b = F.length, V = [];
|
|
16805
16805
|
for (let ne in F[0])
|
|
16806
|
-
|
|
16806
|
+
S++, V.push(ne);
|
|
16807
16807
|
let R = [];
|
|
16808
16808
|
f.printOption.TitleArray.forEach((ne) => {
|
|
16809
16809
|
R.push([ne]);
|
|
@@ -16818,12 +16818,12 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16818
16818
|
const G = utils.aoa_to_sheet(R, { header: V });
|
|
16819
16819
|
let Z = [];
|
|
16820
16820
|
for (let ne = 0; ne < f.printOption.TitleArray.length; ne++)
|
|
16821
|
-
Z.push({ s: { r: ne, c: 0 }, e: { r: ne, c:
|
|
16821
|
+
Z.push({ s: { r: ne, c: 0 }, e: { r: ne, c: S - 1 } });
|
|
16822
16822
|
for (let ne = 0; ne < f.printOption.FootArray.length; ne++) {
|
|
16823
16823
|
let te = b + ne + f.printOption.TitleArray.length + 1;
|
|
16824
|
-
Z.push({ s: { r: te, c: 0 }, e: { r: te, c:
|
|
16824
|
+
Z.push({ s: { r: te, c: 0 }, e: { r: te, c: S - 1 } });
|
|
16825
16825
|
}
|
|
16826
|
-
for (let ne = 0; ne <
|
|
16826
|
+
for (let ne = 0; ne < S; ne++) {
|
|
16827
16827
|
let te = V[ne], _e = o.value.FirstOrDefault((I) => I.title == te);
|
|
16828
16828
|
if (_e == null || !_e.isHeBing) continue;
|
|
16829
16829
|
let ue, xe = 0, me = 0;
|
|
@@ -16857,42 +16857,42 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16857
16857
|
}
|
|
16858
16858
|
};
|
|
16859
16859
|
let d = /^[+-]?([0-9]+[.][0-9]*|[.][0-9]+)$/;
|
|
16860
|
-
const x = ({ columns:
|
|
16861
|
-
let
|
|
16862
|
-
return
|
|
16860
|
+
const x = ({ columns: C, data: F }) => {
|
|
16861
|
+
let S = [];
|
|
16862
|
+
return C.forEach((b, V) => {
|
|
16863
16863
|
if (V === 0) {
|
|
16864
|
-
|
|
16864
|
+
S[V] = L("合计");
|
|
16865
16865
|
return;
|
|
16866
16866
|
}
|
|
16867
16867
|
let R = o.value.FirstOrDefault((Z) => Z.dataKey == b.property && Z.isSummary);
|
|
16868
16868
|
if (R == null) {
|
|
16869
|
-
|
|
16869
|
+
S[V] = "";
|
|
16870
16870
|
return;
|
|
16871
16871
|
}
|
|
16872
|
-
|
|
16872
|
+
S[V] = 0;
|
|
16873
16873
|
let G = !1;
|
|
16874
16874
|
F.forEach((Z) => {
|
|
16875
16875
|
if (!Z.src.IgnoreSummary) {
|
|
16876
16876
|
let ee = Z[R.dataKey];
|
|
16877
16877
|
!G && d.test(ee) && (G = !0);
|
|
16878
16878
|
let ne = Number(Z[R.dataKey]);
|
|
16879
|
-
Number.isNaN(ne) || (
|
|
16879
|
+
Number.isNaN(ne) || (S[V] += ne);
|
|
16880
16880
|
}
|
|
16881
|
-
}), G && (
|
|
16882
|
-
}),
|
|
16883
|
-
}, k = async (
|
|
16881
|
+
}), G && (S[V] = S[V].toFixed(2));
|
|
16882
|
+
}), S;
|
|
16883
|
+
}, k = async (C, F) => {
|
|
16884
16884
|
try {
|
|
16885
|
-
let
|
|
16886
|
-
if (
|
|
16885
|
+
let S = C[F.dataKey];
|
|
16886
|
+
if (S == "合计") return S;
|
|
16887
16887
|
if (F.EnumType) {
|
|
16888
16888
|
let b = F.EnumType;
|
|
16889
16889
|
for (let V in b)
|
|
16890
|
-
if (b[V] ==
|
|
16890
|
+
if (b[V] == S) return L(V);
|
|
16891
16891
|
return "";
|
|
16892
16892
|
}
|
|
16893
|
-
return F.FnGet ? await F.FnGet(
|
|
16894
|
-
} catch (
|
|
16895
|
-
return console.error("获取列值失败:",
|
|
16893
|
+
return F.FnGet ? await F.FnGet(C) : S;
|
|
16894
|
+
} catch (S) {
|
|
16895
|
+
return console.error("获取列值失败:", S), "";
|
|
16896
16896
|
}
|
|
16897
16897
|
}, B = () => {
|
|
16898
16898
|
l && clearTimeout(l), l = setTimeout(() => {
|
|
@@ -16901,7 +16901,7 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16901
16901
|
};
|
|
16902
16902
|
watch(
|
|
16903
16903
|
() => f.data,
|
|
16904
|
-
(
|
|
16904
|
+
(C, F) => {
|
|
16905
16905
|
B();
|
|
16906
16906
|
}
|
|
16907
16907
|
), onMounted(() => {
|
|
@@ -16909,14 +16909,14 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16909
16909
|
}), onUnmounted(() => {
|
|
16910
16910
|
l && clearTimeout(l);
|
|
16911
16911
|
});
|
|
16912
|
-
const N = (
|
|
16913
|
-
n.columnFilterArray[
|
|
16914
|
-
}, D = async (
|
|
16912
|
+
const N = (C, F) => {
|
|
16913
|
+
n.columnFilterArray[C.dataKey] = F, B();
|
|
16914
|
+
}, D = async (C) => {
|
|
16915
16915
|
try {
|
|
16916
|
-
|
|
16916
|
+
C = C || f.data;
|
|
16917
16917
|
let F = [];
|
|
16918
|
-
for (let
|
|
16919
|
-
let b = S
|
|
16918
|
+
for (let S = 0; S < C.length; S++) {
|
|
16919
|
+
let b = C[S];
|
|
16920
16920
|
b.src = b;
|
|
16921
16921
|
let V = {};
|
|
16922
16922
|
for (let R = 0; R < o.value.length; R++) {
|
|
@@ -16926,17 +16926,17 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16926
16926
|
V.src = b, F.push(V);
|
|
16927
16927
|
}
|
|
16928
16928
|
return F;
|
|
16929
|
-
} catch {
|
|
16930
|
-
return ElMessage({ message: L("数据处理失败"), type: "error" }), [];
|
|
16929
|
+
} catch (F) {
|
|
16930
|
+
return console.log(F), ElMessage({ message: L("数据处理失败"), type: "error" }), [];
|
|
16931
16931
|
}
|
|
16932
16932
|
}, j = async () => {
|
|
16933
16933
|
try {
|
|
16934
|
-
n.srcDataArray = await D(), a.value = n.srcDataArray.filter((
|
|
16934
|
+
n.srcDataArray = await D(), a.value = n.srcDataArray.filter((C) => {
|
|
16935
16935
|
for (let F = 0; F < o.value.length; F++) {
|
|
16936
|
-
let
|
|
16937
|
-
if (
|
|
16938
|
-
let b = n.columnFilterArray[
|
|
16939
|
-
if (b.length > 0 && !b.some((V) => V == S
|
|
16936
|
+
let S = o.value[F];
|
|
16937
|
+
if (S.isFilter && n.columnFilterArray[S.dataKey]) {
|
|
16938
|
+
let b = n.columnFilterArray[S.dataKey];
|
|
16939
|
+
if (b.length > 0 && !b.some((V) => V == C[S.dataKey]))
|
|
16940
16940
|
return !1;
|
|
16941
16941
|
}
|
|
16942
16942
|
}
|
|
@@ -16946,8 +16946,8 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16946
16946
|
ElMessage({ message: L("数据更新失败"), type: "error" });
|
|
16947
16947
|
}
|
|
16948
16948
|
}, z = () => {
|
|
16949
|
-
const
|
|
16950
|
-
i("select",
|
|
16949
|
+
const C = a.value.filter((F) => F.src.checked);
|
|
16950
|
+
i("select", C);
|
|
16951
16951
|
};
|
|
16952
16952
|
return r({
|
|
16953
16953
|
onUpdateData: j,
|
|
@@ -16961,14 +16961,14 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16961
16961
|
ElMessage({ message: L("打印准备失败"), type: "error" });
|
|
16962
16962
|
}
|
|
16963
16963
|
}
|
|
16964
|
-
}), (
|
|
16964
|
+
}), (C, F) => (openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
16965
16965
|
createVNode(unref(ElAutoResizer), null, {
|
|
16966
|
-
default: withCtx(({ height:
|
|
16966
|
+
default: withCtx(({ height: S, width: b }) => [
|
|
16967
16967
|
createVNode(unref(ElTableV2), {
|
|
16968
16968
|
data: a.value,
|
|
16969
16969
|
columns: c.value,
|
|
16970
16970
|
width: b,
|
|
16971
|
-
height:
|
|
16971
|
+
height: S,
|
|
16972
16972
|
"row-height": 50,
|
|
16973
16973
|
"header-height": 50,
|
|
16974
16974
|
fixed: "",
|
|
@@ -16980,7 +16980,7 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16980
16980
|
}),
|
|
16981
16981
|
createVNode(_sfc_main$u, {
|
|
16982
16982
|
modelValue: n.IsVisible,
|
|
16983
|
-
"onUpdate:modelValue": F[0] || (F[0] = (
|
|
16983
|
+
"onUpdate:modelValue": F[0] || (F[0] = (S) => n.IsVisible = S),
|
|
16984
16984
|
data: n.dataArray,
|
|
16985
16985
|
title: f.tabName,
|
|
16986
16986
|
columnArray: o.value,
|
|
@@ -16988,7 +16988,7 @@ const _hoisted_1$l = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16988
16988
|
}, null, 8, ["modelValue", "data", "title", "columnArray", "printOption"])
|
|
16989
16989
|
]));
|
|
16990
16990
|
}
|
|
16991
|
-
}, DataListV2 = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-
|
|
16991
|
+
}, DataListV2 = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-18049ba5"]]), _sfc_main$k = {
|
|
16992
16992
|
__name: "index",
|
|
16993
16993
|
props: {
|
|
16994
16994
|
version: {
|
|
@@ -17255,9 +17255,9 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17255
17255
|
}, k = computed({
|
|
17256
17256
|
get: () => {
|
|
17257
17257
|
var z = [];
|
|
17258
|
-
return u.commandArray && u.commandArray.length > 0 && u.commandArray.forEach((
|
|
17258
|
+
return u.commandArray && u.commandArray.length > 0 && u.commandArray.forEach((C) => z.push(C)), d.value.some((C) => C.Name == "编辑") ? z.push("编辑") : d.value.some((C) => C.Name == "查看") && z.push("查看"), d.value.some((C) => C.Name == "删除") && z.push("删除"), z;
|
|
17259
17259
|
}
|
|
17260
|
-
}), B = (z,
|
|
17260
|
+
}), B = (z, C) => {
|
|
17261
17261
|
switch (z) {
|
|
17262
17262
|
case "新增": {
|
|
17263
17263
|
i.value = !0, o.Title = `${L(u.tabName)} - ` + L("添加"), o.DataModel = {}, m("handData", o.DataModel, !0), o.IsVisible = !0;
|
|
@@ -17267,16 +17267,16 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17267
17267
|
case "编辑": {
|
|
17268
17268
|
i.value = z == "编辑", o.Title = `${L(u.tabName)} - ${L(z)}`, SafeCall$1(async () => {
|
|
17269
17269
|
o.DataModel = await AjaxCallWeb(`${u.host}/${u.controller}/GetModel`, {
|
|
17270
|
-
Id:
|
|
17271
|
-
}), m("handData", o.DataModel, !0), o.IsVisible = !0, o.DataModel.Reload = () => B(z,
|
|
17270
|
+
Id: C.Id
|
|
17271
|
+
}), m("handData", o.DataModel, !0), o.IsVisible = !0, o.DataModel.Reload = () => B(z, C);
|
|
17272
17272
|
}, L("数据加载中"));
|
|
17273
17273
|
break;
|
|
17274
17274
|
}
|
|
17275
17275
|
case "删除": {
|
|
17276
17276
|
confirm(L("数据删除后将不能恢复,请确认是否删除")) && SafeCall$1(async () => {
|
|
17277
|
-
await AjaxCallWeb(`${u.host}/${u.controller}/Delete`, { Id:
|
|
17277
|
+
await AjaxCallWeb(`${u.host}/${u.controller}/Delete`, { Id: C.Id }), ElMessage({ message: L("数据删除成功!"), type: "success" });
|
|
17278
17278
|
for (let F = 0; F < n.value.length; F++)
|
|
17279
|
-
if (n.value[F].Id ==
|
|
17279
|
+
if (n.value[F].Id == C.Id) {
|
|
17280
17280
|
n.value.splice(F, 1);
|
|
17281
17281
|
break;
|
|
17282
17282
|
}
|
|
@@ -17287,21 +17287,21 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17287
17287
|
case "批量删除": {
|
|
17288
17288
|
if (confirm(L(`数据删除后无法恢复!!\r
|
|
17289
17289
|
确认删除吗?`))) {
|
|
17290
|
-
let F = n.value.filter((
|
|
17290
|
+
let F = n.value.filter((S) => S.checked);
|
|
17291
17291
|
if (F.length == 0) return ElMessage({ message: L("未选择需要删除的数据"), type: "error" });
|
|
17292
17292
|
SafeCall$1(async () => {
|
|
17293
|
-
let
|
|
17293
|
+
let S = 0, b = 0;
|
|
17294
17294
|
for (let V = 0; V < F.length; V++)
|
|
17295
17295
|
try {
|
|
17296
17296
|
let R = F[V].Id;
|
|
17297
17297
|
await AjaxCallWeb(`${u.host}/${u.controller}/Delete`, {
|
|
17298
17298
|
Id: R
|
|
17299
|
-
}),
|
|
17299
|
+
}), S++, ElMessage({ message: L("删除成功") + `(${V + 1}/${F.length})` });
|
|
17300
17300
|
} catch {
|
|
17301
17301
|
b++, ElMessage({ message: L("删除失败") + `(${V + 1}/${F.length})`, type: "error" });
|
|
17302
17302
|
}
|
|
17303
|
-
|
|
17304
|
-
message: L("批量删除") + `:${
|
|
17303
|
+
S > 0 && (ElMessage({
|
|
17304
|
+
message: L("批量删除") + `:${S}` + L("条数据成功"),
|
|
17305
17305
|
type: "success"
|
|
17306
17306
|
}), n.value = n.value.filter((V) => !F.some((R) => R.Id == V.Id)), f.value.onUpdateData(!0)), b > 0 && ElMessage({
|
|
17307
17307
|
message: L("批量删除") + `:${b}` + L("条数据失败"),
|
|
@@ -17312,7 +17312,7 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17312
17312
|
break;
|
|
17313
17313
|
}
|
|
17314
17314
|
default: {
|
|
17315
|
-
m("command", z,
|
|
17315
|
+
m("command", z, C);
|
|
17316
17316
|
break;
|
|
17317
17317
|
}
|
|
17318
17318
|
}
|
|
@@ -17320,37 +17320,37 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17320
17320
|
SafeCall$1(async () => {
|
|
17321
17321
|
let z = deepClone(o.DataModel);
|
|
17322
17322
|
m("saveData", z, !0);
|
|
17323
|
-
let
|
|
17323
|
+
let C = await AjaxCallWeb(`${u.host}/${u.controller}/SaveModel`, z);
|
|
17324
17324
|
ElMessage({ message: L("数据保存成功!"), type: "success" }), o.IsVisible = !1, j();
|
|
17325
17325
|
}, L("数据保存中"));
|
|
17326
17326
|
}, D = async () => {
|
|
17327
|
-
let z = Math.max(c.value, 1),
|
|
17328
|
-
var
|
|
17327
|
+
let z = Math.max(c.value, 1), C = 500, F = Math.ceil(z / C);
|
|
17328
|
+
var S = [];
|
|
17329
17329
|
confirm(`是否导出全部数据?\r
|
|
17330
17330
|
共:${z}条数据`) && (await SafeCall$1(async (b) => {
|
|
17331
17331
|
for (let R = 1; R <= F; R++) {
|
|
17332
17332
|
b.setText(`数据拉取中:${R}/${F} `);
|
|
17333
17333
|
let G = {
|
|
17334
17334
|
PageIndex: R,
|
|
17335
|
-
PageSize:
|
|
17335
|
+
PageSize: C
|
|
17336
17336
|
};
|
|
17337
17337
|
if (u.searchParam)
|
|
17338
17338
|
for (var V in u.searchParam) G[V] = u.searchParam[V];
|
|
17339
17339
|
let Z = await AjaxCallWeb(`${u.host}/${u.controller}/GetPage`, G);
|
|
17340
|
-
Z.data && (Z = Z.data), Z.forEach((ee) => m("handData", ee, !1)), Z = await f.value.onHandDataValue(Z),
|
|
17340
|
+
Z.data && (Z = Z.data), Z.forEach((ee) => m("handData", ee, !1)), Z = await f.value.onHandDataValue(Z), S.push(...Z);
|
|
17341
17341
|
}
|
|
17342
|
-
}, "数据拉取中"), f.value.exportData(
|
|
17342
|
+
}, "数据拉取中"), f.value.exportData(S));
|
|
17343
17343
|
}, j = (z) => {
|
|
17344
17344
|
SafeCall$1(async () => {
|
|
17345
17345
|
z && z > 0 && (p.value = z);
|
|
17346
|
-
var
|
|
17346
|
+
var C = {
|
|
17347
17347
|
PageIndex: p.value,
|
|
17348
17348
|
PageSize: _.value
|
|
17349
17349
|
};
|
|
17350
17350
|
if (u.searchParam)
|
|
17351
|
-
for (var F in u.searchParam)
|
|
17352
|
-
let
|
|
17353
|
-
|
|
17351
|
+
for (var F in u.searchParam) C[F] = u.searchParam[F];
|
|
17352
|
+
let S = await AjaxCallWeb(`${u.host}/${u.controller}/GetPage`, C);
|
|
17353
|
+
S.data ? (c.value = S.totalCount, S = S.data) : c.value = window.LastResult.totalRows, S.forEach((b) => m("handData", b, !1)), n.value = S;
|
|
17354
17354
|
}, L("数据查询中"));
|
|
17355
17355
|
};
|
|
17356
17356
|
return onMounted(async () => {
|
|
@@ -17372,11 +17372,11 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17372
17372
|
}
|
|
17373
17373
|
}), r({
|
|
17374
17374
|
onSearch: j
|
|
17375
|
-
}), (z,
|
|
17375
|
+
}), (z, C) => (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
17376
17376
|
l.value ? (openBlock(), createBlock(_sfc_main$w, {
|
|
17377
17377
|
key: 0,
|
|
17378
17378
|
class: "filter",
|
|
17379
|
-
onSearch:
|
|
17379
|
+
onSearch: C[0] || (C[0] = (F) => j(1)),
|
|
17380
17380
|
ref_key: "filter",
|
|
17381
17381
|
ref: s,
|
|
17382
17382
|
labelWidth: u.labelWidth
|
|
@@ -17389,9 +17389,9 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17389
17389
|
createVNode(Tool, {
|
|
17390
17390
|
total: c.value,
|
|
17391
17391
|
pageIndex: p.value,
|
|
17392
|
-
"onUpdate:pageIndex":
|
|
17392
|
+
"onUpdate:pageIndex": C[6] || (C[6] = (F) => p.value = F),
|
|
17393
17393
|
pageSize: _.value,
|
|
17394
|
-
"onUpdate:pageSize":
|
|
17394
|
+
"onUpdate:pageSize": C[7] || (C[7] = (F) => _.value = F),
|
|
17395
17395
|
onUpdateData: j,
|
|
17396
17396
|
class: "tool"
|
|
17397
17397
|
}, {
|
|
@@ -17399,7 +17399,7 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17399
17399
|
d.value.some((F) => F.Name == "新增") ? (openBlock(), createBlock(unref(ElButton), {
|
|
17400
17400
|
key: 0,
|
|
17401
17401
|
type: "primary",
|
|
17402
|
-
onClick:
|
|
17402
|
+
onClick: C[1] || (C[1] = (F) => B("新增"))
|
|
17403
17403
|
}, {
|
|
17404
17404
|
default: withCtx(() => [
|
|
17405
17405
|
createTextVNode(toDisplayString(unref(L)("新增")), 1)
|
|
@@ -17409,7 +17409,7 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17409
17409
|
d.value.some((F) => F.Name == "删除") ? (openBlock(), createBlock(unref(ElButton), {
|
|
17410
17410
|
key: 1,
|
|
17411
17411
|
type: "danger",
|
|
17412
|
-
onClick:
|
|
17412
|
+
onClick: C[2] || (C[2] = (F) => B("批量删除"))
|
|
17413
17413
|
}, {
|
|
17414
17414
|
default: withCtx(() => [
|
|
17415
17415
|
createTextVNode(toDisplayString(unref(L)("批量删除")), 1)
|
|
@@ -17418,7 +17418,7 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17418
17418
|
})) : createCommentVNode("", !0),
|
|
17419
17419
|
createVNode(unref(ElButton), {
|
|
17420
17420
|
type: "primary",
|
|
17421
|
-
onClick:
|
|
17421
|
+
onClick: C[3] || (C[3] = (F) => f.value.exportData()),
|
|
17422
17422
|
disabled: c.value == 0
|
|
17423
17423
|
}, {
|
|
17424
17424
|
default: withCtx(() => [
|
|
@@ -17428,7 +17428,7 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17428
17428
|
}, 8, ["disabled"]),
|
|
17429
17429
|
createVNode(unref(ElButton), {
|
|
17430
17430
|
type: "primary",
|
|
17431
|
-
onClick:
|
|
17431
|
+
onClick: C[4] || (C[4] = (F) => D()),
|
|
17432
17432
|
disabled: c.value == 0
|
|
17433
17433
|
}, {
|
|
17434
17434
|
default: withCtx(() => [
|
|
@@ -17438,7 +17438,7 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17438
17438
|
}, 8, ["disabled"]),
|
|
17439
17439
|
createVNode(unref(ElButton), {
|
|
17440
17440
|
type: "success",
|
|
17441
|
-
onClick:
|
|
17441
|
+
onClick: C[5] || (C[5] = (F) => f.value.printData()),
|
|
17442
17442
|
disabled: c.value == 0
|
|
17443
17443
|
}, {
|
|
17444
17444
|
default: withCtx(() => [
|
|
@@ -17470,7 +17470,7 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17470
17470
|
}, null, 8, ["version", "data", "tabName", "columnArray", "toolWidth", "maxCommand", "fnGetSelectData", "commandArray", "powerArray", "printOption"])),
|
|
17471
17471
|
createVNode(unref(ElDialog), {
|
|
17472
17472
|
modelValue: o.IsVisible,
|
|
17473
|
-
"onUpdate:modelValue":
|
|
17473
|
+
"onUpdate:modelValue": C[8] || (C[8] = (F) => o.IsVisible = F),
|
|
17474
17474
|
title: o.Title,
|
|
17475
17475
|
width: u.editDlgWidth,
|
|
17476
17476
|
top: u.top,
|
|
@@ -17497,7 +17497,7 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17497
17497
|
type: "primary",
|
|
17498
17498
|
onClick: N
|
|
17499
17499
|
}, {
|
|
17500
|
-
default: withCtx(() => [...
|
|
17500
|
+
default: withCtx(() => [...C[9] || (C[9] = [
|
|
17501
17501
|
createTextVNode("保存", -1)
|
|
17502
17502
|
])]),
|
|
17503
17503
|
_: 1
|
|
@@ -17582,32 +17582,32 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17582
17582
|
const x = (B, N, D, j) => {
|
|
17583
17583
|
if (N == B.length) {
|
|
17584
17584
|
if (D.forEach((z) => j.push(z)), D.length > 1) {
|
|
17585
|
-
let z = { IgnoreSummary: !0, Rows: D },
|
|
17586
|
-
for (let
|
|
17587
|
-
for (let
|
|
17588
|
-
if (
|
|
17589
|
-
z[o.columnArray[
|
|
17585
|
+
let z = { IgnoreSummary: !0, Rows: D }, C = !0, F = D[0];
|
|
17586
|
+
for (let S in F) z[S] = F[S];
|
|
17587
|
+
for (let S = 0; S < o.columnArray.length; S++)
|
|
17588
|
+
if (C && o.columnArray[S].isHeBing)
|
|
17589
|
+
z[o.columnArray[S].dataKey] = D[0][o.columnArray[S].dataKey];
|
|
17590
17590
|
else {
|
|
17591
|
-
if (
|
|
17592
|
-
|
|
17591
|
+
if (C) {
|
|
17592
|
+
C = !1, z[o.columnArray[S].dataKey] = "合计";
|
|
17593
17593
|
continue;
|
|
17594
17594
|
}
|
|
17595
|
-
if (o.columnArray[
|
|
17595
|
+
if (o.columnArray[S].isSummary) {
|
|
17596
17596
|
let b = !1, V = 0;
|
|
17597
17597
|
for (let R = 0; R < D.length; R++) {
|
|
17598
|
-
let G = D[R][o.columnArray[
|
|
17598
|
+
let G = D[R][o.columnArray[S].dataKey];
|
|
17599
17599
|
!b && d.test(G) && (b = !0), V += G * 1;
|
|
17600
17600
|
}
|
|
17601
|
-
b ? z[o.columnArray[
|
|
17601
|
+
b ? z[o.columnArray[S].dataKey] = V.toFixed(2) : z[o.columnArray[S].dataKey] = V;
|
|
17602
17602
|
} else
|
|
17603
|
-
z[o.columnArray[
|
|
17603
|
+
z[o.columnArray[S].dataKey] = "-";
|
|
17604
17604
|
}
|
|
17605
17605
|
j.push(z);
|
|
17606
17606
|
}
|
|
17607
17607
|
} else {
|
|
17608
|
-
let z = D.GroupBy((
|
|
17609
|
-
for (let
|
|
17610
|
-
x(B, N + 1, z[
|
|
17608
|
+
let z = D.GroupBy((C) => C[B[N].dataKey]);
|
|
17609
|
+
for (let C = 0; C < z.length; C++)
|
|
17610
|
+
x(B, N + 1, z[C], j);
|
|
17611
17611
|
}
|
|
17612
17612
|
}, k = () => {
|
|
17613
17613
|
f(async () => {
|
|
@@ -17617,8 +17617,8 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17617
17617
|
let D = await AjaxCallWeb(o.url, B);
|
|
17618
17618
|
if (D = o.handArray(D), D.forEach((j) => p("handData", j, !1)), o.columnArray.length > 0 && o.columnArray[0].isHeBing && o.columnArray.Exists((j) => j.isSummary)) {
|
|
17619
17619
|
let j = [];
|
|
17620
|
-
for (let
|
|
17621
|
-
o.columnArray[
|
|
17620
|
+
for (let C = 0; C < o.columnArray.length; C++)
|
|
17621
|
+
o.columnArray[C].isHeBing && j.push(o.columnArray[C]);
|
|
17622
17622
|
let z = [];
|
|
17623
17623
|
x(j, 0, D, z), D = z;
|
|
17624
17624
|
}
|