qk-pc-ui 3.7.9 → 3.8.1
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 +219 -217
- package/dist/qk-pc-ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/qk-pc-ui.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tmain[data-v-638a8f96]{display:flex;justify-content:space-between}.myiframe[data-v-19c47856]{width:100%;height:100%;padding:0;margin:0;border:none}.qktab .cell{text-align:center}.filtercheck .el-checkbox{height:18px}.mt[data-v-524166ea]{height:100%}.qktab[data-v-524166ea]{height:100%;width:100%}.tabmain[data-v-524166ea]{height:100%;width:100%;padding:5px;box-sizing:border-box}.example-showcase .el-dropdown-link[data-v-524166ea]{cursor:pointer;color:var(--el-color-primary);display:flex;align-items:center}.havfilter[data-v-524166ea]{color:#5af;fill:#5af}.myicon[data-v-524166ea]{width:21px;height:21px;padding-left:3px}.filtercheck[data-v-524166ea]{padding:10px 0}.myform em{color:#a1a1a1;display:inline-block;margin-left:20px}.pagemain[data-v-
|
|
1
|
+
.tmain[data-v-638a8f96]{display:flex;justify-content:space-between}.myiframe[data-v-19c47856]{width:100%;height:100%;padding:0;margin:0;border:none}.qktab .cell{text-align:center}.filtercheck .el-checkbox{height:18px}.mt[data-v-524166ea]{height:100%}.qktab[data-v-524166ea]{height:100%;width:100%}.tabmain[data-v-524166ea]{height:100%;width:100%;padding:5px;box-sizing:border-box}.example-showcase .el-dropdown-link[data-v-524166ea]{cursor:pointer;color:var(--el-color-primary);display:flex;align-items:center}.havfilter[data-v-524166ea]{color:#5af;fill:#5af}.myicon[data-v-524166ea]{width:21px;height:21px;padding-left:3px}.filtercheck[data-v-524166ea]{padding:10px 0}.myform em{color:#a1a1a1;display:inline-block;margin-left:20px}.pagemain[data-v-efc6b93c]{height:100%;width:100%;padding:10px;box-sizing:border-box;display:flex;flex-direction:column}.tool[data-v-efc6b93c]{margin-top:17px;box-sizing:border-box}.dataList[data-v-efc6b93c]{flex-grow:1;overflow:hidden}.myform[data-v-efc6b93c]{max-height:78vh;overflow:auto}.myform .el-form-item__content em{color:#a1a1a1;display:inline-block;margin-left:20px}.pagemain[data-v-b6d924df]{height:100%;width:100%;padding:10px;box-sizing:border-box;display:flex;flex-direction:column}.filter[data-v-b6d924df]{height:35px}.tool[data-v-b6d924df]{margin-top:17px;height:37px}.dataList[data-v-b6d924df]{flex-grow:1;overflow:auto}.myform[data-v-b6d924df]{max-height:78vh;overflow:auto}.total[data-v-b6d924df]{padding:10px 0}.total-item[data-v-b6d924df]{display:inline-flex;padding:18px;min-width:200px;border:1px solid #e2e2e2;margin-right:10px;border-radius:5px;margin-bottom:5px;justify-content:center}.mytime .el-date-editor{top:3px}.mytime[data-v-70b5d531]{display:inline-flex;position:relative}.w-e-toolbar,.w-e-text-container{z-index:auto!important}.w-e-text-container{flex-grow:1}.richText{height:100%;width:100%;display:flex;flex-direction:column}.avatar-uploader .avatar[data-v-13162f85]{height:100px;display:block}.avatar-uploader .avatar[data-v-a11354bc]{height:100px;display:block}.avatar-uploader .el-upload{border:1px dashed var(--el-border-color);border-radius:6px;cursor:pointer;position:relative;overflow:hidden;transition:var(--el-transition-duration-fast)}.avatar-uploader .el-upload:hover{border-color:var(--el-color-primary)}.el-icon.avatar-uploader-icon{font-size:28px;color:#8c939d;height:100px;width:100px;text-align:center}.qrCodeWrap[data-v-3fb40ef7]{display:inline-block;background-color:#fff;width:95%;height:98%;overflow:hidden;border-radius:20px;border:1px solid #ccc}.qrWrap[data-v-3fb40ef7]{--background-image: url(http://saas.ip239.com/images/qrblack.jpg);background-repeat:no-repeat;background-size:100% 100%;color:#fff;padding:80px 0;text-align:center}.qrCode[data-v-3fb40ef7]{width:250px;height:250px;border-radius:10px;overflow:hidden;margin:0 auto}.instructionsbtn[data-v-3fb40ef7]{text-align:center;padding:20px 0}.instructionsWrap[data-v-3fb40ef7]{text-align:center;padding-top:50px;font:30px/40px 宋体}.wfbox[data-v-3045f4e5]{display:flex;justify-content:space-between;align-items:flex-end;width:50px;height:25px;box-sizing:border-box;border:1px solid #e2e2e2;padding:2px}.wf[data-v-3045f4e5]{background-color:#5af;width:5px;height:100%;box-sizing:border-box}.nwf[data-v-3045f4e5]{border:1px solid #e2e2e2;width:5px;height:100%;box-sizing:border-box;background-color:#e2e2e2}.wf1[data-v-3045f4e5]{height:50%}.wf2[data-v-3045f4e5]{height:60%}.wf3[data-v-3045f4e5]{height:70%}.wf4[data-v-3045f4e5]{height:80%}.wf5[data-v-3045f4e5]{height:90%}.wf6[data-v-3045f4e5]{height:100%}.status[data-v-3045f4e5]{font-weight:700;line-height:25px}.amount[data-v-d252718a]{color:#f50;font-weight:700}.t[data-v-d252718a]{text-align:center}.myrow[data-v-67e0df94]{display:flex;font-size:1rem;padding-bottom:1rem}.tlab[data-v-67e0df94]{text-align:right;color:gray;width:170px}.tval[data-v-67e0df94]{color:#0094ff}td[data-v-67e0df94],textarea[data-v-67e0df94]{padding:10px 0;color:#0094ff}.desc[data-v-67e0df94]{width:400px;border:none;outline:none;font-size:1em;font-weight:700;padding:0;margin:0}.el-message{z-index:2400}.icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.icon-list[data-v-5c41495a]{display:grid;grid-template-columns:repeat(auto-fill,100px);height:80vh;width:100%;overflow:auto}.icon-item[data-v-5c41495a]{width:100px;height:100px;text-align:center}i[data-v-5c41495a]{font-size:60px;line-height:normal}.mytag[data-v-6948a9f8]{margin:0 4px}.myradio .el-radio-button__inner{display:flex;align-items:center;height:37px}.demo-tabs[data-v-82a69bfa]{height:100%;width:100%}.demo-tabs .el-tabs__content{height:calc(100% - 45px)}.el-tab-pane{height:100%}
|
package/dist/qk-pc-ui.mjs
CHANGED
|
@@ -1266,9 +1266,9 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1266
1266
|
var r = {};
|
|
1267
1267
|
r.version = "1.2.1";
|
|
1268
1268
|
function t(x, v) {
|
|
1269
|
-
for (var g = x.split("/"), w = v.split("/"),
|
|
1270
|
-
if (
|
|
1271
|
-
if (g[
|
|
1269
|
+
for (var g = x.split("/"), w = v.split("/"), T = 0, y = 0, V = Math.min(g.length, w.length); T < V; ++T) {
|
|
1270
|
+
if (y = g[T].length - w[T].length) return y;
|
|
1271
|
+
if (g[T] != w[T]) return g[T] < w[T] ? -1 : 1;
|
|
1272
1272
|
}
|
|
1273
1273
|
return g.length - w.length;
|
|
1274
1274
|
}
|
|
@@ -1290,10 +1290,10 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1290
1290
|
w = w << 4 | v.getMonth() + 1, w = w << 5 | v.getDate(), x.write_shift(2, w);
|
|
1291
1291
|
}
|
|
1292
1292
|
function s(x) {
|
|
1293
|
-
var v = x.read_shift(2) & 65535, g = x.read_shift(2) & 65535, w = /* @__PURE__ */ new Date(),
|
|
1293
|
+
var v = x.read_shift(2) & 65535, g = x.read_shift(2) & 65535, w = /* @__PURE__ */ new Date(), T = g & 31;
|
|
1294
1294
|
g >>>= 5;
|
|
1295
|
-
var
|
|
1296
|
-
g >>>= 4, w.setMilliseconds(0), w.setFullYear(g + 1980), w.setMonth(
|
|
1295
|
+
var y = g & 15;
|
|
1296
|
+
g >>>= 4, w.setMilliseconds(0), w.setFullYear(g + 1980), w.setMonth(y - 1), w.setDate(T);
|
|
1297
1297
|
var V = v & 31;
|
|
1298
1298
|
v >>>= 5;
|
|
1299
1299
|
var j = v & 63;
|
|
@@ -1305,14 +1305,14 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1305
1305
|
/*::(*/
|
|
1306
1306
|
{}
|
|
1307
1307
|
), g = 0; x.l <= x.length - 4; ) {
|
|
1308
|
-
var w = x.read_shift(2),
|
|
1308
|
+
var w = x.read_shift(2), T = x.read_shift(2), y = x.l + T, V = {};
|
|
1309
1309
|
switch (w) {
|
|
1310
1310
|
/* UNIX-style Timestamps */
|
|
1311
1311
|
case 21589:
|
|
1312
|
-
g = x.read_shift(1), g & 1 && (V.mtime = x.read_shift(4)),
|
|
1312
|
+
g = x.read_shift(1), g & 1 && (V.mtime = x.read_shift(4)), T > 5 && (g & 2 && (V.atime = x.read_shift(4)), g & 4 && (V.ctime = x.read_shift(4))), V.mtime && (V.mt = new Date(V.mtime * 1e3));
|
|
1313
1313
|
break;
|
|
1314
1314
|
}
|
|
1315
|
-
x.l =
|
|
1315
|
+
x.l = y, v[w] = V;
|
|
1316
1316
|
}
|
|
1317
1317
|
return v;
|
|
1318
1318
|
}
|
|
@@ -1324,7 +1324,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1324
1324
|
if (x[0] == 80 && x[1] == 75) return Je(x, v);
|
|
1325
1325
|
if ((x[0] | 32) == 109 && (x[1] | 32) == 105) return lt(x, v);
|
|
1326
1326
|
if (x.length < 512) throw new Error("CFB file size " + x.length + " < 512");
|
|
1327
|
-
var g = 3, w = 512,
|
|
1327
|
+
var g = 3, w = 512, T = 0, y = 0, V = 0, j = 0, R = 0, U = [], W = (
|
|
1328
1328
|
/*::(*/
|
|
1329
1329
|
x.slice(0, 512)
|
|
1330
1330
|
);
|
|
@@ -1353,15 +1353,15 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1353
1353
|
h(W, g);
|
|
1354
1354
|
var ee = W.read_shift(4, "i");
|
|
1355
1355
|
if (g === 3 && ee !== 0) throw new Error("# Directory Sectors: Expected 0 saw " + ee);
|
|
1356
|
-
W.l += 4, V = W.read_shift(4, "i"), W.l += 4, W.chk("00100000", "Mini Stream Cutoff Size: "), j = W.read_shift(4, "i"),
|
|
1356
|
+
W.l += 4, V = W.read_shift(4, "i"), W.l += 4, W.chk("00100000", "Mini Stream Cutoff Size: "), j = W.read_shift(4, "i"), T = W.read_shift(4, "i"), R = W.read_shift(4, "i"), y = W.read_shift(4, "i");
|
|
1357
1357
|
for (var J = -1, Q = 0; Q < 109 && (J = W.read_shift(4, "i"), !(J < 0)); ++Q)
|
|
1358
1358
|
U[Q] = J;
|
|
1359
1359
|
var oe = d(x, w);
|
|
1360
|
-
_(R,
|
|
1360
|
+
_(R, y, oe, w, U);
|
|
1361
1361
|
var _e = I(oe, V, U, w);
|
|
1362
|
-
_e[V].name = "!Directory",
|
|
1362
|
+
_e[V].name = "!Directory", T > 0 && j !== H && (_e[j].name = "!MiniFAT"), _e[U[0]].name = "!FAT", _e.fat_addrs = U, _e.ssz = w;
|
|
1363
1363
|
var pe = {}, we = [], Be = [], De = [];
|
|
1364
|
-
F(V, _e, oe, we,
|
|
1364
|
+
F(V, _e, oe, we, T, pe, Be, j), m(Be, De, we), we.shift();
|
|
1365
1365
|
var Le = {
|
|
1366
1366
|
FileIndex: Be,
|
|
1367
1367
|
FullPaths: De
|
|
@@ -1389,15 +1389,15 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1389
1389
|
x.chk("0600", "Mini Sector Shift: "), x.chk("000000000000", "Reserved: ");
|
|
1390
1390
|
}
|
|
1391
1391
|
function d(x, v) {
|
|
1392
|
-
for (var g = Math.ceil(x.length / v) - 1, w = [],
|
|
1392
|
+
for (var g = Math.ceil(x.length / v) - 1, w = [], T = 1; T < g; ++T) w[T - 1] = x.slice(T * v, (T + 1) * v);
|
|
1393
1393
|
return w[g - 1] = x.slice(g * v), w;
|
|
1394
1394
|
}
|
|
1395
1395
|
function m(x, v, g) {
|
|
1396
|
-
for (var w = 0,
|
|
1396
|
+
for (var w = 0, T = 0, y = 0, V = 0, j = 0, R = g.length, U = [], W = []; w < R; ++w)
|
|
1397
1397
|
U[w] = W[w] = w, v[w] = g[w];
|
|
1398
1398
|
for (; j < W.length; ++j)
|
|
1399
|
-
w = W[j],
|
|
1400
|
-
for (w = 1; w < R; ++w) U[w] === w && (
|
|
1399
|
+
w = W[j], T = x[w].L, y = x[w].R, V = x[w].C, U[w] === w && (T !== -1 && U[T] !== T && (U[w] = U[T]), y !== -1 && U[y] !== y && (U[w] = U[y])), V !== -1 && (U[V] = w), T !== -1 && w != U[w] && (U[T] = U[w], W.lastIndexOf(T) < j && W.push(T)), y !== -1 && w != U[w] && (U[y] = U[w], W.lastIndexOf(y) < j && W.push(y));
|
|
1400
|
+
for (w = 1; w < R; ++w) U[w] === w && (y !== -1 && U[y] !== y ? U[w] = U[y] : T !== -1 && U[T] !== T && (U[w] = U[T]));
|
|
1401
1401
|
for (w = 1; w < R; ++w)
|
|
1402
1402
|
if (x[w].type !== 0) {
|
|
1403
1403
|
if (j = w, j != U[j]) do
|
|
@@ -1409,39 +1409,39 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1409
1409
|
x[w].type !== 2 && (v[w] += "/");
|
|
1410
1410
|
}
|
|
1411
1411
|
function u(x, v, g) {
|
|
1412
|
-
for (var w = x.start,
|
|
1413
|
-
|
|
1414
|
-
return
|
|
1412
|
+
for (var w = x.start, T = x.size, y = [], V = w; g && T > 0 && V >= 0; )
|
|
1413
|
+
y.push(v.slice(V * B, V * B + B)), T -= B, V = __readInt32LE(g, V * 4);
|
|
1414
|
+
return y.length === 0 ? new_buf(0) : bconcat(y).slice(0, x.size);
|
|
1415
1415
|
}
|
|
1416
|
-
function _(x, v, g, w,
|
|
1417
|
-
var
|
|
1416
|
+
function _(x, v, g, w, T) {
|
|
1417
|
+
var y = H;
|
|
1418
1418
|
if (x === H) {
|
|
1419
1419
|
if (v !== 0) throw new Error("DIFAT chain shorter than expected");
|
|
1420
1420
|
} else if (x !== -1) {
|
|
1421
1421
|
var V = g[x], j = (w >>> 2) - 1;
|
|
1422
1422
|
if (!V) return;
|
|
1423
|
-
for (var R = 0; R < j && (
|
|
1424
|
-
|
|
1425
|
-
_(__readInt32LE(V, w - 4), v - 1, g, w,
|
|
1423
|
+
for (var R = 0; R < j && (y = __readInt32LE(V, R * 4)) !== H; ++R)
|
|
1424
|
+
T.push(y);
|
|
1425
|
+
_(__readInt32LE(V, w - 4), v - 1, g, w, T);
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
1428
|
-
function C(x, v, g, w,
|
|
1429
|
-
var
|
|
1430
|
-
|
|
1428
|
+
function C(x, v, g, w, T) {
|
|
1429
|
+
var y = [], V = [];
|
|
1430
|
+
T || (T = []);
|
|
1431
1431
|
var j = w - 1, R = 0, U = 0;
|
|
1432
1432
|
for (R = v; R >= 0; ) {
|
|
1433
|
-
|
|
1433
|
+
T[R] = !0, y[y.length] = R, V.push(x[R]);
|
|
1434
1434
|
var W = g[Math.floor(R * 4 / w)];
|
|
1435
1435
|
if (U = R * 4 & j, w < 4 + U) throw new Error("FAT boundary crossed: " + R + " 4 " + w);
|
|
1436
1436
|
if (!x[W]) break;
|
|
1437
1437
|
R = __readInt32LE(x[W], U);
|
|
1438
1438
|
}
|
|
1439
|
-
return { nodes:
|
|
1439
|
+
return { nodes: y, data: __toBuffer([V]) };
|
|
1440
1440
|
}
|
|
1441
1441
|
function I(x, v, g, w) {
|
|
1442
|
-
var
|
|
1443
|
-
for (W = 0; W <
|
|
1444
|
-
if (j = [], q = W + v, q >=
|
|
1442
|
+
var T = x.length, y = [], V = [], j = [], R = [], U = w - 1, W = 0, Y = 0, q = 0, ee = 0;
|
|
1443
|
+
for (W = 0; W < T; ++W)
|
|
1444
|
+
if (j = [], q = W + v, q >= T && (q -= T), !V[q]) {
|
|
1445
1445
|
R = [];
|
|
1446
1446
|
var J = [];
|
|
1447
1447
|
for (Y = q; Y >= 0; ) {
|
|
@@ -1450,11 +1450,11 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1450
1450
|
if (ee = Y * 4 & U, w < 4 + ee) throw new Error("FAT boundary crossed: " + Y + " 4 " + w);
|
|
1451
1451
|
if (!x[Q] || (Y = __readInt32LE(x[Q], ee), J[Y])) break;
|
|
1452
1452
|
}
|
|
1453
|
-
|
|
1453
|
+
y[q] = { nodes: j, data: __toBuffer([R]) };
|
|
1454
1454
|
}
|
|
1455
|
-
return
|
|
1455
|
+
return y;
|
|
1456
1456
|
}
|
|
1457
|
-
function F(x, v, g, w,
|
|
1457
|
+
function F(x, v, g, w, T, y, V, j) {
|
|
1458
1458
|
for (var R = 0, U = w.length ? 2 : 0, W = v[x].data, Y = 0, q = 0, ee; Y < W.length; Y += 128) {
|
|
1459
1459
|
var J = (
|
|
1460
1460
|
/*::(*/
|
|
@@ -1475,7 +1475,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1475
1475
|
}, oe = J.read_shift(2) + J.read_shift(2) + J.read_shift(2) + J.read_shift(2);
|
|
1476
1476
|
oe !== 0 && (Q.ct = b(J, J.l - 8));
|
|
1477
1477
|
var _e = J.read_shift(2) + J.read_shift(2) + J.read_shift(2) + J.read_shift(2);
|
|
1478
|
-
_e !== 0 && (Q.mt = b(J, J.l - 8)), Q.start = J.read_shift(4, "i"), Q.size = J.read_shift(4, "i"), Q.size < 0 && Q.start < 0 && (Q.size = Q.type = 0, Q.start = H, Q.name = ""), Q.type === 5 ? (R = Q.start,
|
|
1478
|
+
_e !== 0 && (Q.mt = b(J, J.l - 8)), Q.start = J.read_shift(4, "i"), Q.size = J.read_shift(4, "i"), Q.size < 0 && Q.start < 0 && (Q.size = Q.type = 0, Q.start = H, Q.name = ""), Q.type === 5 ? (R = Q.start, T > 0 && R !== H && (v[R].name = "!StreamData")) : Q.size >= 4096 ? (Q.storage = "fat", v[Q.start] === void 0 && (v[Q.start] = C(g, Q.start, v.fat_addrs, v.ssz)), v[Q.start].name = Q.name, Q.content = v[Q.start].data.slice(0, Q.size)) : (Q.storage = "minifat", Q.size < 0 ? Q.size = 0 : R !== H && Q.start !== H && v[R] && (Q.content = u(Q, v[R].data, (v[j] || {}).data))), Q.content && prep_blob(Q.content, 0), y[ee] = Q, V.push(Q);
|
|
1479
1479
|
}
|
|
1480
1480
|
}
|
|
1481
1481
|
function b(x, v) {
|
|
@@ -1514,16 +1514,16 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1514
1514
|
}
|
|
1515
1515
|
function S(x, v) {
|
|
1516
1516
|
A(x);
|
|
1517
|
-
for (var g = !1, w = !1,
|
|
1518
|
-
var
|
|
1519
|
-
switch (
|
|
1517
|
+
for (var g = !1, w = !1, T = x.FullPaths.length - 1; T >= 0; --T) {
|
|
1518
|
+
var y = x.FileIndex[T];
|
|
1519
|
+
switch (y.type) {
|
|
1520
1520
|
case 0:
|
|
1521
1521
|
w ? g = !0 : (x.FileIndex.pop(), x.FullPaths.pop());
|
|
1522
1522
|
break;
|
|
1523
1523
|
case 1:
|
|
1524
1524
|
case 2:
|
|
1525
1525
|
case 5:
|
|
1526
|
-
w = !0, isNaN(
|
|
1526
|
+
w = !0, isNaN(y.R * y.L * y.C) && (g = !0), y.R > -1 && y.L > -1 && y.R == y.L && (g = !0);
|
|
1527
1527
|
break;
|
|
1528
1528
|
default:
|
|
1529
1529
|
g = !0;
|
|
@@ -1532,10 +1532,10 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1532
1532
|
}
|
|
1533
1533
|
if (!(!g && !v)) {
|
|
1534
1534
|
var V = new Date(1987, 1, 19), j = 0, R = Object.create ? /* @__PURE__ */ Object.create(null) : {}, U = [];
|
|
1535
|
-
for (
|
|
1536
|
-
R[x.FullPaths[
|
|
1537
|
-
for (
|
|
1538
|
-
var W = a(U[
|
|
1535
|
+
for (T = 0; T < x.FullPaths.length; ++T)
|
|
1536
|
+
R[x.FullPaths[T]] = !0, x.FileIndex[T].type !== 0 && U.push([x.FullPaths[T], x.FileIndex[T]]);
|
|
1537
|
+
for (T = 0; T < U.length; ++T) {
|
|
1538
|
+
var W = a(U[T][0]);
|
|
1539
1539
|
w = R[W], w || (U.push([W, {
|
|
1540
1540
|
name: n(W).replace("/", ""),
|
|
1541
1541
|
type: 1,
|
|
@@ -1547,18 +1547,18 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1547
1547
|
}
|
|
1548
1548
|
for (U.sort(function(ee, J) {
|
|
1549
1549
|
return t(ee[0], J[0]);
|
|
1550
|
-
}), x.FullPaths = [], x.FileIndex = [],
|
|
1551
|
-
x.FullPaths[
|
|
1552
|
-
for (
|
|
1553
|
-
var Y = x.FileIndex[
|
|
1554
|
-
if (Y.name = n(q).replace("/", ""), Y.L = Y.R = Y.C = -(Y.color = 1), Y.size = Y.content ? Y.content.length : 0, Y.start = 0, Y.clsid = Y.clsid || ce,
|
|
1550
|
+
}), x.FullPaths = [], x.FileIndex = [], T = 0; T < U.length; ++T)
|
|
1551
|
+
x.FullPaths[T] = U[T][0], x.FileIndex[T] = U[T][1];
|
|
1552
|
+
for (T = 0; T < U.length; ++T) {
|
|
1553
|
+
var Y = x.FileIndex[T], q = x.FullPaths[T];
|
|
1554
|
+
if (Y.name = n(q).replace("/", ""), Y.L = Y.R = Y.C = -(Y.color = 1), Y.size = Y.content ? Y.content.length : 0, Y.start = 0, Y.clsid = Y.clsid || ce, T === 0)
|
|
1555
1555
|
Y.C = U.length > 1 ? 1 : -1, Y.size = 0, Y.type = 5;
|
|
1556
1556
|
else if (q.slice(-1) == "/") {
|
|
1557
|
-
for (j =
|
|
1558
|
-
for (Y.C = j >= U.length ? -1 : j, j =
|
|
1557
|
+
for (j = T + 1; j < U.length && a(x.FullPaths[j]) != q; ++j) ;
|
|
1558
|
+
for (Y.C = j >= U.length ? -1 : j, j = T + 1; j < U.length && a(x.FullPaths[j]) != a(q); ++j) ;
|
|
1559
1559
|
Y.R = j >= U.length ? -1 : j, Y.type = 1;
|
|
1560
1560
|
} else
|
|
1561
|
-
a(x.FullPaths[
|
|
1561
|
+
a(x.FullPaths[T + 1] || "") == a(q) && (Y.R = T + 1), Y.type = 2;
|
|
1562
1562
|
}
|
|
1563
1563
|
}
|
|
1564
1564
|
}
|
|
@@ -1580,66 +1580,66 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1580
1580
|
for (var we = ee.FullPaths.length + 3 >> 2, Be = J + 7 >> 3, De = J + 127 >> 7, Le = Be + Q + we + De, Ne = Le + 127 >> 7, Ue = Ne <= 109 ? 0 : Math.ceil((Ne - 109) / 127); Le + Ne + Ue + 127 >> 7 > Ne; ) Ue = ++Ne <= 109 ? 0 : Math.ceil((Ne - 109) / 127);
|
|
1581
1581
|
var Ae = [1, Ue, Ne, De, we, Q, J, 0];
|
|
1582
1582
|
return ee.FileIndex[0].size = J << 6, Ae[7] = (ee.FileIndex[0].start = Ae[0] + Ae[1] + Ae[2] + Ae[3] + Ae[4] + Ae[5]) + (Ae[6] + 7 >> 3), Ae;
|
|
1583
|
-
}(x),
|
|
1583
|
+
}(x), T = new_buf(w[7] << 9), y = 0, V = 0;
|
|
1584
1584
|
{
|
|
1585
|
-
for (
|
|
1586
|
-
for (
|
|
1587
|
-
for (
|
|
1588
|
-
for (
|
|
1585
|
+
for (y = 0; y < 8; ++y) T.write_shift(1, ne[y]);
|
|
1586
|
+
for (y = 0; y < 8; ++y) T.write_shift(2, 0);
|
|
1587
|
+
for (T.write_shift(2, 62), T.write_shift(2, 3), T.write_shift(2, 65534), T.write_shift(2, 9), T.write_shift(2, 6), y = 0; y < 3; ++y) T.write_shift(2, 0);
|
|
1588
|
+
for (T.write_shift(4, 0), T.write_shift(4, w[2]), T.write_shift(4, w[0] + w[1] + w[2] + w[3] - 1), T.write_shift(4, 0), T.write_shift(4, 4096), T.write_shift(4, w[3] ? w[0] + w[1] + w[2] - 1 : H), T.write_shift(4, w[3]), T.write_shift(-4, w[1] ? w[0] - 1 : H), T.write_shift(4, w[1]), y = 0; y < 109; ++y) T.write_shift(-4, y < w[2] ? w[1] + y : -1);
|
|
1589
1589
|
}
|
|
1590
1590
|
if (w[1])
|
|
1591
1591
|
for (V = 0; V < w[1]; ++V) {
|
|
1592
|
-
for (;
|
|
1593
|
-
|
|
1592
|
+
for (; y < 236 + V * 127; ++y) T.write_shift(-4, y < w[2] ? w[1] + y : -1);
|
|
1593
|
+
T.write_shift(-4, V === w[1] - 1 ? H : V + 1);
|
|
1594
1594
|
}
|
|
1595
1595
|
var j = function(ee) {
|
|
1596
|
-
for (V += ee;
|
|
1597
|
-
ee && (++
|
|
1596
|
+
for (V += ee; y < V - 1; ++y) T.write_shift(-4, y + 1);
|
|
1597
|
+
ee && (++y, T.write_shift(-4, H));
|
|
1598
1598
|
};
|
|
1599
|
-
for (V =
|
|
1600
|
-
for (V += w[2];
|
|
1599
|
+
for (V = y = 0, V += w[1]; y < V; ++y) T.write_shift(-4, te.DIFSECT);
|
|
1600
|
+
for (V += w[2]; y < V; ++y) T.write_shift(-4, te.FATSECT);
|
|
1601
1601
|
j(w[3]), j(w[4]);
|
|
1602
1602
|
for (var R = 0, U = 0, W = x.FileIndex[0]; R < x.FileIndex.length; ++R)
|
|
1603
1603
|
W = x.FileIndex[R], W.content && (U = W.content.length, !(U < 4096) && (W.start = V, j(U + 511 >> 9)));
|
|
1604
|
-
for (j(w[6] + 7 >> 3);
|
|
1605
|
-
for (V =
|
|
1604
|
+
for (j(w[6] + 7 >> 3); T.l & 511; ) T.write_shift(-4, te.ENDOFCHAIN);
|
|
1605
|
+
for (V = y = 0, R = 0; R < x.FileIndex.length; ++R)
|
|
1606
1606
|
W = x.FileIndex[R], W.content && (U = W.content.length, !(!U || U >= 4096) && (W.start = V, j(U + 63 >> 6)));
|
|
1607
|
-
for (;
|
|
1608
|
-
for (
|
|
1609
|
-
var Y = x.FullPaths[
|
|
1607
|
+
for (; T.l & 511; ) T.write_shift(-4, te.ENDOFCHAIN);
|
|
1608
|
+
for (y = 0; y < w[4] << 2; ++y) {
|
|
1609
|
+
var Y = x.FullPaths[y];
|
|
1610
1610
|
if (!Y || Y.length === 0) {
|
|
1611
|
-
for (R = 0; R < 17; ++R)
|
|
1612
|
-
for (R = 0; R < 3; ++R)
|
|
1613
|
-
for (R = 0; R < 12; ++R)
|
|
1611
|
+
for (R = 0; R < 17; ++R) T.write_shift(4, 0);
|
|
1612
|
+
for (R = 0; R < 3; ++R) T.write_shift(4, -1);
|
|
1613
|
+
for (R = 0; R < 12; ++R) T.write_shift(4, 0);
|
|
1614
1614
|
continue;
|
|
1615
1615
|
}
|
|
1616
|
-
W = x.FileIndex[
|
|
1617
|
-
var q =
|
|
1618
|
-
if (U = 2 * (q.length + 1),
|
|
1619
|
-
else for (R = 0; R < 4; ++R)
|
|
1620
|
-
|
|
1616
|
+
W = x.FileIndex[y], y === 0 && (W.start = W.size ? W.start - 1 : H);
|
|
1617
|
+
var q = y === 0 && g.root || W.name;
|
|
1618
|
+
if (U = 2 * (q.length + 1), T.write_shift(64, q, "utf16le"), T.write_shift(2, U), T.write_shift(1, W.type), T.write_shift(1, W.color), T.write_shift(-4, W.L), T.write_shift(-4, W.R), T.write_shift(-4, W.C), W.clsid) T.write_shift(16, W.clsid, "hex");
|
|
1619
|
+
else for (R = 0; R < 4; ++R) T.write_shift(4, 0);
|
|
1620
|
+
T.write_shift(4, W.state || 0), T.write_shift(4, 0), T.write_shift(4, 0), T.write_shift(4, 0), T.write_shift(4, 0), T.write_shift(4, W.start), T.write_shift(4, W.size), T.write_shift(4, 0);
|
|
1621
1621
|
}
|
|
1622
|
-
for (
|
|
1623
|
-
if (W = x.FileIndex[
|
|
1624
|
-
if (
|
|
1625
|
-
W.content.copy(
|
|
1622
|
+
for (y = 1; y < x.FileIndex.length; ++y)
|
|
1623
|
+
if (W = x.FileIndex[y], W.size >= 4096)
|
|
1624
|
+
if (T.l = W.start + 1 << 9, has_buf && Buffer.isBuffer(W.content))
|
|
1625
|
+
W.content.copy(T, T.l, 0, W.size), T.l += W.size + 511 & -512;
|
|
1626
1626
|
else {
|
|
1627
|
-
for (R = 0; R < W.size; ++R)
|
|
1628
|
-
for (; R & 511; ++R)
|
|
1627
|
+
for (R = 0; R < W.size; ++R) T.write_shift(1, W.content[R]);
|
|
1628
|
+
for (; R & 511; ++R) T.write_shift(1, 0);
|
|
1629
1629
|
}
|
|
1630
|
-
for (
|
|
1631
|
-
if (W = x.FileIndex[
|
|
1630
|
+
for (y = 1; y < x.FileIndex.length; ++y)
|
|
1631
|
+
if (W = x.FileIndex[y], W.size > 0 && W.size < 4096)
|
|
1632
1632
|
if (has_buf && Buffer.isBuffer(W.content))
|
|
1633
|
-
W.content.copy(
|
|
1633
|
+
W.content.copy(T, T.l, 0, W.size), T.l += W.size + 63 & -64;
|
|
1634
1634
|
else {
|
|
1635
|
-
for (R = 0; R < W.size; ++R)
|
|
1636
|
-
for (; R & 63; ++R)
|
|
1635
|
+
for (R = 0; R < W.size; ++R) T.write_shift(1, W.content[R]);
|
|
1636
|
+
for (; R & 63; ++R) T.write_shift(1, 0);
|
|
1637
1637
|
}
|
|
1638
1638
|
if (has_buf)
|
|
1639
|
-
|
|
1639
|
+
T.l = T.length;
|
|
1640
1640
|
else
|
|
1641
|
-
for (;
|
|
1642
|
-
return
|
|
1641
|
+
for (; T.l < T.length; ) T.write_shift(1, 0);
|
|
1642
|
+
return T;
|
|
1643
1643
|
}
|
|
1644
1644
|
function N(x, v) {
|
|
1645
1645
|
var g = x.FullPaths.map(function(R) {
|
|
@@ -1647,13 +1647,13 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1647
1647
|
}), w = g.map(function(R) {
|
|
1648
1648
|
var U = R.split("/");
|
|
1649
1649
|
return U[U.length - (R.slice(-1) == "/" ? 2 : 1)];
|
|
1650
|
-
}),
|
|
1651
|
-
v.charCodeAt(0) === 47 ? (
|
|
1652
|
-
var
|
|
1650
|
+
}), T = !1;
|
|
1651
|
+
v.charCodeAt(0) === 47 ? (T = !0, v = g[0].slice(0, -1) + v) : T = v.indexOf("/") !== -1;
|
|
1652
|
+
var y = v.toUpperCase(), V = T === !0 ? g.indexOf(y) : w.indexOf(y);
|
|
1653
1653
|
if (V !== -1) return x.FileIndex[V];
|
|
1654
|
-
var j = !
|
|
1655
|
-
for (
|
|
1656
|
-
if ((j ? g[V].replace(chr1, "!") : g[V]).replace(chr0, "") ==
|
|
1654
|
+
var j = !y.match(chr1);
|
|
1655
|
+
for (y = y.replace(chr0, ""), j && (y = y.replace(chr1, "!")), V = 0; V < g.length; ++V)
|
|
1656
|
+
if ((j ? g[V].replace(chr1, "!") : g[V]).replace(chr0, "") == y || (j ? w[V].replace(chr1, "!") : w[V]).replace(chr0, "") == y) return x.FileIndex[V];
|
|
1657
1657
|
return null;
|
|
1658
1658
|
}
|
|
1659
1659
|
var B = 64, H = -2, ae = "d0cf11e0a1b11ae1", ne = [208, 207, 17, 224, 161, 177, 26, 225], ce = "00000000000000000000000000000000", te = {
|
|
@@ -1710,8 +1710,8 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1710
1710
|
}
|
|
1711
1711
|
function M(x, v) {
|
|
1712
1712
|
if (!ge) return Ke(x, v);
|
|
1713
|
-
var g = ge.InflateRaw, w = new g(),
|
|
1714
|
-
return x.l += w.bytesRead,
|
|
1713
|
+
var g = ge.InflateRaw, w = new g(), T = w._processChunk(x.slice(x.l), w._finishFlushFlag);
|
|
1714
|
+
return x.l += w.bytesRead, T;
|
|
1715
1715
|
}
|
|
1716
1716
|
function P(x) {
|
|
1717
1717
|
return ge ? ge.deflateRawSync(x) : We(x);
|
|
@@ -1746,65 +1746,65 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1746
1746
|
var g = v & 7, w = v >>> 3;
|
|
1747
1747
|
return (x[w] | (g <= 1 ? 0 : x[w + 1] << 8)) >>> g & 127;
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1750
|
-
var w = v & 7,
|
|
1751
|
-
return g < 8 - w || (V |= x[
|
|
1749
|
+
function Te(x, v, g) {
|
|
1750
|
+
var w = v & 7, T = v >>> 3, y = (1 << g) - 1, V = x[T] >>> w;
|
|
1751
|
+
return g < 8 - w || (V |= x[T + 1] << 8 - w, g < 16 - w) || (V |= x[T + 2] << 16 - w, g < 24 - w) || (V |= x[T + 3] << 24 - w), V & y;
|
|
1752
1752
|
}
|
|
1753
1753
|
function Ce(x, v, g) {
|
|
1754
|
-
var w = v & 7,
|
|
1755
|
-
return w <= 5 ? x[
|
|
1754
|
+
var w = v & 7, T = v >>> 3;
|
|
1755
|
+
return w <= 5 ? x[T] |= (g & 7) << w : (x[T] |= g << w & 255, x[T + 1] = (g & 7) >> 8 - w), v + 3;
|
|
1756
1756
|
}
|
|
1757
1757
|
function Fe(x, v, g) {
|
|
1758
|
-
var w = v & 7,
|
|
1759
|
-
return g = (g & 1) << w, x[
|
|
1758
|
+
var w = v & 7, T = v >>> 3;
|
|
1759
|
+
return g = (g & 1) << w, x[T] |= g, v + 1;
|
|
1760
1760
|
}
|
|
1761
1761
|
function Ie(x, v, g) {
|
|
1762
|
-
var w = v & 7,
|
|
1763
|
-
return g <<= w, x[
|
|
1762
|
+
var w = v & 7, T = v >>> 3;
|
|
1763
|
+
return g <<= w, x[T] |= g & 255, g >>>= 8, x[T + 1] = g, v + 8;
|
|
1764
1764
|
}
|
|
1765
1765
|
function $e(x, v, g) {
|
|
1766
|
-
var w = v & 7,
|
|
1767
|
-
return g <<= w, x[
|
|
1766
|
+
var w = v & 7, T = v >>> 3;
|
|
1767
|
+
return g <<= w, x[T] |= g & 255, g >>>= 8, x[T + 1] = g & 255, x[T + 2] = g >>> 8, v + 16;
|
|
1768
1768
|
}
|
|
1769
1769
|
function Oe(x, v) {
|
|
1770
|
-
var g = x.length, w = 2 * g > v ? 2 * g : v + 5,
|
|
1770
|
+
var g = x.length, w = 2 * g > v ? 2 * g : v + 5, T = 0;
|
|
1771
1771
|
if (g >= v) return x;
|
|
1772
1772
|
if (has_buf) {
|
|
1773
|
-
var
|
|
1774
|
-
if (x.copy) x.copy(
|
|
1775
|
-
else for (;
|
|
1776
|
-
return
|
|
1773
|
+
var y = new_unsafe_buf(w);
|
|
1774
|
+
if (x.copy) x.copy(y);
|
|
1775
|
+
else for (; T < x.length; ++T) y[T] = x[T];
|
|
1776
|
+
return y;
|
|
1777
1777
|
} else if (ie) {
|
|
1778
1778
|
var V = new Uint8Array(w);
|
|
1779
1779
|
if (V.set) V.set(x);
|
|
1780
|
-
else for (;
|
|
1780
|
+
else for (; T < g; ++T) V[T] = x[T];
|
|
1781
1781
|
return V;
|
|
1782
1782
|
}
|
|
1783
1783
|
return x.length = w, x;
|
|
1784
1784
|
}
|
|
1785
|
-
function
|
|
1785
|
+
function ye(x) {
|
|
1786
1786
|
for (var v = new Array(x), g = 0; g < x; ++g) v[g] = 0;
|
|
1787
1787
|
return v;
|
|
1788
1788
|
}
|
|
1789
1789
|
function Pe(x, v, g) {
|
|
1790
|
-
var w = 1,
|
|
1791
|
-
for (
|
|
1792
|
-
for (
|
|
1790
|
+
var w = 1, T = 0, y = 0, V = 0, j = 0, R = x.length, U = ie ? new Uint16Array(32) : ye(32);
|
|
1791
|
+
for (y = 0; y < 32; ++y) U[y] = 0;
|
|
1792
|
+
for (y = R; y < g; ++y) x[y] = 0;
|
|
1793
1793
|
R = x.length;
|
|
1794
|
-
var W = ie ? new Uint16Array(R) :
|
|
1795
|
-
for (
|
|
1796
|
-
U[
|
|
1797
|
-
for (U[0] = 0,
|
|
1798
|
-
for (
|
|
1799
|
-
j = x[
|
|
1794
|
+
var W = ie ? new Uint16Array(R) : ye(R);
|
|
1795
|
+
for (y = 0; y < R; ++y)
|
|
1796
|
+
U[T = x[y]]++, w < T && (w = T), W[y] = 0;
|
|
1797
|
+
for (U[0] = 0, y = 1; y <= w; ++y) U[y + 16] = j = j + U[y - 1] << 1;
|
|
1798
|
+
for (y = 0; y < R; ++y)
|
|
1799
|
+
j = x[y], j != 0 && (W[y] = U[j + 16]++);
|
|
1800
1800
|
var Y = 0;
|
|
1801
|
-
for (
|
|
1802
|
-
if (Y = x[
|
|
1803
|
-
for (j = fe(W[
|
|
1804
|
-
v[j | V << Y] = Y & 15 |
|
|
1801
|
+
for (y = 0; y < R; ++y)
|
|
1802
|
+
if (Y = x[y], Y != 0)
|
|
1803
|
+
for (j = fe(W[y], w) >> w - Y, V = (1 << w + 4 - Y) - 1; V >= 0; --V)
|
|
1804
|
+
v[j | V << Y] = Y & 15 | y << 4;
|
|
1805
1805
|
return w;
|
|
1806
1806
|
}
|
|
1807
|
-
var Re = ie ? new Uint16Array(512) :
|
|
1807
|
+
var Re = ie ? new Uint16Array(512) : ye(512), Me = ie ? new Uint16Array(32) : ye(32);
|
|
1808
1808
|
if (!ie) {
|
|
1809
1809
|
for (var ke = 0; ke < 512; ++ke) Re[ke] = 0;
|
|
1810
1810
|
for (ke = 0; ke < 32; ++ke) Me[ke] = 0;
|
|
@@ -1823,10 +1823,10 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1823
1823
|
for (var v = ie ? new Uint8Array(32768) : [], g = 0, w = 0; g < se.length - 1; ++g)
|
|
1824
1824
|
for (; w < se[g + 1]; ++w) v[w] = g;
|
|
1825
1825
|
for (; w < 32768; ++w) v[w] = 29;
|
|
1826
|
-
var
|
|
1826
|
+
var T = ie ? new Uint8Array(259) : [];
|
|
1827
1827
|
for (g = 0, w = 0; g < K.length - 1; ++g)
|
|
1828
|
-
for (; w < K[g + 1]; ++w)
|
|
1829
|
-
function
|
|
1828
|
+
for (; w < K[g + 1]; ++w) T[w] = g;
|
|
1829
|
+
function y(j, R) {
|
|
1830
1830
|
for (var U = 0; U < j.length; ) {
|
|
1831
1831
|
var W = Math.min(65535, j.length - U), Y = U + W == j.length;
|
|
1832
1832
|
for (R.write_shift(1, +Y), R.write_shift(2, W), R.write_shift(2, ~W & 65535); W-- > 0; ) R[R.l++] = j[U++];
|
|
@@ -1852,7 +1852,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1852
1852
|
if ((Q = Y[ee]) && (Q |= W & -32768, Q > W && (Q -= 32768), Q < W))
|
|
1853
1853
|
for (; j[Q + oe] == j[W + oe] && oe < 250; ) ++oe;
|
|
1854
1854
|
if (oe > 2) {
|
|
1855
|
-
J =
|
|
1855
|
+
J = T[oe], J <= 22 ? U = Ie(R, U, Z[J + 1] >> 1) - 1 : (Ie(R, U, 3), U += 5, Ie(R, U, Z[J - 23] >> 5), U += 3);
|
|
1856
1856
|
var _e = J < 8 ? 0 : J - 4 >> 2;
|
|
1857
1857
|
_e > 0 && ($e(R, U, oe - K[J]), U += _e), J = v[W - Q], U = Ie(R, U, Z[J] >> 3), U -= 3;
|
|
1858
1858
|
var pe = J < 4 ? 0 : J - 2 >> 1;
|
|
@@ -1868,23 +1868,23 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1868
1868
|
return R.l = (U + 7) / 8 | 0, R.l;
|
|
1869
1869
|
}
|
|
1870
1870
|
return function(R, U) {
|
|
1871
|
-
return R.length < 8 ?
|
|
1871
|
+
return R.length < 8 ? y(R, U) : V(R, U);
|
|
1872
1872
|
};
|
|
1873
1873
|
}();
|
|
1874
1874
|
function We(x) {
|
|
1875
1875
|
var v = new_buf(50 + Math.floor(x.length * 1.1)), g = qe(x, v);
|
|
1876
1876
|
return v.slice(0, g);
|
|
1877
1877
|
}
|
|
1878
|
-
var Xe = ie ? new Uint16Array(32768) :
|
|
1878
|
+
var Xe = ie ? new Uint16Array(32768) : ye(32768), He = ie ? new Uint16Array(32768) : ye(32768), Ge = ie ? new Uint16Array(128) : ye(128), ze = 1, je = 1;
|
|
1879
1879
|
function Ze(x, v) {
|
|
1880
1880
|
var g = me(x, v) + 257;
|
|
1881
1881
|
v += 5;
|
|
1882
1882
|
var w = me(x, v) + 1;
|
|
1883
1883
|
v += 5;
|
|
1884
|
-
var
|
|
1884
|
+
var T = Se(x, v) + 4;
|
|
1885
1885
|
v += 4;
|
|
1886
|
-
for (var
|
|
1887
|
-
V[D[q]] =
|
|
1886
|
+
for (var y = 0, V = ie ? new Uint8Array(19) : ye(19), j = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], R = 1, U = ie ? new Uint8Array(8) : ye(8), W = ie ? new Uint8Array(8) : ye(8), Y = V.length, q = 0; q < T; ++q)
|
|
1887
|
+
V[D[q]] = y = ue(x, v), R < y && (R = y), U[y]++, v += 3;
|
|
1888
1888
|
var ee = 0;
|
|
1889
1889
|
for (U[0] = 0, q = 1; q <= R; ++q) W[q] = ee = ee + U[q - 1] << 1;
|
|
1890
1890
|
for (q = 0; q < Y; ++q) (ee = V[q]) != 0 && (j[q] = W[ee]++);
|
|
@@ -1898,13 +1898,13 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1898
1898
|
for (R = 1; oe.length < g + w; )
|
|
1899
1899
|
switch (ee = Ge[re(x, v)], v += ee & 7, ee >>>= 3) {
|
|
1900
1900
|
case 16:
|
|
1901
|
-
for (
|
|
1901
|
+
for (y = 3 + Ee(x, v), v += 2, ee = oe[oe.length - 1]; y-- > 0; ) oe.push(ee);
|
|
1902
1902
|
break;
|
|
1903
1903
|
case 17:
|
|
1904
|
-
for (
|
|
1904
|
+
for (y = 3 + ue(x, v), v += 3; y-- > 0; ) oe.push(0);
|
|
1905
1905
|
break;
|
|
1906
1906
|
case 18:
|
|
1907
|
-
for (
|
|
1907
|
+
for (y = 11 + re(x, v), v += 7; y-- > 0; ) oe.push(0);
|
|
1908
1908
|
break;
|
|
1909
1909
|
default:
|
|
1910
1910
|
oe.push(ee), R < ee && (R = ee);
|
|
@@ -1918,35 +1918,35 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1918
1918
|
function Qe(x, v) {
|
|
1919
1919
|
if (x[0] == 3 && !(x[1] & 3))
|
|
1920
1920
|
return [new_raw_buf(v), 2];
|
|
1921
|
-
for (var g = 0, w = 0,
|
|
1921
|
+
for (var g = 0, w = 0, T = new_unsafe_buf(v || 1 << 18), y = 0, V = T.length >>> 0, j = 0, R = 0; !(w & 1); ) {
|
|
1922
1922
|
if (w = ue(x, g), g += 3, w >>> 1)
|
|
1923
1923
|
w >> 1 == 1 ? (j = 9, R = 5) : (g = Ze(x, g), j = ze, R = je);
|
|
1924
1924
|
else {
|
|
1925
1925
|
g & 7 && (g += 8 - (g & 7));
|
|
1926
1926
|
var U = x[g >>> 3] | x[(g >>> 3) + 1] << 8;
|
|
1927
1927
|
if (g += 32, U > 0)
|
|
1928
|
-
for (!v && V <
|
|
1929
|
-
y
|
|
1928
|
+
for (!v && V < y + U && (T = Oe(T, y + U), V = T.length); U-- > 0; )
|
|
1929
|
+
T[y++] = x[g >>> 3], g += 8;
|
|
1930
1930
|
continue;
|
|
1931
1931
|
}
|
|
1932
1932
|
for (; ; ) {
|
|
1933
|
-
!v && V <
|
|
1934
|
-
var W =
|
|
1935
|
-
if (g += Y & 15, Y >>>= 4, !(Y >>> 8 & 255)) y
|
|
1933
|
+
!v && V < y + 32767 && (T = Oe(T, y + 32767), V = T.length);
|
|
1934
|
+
var W = Te(x, g, j), Y = w >>> 1 == 1 ? Re[W] : Xe[W];
|
|
1935
|
+
if (g += Y & 15, Y >>>= 4, !(Y >>> 8 & 255)) T[y++] = Y;
|
|
1936
1936
|
else {
|
|
1937
1937
|
if (Y == 256) break;
|
|
1938
1938
|
Y -= 257;
|
|
1939
1939
|
var q = Y < 8 ? 0 : Y - 4 >> 2;
|
|
1940
1940
|
q > 5 && (q = 0);
|
|
1941
|
-
var ee =
|
|
1942
|
-
q > 0 && (ee +=
|
|
1941
|
+
var ee = y + K[Y];
|
|
1942
|
+
q > 0 && (ee += Te(x, g, q), g += q), W = Te(x, g, R), Y = w >>> 1 == 1 ? Me[W] : He[W], g += Y & 15, Y >>>= 4;
|
|
1943
1943
|
var J = Y < 4 ? 0 : Y - 2 >> 1, Q = se[Y];
|
|
1944
|
-
for (J > 0 && (Q +=
|
|
1945
|
-
y
|
|
1944
|
+
for (J > 0 && (Q += Te(x, g, J), g += J), !v && V < ee && (T = Oe(T, ee + 100), V = T.length); y < ee; )
|
|
1945
|
+
T[y] = T[y - Q], ++y;
|
|
1946
1946
|
}
|
|
1947
1947
|
}
|
|
1948
1948
|
}
|
|
1949
|
-
return v ? [
|
|
1949
|
+
return v ? [T, g + 7 >>> 3] : [T.slice(0, y), g + 7 >>> 3];
|
|
1950
1950
|
}
|
|
1951
1951
|
function Ke(x, v) {
|
|
1952
1952
|
var g = x.slice(x.l || 0), w = Qe(g, v);
|
|
@@ -1963,11 +1963,11 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1963
1963
|
x
|
|
1964
1964
|
);
|
|
1965
1965
|
prep_blob(g, 0);
|
|
1966
|
-
var w = [],
|
|
1966
|
+
var w = [], T = [], y = {
|
|
1967
1967
|
FileIndex: w,
|
|
1968
|
-
FullPaths:
|
|
1968
|
+
FullPaths: T
|
|
1969
1969
|
};
|
|
1970
|
-
A(
|
|
1970
|
+
A(y, { root: v.root });
|
|
1971
1971
|
for (var V = g.length - 4; (g[V] != 80 || g[V + 1] != 75 || g[V + 2] != 5 || g[V + 3] != 6) && V >= 0; ) --V;
|
|
1972
1972
|
g.l = V + 4, g.l += 4;
|
|
1973
1973
|
var j = g.read_shift(2);
|
|
@@ -1984,14 +1984,14 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1984
1984
|
);
|
|
1985
1985
|
g.l += Y + q + ee;
|
|
1986
1986
|
var oe = g.l;
|
|
1987
|
-
g.l = J + 4, et(g, U, W,
|
|
1987
|
+
g.l = J + 4, et(g, U, W, y, Q), g.l = oe;
|
|
1988
1988
|
}
|
|
1989
|
-
return
|
|
1989
|
+
return y;
|
|
1990
1990
|
}
|
|
1991
|
-
function et(x, v, g, w,
|
|
1991
|
+
function et(x, v, g, w, T) {
|
|
1992
1992
|
x.l += 2;
|
|
1993
|
-
var
|
|
1994
|
-
if (
|
|
1993
|
+
var y = x.read_shift(2), V = x.read_shift(2), j = s(x);
|
|
1994
|
+
if (y & 8257) throw new Error("Unsupported ZIP encryption");
|
|
1995
1995
|
for (var R = x.read_shift(4), U = x.read_shift(4), W = x.read_shift(4), Y = x.read_shift(2), q = x.read_shift(2), ee = "", J = 0; J < Y; ++J) ee += String.fromCharCode(x[x.l++]);
|
|
1996
1996
|
if (q) {
|
|
1997
1997
|
var Q = l(
|
|
@@ -1999,7 +1999,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1999
1999
|
x.slice(x.l, x.l + q)
|
|
2000
2000
|
/*:: :any)*/
|
|
2001
2001
|
);
|
|
2002
|
-
(Q[21589] || {}).mt && (j = Q[21589].mt), ((
|
|
2002
|
+
(Q[21589] || {}).mt && (j = Q[21589].mt), ((T || {})[21589] || {}).mt && (j = T[21589].mt);
|
|
2003
2003
|
}
|
|
2004
2004
|
x.l += q;
|
|
2005
2005
|
var oe = x.slice(x.l, x.l + U);
|
|
@@ -2014,10 +2014,10 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
2014
2014
|
throw new Error("Unsupported ZIP Compression method " + V);
|
|
2015
2015
|
}
|
|
2016
2016
|
var _e = !1;
|
|
2017
|
-
|
|
2017
|
+
y & 8 && (R = x.read_shift(4), R == 134695760 && (R = x.read_shift(4), _e = !0), U = x.read_shift(4), W = x.read_shift(4)), U != v && Ye(_e, "Bad compressed size: " + v + " != " + U), W != g && Ye(_e, "Bad uncompressed size: " + g + " != " + W), Ve(w, ee, oe, { unsafe: !0, mt: j });
|
|
2018
2018
|
}
|
|
2019
2019
|
function tt(x, v) {
|
|
2020
|
-
var g = v || {}, w = [],
|
|
2020
|
+
var g = v || {}, w = [], T = [], y = new_buf(1), V = g.compression ? 8 : 0, j = 0, R = 0, U = 0, W = 0, Y = 0, q = x.FullPaths[0], ee = q, J = x.FileIndex[0], Q = [], oe = 0;
|
|
2021
2021
|
for (R = 1; R < x.FullPaths.length; ++R)
|
|
2022
2022
|
if (ee = x.FullPaths[R].slice(q.length), J = x.FileIndex[R], !(!J.size || !J.content || ee == "Sh33tJ5")) {
|
|
2023
2023
|
var _e = W, pe = new_buf(ee.length);
|
|
@@ -2028,17 +2028,17 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
2028
2028
|
0
|
|
2029
2029
|
);
|
|
2030
2030
|
var we = J.content;
|
|
2031
|
-
V == 8 && (we = P(we)),
|
|
2031
|
+
V == 8 && (we = P(we)), y = new_buf(30), y.write_shift(4, 67324752), y.write_shift(2, 20), y.write_shift(2, j), y.write_shift(2, V), J.mt ? i(y, J.mt) : y.write_shift(4, 0), y.write_shift(-4, Q[Y]), y.write_shift(4, we.length), y.write_shift(
|
|
2032
2032
|
4,
|
|
2033
2033
|
/*::(*/
|
|
2034
2034
|
J.content.length
|
|
2035
|
-
),
|
|
2035
|
+
), y.write_shift(2, pe.length), y.write_shift(2, 0), W += y.length, w.push(y), W += pe.length, w.push(pe), W += we.length, w.push(we), y = new_buf(46), y.write_shift(4, 33639248), y.write_shift(2, 0), y.write_shift(2, 20), y.write_shift(2, j), y.write_shift(2, V), y.write_shift(4, 0), y.write_shift(-4, Q[Y]), y.write_shift(4, we.length), y.write_shift(
|
|
2036
2036
|
4,
|
|
2037
2037
|
/*::(*/
|
|
2038
2038
|
J.content.length
|
|
2039
|
-
),
|
|
2039
|
+
), y.write_shift(2, pe.length), y.write_shift(2, 0), y.write_shift(2, 0), y.write_shift(2, 0), y.write_shift(2, 0), y.write_shift(4, 0), y.write_shift(4, _e), oe += y.l, T.push(y), oe += pe.length, T.push(pe), ++Y;
|
|
2040
2040
|
}
|
|
2041
|
-
return
|
|
2041
|
+
return y = new_buf(22), y.write_shift(4, 101010256), y.write_shift(2, 0), y.write_shift(2, 0), y.write_shift(2, Y), y.write_shift(2, Y), y.write_shift(4, oe), y.write_shift(4, W), y.write_shift(2, 0), bconcat([bconcat(w), bconcat(T), y]);
|
|
2042
2042
|
}
|
|
2043
2043
|
var be = {
|
|
2044
2044
|
htm: "text/html",
|
|
@@ -2070,15 +2070,15 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
2070
2070
|
` && (v = "=0D" + v.slice(1)), v = v.replace(/\r(?!\n)/mg, "=0D").replace(/\n\n/mg, `
|
|
2071
2071
|
=0A`).replace(/([^\r\n])\n/mg, "$1=0A");
|
|
2072
2072
|
for (var g = [], w = v.split(`\r
|
|
2073
|
-
`),
|
|
2074
|
-
var
|
|
2075
|
-
if (
|
|
2073
|
+
`), T = 0; T < w.length; ++T) {
|
|
2074
|
+
var y = w[T];
|
|
2075
|
+
if (y.length == 0) {
|
|
2076
2076
|
g.push("");
|
|
2077
2077
|
continue;
|
|
2078
2078
|
}
|
|
2079
|
-
for (var V = 0; V <
|
|
2080
|
-
var j = 76, R =
|
|
2081
|
-
R.charAt(j - 1) == "=" ? j-- : R.charAt(j - 2) == "=" ? j -= 2 : R.charAt(j - 3) == "=" && (j -= 3), R =
|
|
2079
|
+
for (var V = 0; V < y.length; ) {
|
|
2080
|
+
var j = 76, R = y.slice(V, V + j);
|
|
2081
|
+
R.charAt(j - 1) == "=" ? j-- : R.charAt(j - 2) == "=" ? j -= 2 : R.charAt(j - 3) == "=" && (j -= 3), R = y.slice(V, V + j), V += j, V < y.length && (R += "="), g.push(R);
|
|
2082
2082
|
}
|
|
2083
2083
|
}
|
|
2084
2084
|
return g.join(`\r
|
|
@@ -2089,14 +2089,14 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
2089
2089
|
for (var w = x[g]; g <= x.length && w.charAt(w.length - 1) == "="; ) w = w.slice(0, w.length - 1) + x[++g];
|
|
2090
2090
|
v.push(w);
|
|
2091
2091
|
}
|
|
2092
|
-
for (var
|
|
2093
|
-
return String.fromCharCode(parseInt(
|
|
2092
|
+
for (var T = 0; T < v.length; ++T) v[T] = v[T].replace(/[=][0-9A-Fa-f]{2}/g, function(y) {
|
|
2093
|
+
return String.fromCharCode(parseInt(y.slice(1), 16));
|
|
2094
2094
|
});
|
|
2095
2095
|
return s2a(v.join(`\r
|
|
2096
2096
|
`));
|
|
2097
2097
|
}
|
|
2098
2098
|
function st(x, v, g) {
|
|
2099
|
-
for (var w = "",
|
|
2099
|
+
for (var w = "", T = "", y = "", V, j = 0; j < 10; ++j) {
|
|
2100
2100
|
var R = v[j];
|
|
2101
2101
|
if (!R || R.match(/^\s*$/)) break;
|
|
2102
2102
|
var U = R.match(/^(.*?):\s*([^\s].*)$/);
|
|
@@ -2105,14 +2105,14 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
2105
2105
|
w = U[2].trim();
|
|
2106
2106
|
break;
|
|
2107
2107
|
case "content-type":
|
|
2108
|
-
|
|
2108
|
+
y = U[2].trim();
|
|
2109
2109
|
break;
|
|
2110
2110
|
case "content-transfer-encoding":
|
|
2111
|
-
|
|
2111
|
+
T = U[2].trim();
|
|
2112
2112
|
break;
|
|
2113
2113
|
}
|
|
2114
2114
|
}
|
|
2115
|
-
switch (++j,
|
|
2115
|
+
switch (++j, T.toLowerCase()) {
|
|
2116
2116
|
case "base64":
|
|
2117
2117
|
V = s2a(Base64_decode(v.slice(j).join("")));
|
|
2118
2118
|
break;
|
|
@@ -2120,18 +2120,18 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
2120
2120
|
V = it(v.slice(j));
|
|
2121
2121
|
break;
|
|
2122
2122
|
default:
|
|
2123
|
-
throw new Error("Unsupported Content-Transfer-Encoding " +
|
|
2123
|
+
throw new Error("Unsupported Content-Transfer-Encoding " + T);
|
|
2124
2124
|
}
|
|
2125
2125
|
var W = Ve(x, w.slice(g.length), V, { unsafe: !0 });
|
|
2126
|
-
|
|
2126
|
+
y && (W.ctype = y);
|
|
2127
2127
|
}
|
|
2128
2128
|
function lt(x, v) {
|
|
2129
2129
|
if (he(x.slice(0, 13)).toLowerCase() != "mime-version:") throw new Error("Unsupported MAD header");
|
|
2130
2130
|
var g = v && v.root || "", w = (has_buf && Buffer.isBuffer(x) ? x.toString("binary") : he(x)).split(`\r
|
|
2131
|
-
`),
|
|
2132
|
-
for (
|
|
2133
|
-
if (
|
|
2134
|
-
for (; g.length > 0 && (g = g.slice(0, g.length - 1), g = g.slice(0, g.lastIndexOf("/") + 1),
|
|
2131
|
+
`), T = 0, y = "";
|
|
2132
|
+
for (T = 0; T < w.length; ++T)
|
|
2133
|
+
if (y = w[T], !!/^Content-Location:/i.test(y) && (y = y.slice(y.indexOf("file")), g || (g = y.slice(0, y.lastIndexOf("/") + 1)), y.slice(0, g.length) != g))
|
|
2134
|
+
for (; g.length > 0 && (g = g.slice(0, g.length - 1), g = g.slice(0, g.lastIndexOf("/") + 1), y.slice(0, g.length) != g); )
|
|
2135
2135
|
;
|
|
2136
2136
|
var V = (w[1] || "").match(/boundary="(.*?)"/);
|
|
2137
2137
|
if (!V) throw new Error("MAD cannot find boundary");
|
|
@@ -2141,23 +2141,23 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
2141
2141
|
};
|
|
2142
2142
|
A(W);
|
|
2143
2143
|
var Y, q = 0;
|
|
2144
|
-
for (
|
|
2145
|
-
var ee = w[
|
|
2146
|
-
ee !== j && ee !== j + "--" || (q++ && st(W, w.slice(Y,
|
|
2144
|
+
for (T = 0; T < w.length; ++T) {
|
|
2145
|
+
var ee = w[T];
|
|
2146
|
+
ee !== j && ee !== j + "--" || (q++ && st(W, w.slice(Y, T), g), Y = T);
|
|
2147
2147
|
}
|
|
2148
2148
|
return W;
|
|
2149
2149
|
}
|
|
2150
2150
|
function ot(x, v) {
|
|
2151
2151
|
var g = v || {}, w = g.boundary || "SheetJS";
|
|
2152
2152
|
w = "------=" + w;
|
|
2153
|
-
for (var
|
|
2153
|
+
for (var T = [
|
|
2154
2154
|
"MIME-Version: 1.0",
|
|
2155
2155
|
'Content-Type: multipart/related; boundary="' + w.slice(2) + '"',
|
|
2156
2156
|
"",
|
|
2157
2157
|
"",
|
|
2158
2158
|
""
|
|
2159
|
-
],
|
|
2160
|
-
if (V = x.FullPaths[R].slice(
|
|
2159
|
+
], y = x.FullPaths[0], V = y, j = x.FileIndex[0], R = 1; R < x.FullPaths.length; ++R)
|
|
2160
|
+
if (V = x.FullPaths[R].slice(y.length), j = x.FileIndex[R], !(!j.size || !j.content || V == "Sh33tJ5")) {
|
|
2161
2161
|
V = V.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g, function(oe) {
|
|
2162
2162
|
return "_x" + oe.charCodeAt(0).toString(16) + "_";
|
|
2163
2163
|
}).replace(/[\u0080-\uFFFF]/g, function(oe) {
|
|
@@ -2165,10 +2165,10 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
2165
2165
|
});
|
|
2166
2166
|
for (var U = j.content, W = has_buf && Buffer.isBuffer(U) ? U.toString("binary") : he(U), Y = 0, q = Math.min(1024, W.length), ee = 0, J = 0; J <= q; ++J) (ee = W.charCodeAt(J)) >= 32 && ee < 128 && ++Y;
|
|
2167
2167
|
var Q = Y >= q * 4 / 5;
|
|
2168
|
-
|
|
2168
|
+
T.push(w), T.push("Content-Location: " + (g.root || "file:///C:/SheetJS/") + V), T.push("Content-Transfer-Encoding: " + (Q ? "quoted-printable" : "base64")), T.push("Content-Type: " + rt(j, V)), T.push(""), T.push(Q ? nt(W) : at(W));
|
|
2169
2169
|
}
|
|
2170
|
-
return
|
|
2171
|
-
`),
|
|
2170
|
+
return T.push(w + `--\r
|
|
2171
|
+
`), T.join(`\r
|
|
2172
2172
|
`);
|
|
2173
2173
|
}
|
|
2174
2174
|
function ft(x) {
|
|
@@ -2176,14 +2176,14 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
2176
2176
|
return A(v, x), v;
|
|
2177
2177
|
}
|
|
2178
2178
|
function Ve(x, v, g, w) {
|
|
2179
|
-
var
|
|
2180
|
-
|
|
2181
|
-
var
|
|
2182
|
-
if (!
|
|
2179
|
+
var T = w && w.unsafe;
|
|
2180
|
+
T || A(x);
|
|
2181
|
+
var y = !T && CFB.find(x, v);
|
|
2182
|
+
if (!y) {
|
|
2183
2183
|
var V = x.FullPaths[0];
|
|
2184
|
-
v.slice(0, V.length) == V ? V = v : (V.slice(-1) != "/" && (V += "/"), V = (V + v).replace("//", "/")),
|
|
2184
|
+
v.slice(0, V.length) == V ? V = v : (V.slice(-1) != "/" && (V += "/"), V = (V + v).replace("//", "/")), y = { name: n(v), type: 2 }, x.FileIndex.push(y), x.FullPaths.push(V), T || CFB.utils.cfb_gc(x);
|
|
2185
2185
|
}
|
|
2186
|
-
return
|
|
2186
|
+
return y.content = g, y.size = g ? g.length : 0, w && (w.CLSID && (y.clsid = w.CLSID), w.mt && (y.mt = w.mt), w.ct && (y.ct = w.ct)), y;
|
|
2187
2187
|
}
|
|
2188
2188
|
function ct(x, v) {
|
|
2189
2189
|
A(x);
|
|
@@ -2198,8 +2198,8 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
2198
2198
|
A(x);
|
|
2199
2199
|
var w = CFB.find(x, v);
|
|
2200
2200
|
if (w) {
|
|
2201
|
-
for (var
|
|
2202
|
-
return x.FileIndex[
|
|
2201
|
+
for (var T = 0; T < x.FileIndex.length; ++T) if (x.FileIndex[T] == w)
|
|
2202
|
+
return x.FileIndex[T].name = n(g), x.FullPaths[T] = g, !0;
|
|
2203
2203
|
}
|
|
2204
2204
|
return !1;
|
|
2205
2205
|
}
|
|
@@ -5391,7 +5391,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
5391
5391
|
if (k[2] == 0 && (k[3] == 8 || k[3] == 9) && k.length >= 16 && k[14] == 5 && k[15] === 108)
|
|
5392
5392
|
throw new Error("Unsupported Works 3 for Mac file");
|
|
5393
5393
|
if (k[2] == 2)
|
|
5394
|
-
P.Enum = ve, e(k, function(re,
|
|
5394
|
+
P.Enum = ve, e(k, function(re, Te, Ce) {
|
|
5395
5395
|
switch (Ce) {
|
|
5396
5396
|
case 0:
|
|
5397
5397
|
P.vers = re, re >= 4096 && (P.qpro = !0);
|
|
@@ -5429,7 +5429,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
5429
5429
|
}
|
|
5430
5430
|
}, P);
|
|
5431
5431
|
else if (k[2] == 26 || k[2] == 14)
|
|
5432
|
-
P.Enum = ge, k[2] == 14 && (P.qpro = !0, k.l = 0), e(k, function(re,
|
|
5432
|
+
P.Enum = ge, k[2] == 14 && (P.qpro = !0, k.l = 0), e(k, function(re, Te, Ce) {
|
|
5433
5433
|
switch (Ce) {
|
|
5434
5434
|
case 204:
|
|
5435
5435
|
K = re;
|
|
@@ -5497,12 +5497,12 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
5497
5497
|
for (var Z = safe_decode_range(ie["!ref"]), de = Array.isArray(ie), fe = [], Ee = Math.min(Z.e.r, 8191), ue = Z.s.r; ue <= Ee; ++ue)
|
|
5498
5498
|
for (var Se = encode_row(ue), me = Z.s.c; me <= Z.e.c; ++me) {
|
|
5499
5499
|
ue === Z.s.r && (fe[me] = encode_col(me));
|
|
5500
|
-
var re = fe[me] + Se,
|
|
5501
|
-
if (!(!
|
|
5502
|
-
if (
|
|
5503
|
-
write_biff_rec(D, 23, O(ue, me, le,
|
|
5500
|
+
var re = fe[me] + Se, Te = de ? (ie[ue] || [])[me] : ie[re];
|
|
5501
|
+
if (!(!Te || Te.t == "z"))
|
|
5502
|
+
if (Te.t == "n")
|
|
5503
|
+
write_biff_rec(D, 23, O(ue, me, le, Te.v));
|
|
5504
5504
|
else {
|
|
5505
|
-
var Ce = format_cell(
|
|
5505
|
+
var Ce = format_cell(Te);
|
|
5506
5506
|
write_biff_rec(D, 22, A(ue, me, le, Ce.slice(0, 239)));
|
|
5507
5507
|
}
|
|
5508
5508
|
}
|
|
@@ -16688,8 +16688,9 @@ const SafeCall$1 = async (e, r) => {
|
|
|
16688
16688
|
}
|
|
16689
16689
|
}
|
|
16690
16690
|
}, b = () => {
|
|
16691
|
-
|
|
16692
|
-
|
|
16691
|
+
let z = deepClone(o.DataModel);
|
|
16692
|
+
u("saveData", z, !0), SafeCall$1(async () => {
|
|
16693
|
+
let A = await AjaxCallWeb(`${d}/${m.controller}/SaveModel`, z);
|
|
16693
16694
|
ElMessage({ message: L("数据保存成功!"), type: "success" }), o.IsVisible = !1, G();
|
|
16694
16695
|
}, L("数据保存中"));
|
|
16695
16696
|
}, G = (z) => SafeCall$1(async () => {
|
|
@@ -16848,7 +16849,7 @@ const SafeCall$1 = async (e, r) => {
|
|
|
16848
16849
|
}, 8, ["modelValue", "title", "width", "top", "style"])
|
|
16849
16850
|
]));
|
|
16850
16851
|
}
|
|
16851
|
-
}, PageIndex = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-
|
|
16852
|
+
}, PageIndex = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-efc6b93c"]]), _hoisted_1$d = { class: "pagemain" }, _hoisted_2$7 = {
|
|
16852
16853
|
key: 1,
|
|
16853
16854
|
class: "total"
|
|
16854
16855
|
}, _hoisted_3$6 = { class: "total-item" }, _hoisted_4$5 = { style: { color: "dodgerblue", "font-weight": "bold" } }, _sfc_main$i = {
|
|
@@ -16867,6 +16868,7 @@ const SafeCall$1 = async (e, r) => {
|
|
|
16867
16868
|
loadData: { type: Boolean, default: !0 },
|
|
16868
16869
|
toolWidth: { type: String, default: "120" },
|
|
16869
16870
|
maxCommand: { type: [String, Number], default: 2 },
|
|
16871
|
+
showTotal: { type: Boolean, default: !0 },
|
|
16870
16872
|
printOption: {
|
|
16871
16873
|
type: Object,
|
|
16872
16874
|
default: () => ({
|
|
@@ -17015,7 +17017,7 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17015
17017
|
]),
|
|
17016
17018
|
_: 3
|
|
17017
17019
|
}),
|
|
17018
|
-
l.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
|
|
17020
|
+
o.showTotal && l.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
|
|
17019
17021
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(l.value, (b) => (openBlock(), createElementBlock("div", _hoisted_3$6, [
|
|
17020
17022
|
createElementVNode("div", null, toDisplayString(b.title) + ":", 1),
|
|
17021
17023
|
createElementVNode("div", _hoisted_4$5, toDisplayString(n.value.Where((G) => !G.IgnoreSummary).Sum((G) => b.FnGet ? b.FnGet(G) * 1 : G[b.dataKey] * 1).toFixed(2)), 1)
|
|
@@ -17037,7 +17039,7 @@ const SafeCall$1 = async (e, r) => {
|
|
|
17037
17039
|
}, null, 8, ["data", "tabName", "toolWidth", "maxCommand", "columnArray", "commandArray", "printOption"]))
|
|
17038
17040
|
]));
|
|
17039
17041
|
}
|
|
17040
|
-
}, reportIndex = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
17042
|
+
}, reportIndex = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-b6d924df"]]), _sfc_main$h = {
|
|
17041
17043
|
__name: "byDatePicker",
|
|
17042
17044
|
props: {
|
|
17043
17045
|
BeginTime: { type: [String, void 0], default: "" },
|
package/dist/qk-pc-ui.umd.js
CHANGED
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
${C}
|
|
118
118
|
</tbody>
|
|
119
119
|
</table>`},u=(m,c,_,C)=>{if(c.title==null)return{rowspan:1,colspan:1};let N=c.title,k=t.columnArray.FirstOrDefault(G=>G.title==N);if(k==null||!k.isHeBing)return{rowspan:1,colspan:1};let B=m[N];if(C>0&&B==t.data[C-1][N])return{rowspan:0,colspan:0};let H=0;for(let G=C;G<t.data.length&&t.data[G][N]==B;G++)H++;return{rowspan:H,colspan:1}},p=()=>{if(a.value.length==0)return elementPlus.ElMessageBox.alert(qkLibV3.L("未发现打印机"));if(s==null)return window.open("http://saas.ip239.com/CommonApp/Lodop6.226_Clodop3.083.zip","newwindow"),elementPlus.ElMessageBox.alert(qkLibV3.L("电脑尚未安装打印机插件!请先下载并解压安装"));var m=f();n.PrintName&&s.SET_PRINTER_INDEXA(n.PrintName),n.Direction==1?s.SET_PRINT_PAGESIZE(2,0,0,"A4"):s.SET_PRINT_PAGESIZE(1,0,0,"A4"),s.ADD_PRINT_HTM(0,0,"100%","100%",m),s.PRINT(),i("update:modelValue",!1),elementPlus.ElMessage({message:qkLibV3.L("数据打印成功")})};let h=/^[+-]?([0-9]+[.][0-9]*|[.][0-9]+)$/;const d=()=>{let m=!1;return t.columnArray.map((c,_)=>{if(_===0)return qkLibV3.L("合计");if(!c.isSummary)return"";let C=0;return t.data.forEach(N=>{if(N.src&&N.src.IgnoreSummary)return;let k=N[c.title];!m&&h.test(k)&&(m=!0);let B=Number(k);Number.isNaN(B)||(C+=B)}),m?C.toFixed(2):C})};return vue.watch(()=>t.modelValue,m=>{if(m&&s==null){if(!window.getLodop){console.log("未引入Lodop插件");return}s=getLodop();let c=s.GET_PRINTER_COUNT();if(c==0){console.log("电脑无打印机");return}for(let _=0;_<c;_++)a.value.push(s.GET_PRINTER_NAME(_))}}),(m,c)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDialog),{modelValue:l.value,"onUpdate:modelValue":c[2]||(c[2]=_=>l.value=_),title:vue.unref(qkLibV3.L)("打印配置"),width:"600px"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRow),null,{default:vue.withCtx(()=>[vue.createElementVNode("label",_hoisted_1$h,vue.toDisplayString(vue.unref(qkLibV3.L)("打印机")),1),vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:n.PrintName,"onUpdate:modelValue":c[0]||(c[0]=_=>n.PrintName=_),style:{width:"150px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElOption),{value:"",label:vue.unref(qkLibV3.L)("默认打印机")},null,8,["label"]),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.value,_=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{value:_,label:_},null,8,["value","label"]))),256))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElRow),{style:{"margin-top":"2vh"}},{default:vue.withCtx(()=>[vue.createElementVNode("label",_hoisted_2$a,vue.toDisplayString(vue.unref(qkLibV3.L)("打印方向")),1),vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:n.Direction,"onUpdate:modelValue":c[1]||(c[1]=_=>n.Direction=_),style:{width:"150px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElOption),{value:"0",label:vue.unref(qkLibV3.L)("纵向")},null,8,["label"]),vue.createVNode(vue.unref(elementPlus.ElOption),{value:"1",label:vue.unref(qkLibV3.L)("横向")},null,8,["label"])]),_:1},8,["modelValue"])]),_:1}),vue.renderSlot(m.$slots,"PrintDialogConfigDlg"),vue.createElementVNode("div",_hoisted_3$8,[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",onClick:p},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(qkLibV3.L)("打印")),1)]),_:1})])]),_:3},8,["modelValue","title"]))}},_hoisted_1$g=["src"],_sfc_main$l={__name:"byDialog",props:{modelValue:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},title:{type:String,default:""},with:{type:String,default:"80%"},height:{type:String,default:"calc(100vh - 175px)"},top:{type:String,default:"1vh"},url:{type:String,default:""},modal:{type:Boolean,default:!0}},emits:["update:modelValue","before-close"],setup(e,{emit:r}){const t=e,a=r,n=vue.computed({get:()=>t.modelValue,set:s=>a("update:modelValue",s)}),i=s=>{a("before-close",s),a("update:modelValue",!1)};return(s,l)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDialog),{title:t.title,modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=o=>n.value=o),fullscreen:t.fullscreen,top:t.top,width:t.width,"show-close":t.showClose,"close-on-click-modal":!1,"close-on-press-escape":!1,"append-to-body":"",onClose:i,modal:t.modal},{default:vue.withCtx(()=>[n.value?(vue.openBlock(),vue.createElementBlock("div",{key:0,style:vue.normalizeStyle("height:"+t.height+";overflow: auto;")},[vue.renderSlot(s.$slots,"default",{},()=>[vue.createElementVNode("iframe",{ref:"myiframe",src:t.url,class:"myiframe"},null,8,_hoisted_1$g)],!0)],4)):vue.createCommentVNode("",!0)]),_:3},8,["title","modelValue","fullscreen","top","width","show-close","modal"]))}},byDialog=_export_sfc(_sfc_main$l,[["__scopeId","data-v-19c47856"]]),_hoisted_1$f={style:{height:"100%",width:"100%"}},_hoisted_2$9={style:{position:"absolute",display:"inline-block"}},_hoisted_3$7={style:{top:"2px",position:"relative"}},_hoisted_4$6={key:1,class:"myicon","aria-hidden":"true",style:{"font-size":"2em"}},_hoisted_5$5=["xlink:href"],_hoisted_6$5=["src"],_sfc_main$k={__name:"DataList",props:{showCheck:{type:Boolean,default:!0},showLineNo:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},tabName:{type:String,default:qkLibV3.L("数据")},columnArray:{type:Array,default:()=>[]},commandArray:{type:Array,default:()=>[]},maxCommand:{type:[String,Number],default:"2"},powerArray:{type:Array,default:()=>[]},toolWidth:{type:String,default:"120"},printOption:{type:Object,default:()=>({TitleArray:[],FootArray:[]})},fnGetSelectData:{type:Function,default:(e,r)=>e}},emits:["command","select"],setup(e,{expose:r,emit:t}){vue.ref([]),vue.ref();const a=vue.ref([]),n=vue.ref([]),i=vue.reactive({IsVisible:!1,dataArray:[],isShowPic:!1,PicUrl:""}),s=e,l=S=>{i.isShowPic=!0,i.PicUrl=S},o=S=>{try{let D=new Date,P=S.ToDateTime();return D>P?"red":(D=D.AddDays(30),D>P?"#f6d00c":"inherit")}catch{}},f=({row:S,column:D,columnIndex:P,rowIndex:L})=>{if(D.property==null)return{rowspan:1,colspan:1};let X=D.property,re=a.value.FirstOrDefault(ee=>ee.dataKey==X);if(re==null||!re.isHeBing)return{rowspan:1,colspan:1};let ae=S[X];if(L>0&&ae==n.value[L-1][X])return{rowspan:0,colspan:0};let fe=0;for(let ee=L;ee<n.value.length&&n.value[ee][X]==ae;ee++)fe++;return{rowspan:fe,colspan:1}},u=(S,D)=>{for(let P=0;P<S.length;P++)if(D(S[P]))return S[P];return null},p=async S=>{let D=n.value.filter(P=>P.src.checked);return D.length==0&&(await elementPlus.ElMessageBox.confirm(qkLibV3.L(`您尚未选择任何数据!您是想${S}全部数据吗??`),qkLibV3.L(`数据${S}确认`),{cancelButtonText:qkLibV3.L("取消"),confirmButtonText:qkLibV3.L("确定")}),D=n.value),D=s.fnGetSelectData(D,S),D.map(P=>{let L={};for(let X in P){if(X=="src"){S=="打印"&&(L[X]=P.src);continue}let re=u(a.value,ae=>ae.dataKey==X);re!=null&&(L[re.title]=P[X])}return L})},h=async()=>{let S=await p("导出");console.log(S);let D=0,P=S.length,L=[];for(let ee in S[0])D++,L.push(ee);let X=[];s.printOption.TitleArray.forEach(ee=>{X.push([ee])}),X.push(L);for(let ee=0;ee<S.length;ee++){let me=L.map(de=>S[ee][de]);X.push(me)}s.printOption.FootArray.forEach(ee=>{X.push([ee])});const re=utils.aoa_to_sheet(X,{header:L});let ae=[];for(let ee=0;ee<s.printOption.TitleArray.length;ee++)ae.push({s:{r:ee,c:0},e:{r:ee,c:D-1}});for(let ee=0;ee<s.printOption.FootArray.length;ee++){let me=P+ee+s.printOption.TitleArray.length+1;ae.push({s:{r:me,c:0},e:{r:me,c:D-1}})}for(let ee=0;ee<D;ee++){let me=L[ee],de=a.value.FirstOrDefault(R=>R.title==me);if(de==null||!de.isHeBing)continue;let ge,ve=0,F=0;for(let R=0;R<X.length;R++){if(X[R].length<ee)continue;let b=X[R][ee];b==ge?F=R:(ve!=F&&ae.push({s:{r:ve,c:ee},e:{r:F,c:ee}}),ve=R,F=R,ge=b)}}re["!merges"]||(re["!merges"]=[]),re["!merges"]=re["!merges"].concat(ae),Object.keys(re).forEach(ee=>{ee.indexOf("!")<0&&(re[ee].s={alignment:{horizontal:"center",vertical:"center"}},ee.indexOf("1")!==-1&&(re[ee].s.font={bold:!0,sz:16}),ee.indexOf("2")!==-1&&(re[ee].s.font={sz:14}))});const fe=utils.book_new();utils.book_append_sheet(fe,re,"sheet1"),writeFileSync(fe,s.tabName+qkLibV3.L("导出")+".xlsx")};let d=/^[+-]?([0-9]+[.][0-9]*|[.][0-9]+)$/;const m=({columns:S,data:D})=>{let P=[];return S.forEach((L,X)=>{if(X===0){P[X]=qkLibV3.L("合计");return}let re=a.value.FirstOrDefault(fe=>fe.dataKey==L.property&&fe.isSummary);if(re==null){P[X]="";return}P[X]=0;let ae=!1;D.forEach(fe=>{if(!fe.src.IgnoreSummary){let ee=fe[re.dataKey];!ae&&d.test(ee)&&(ae=!0);let me=Number(fe[re.dataKey]);Number.isNaN(me)||(P[X]+=me)}}),ae&&(P[X]=P[X].toFixed(2))}),P},c=async(S,D)=>{let P=S[D.dataKey];if(P=="合计")return P;if(D.EnumType){let L=D.EnumType;for(let X in L)if(L[X]==P)return qkLibV3.L(X);return""}return D.FnGet?await D.FnGet(S):P},_=S=>{S.srcFilter=S.srcFilter||S.filters,S.filterText==""?S.filters=S.srcFilter:S.filters=S.srcFilter.filter(D=>D.text.indexOf(S.filterText)>=0)};window.__id||(window.__id=1);const C=()=>__id++,N=vue.computed({get:()=>a.value.some(S=>S.isSummary)});vue.watch(()=>s.data,(S,D)=>{B(!0)}),vue.onMounted(()=>{B(!0)});const k=async S=>{S.filterList=S.filters.Where(D=>!S.filterList.Exists(P=>P==D.text)).Select(D=>D.text),await B(!0),S.isVisible=!1},B=async S=>{if(S){let P=[];s.columnArray.forEach(L=>{let X={};for(let re in L)X[re]=L[re];X.isFilter&&(X.filters||(X.filterText="",X.filterList=[],X.filters=[],X.Id=C())),P.push(X)}),a.value=P}let D=[];for(let P=0;P<s.data.length;P++){let L=s.data[P];L.src=L;let X={};for(let re=0;re<a.value.length;re++){let ae=a.value[re];X[ae.dataKey]=await c(L,ae)}X.src=L,D.push(X)}S&&a.value.forEach(P=>{if(P.isFilter){let L=[];D.forEach(X=>{let re=X[P.dataKey];L.some(ae=>ae.value==re)||L.push({text:re,value:re})}),P.filters=L}}),n.value=D.filter(P=>{for(let L=0;L<a.value.length;L++){let X=a.value[L];if(X.isFilter&&X.filterList&&X.filterList.length>0&&!X.filterList.some(re=>re==P[X.dataKey]))return!1}return!0})},H=t,G=(S,D)=>{let P=s.commandArray.FirstOrDefault(L=>typeof L=="object"&&L.Name==S);P&&(P.onClick?P.onClick(D):P.OnClick&&P.OnClick(D)),H("command",S,D)},A=S=>{n.value.ForEach(D=>D.src.checked=!1),S.forEach(D=>D.src.checked=!0),H("select",S)},W=S=>{};return r({onUpdateData:B,exportData:h,printData:async()=>{i.dataArray=await p("打印"),i.IsVisible=!0}}),(S,D)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$f,[vue.createVNode(vue.unref(elementPlus.ElTable),{data:n.value,height:"full",stripe:"",border:"","highlight-current-row":"","row-key":"Id","show-summary":N.value,class:"qktab","sum-text":vue.unref(qkLibV3.L)("合计"),"span-method":f,"summary-method":m,onSelectionChange:A},{default:vue.withCtx(()=>[s.showCheck?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTableColumn),{key:0,type:"selection","min-width":"55",fixed:"left"})):vue.createCommentVNode("",!0),s.showLineNo?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTableColumn),{key:1,type:"index","min-width":"80",label:vue.unref(qkLibV3.L)("行号"),fixed:"left"},null,8,["label"])):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(a.value,P=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTableColumn),{prop:P.dataKey,label:vue.unref(qkLibV3.L)(P.title),"min-width":P.width,"show-overflow-tooltip":""},{header:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(vue.unref(qkLibV3.L)(P.title)),1),P.isFilter?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElPopover),{trigger:"click",key:P.Id,width:"400px",visible:P.isVisible,"onUpdate:visible":L=>P.isVisible=L},{reference:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$9,[vue.createElementVNode("div",_hoisted_3$7,[P.filterList.length>0?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElIcon),{key:0,class:"havfilter myicon"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(iconsVue.Setting))]),_:1})):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElIcon),{key:1,class:"myicon"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(iconsVue.Setting))]),_:1}))])])]),default:vue.withCtx(()=>[vue.createElementVNode("div",null,[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:P.filterText,"onUpdate:modelValue":L=>P.filterText=L,onInput:L=>_(P)},null,8,["modelValue","onUpdate:modelValue","onInput"]),vue.createVNode(vue.unref(elementPlus.ElCheckboxGroup),{modelValue:P.filterList,"onUpdate:modelValue":L=>P.filterList=L,class:"filtercheck",onChange:L=>W()},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(P.filters,L=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCheckbox),{label:L.text,value:L.text,style:{width:"400px"}},null,8,["label","value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),vue.createElementVNode("div",null,[vue.createVNode(vue.unref(elementPlus.ElButton),{size:"small",type:"primary",onClick:L=>{B(!1),P.isVisible=!1}},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(qkLibV3.L)("确定")),1)]),_:2},1032,["onClick"]),vue.createVNode(vue.unref(elementPlus.ElButton),{size:"small",type:"danger",onClick:L=>{P.filterList=[],B(!1),P.isVisible=!1}},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(qkLibV3.L)("清空")),1)]),_:2},1032,["onClick"]),vue.createVNode(vue.unref(elementPlus.ElButton),{size:"small",type:"primary",onClick:L=>k(P)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(qkLibV3.L)("反选")),1)]),_:2},1032,["onClick"])])]),_:2},1032,["visible","onUpdate:visible"])):vue.createCommentVNode("",!0)]),default:vue.withCtx(({row:L})=>[P.Type?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[P.Type=="PIC"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[L[P.dataKey]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElLink),{key:0,type:"primary",onClick:X=>l(L[P.dataKey])},{default:vue.withCtx(()=>D[2]||(D[2]=[vue.createTextVNode("查看")])),_:2},1032,["onClick"])):vue.createCommentVNode("",!0)],64)):P.Type=="ICON"?(vue.openBlock(),vue.createElementBlock("svg",_hoisted_4$6,[vue.createElementVNode("use",{"xlink:href":L[P.dataKey]},null,8,_hoisted_5$5)])):P.Type=="COLOR"?(vue.openBlock(),vue.createElementBlock("div",{key:2,style:vue.normalizeStyle("width: 100%;height: 100%;background-color:"+L[P.dataKey])}," ",4)):P.Type=="DATE"?(vue.openBlock(),vue.createElementBlock("span",{key:3,style:vue.normalizeStyle("color:"+o(L[P.dataKey]))},vue.toDisplayString(L[P.dataKey]),5)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:4},[vue.createTextVNode(vue.toDisplayString(L[P.dataKey]),1)],64))],64)):P.OnClick?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElLink),{key:1,type:"success",onClick:X=>P.OnClick(L)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(L[P.dataKey]),1)]),_:2},1032,["onClick"])):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:2},[vue.createTextVNode(vue.toDisplayString(L[P.dataKey]),1)],64))]),_:2},1032,["prop","label","min-width"]))),256)),s.commandArray.length>0?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTableColumn),{key:2,label:vue.unref(qkLibV3.L)("功能"),"min-width":s.toolWidth,fixed:"right"},{default:vue.withCtx(({row:P})=>[s.commandArray.Where(L=>L.IsShow?L.IsShow(P,s.powerArray):!0).length>s.maxCommand?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDropdown),{key:0,onCommand:L=>G(L,P)},{dropdown:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownMenu),null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(s.commandArray,L=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[typeof L=="string"?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDropdownItem),{key:0,command:L},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(qkLibV3.L)(L)),1)]),_:2},1032,["command"])):!L.IsShow||L.IsShow(P,s.powerArray)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[!L.CheckPower||s.powerArray.Exists(X=>X.Name==L.Name)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDropdownItem),{key:0,command:L.Name,disabled:L.IsDisabled?L.IsDisabled(P):!1},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(qkLibV3.L)(L.Name)),1)]),_:2},1032,["command","disabled"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0)],64))),256))]),_:2},1024)]),default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElLink),{type:"primary"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(qkLibV3.L)("操作")),1)]),_:1})]),_:2},1032,["onCommand"])):(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(s.commandArray,L=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[typeof L=="string"?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElLink),{key:0,style:{margin:"0 5px"},type:L=="删除"?"danger":"primary",onClick:X=>G(L,P)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(L),1)]),_:2},1032,["type","onClick"])):!L.IsShow||L.IsShow(P,s.powerArray)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[!L.CheckPower||s.powerArray.Exists(X=>X.Name==L.Name)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElLink),{key:0,style:{margin:"0 5px"},type:L.Name=="删除"?"danger":"primary",onClick:X=>G(L.Name,P),disabled:L.IsDisabled?L.IsDisabled(P):!1},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(L.Name),1)]),_:2},1032,["type","onClick","disabled"])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0)],64))),256))]),_:1},8,["label","min-width"])):vue.createCommentVNode("",!0)]),_:1},8,["data","show-summary","sum-text"]),vue.createVNode(_sfc_main$m,{modelValue:i.IsVisible,"onUpdate:modelValue":D[0]||(D[0]=P=>i.IsVisible=P),data:i.dataArray,title:s.tabName,columnArray:a.value,printOption:s.printOption},null,8,["modelValue","data","title","columnArray","printOption"]),vue.createVNode(byDialog,{modelValue:i.isShowPic,"onUpdate:modelValue":D[1]||(D[1]=P=>i.isShowPic=P),url:i.PicUrl,height:"auto",width:"800px",top:""},{default:vue.withCtx(()=>[vue.createElementVNode("img",{src:i.PicUrl,style:{"max-width":"80%","max-height":"80%"}},null,8,_hoisted_6$5)]),_:1},8,["modelValue","url"])]))}},DataList=_export_sfc(_sfc_main$k,[["__scopeId","data-v-524166ea"]]),CreateNewPrint=()=>{let config={Pid:""},LODOP=getLodop();return{onMessage:(e,r)=>{e.OnMessage&&e.OnMessage(r)},Print:function(printScript,printConfig){return new Promise((resolve,reject)=>{try{printConfig=printConfig||{},eval(printScript),this.onMessage("加载打印脚本成功"),printConfig.PrintName?(LODOP.SET_PRINTER_INDEXA(printConfig.PrintName),this.onMessage(`设置打印机:${printConfig.PrintName}`)):this.onMessage("使用默认打印机打印"),LODOP.SET_PRINT_MODE("CATCH_PRINT_STATUS",!0),LODOP.CVERSION?(LODOP.On_Return=async(e,r)=>{if(config.Pid=r,!r){this.onMessage(printConfig,"不支持状态监测"),resolve(!0);return}this.onMessage(printConfig,`创建任务:${e} PID:${r} DataId:${printConfig.DataId}`);for(let t=0;t<6;t++){let a=await this.GetValue("PRINT_STATUS_EXIST"),n=await this.GetValue("PRINT_STATUS_ID"),i=await this.GetValue("PRINT_STATUS_TEXT");if(this.onMessage(printConfig,`队列:${a==0?"未在":"在"} 状态:${n} 描述:${i}`),a==0)break;await qkLibV3.Sleep(500)}this.onMessage(printConfig,`任务结束:${e} PID:${r} DataId:${printConfig.DataId}`),resolve(!0)},LODOP.PRINT()):(config.Pid=LODOP.PRINT(),resolve(!0),this.onMessage(printConfig,"无法监听打印机状态:"+config.Pid))}catch(e){return printConfig.OnMessage?printConfig.OnMessage("打印错误:"+e.message):alert("打印错误:"+e.message),resolve(!1)}})},GetValue:async e=>new Promise((r,t)=>{if(LODOP.CVERSION)LODOP.On_Return=(a,n)=>r(n),LODOP.GET_VALUE(e,config.Pid);else{let a=LODOP.GET_VALUE(e,config.Pid);r(a)}})}};let currentLoding=null;const SafeCall$1=async(e,r)=>{if(currentLoding==null){r=r||"数据加载中";let t=0;r+="...",currentLoding=elementPlus.ElLoading.service({lock:!0,text:r,body:!0,fullscreen:!0,background:"rgba(0, 0, 0, 0.7)"}),currentLoding.setText=n=>{r=n,currentLoding.text.value=`${r}(${t})`};let a=setInterval(()=>{t+=1,currentLoding.text.value=`${r}(${t})`},1e3);try{await e(currentLoding)}catch(n){let i=n.message||n.resultcontent;elementPlus.ElMessageBox.alert(i,"错误提示")}clearInterval(a),currentLoding.close(),currentLoding=null}else await e(currentLoding)},SendPrintToDevice=(dataId,printName,result)=>new Promise((resolve,reject)=>{try{let LODOP=getLodop();printName=printName||localStorage.getItem("DefaultPrintName"),eval(result.PrintScript),printName&&printName!=""?(LODOP.SET_PRINTER_INDEXA(printName),console.log("使用打印机:"+printName)):console.log("使用默认打印机"),window.CLODOP&&(window.CLODOP.On_Return=(e,r)=>{r?(console.log(`发送打印指令成功:${dataId} ${e} ${r}`),resolve(!0)):(console.log(`发送打印指令:失败:${dataId} ${e} ${r}`),elementPlus.ElMessageBox.confirm("打印指定发送失败!请确认打印机链接是否正常!","打印提示",{confirmButtonText:"重试",cancelButtonText:"取消",type:"warning"}).then(async()=>{let t=await SendPrintToDevice(printName,result);resolve(t)}).catch(()=>resolve(!1)))}),LODOP.PRINT()}catch(e){return console.log(e),alert("打印错误:"+e.message),resolve(!1)}}),SendAndroidDevice=async(e,r,t)=>{let a=localStorage.getItem("PrintConfig");if(!a)return alert("设备未配置打印机,请先完成打印机配置");let n=null;try{if(a=JSON.parse(a),n=a.connStr,!n)return alert("打印机配置有误,请重新配置打印机")}catch{return alert("打印机配置解析失败!请重新配置")}let i=[];try{i=JSON.parse(t.PrintScript)}catch(l){return console.log(l),alert("打印脚本解析失败!请检查打印脚本"),alert(t.PrintScript),!1}await qkLibV3.AndroidApi("/print/connectPrinter",n);let s=await qkLibV3.AndroidApi("/print/getPrintDeviceConfig",{connConfig:n});return await qkLibV3.AndroidApi("/print/printer",{connConfig:n,deviceConfig:s,data:i}),!0},PrintTick$1=async(e,r,t,a)=>{if(!window.getLodop)return alert("本页面未加载打印插件");if(!window.LODOP||!window.LODOP.PRINT_INITA)return alert("打印插件:C-Lodop (Print)未启动,请先启动后再使用打印功能");try{let n=sessionStorage.getItem("DevicePlatform")??"0",i=await qkLibV3.SaasApi("/Api/GetPrintData",{DataId:e,DataType:r,PrintId:t,DevicePlatform:n});return n=="0"?await SendPrintToDevice(e,a,i):await SendAndroidDevice(e,a,i)}catch(n){console.log(n),n.resultcontent?alert(n.resultcontent):alert("打印错误2014-1-10:"+n.message)}},DebugPrint$1=async(e,r,t)=>{if(!window.getLodop)return alert("本页面未加载打印插件");t=t||{},t.OnMessage||(t.OnMessage=a=>""),t.PrintModuleId=t.PrintModuleId||result.PrintModuleId,t.PrintName=t.PrintName||localStorage.getItem("打印模板_"+t.PrintModuleId),t.DataId=e,t.PrintType=r;try{t.OnMessage(`订单明细:${e} 正在生成打印数据`);let a=await qkLibV3.SaasApi("/Api/GetPrintData",{DataId:e,DataType:r,PrintId:t.PrintModuleId});return t.OnMessage(`订单明细:${e} 打印数据生成成功!!`),await CreateNewPrint().Print(a.PrintScript,t)}catch(a){console.log(a),a.resultcontent?alert(a.resultcontent):alert("打印错误:"+a.message)}},CardTypeClassEnum={无:"0",计次卡:"1",储值卡:"2",钱包卡:"3",周期卡:"4"},UserCardTypeEnum$1={身份证:"0",临时身份证:"1",居住证:"2",社保医保卡:"3",户口簿:"4",中华人民共和国旅行证:"5",中国人民解放军军人保障卡:"6",军官证:"7",武警警官证:"8",护照:"9",台湾居民来往内地通行证:"10",内地居民来往台湾通行证:"11",外国人出入境证:"12",外交官证:"13",领事馆证:"14",海员证:"15",外国人永久居住证:"16",外国人身份证:"17",学生证:"18",士兵证:"19",军队学员证:"20",军队文职干部证:"21",军队离退休干部证:"22"},vueHelper={SafeCall:SafeCall$1,PrintTick:PrintTick$1,UserCardTypeEnum:UserCardTypeEnum$1,DebugPrint:DebugPrint$1},_hoisted_1$e={class:"pagemain"},_hoisted_2$8={style:{"text-align":"center","margin-top":"20px"}},_sfc_main$j={__name:"index",props:{columnArray:{type:Array,default:()=>[]},commandArray:{type:Array,default:()=>[]},searchParam:{type:Object,default:()=>({})},powerId:{type:[String,Number],default:"0"},tabName:{type:String,default:"数据"},editDlgWidth:{type:String,default:"80vw"},editDlgHeight:{type:String,default:"auto"},labelWidth:{type:String,default:"80px"},toolWidth:{type:String,default:"120"},maxCommand:{type:[String,Number],default:"2"},loadData:{type:Boolean,default:!0},controller:{type:String,default:""},inline:{type:Boolean,default:!0},top:{type:String,default:"1vh"},fnGetSelectData:{type:Function,default:(e,r)=>e},powerArray:{type:Array,default:()=>[]},printOption:{type:Object,default:()=>({TitleArray:[],FootArray:[]})}},emits:["command","handData","saveData","select"],setup(e,{expose:r,emit:t}){const a=vue.useSlots(),n=vue.ref([]),i=vue.ref(!0),s=vue.ref(!0),l=vue.ref(),o=vue.reactive({IsVisible:!1,DataModel:{},Title:""}),f=vue.ref(null),u=vue.ref(0),p=vue.ref(1),h=vue.ref(20),d=window.ProjectHost,m=e,c=t,_=vue.ref([]),C=G=>{c("select",G)},N=vue.computed({get:()=>{var G=[];return m.commandArray&&m.commandArray.length>0&&m.commandArray.forEach(A=>G.push(A)),_.value.some(A=>A.Name=="编辑")?G.push("编辑"):_.value.some(A=>A.Name=="查看")&&G.push("查看"),_.value.some(A=>A.Name=="删除")&&G.push("删除"),G}}),k=(G,A)=>{switch(G){case"新增":{i.value=!0,o.Title=`${qkLibV3.L(m.tabName)} - `+qkLibV3.L("添加"),o.DataModel={},c("handData",o.DataModel,!0),o.IsVisible=!0;break}case"查看":case"编辑":{i.value=G=="编辑",o.Title=`${qkLibV3.L(m.tabName)} - ${qkLibV3.L(G)}`,SafeCall$1(async()=>{o.DataModel=await qkLibV3.AjaxCallWeb(`${d}/${m.controller}/GetModel`,{Id:A.Id}),c("handData",o.DataModel,!0),o.IsVisible=!0},qkLibV3.L("数据加载中"));break}case"删除":{confirm(qkLibV3.L("数据删除后将不能恢复,请确认是否删除"))&&SafeCall$1(async()=>{await qkLibV3.AjaxCallWeb(`${d}/${m.controller}/Delete`,{Id:A.Id}),elementPlus.ElMessage({message:qkLibV3.L("数据删除成功!"),type:"success"});for(let W=0;W<n.value.length;W++)if(n.value[W].Id==A.Id){n.value.splice(W,1);break}f.value.onUpdateData(!0)},qkLibV3.L("数据删除中"));break}case"批量删除":{if(confirm(qkLibV3.L(`数据删除后无法恢复!!\r
|
|
120
|
-
确认删除吗?`))){let W=n.value.filter(S=>S.checked);if(W.length==0)return elementPlus.ElMessage({message:qkLibV3.L("未选择需要删除的数据"),type:"error"});SafeCall$1(async()=>{for(let S=0;S<W.length;S++){let D=W[S].Id;await qkLibV3.AjaxCallWeb(`${d}/${m.controller}/Delete`,{Id:D}),elementPlus.ElMessage({message:qkLibV3.L("删除成功")+`(${S+1}/${W.length})`})}elementPlus.ElMessage({message:qkLibV3.L("批量删除")+`:${W.length}`+qkLibV3.L("条数据成功"),type:"success"}),n.value=n.value.filter(S=>!W.some(D=>D.Id==S.Id)),f.value.onUpdateData(!0)},qkLibV3.L("数据删除中"))}break}default:{c("command",G,A);break}}},B=()=>{c("saveData",o.DataModel,!0),SafeCall$1(async()=>{let G=await qkLibV3.AjaxCallWeb(`${d}/${m.controller}/SaveModel`,o.DataModel);elementPlus.ElMessage({message:qkLibV3.L("数据保存成功!"),type:"success"}),o.IsVisible=!1,H()},qkLibV3.L("数据保存中"))},H=G=>SafeCall$1(async()=>{G&&G>0&&(p.value=G);var A={PageIndex:p.value,PageSize:h.value};if(m.searchParam)for(var W in m.searchParam)A[W]=m.searchParam[W];let S=await qkLibV3.AjaxCallWeb(`${d}/${m.controller}/GetPage`,A);S.data?(u.value=S.totalCount,S=S.data):u.value=window.LastResult.totalRows,S.forEach(D=>c("handData",D,!1)),n.value=S},qkLibV3.L("数据查询中"));return vue.onMounted(async()=>{if(s.value=a.FilterItem,m.powerArray&&m.powerArray.length>0)_.value=m.powerArray,m.loadData&&vue.nextTick(()=>H());else{let G=m.powerId&&m.powerId>0?m.powerId:qkLibV3.GetUrlParam("PowerId","");G?await SafeCall$1(async()=>{_.value=await qkLibV3.SystemModuleApi("/ModulePowerInfo/Search",{SearchType:3,ParentId:G}),m.loadData&&vue.nextTick(()=>H())},qkLibV3.L("页面加载中")):(_.value=[{Id:"1",Name:"新增"},{Id:"1",Name:"编辑"},{Id:"1",Name:"删除"},{Id:"1",Name:"查看"}],m.loadData&&vue.nextTick(()=>H()))}}),r({onSearch:H}),(G,A)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,[s.value?(vue.openBlock(),vue.createBlock(_sfc_main$o,{key:0,class:"filter",onSearch:A[0]||(A[0]=W=>H(1)),ref_key:"filter",ref:l,labelWidth:m.labelWidth},{FilterItem:vue.withCtx(()=>[vue.renderSlot(G.$slots,"FilterItem",{},void 0,!0)]),_:3},8,["labelWidth"])):vue.createCommentVNode("",!0),vue.createVNode(Tool,{total:u.value,pageIndex:p.value,"onUpdate:pageIndex":A[5]||(A[5]=W=>p.value=W),pageSize:h.value,"onUpdate:pageSize":A[6]||(A[6]=W=>h.value=W),onUpdateData:H,class:"tool"},{ToolItem:vue.withCtx(()=>[_.value.some(W=>W.Name=="新增")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{key:0,type:"primary",onClick:A[1]||(A[1]=W=>k("新增"))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(qkLibV3.L)("新增")),1)]),_:1})):vue.createCommentVNode("",!0),_.value.some(W=>W.Name=="删除")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{key:1,type:"danger",onClick:A[2]||(A[2]=W=>k("批量删除"))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(qkLibV3.L)("批量删除")),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",onClick:A[3]||(A[3]=W=>f.value.exportData())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(qkLibV3.L)("导出")),1)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{type:"success",onClick:A[4]||(A[4]=W=>f.value.printData())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(qkLibV3.L)("打印")),1)]),_:1}),vue.renderSlot(G.$slots,"ToolItem",{powerArray:_.value},void 0,!0)]),_:3},8,["total","pageIndex","pageSize"]),(vue.openBlock(),vue.createBlock(DataList,{ref_key:"dataList",ref:f,class:"dataList",data:n.value,tabName:m.tabName,columnArray:m.columnArray,toolWidth:m.toolWidth,maxCommand:m.maxCommand,fnGetSelectData:m.fnGetSelectData,onCommand:k,onSelect:C,commandArray:N.value,key:N.value,powerArray:_.value,printOption:m.printOption},null,8,["data","tabName","columnArray","toolWidth","maxCommand","fnGetSelectData","commandArray","powerArray","printOption"])),vue.createVNode(vue.unref(elementPlus.ElDialog),{modelValue:o.IsVisible,"onUpdate:modelValue":A[7]||(A[7]=W=>o.IsVisible=W),title:o.Title,width:m.editDlgWidth,top:m.top,"close-on-click-modal":!1,"close-on-press-escape":!1,style:vue.normalizeStyle("height:"+m.editDlgHeight),draggable:"","destroy-on-close":""},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElForm),{inline:m.inline,"label-width":m.labelWidth,class:"myform"},{default:vue.withCtx(()=>[vue.renderSlot(G.$slots,"formItem",{formModel:o.DataModel,powerArray:_.value},void 0,!0),vue.createElementVNode("div",_hoisted_2$8,[i.value?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{key:0,type:"primary",onClick:B},{default:vue.withCtx(()=>A[8]||(A[8]=[vue.createTextVNode("保存")])),_:1})):vue.createCommentVNode("",!0)])]),_:3},8,["inline","label-width"])]),_:3},8,["modelValue","title","width","top","style"])]))}},PageIndex=_export_sfc(_sfc_main$j,[["__scopeId","data-v-6ce671f5"]]),_hoisted_1$d={class:"pagemain"},_hoisted_2$7={key:1,class:"total"},_hoisted_3$6={class:"total-item"},_hoisted_4$5={style:{color:"dodgerblue","font-weight":"bold"}},_sfc_main$i={__name:"index",props:{columnArray:{type:Array,default:()=>[]},commandArray:{type:Array,default:()=>[]},searchParam:{type:Object,default:()=>({})},powerId:{type:[String,Number],default:"0"},handArray:{type:Function,default:e=>e},tabName:{type:String,default:"数据"},url:{type:String,default:""},loadData:{type:Boolean,default:!0},toolWidth:{type:String,default:"120"},maxCommand:{type:[String,Number],default:2},printOption:{type:Object,default:()=>({TitleArray:[],FootArray:[]})}},emits:["command","handData","saveData"],setup(e,{expose:r,emit:t}){const a=vue.useSlots(),n=vue.ref([]);vue.ref(!0);const i=vue.ref(!0),s=vue.ref(null),l=vue.computed({get:()=>o.columnArray.Where(N=>N.isSummary&&!N.hideTotal)}),o=e,f=async(N,k)=>{k=k||qkLibV3.L("数据加载中"),k+="...";let B=elementPlus.ElLoading.service({lock:!0,text:k,body:!0,fullscreen:!0,background:"rgba(0, 0, 0, 0.7)"});try{await N()}catch(H){let G=H.message||H.resultcontent;elementPlus.ElMessageBox.alert(qkLibV3.L(G),qkLibV3.L("错误提示"))}B.close()},u=vue.computed({get:()=>{let N={TitleArray:[o.tabName],FootArray:[qkLibV3.L("打单日期")+`:${new Date().ToString("yyyy-MM-dd HH:mm:ss")}`]};return o.printOption.TitleArray&&o.printOption.TitleArray.length>0&&o.printOption.TitleArray.forEach(k=>N.TitleArray.push(k)),o.printOption.FootArray&&o.printOption.FootArray.length>0&&o.printOption.FootArray.forEach(k=>N.FootArray.push(k)),N}}),p=t,h=vue.ref([]),d=vue.computed({get:()=>{var N=[];return o.commandArray&&o.commandArray.length>0&&o.commandArray.forEach(k=>N.push(k)),N}}),m=(N,k)=>{switch(N){default:{p("command",N,k);break}}};let c=/^[+-]?([0-9]+[.][0-9]*|[.][0-9]+)$/;const _=(N,k,B,H)=>{if(k==N.length){if(B.forEach(G=>H.push(G)),B.length>1){let G={IgnoreSummary:!0,Rows:B},A=!0,W=B[0];for(let S in W)G[S]=W[S];for(let S=0;S<o.columnArray.length;S++)if(A&&o.columnArray[S].isHeBing)G[o.columnArray[S].dataKey]=B[0][o.columnArray[S].dataKey];else{if(A){A=!1,G[o.columnArray[S].dataKey]="合计";continue}if(o.columnArray[S].isSummary){let D=!1,P=0;for(let L=0;L<B.length;L++){let X=B[L][o.columnArray[S].dataKey];!D&&c.test(X)&&(D=!0),P+=X*1}D?G[o.columnArray[S].dataKey]=P.toFixed(2):G[o.columnArray[S].dataKey]=P}else G[o.columnArray[S].dataKey]="-"}H.push(G)}}else{let G=B.GroupBy(A=>A[N[k].dataKey]);for(let A=0;A<G.length;A++)_(N,k+1,G[A],H)}},C=()=>{f(async()=>{var N={};if(o.searchParam)for(var k in o.searchParam)N[k]=o.searchParam[k];let B=await qkLibV3.AjaxCallWeb(o.url,N);if(B=o.handArray(B),B.forEach(H=>p("handData",H,!1)),o.columnArray.length>0&&o.columnArray[0].isHeBing&&o.columnArray.Exists(H=>H.isSummary)){let H=[];for(let A=0;A<o.columnArray.length;A++)o.columnArray[A].isHeBing&&H.push(o.columnArray[A]);let G=[];_(H,0,B,G),B=G}n.value=B},qkLibV3.L("数据查询中"))};return vue.onMounted(async()=>{i.value=a.FilterItem,o.powerId>0&&await f(async()=>{h.value=await qkLibV3.SystemModuleApi("/ModulePowerInfo/Search",{SearchType:3,ParentId:o.powerId})},qkLibV3.L("页面初始化")),o.loadData&&await C()}),r({onSearch:C}),(N,k)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$d,[i.value?(vue.openBlock(),vue.createBlock(_sfc_main$o,{key:0,class:"filter",onSearch:C},{FilterItem:vue.withCtx(()=>[vue.renderSlot(N.$slots,"FilterItem",{powerArray:h.value},void 0,!0)]),_:3})):vue.createCommentVNode("",!0),vue.createVNode(Tool,{onUpdateData:C,class:"tool"},{ToolItem:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",onClick:k[0]||(k[0]=B=>s.value.exportData())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(qkLibV3.L)("导出")),1)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{type:"success",onClick:k[1]||(k[1]=B=>s.value.printData())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(qkLibV3.L)("打印")),1)]),_:1}),vue.renderSlot(N.$slots,"ToolItem",{powerArray:h.value},void 0,!0)]),PageItem:vue.withCtx(()=>[vue.renderSlot(N.$slots,"PageItem",{powerArray:h.value},void 0,!0)]),_:3}),l.value.length>0?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$7,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(l.value,B=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$6,[vue.createElementVNode("div",null,vue.toDisplayString(B.title)+":",1),vue.createElementVNode("div",_hoisted_4$5,vue.toDisplayString(n.value.Where(H=>!H.IgnoreSummary).Sum(H=>B.FnGet?B.FnGet(H)*1:H[B.dataKey]*1).toFixed(2)),1)]))),256))])):vue.createCommentVNode("",!0),(vue.openBlock(),vue.createBlock(DataList,{ref_key:"dataList",ref:s,class:"dataList",data:n.value,tabName:o.tabName,toolWidth:o.toolWidth,maxCommand:o.maxCommand,columnArray:o.columnArray,onCommand:m,commandArray:d.value,key:d.value,printOption:u.value},null,8,["data","tabName","toolWidth","maxCommand","columnArray","commandArray","printOption"]))]))}},reportIndex=_export_sfc(_sfc_main$i,[["__scopeId","data-v-fbe7ac4f"]]),_sfc_main$h={__name:"byDatePicker",props:{BeginTime:{type:[String,void 0],default:""},EndTime:{type:[String,void 0],default:""},MaxTime:{type:String,default:""},MinTime:{type:String,default:""},type:{type:String,default:"datetimerange"}},emits:["update:BeginTime","update:EndTime","change"],setup(e,{emit:r}){const t=e,a=r,n=vue.ref(["",""]);vue.watch(()=>t.BeginTime,u=>{n.value[0]=t.BeginTime}),vue.watch(()=>t.EndTime,u=>n.value[1]=t.EndTime);const i=vue.computed({get:()=>{if(t.MaxTime){let u=t.MaxTime.ToDateTime(),p=u.ToString("yyyy-MM-dd 00:00:00").ToDateTime();return p<u?p.ToString("yyyy-MM-dd 00:00:00").ToDateTime().AddDays(1):u}else return null}}),s=vue.computed({get:()=>t.MinTime?t.MinTime.ToDateTime().ToString("yyyy-MM-dd 00:00:00").ToDateTime():null}),l=u=>{let p=!0;return i.value&&s.value&&(p=u>=s.value&&u<=i.value),!p},o=()=>{n.value!=null?(a("update:BeginTime",n.value[0]),a("update:EndTime",n.value[1])):(a("update:BeginTime",""),a("update:EndTime",""),n.value=["",""]),a("change")},f=[{text:qkLibV3.L("今天"),value:()=>{let u=new Date;return[u.ToString("yyyy-MM-dd 00:00:00"),u.ToString("yyyy-MM-dd 23:59:59")]}},{text:qkLibV3.L("最近七天"),value:()=>{let u=new Date;return[u.AddDays(-7).ToString("yyyy-MM-dd 00:00:00"),u.ToString("yyyy-MM-dd 23:59:59")]}},{text:qkLibV3.L("最近30天"),value:()=>{let u=new Date;return[u.AddDays(-30).ToString("yyyy-MM-dd 00:00:00"),u.ToString("yyyy-MM-dd 23:59:59")]}},{text:qkLibV3.L("本月"),value:()=>{let u=new Date;return[u.AddDays(-u.getDate()+1).ToString("yyyy-MM-dd 00:00:00"),u.ToString("yyyy-MM-dd 23:59:59")]}},{text:qkLibV3.L("上个周"),value:()=>{let u=new Date,p=u.AddDays(-u.getDay()-6),h=u.AddDays(-u.getDay());return[p.ToString("yyyy-MM-dd 00:00:00"),h.ToString("yyyy-MM-dd 23:59:59")]}},{text:qkLibV3.L("上个月"),value:()=>{let u=new Date;return u=u.AddDays(-u.getDate()),[u.ToString("yyyy-MM-01 00:00:00"),u.ToString("yyyy-MM-dd 23:59:59")]}},{text:qkLibV3.L("今年"),value:()=>{let u=new Date;return[u.ToString("yyyy-01-01 00:00:00"),u.ToString("yyyy-MM-dd 23:59:59")]}},{text:qkLibV3.L("去年"),value:()=>{let u=new Date().AddYears(-1);return[u.ToString("yyyy-01-01 00:00:00"),u.ToString("yyyy-12-31 23:59:59")]}}];return vue.onMounted(()=>{let u=new Date,p=!1;t.BeginTime?n.value[0]=t.BeginTime:(n.value[0]=u.ToString("yyyy-MM-dd 00:00:00"),p=!0),t.EndTime?n.value[1]=t.EndTime:(n.value[1]=u.ToString("yyyy-MM-dd 23:59:59"),p=!0),p&&o()}),(u,p)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDatePicker),{modelValue:n.value,"onUpdate:modelValue":p[0]||(p[0]=h=>n.value=h),onChange:o,type:t.type,"value-format":"YYYY-MM-DD HH:mm:ss",shortcuts:f,"range-separator":vue.unref(qkLibV3.L)("至"),"disabled-date":l,"start-placeholder":vue.unref(qkLibV3.L)("开始日期"),"end-placeholder":vue.unref(qkLibV3.L)("结束日期"),"default-time":[new Date("2022-1-1 00:00:00"),new Date("2022-1-1 23:59:59")]},null,8,["modelValue","type","range-separator","start-placeholder","end-placeholder","default-time"]))}},byDatePicker=_export_sfc(_sfc_main$h,[["__scopeId","data-v-70b5d531"]]),{$:$$1,BtnMenu,DropListMenu,PanelMenu,DropList,Panel,Tooltip}=E;var id=new Date().getTime();class appendix extends BtnMenu{constructor(r){let t=id++;const a=E.$(`<div class="w-e-menu" data-title="上传附件">
|
|
120
|
+
确认删除吗?`))){let W=n.value.filter(S=>S.checked);if(W.length==0)return elementPlus.ElMessage({message:qkLibV3.L("未选择需要删除的数据"),type:"error"});SafeCall$1(async()=>{for(let S=0;S<W.length;S++){let D=W[S].Id;await qkLibV3.AjaxCallWeb(`${d}/${m.controller}/Delete`,{Id:D}),elementPlus.ElMessage({message:qkLibV3.L("删除成功")+`(${S+1}/${W.length})`})}elementPlus.ElMessage({message:qkLibV3.L("批量删除")+`:${W.length}`+qkLibV3.L("条数据成功"),type:"success"}),n.value=n.value.filter(S=>!W.some(D=>D.Id==S.Id)),f.value.onUpdateData(!0)},qkLibV3.L("数据删除中"))}break}default:{c("command",G,A);break}}},B=()=>{let G=deepClone(o.DataModel);c("saveData",G,!0),SafeCall$1(async()=>{let A=await qkLibV3.AjaxCallWeb(`${d}/${m.controller}/SaveModel`,G);elementPlus.ElMessage({message:qkLibV3.L("数据保存成功!"),type:"success"}),o.IsVisible=!1,H()},qkLibV3.L("数据保存中"))},H=G=>SafeCall$1(async()=>{G&&G>0&&(p.value=G);var A={PageIndex:p.value,PageSize:h.value};if(m.searchParam)for(var W in m.searchParam)A[W]=m.searchParam[W];let S=await qkLibV3.AjaxCallWeb(`${d}/${m.controller}/GetPage`,A);S.data?(u.value=S.totalCount,S=S.data):u.value=window.LastResult.totalRows,S.forEach(D=>c("handData",D,!1)),n.value=S},qkLibV3.L("数据查询中"));return vue.onMounted(async()=>{if(s.value=a.FilterItem,m.powerArray&&m.powerArray.length>0)_.value=m.powerArray,m.loadData&&vue.nextTick(()=>H());else{let G=m.powerId&&m.powerId>0?m.powerId:qkLibV3.GetUrlParam("PowerId","");G?await SafeCall$1(async()=>{_.value=await qkLibV3.SystemModuleApi("/ModulePowerInfo/Search",{SearchType:3,ParentId:G}),m.loadData&&vue.nextTick(()=>H())},qkLibV3.L("页面加载中")):(_.value=[{Id:"1",Name:"新增"},{Id:"1",Name:"编辑"},{Id:"1",Name:"删除"},{Id:"1",Name:"查看"}],m.loadData&&vue.nextTick(()=>H()))}}),r({onSearch:H}),(G,A)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$e,[s.value?(vue.openBlock(),vue.createBlock(_sfc_main$o,{key:0,class:"filter",onSearch:A[0]||(A[0]=W=>H(1)),ref_key:"filter",ref:l,labelWidth:m.labelWidth},{FilterItem:vue.withCtx(()=>[vue.renderSlot(G.$slots,"FilterItem",{},void 0,!0)]),_:3},8,["labelWidth"])):vue.createCommentVNode("",!0),vue.createVNode(Tool,{total:u.value,pageIndex:p.value,"onUpdate:pageIndex":A[5]||(A[5]=W=>p.value=W),pageSize:h.value,"onUpdate:pageSize":A[6]||(A[6]=W=>h.value=W),onUpdateData:H,class:"tool"},{ToolItem:vue.withCtx(()=>[_.value.some(W=>W.Name=="新增")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{key:0,type:"primary",onClick:A[1]||(A[1]=W=>k("新增"))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(qkLibV3.L)("新增")),1)]),_:1})):vue.createCommentVNode("",!0),_.value.some(W=>W.Name=="删除")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{key:1,type:"danger",onClick:A[2]||(A[2]=W=>k("批量删除"))},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(qkLibV3.L)("批量删除")),1)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",onClick:A[3]||(A[3]=W=>f.value.exportData())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(qkLibV3.L)("导出")),1)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{type:"success",onClick:A[4]||(A[4]=W=>f.value.printData())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(qkLibV3.L)("打印")),1)]),_:1}),vue.renderSlot(G.$slots,"ToolItem",{powerArray:_.value},void 0,!0)]),_:3},8,["total","pageIndex","pageSize"]),(vue.openBlock(),vue.createBlock(DataList,{ref_key:"dataList",ref:f,class:"dataList",data:n.value,tabName:m.tabName,columnArray:m.columnArray,toolWidth:m.toolWidth,maxCommand:m.maxCommand,fnGetSelectData:m.fnGetSelectData,onCommand:k,onSelect:C,commandArray:N.value,key:N.value,powerArray:_.value,printOption:m.printOption},null,8,["data","tabName","columnArray","toolWidth","maxCommand","fnGetSelectData","commandArray","powerArray","printOption"])),vue.createVNode(vue.unref(elementPlus.ElDialog),{modelValue:o.IsVisible,"onUpdate:modelValue":A[7]||(A[7]=W=>o.IsVisible=W),title:o.Title,width:m.editDlgWidth,top:m.top,"close-on-click-modal":!1,"close-on-press-escape":!1,style:vue.normalizeStyle("height:"+m.editDlgHeight),draggable:"","destroy-on-close":""},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElForm),{inline:m.inline,"label-width":m.labelWidth,class:"myform"},{default:vue.withCtx(()=>[vue.renderSlot(G.$slots,"formItem",{formModel:o.DataModel,powerArray:_.value},void 0,!0),vue.createElementVNode("div",_hoisted_2$8,[i.value?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{key:0,type:"primary",onClick:B},{default:vue.withCtx(()=>A[8]||(A[8]=[vue.createTextVNode("保存")])),_:1})):vue.createCommentVNode("",!0)])]),_:3},8,["inline","label-width"])]),_:3},8,["modelValue","title","width","top","style"])]))}},PageIndex=_export_sfc(_sfc_main$j,[["__scopeId","data-v-efc6b93c"]]),_hoisted_1$d={class:"pagemain"},_hoisted_2$7={key:1,class:"total"},_hoisted_3$6={class:"total-item"},_hoisted_4$5={style:{color:"dodgerblue","font-weight":"bold"}},_sfc_main$i={__name:"index",props:{columnArray:{type:Array,default:()=>[]},commandArray:{type:Array,default:()=>[]},searchParam:{type:Object,default:()=>({})},powerId:{type:[String,Number],default:"0"},handArray:{type:Function,default:e=>e},tabName:{type:String,default:"数据"},url:{type:String,default:""},loadData:{type:Boolean,default:!0},toolWidth:{type:String,default:"120"},maxCommand:{type:[String,Number],default:2},showTotal:{type:Boolean,default:!0},printOption:{type:Object,default:()=>({TitleArray:[],FootArray:[]})}},emits:["command","handData","saveData"],setup(e,{expose:r,emit:t}){const a=vue.useSlots(),n=vue.ref([]);vue.ref(!0);const i=vue.ref(!0),s=vue.ref(null),l=vue.computed({get:()=>o.columnArray.Where(N=>N.isSummary&&!N.hideTotal)}),o=e,f=async(N,k)=>{k=k||qkLibV3.L("数据加载中"),k+="...";let B=elementPlus.ElLoading.service({lock:!0,text:k,body:!0,fullscreen:!0,background:"rgba(0, 0, 0, 0.7)"});try{await N()}catch(H){let G=H.message||H.resultcontent;elementPlus.ElMessageBox.alert(qkLibV3.L(G),qkLibV3.L("错误提示"))}B.close()},u=vue.computed({get:()=>{let N={TitleArray:[o.tabName],FootArray:[qkLibV3.L("打单日期")+`:${new Date().ToString("yyyy-MM-dd HH:mm:ss")}`]};return o.printOption.TitleArray&&o.printOption.TitleArray.length>0&&o.printOption.TitleArray.forEach(k=>N.TitleArray.push(k)),o.printOption.FootArray&&o.printOption.FootArray.length>0&&o.printOption.FootArray.forEach(k=>N.FootArray.push(k)),N}}),p=t,h=vue.ref([]),d=vue.computed({get:()=>{var N=[];return o.commandArray&&o.commandArray.length>0&&o.commandArray.forEach(k=>N.push(k)),N}}),m=(N,k)=>{switch(N){default:{p("command",N,k);break}}};let c=/^[+-]?([0-9]+[.][0-9]*|[.][0-9]+)$/;const _=(N,k,B,H)=>{if(k==N.length){if(B.forEach(G=>H.push(G)),B.length>1){let G={IgnoreSummary:!0,Rows:B},A=!0,W=B[0];for(let S in W)G[S]=W[S];for(let S=0;S<o.columnArray.length;S++)if(A&&o.columnArray[S].isHeBing)G[o.columnArray[S].dataKey]=B[0][o.columnArray[S].dataKey];else{if(A){A=!1,G[o.columnArray[S].dataKey]="合计";continue}if(o.columnArray[S].isSummary){let D=!1,P=0;for(let L=0;L<B.length;L++){let X=B[L][o.columnArray[S].dataKey];!D&&c.test(X)&&(D=!0),P+=X*1}D?G[o.columnArray[S].dataKey]=P.toFixed(2):G[o.columnArray[S].dataKey]=P}else G[o.columnArray[S].dataKey]="-"}H.push(G)}}else{let G=B.GroupBy(A=>A[N[k].dataKey]);for(let A=0;A<G.length;A++)_(N,k+1,G[A],H)}},C=()=>{f(async()=>{var N={};if(o.searchParam)for(var k in o.searchParam)N[k]=o.searchParam[k];let B=await qkLibV3.AjaxCallWeb(o.url,N);if(B=o.handArray(B),B.forEach(H=>p("handData",H,!1)),o.columnArray.length>0&&o.columnArray[0].isHeBing&&o.columnArray.Exists(H=>H.isSummary)){let H=[];for(let A=0;A<o.columnArray.length;A++)o.columnArray[A].isHeBing&&H.push(o.columnArray[A]);let G=[];_(H,0,B,G),B=G}n.value=B},qkLibV3.L("数据查询中"))};return vue.onMounted(async()=>{i.value=a.FilterItem,o.powerId>0&&await f(async()=>{h.value=await qkLibV3.SystemModuleApi("/ModulePowerInfo/Search",{SearchType:3,ParentId:o.powerId})},qkLibV3.L("页面初始化")),o.loadData&&await C()}),r({onSearch:C}),(N,k)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$d,[i.value?(vue.openBlock(),vue.createBlock(_sfc_main$o,{key:0,class:"filter",onSearch:C},{FilterItem:vue.withCtx(()=>[vue.renderSlot(N.$slots,"FilterItem",{powerArray:h.value},void 0,!0)]),_:3})):vue.createCommentVNode("",!0),vue.createVNode(Tool,{onUpdateData:C,class:"tool"},{ToolItem:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",onClick:k[0]||(k[0]=B=>s.value.exportData())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(qkLibV3.L)("导出")),1)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{type:"success",onClick:k[1]||(k[1]=B=>s.value.printData())},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(qkLibV3.L)("打印")),1)]),_:1}),vue.renderSlot(N.$slots,"ToolItem",{powerArray:h.value},void 0,!0)]),PageItem:vue.withCtx(()=>[vue.renderSlot(N.$slots,"PageItem",{powerArray:h.value},void 0,!0)]),_:3}),o.showTotal&&l.value.length>0?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$7,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(l.value,B=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$6,[vue.createElementVNode("div",null,vue.toDisplayString(B.title)+":",1),vue.createElementVNode("div",_hoisted_4$5,vue.toDisplayString(n.value.Where(H=>!H.IgnoreSummary).Sum(H=>B.FnGet?B.FnGet(H)*1:H[B.dataKey]*1).toFixed(2)),1)]))),256))])):vue.createCommentVNode("",!0),(vue.openBlock(),vue.createBlock(DataList,{ref_key:"dataList",ref:s,class:"dataList",data:n.value,tabName:o.tabName,toolWidth:o.toolWidth,maxCommand:o.maxCommand,columnArray:o.columnArray,onCommand:m,commandArray:d.value,key:d.value,printOption:u.value},null,8,["data","tabName","toolWidth","maxCommand","columnArray","commandArray","printOption"]))]))}},reportIndex=_export_sfc(_sfc_main$i,[["__scopeId","data-v-b6d924df"]]),_sfc_main$h={__name:"byDatePicker",props:{BeginTime:{type:[String,void 0],default:""},EndTime:{type:[String,void 0],default:""},MaxTime:{type:String,default:""},MinTime:{type:String,default:""},type:{type:String,default:"datetimerange"}},emits:["update:BeginTime","update:EndTime","change"],setup(e,{emit:r}){const t=e,a=r,n=vue.ref(["",""]);vue.watch(()=>t.BeginTime,u=>{n.value[0]=t.BeginTime}),vue.watch(()=>t.EndTime,u=>n.value[1]=t.EndTime);const i=vue.computed({get:()=>{if(t.MaxTime){let u=t.MaxTime.ToDateTime(),p=u.ToString("yyyy-MM-dd 00:00:00").ToDateTime();return p<u?p.ToString("yyyy-MM-dd 00:00:00").ToDateTime().AddDays(1):u}else return null}}),s=vue.computed({get:()=>t.MinTime?t.MinTime.ToDateTime().ToString("yyyy-MM-dd 00:00:00").ToDateTime():null}),l=u=>{let p=!0;return i.value&&s.value&&(p=u>=s.value&&u<=i.value),!p},o=()=>{n.value!=null?(a("update:BeginTime",n.value[0]),a("update:EndTime",n.value[1])):(a("update:BeginTime",""),a("update:EndTime",""),n.value=["",""]),a("change")},f=[{text:qkLibV3.L("今天"),value:()=>{let u=new Date;return[u.ToString("yyyy-MM-dd 00:00:00"),u.ToString("yyyy-MM-dd 23:59:59")]}},{text:qkLibV3.L("最近七天"),value:()=>{let u=new Date;return[u.AddDays(-7).ToString("yyyy-MM-dd 00:00:00"),u.ToString("yyyy-MM-dd 23:59:59")]}},{text:qkLibV3.L("最近30天"),value:()=>{let u=new Date;return[u.AddDays(-30).ToString("yyyy-MM-dd 00:00:00"),u.ToString("yyyy-MM-dd 23:59:59")]}},{text:qkLibV3.L("本月"),value:()=>{let u=new Date;return[u.AddDays(-u.getDate()+1).ToString("yyyy-MM-dd 00:00:00"),u.ToString("yyyy-MM-dd 23:59:59")]}},{text:qkLibV3.L("上个周"),value:()=>{let u=new Date,p=u.AddDays(-u.getDay()-6),h=u.AddDays(-u.getDay());return[p.ToString("yyyy-MM-dd 00:00:00"),h.ToString("yyyy-MM-dd 23:59:59")]}},{text:qkLibV3.L("上个月"),value:()=>{let u=new Date;return u=u.AddDays(-u.getDate()),[u.ToString("yyyy-MM-01 00:00:00"),u.ToString("yyyy-MM-dd 23:59:59")]}},{text:qkLibV3.L("今年"),value:()=>{let u=new Date;return[u.ToString("yyyy-01-01 00:00:00"),u.ToString("yyyy-MM-dd 23:59:59")]}},{text:qkLibV3.L("去年"),value:()=>{let u=new Date().AddYears(-1);return[u.ToString("yyyy-01-01 00:00:00"),u.ToString("yyyy-12-31 23:59:59")]}}];return vue.onMounted(()=>{let u=new Date,p=!1;t.BeginTime?n.value[0]=t.BeginTime:(n.value[0]=u.ToString("yyyy-MM-dd 00:00:00"),p=!0),t.EndTime?n.value[1]=t.EndTime:(n.value[1]=u.ToString("yyyy-MM-dd 23:59:59"),p=!0),p&&o()}),(u,p)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDatePicker),{modelValue:n.value,"onUpdate:modelValue":p[0]||(p[0]=h=>n.value=h),onChange:o,type:t.type,"value-format":"YYYY-MM-DD HH:mm:ss",shortcuts:f,"range-separator":vue.unref(qkLibV3.L)("至"),"disabled-date":l,"start-placeholder":vue.unref(qkLibV3.L)("开始日期"),"end-placeholder":vue.unref(qkLibV3.L)("结束日期"),"default-time":[new Date("2022-1-1 00:00:00"),new Date("2022-1-1 23:59:59")]},null,8,["modelValue","type","range-separator","start-placeholder","end-placeholder","default-time"]))}},byDatePicker=_export_sfc(_sfc_main$h,[["__scopeId","data-v-70b5d531"]]),{$:$$1,BtnMenu,DropListMenu,PanelMenu,DropList,Panel,Tooltip}=E;var id=new Date().getTime();class appendix extends BtnMenu{constructor(r){let t=id++;const a=E.$(`<div class="w-e-menu" data-title="上传附件">
|
|
121
121
|
<span class="demo-svg-icon"><i class="el-icon" style="font-size: 20px;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" data-v-6fbb019e=""><path fill="currentColor" d="M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744l294.144-294.208z"></path></svg></i><span class="icon-name" ></span></span>
|
|
122
122
|
<input type="file" style="display:none;" id="upload-file${t}" />
|
|
123
123
|
</div>`);super(a,r),this.inputId=t,this.isInputEventBindFun=!1}clickHandler(){let r=document.getElementById("upload-file"+this.inputId);if(!this.isInputEventBindFun){this.isInputEventBindFun=!0;let t=this;r.addEventListener("change",function(){let a="http://npic.ip239.com/ApiHandler.ashx?Action=UploadFileBase64",n={method:"post",responseType:"json",headers:{"content-type":"application/json"}};for(let i=0;i<this.files.length;i++){let s=this.files[i];if((s.type=="image/jpeg"||s.type=="image/png"||s.type=="image/bmp")&&s.size/1024>600)return alert("图片大小不能超过 600kb!"),!1;const o=new FileReader;o.readAsDataURL(s),o.onload=function(){let u={FileData:this.result.substring(this.result.indexOf(",")+1),FileType:s.name};axios.post(a,u,n).then(p=>{let h=p.data;h.resultcode=="200"&&t.editor.txt.append(`<a href="${h.data}" download="${s.name}">${s.name}</a>`)})}}})}r.click()}tryChangeActive(){this.active()}}const _hoisted_1$c={style:"width: 100%;height:100%;border:1px solid #ccc"},_sfc_main$g={__name:"index",props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:r}){E.registerMenu("appendix",appendix);const t=vue.ref(null),a=vue.ref(),n=e,i=r,s=(l,o)=>{let f="http://npic.ip239.com/ApiHandler.ashx?Action=UploadFileBase64",u={method:"post",responseType:"json",headers:{"content-type":"application/json"}};l.forEach(p=>{if((p.type=="image/jpeg"||p.type=="image/png"||p.type=="image/bmp")&&p.size/1024>600)return alert(qkLibV3.L("图片大小不能超过 600kb!")),!1;const d=new FileReader;d.readAsDataURL(p),d.onload=function(){let c={FileData:this.result.substring(this.result.indexOf(",")+1),FileType:p.name};axios.post(f,c,u).then(_=>{let C=_.data;C.resultcode=="200"&&o(C.data)})}})};return vue.onMounted(()=>{t.value==null&&(t.value=new E(a.value),t.value.config.uploadImgShowBase64=!0,t.value.config.showLinkImg=!0,t.value.config.menuTooltipPosition="down",t.value.config.onchangeTimeout=1e3,t.value.config.uploadImgAccept=["jpg","jpeg","png","gif","bmp","webp"],t.value.config.customUploadImg=s,t.value.config.customUploadVideo=s,t.value.config.onchange=l=>{l!=n.modelValue&&i("update:modelValue",l)},t.value.create()),t.value.txt.html(n.modelValue)}),(l,o)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$c,[vue.createElementVNode("div",{ref_key:"richText",ref:a,class:"richText"},null,512)]))}},_hoisted_1$b=["src"],_hoisted_2$6=["src"],_hoisted_3$5=["src"],_sfc_main$f={__name:"OnePicUpload",props:vue.mergeModels({height:{type:String,default:"100px"},isImage:{type:Boolean,default:!0},headPic:{type:Boolean,default:!1},timeOut:{type:[Number,String],default:3e4}},{modelValue:{},modelModifiers:{}}),emits:vue.mergeModels(["change"],["update:modelValue"]),setup(e,{emit:r}){const t=e,a=vue.useModel(e,"modelValue"),n=vue.reactive({isVisible:!1,picUrl:""}),i=r,s=vue.computed({get:()=>"http://npic.ip239.com/ApiHandler.ashx?Action="+(t.headPic?"UploadHeadPic":"UploadFile")}),l=async h=>{try{return await qkLibV3.AjaxCallWeb("http://npic.ip239.com/Api/UploadHeadPicBase64",{FileData:h,FileName:"头像.jpg",FileType:"jpg"},t.timeOut*1)}catch(d){if(console.log(d),confirm(`因网络波动,上传图片遇到异常!!\r
|