slw 0.5.961 → 0.5.963
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/lib/index.js +633 -299
- package/lib/index.umd.cjs +5 -5
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -8281,12 +8281,12 @@ assign$e(XEUtils$3, {
|
|
|
8281
8281
|
cookie: cookie$3
|
|
8282
8282
|
});
|
|
8283
8283
|
var xeUtils$1 = XEUtils$3;
|
|
8284
|
-
const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1),
|
|
8284
|
+
const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid_vue_vue_type_style_index_0_scoped_3c299fd2_lang = "", _export_sfc = (Q, H) => {
|
|
8285
8285
|
const G = Q.__vccOpts || Q;
|
|
8286
8286
|
for (const [X, Z] of H)
|
|
8287
8287
|
G[X] = Z;
|
|
8288
8288
|
return G;
|
|
8289
|
-
}, _withScopeId$2 = (Q) => (pushScopeId("data-v-
|
|
8289
|
+
}, _withScopeId$2 = (Q) => (pushScopeId("data-v-3c299fd2"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
|
|
8290
8290
|
class: "slw-window-grid-container",
|
|
8291
8291
|
style: { height: "100%" }
|
|
8292
8292
|
}, _hoisted_2$kS = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hT = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$au = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4U = [
|
|
@@ -8367,8 +8367,13 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8367
8367
|
let result = !1;
|
|
8368
8368
|
try {
|
|
8369
8369
|
for (const Q in data)
|
|
8370
|
-
displayStr = displayStr.replace(
|
|
8371
|
-
|
|
8370
|
+
displayStr = displayStr.replace(
|
|
8371
|
+
new RegExp("@" + Q + "@", "gi"),
|
|
8372
|
+
typeof data[Q] == "string" ? "'" + data[Q] + "'" : data[Q]
|
|
8373
|
+
);
|
|
8374
|
+
result = eval(
|
|
8375
|
+
displayStr.replaceAll("this.$data.", "").replaceAll("this.", "")
|
|
8376
|
+
);
|
|
8372
8377
|
} catch (Q) {
|
|
8373
8378
|
result = !1;
|
|
8374
8379
|
}
|
|
@@ -8416,7 +8421,10 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8416
8421
|
if (K != null && K.clearGrid) {
|
|
8417
8422
|
for (let le in Z)
|
|
8418
8423
|
Z[le] = null;
|
|
8419
|
-
return localStorage.setItem(
|
|
8424
|
+
return localStorage.setItem(
|
|
8425
|
+
gridData.value.params._region_id + preTag.value,
|
|
8426
|
+
JSON.stringify(Z)
|
|
8427
|
+
), {
|
|
8420
8428
|
data: {
|
|
8421
8429
|
data: [],
|
|
8422
8430
|
count: 0
|
|
@@ -8440,25 +8448,47 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8440
8448
|
}), Q ? Object.keys(Q).forEach((ae) => {
|
|
8441
8449
|
const le = ae.toLowerCase();
|
|
8442
8450
|
ne.hasOwnProperty(le) && (ne[le] = Q[ae]);
|
|
8443
|
-
}) : localStorage.setItem(
|
|
8444
|
-
|
|
8451
|
+
}) : localStorage.setItem(
|
|
8452
|
+
gridData.value.params._region_id + preTag.value,
|
|
8453
|
+
JSON.stringify(Z)
|
|
8454
|
+
);
|
|
8455
|
+
const oe = axios.post(
|
|
8456
|
+
"/window/data/" + gridData.value.params.datasourceCode,
|
|
8457
|
+
ne
|
|
8458
|
+
);
|
|
8445
8459
|
return oe.then((ae) => {
|
|
8446
8460
|
let le = {};
|
|
8447
8461
|
if (ae && ae.data && ae.data.result && ae.data.data && ae.data.data.length > 0) {
|
|
8448
|
-
let se = !1;
|
|
8449
|
-
ae.data.data.forEach((
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8462
|
+
let se = !1, ce = 0;
|
|
8463
|
+
ae.data.data.forEach((he, de) => {
|
|
8464
|
+
let pe = 0;
|
|
8465
|
+
gridData.value.toolbarConfig.buttons.forEach((fe) => {
|
|
8466
|
+
if (typeof fe.type < "u") {
|
|
8467
|
+
fe.btnLoad[de] = !1;
|
|
8468
|
+
const me = fe.displayLogic ? displayLogic(fe.displayLogic, {
|
|
8469
|
+
...he,
|
|
8470
|
+
...assembleParentData(gridData.value.params.parentData)
|
|
8471
|
+
}) : !0, _e = fe.showInGrid && me, ve = !fe.showInGrid && me;
|
|
8472
|
+
if (fe.btnShowInGrid[de] = _e, fe.btnShow[de] = ve, se = se || _e, _e) {
|
|
8473
|
+
pe++;
|
|
8474
|
+
let we = fe.name.match(/[\u4e00-\u9fa5]/g);
|
|
8475
|
+
if (we) {
|
|
8476
|
+
let $e = Math.ceil(we.length / 2);
|
|
8477
|
+
pe += $e - 1;
|
|
8478
|
+
}
|
|
8479
|
+
}
|
|
8455
8480
|
}
|
|
8456
|
-
});
|
|
8457
|
-
}),
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8481
|
+
}), pe > ce && (ce = pe);
|
|
8482
|
+
}), gridData.value.columns.forEach((he) => {
|
|
8483
|
+
if (he.colId == "_operation_" && he.title == "操作") {
|
|
8484
|
+
he.width = ce * 50;
|
|
8485
|
+
return;
|
|
8486
|
+
}
|
|
8487
|
+
}), getCurRegion().loadColumn(gridData.value.columns), ae.data.data.length > rowIndex.value ? le = ae.data.data[rowIndex.value] : le = ae.data.data[0];
|
|
8488
|
+
const ue = getCurRegion();
|
|
8489
|
+
if (ue) {
|
|
8490
|
+
const he = ue.getColumnById("_operation_");
|
|
8491
|
+
he && se && ue.showColumn(he);
|
|
8462
8492
|
}
|
|
8463
8493
|
!isEditGridInitData.value && gridData.value.type === "EDIT_GRID" && editGridInitData(le);
|
|
8464
8494
|
}
|
|
@@ -8478,7 +8508,10 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8478
8508
|
hasData: !(typeof Q > "u" || Object.keys(Q).length === 0),
|
|
8479
8509
|
...Q
|
|
8480
8510
|
}, X = Object.assign({}, G);
|
|
8481
|
-
delete X._region_id, gridData.value.params.parentData = getParentData(), emitButtonDisplayLogic(
|
|
8511
|
+
delete X._region_id, gridData.value.params.parentData = getParentData(), emitButtonDisplayLogic(
|
|
8512
|
+
{ ...Q, ...assembleParentData(gridData.value.params.parentData) },
|
|
8513
|
+
H
|
|
8514
|
+
), rowIndex.value = H, G.hasData && (evalEvent(gridData.value.params.formEvents.rowClickFunction, Q), getCurRegion().setCurrentRow(Q)), callGridClickEvents(X, gridData.value.params._region_id);
|
|
8482
8515
|
}, emitButtonDisplayLogic = (Q, H) => {
|
|
8483
8516
|
gridData.value.toolbarConfig.buttons.forEach((G) => {
|
|
8484
8517
|
G.displayLogic && (G.showInGrid || (G.visible = displayLogic(G.displayLogic, Q)), G.btnShowInGrid[H] = G.showInGrid && displayLogic(G.displayLogic, Q), G.btnShow[H] = !G.showInGrid && G.showInGrid);
|
|
@@ -8498,7 +8531,11 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8498
8531
|
let X;
|
|
8499
8532
|
if (typeof H > "u" && Q.type !== "EXPORT" && (H = getSelectRecord() || getCheckedData(), X = getCheckedData(), gridData.value.type !== "EDIT_GRID" && Q.type !== "NEW" && Q.type !== "IMPORT" && Q.code.toUpperCase() !== "ROLLBACK" && Q.type !== "EVENT")) {
|
|
8500
8533
|
if (!H || H.length === 0) {
|
|
8501
|
-
$vxeMessage({
|
|
8534
|
+
$vxeMessage({
|
|
8535
|
+
content: $T("请选择数据!"),
|
|
8536
|
+
status: "info",
|
|
8537
|
+
zIndex: 3e3
|
|
8538
|
+
});
|
|
8502
8539
|
return;
|
|
8503
8540
|
}
|
|
8504
8541
|
H.length > 0 && (H = H[0]);
|
|
@@ -8592,7 +8629,13 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8592
8629
|
showStatus: !1
|
|
8593
8630
|
},
|
|
8594
8631
|
showOverflow: !0,
|
|
8595
|
-
rowConfig: {
|
|
8632
|
+
rowConfig: {
|
|
8633
|
+
useKey: !0,
|
|
8634
|
+
keyField: "id",
|
|
8635
|
+
isCurrent: !1,
|
|
8636
|
+
height: 35,
|
|
8637
|
+
isHover: !0
|
|
8638
|
+
},
|
|
8596
8639
|
type: "EDIT_GRID",
|
|
8597
8640
|
addListener: !0
|
|
8598
8641
|
}
|
|
@@ -8609,7 +8652,11 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8609
8652
|
const oe = await ne.validate(re).catch((ae) => ae);
|
|
8610
8653
|
} else {
|
|
8611
8654
|
if (gridData.value.params.parentRowId && !gridData.value.params.parentRowIdValue) {
|
|
8612
|
-
$vxeMessage({
|
|
8655
|
+
$vxeMessage({
|
|
8656
|
+
content: $T("请选创建父窗口数据!"),
|
|
8657
|
+
status: "info",
|
|
8658
|
+
zIndex: 3e3
|
|
8659
|
+
});
|
|
8613
8660
|
return;
|
|
8614
8661
|
}
|
|
8615
8662
|
let ne = Object.assign({}, gridData.value);
|
|
@@ -8631,9 +8678,11 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8631
8678
|
break;
|
|
8632
8679
|
case "DELETE":
|
|
8633
8680
|
if (gridData.value.type === "EDIT_GRID")
|
|
8634
|
-
$vxeConfirm($T("你确定删除?"), void 0, { zIndex: 3e3 }).then(
|
|
8635
|
-
ne
|
|
8636
|
-
|
|
8681
|
+
$vxeConfirm($T("你确定删除?"), void 0, { zIndex: 3e3 }).then(
|
|
8682
|
+
(ne) => {
|
|
8683
|
+
ne === "confirm" && (Q.showInGrid ? getGrid().remove(H) : getGrid().removeCheckboxRow());
|
|
8684
|
+
}
|
|
8685
|
+
);
|
|
8637
8686
|
else {
|
|
8638
8687
|
let ne = H[gridData.value.rowId];
|
|
8639
8688
|
const re = getCheckedData();
|
|
@@ -8644,17 +8693,34 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8644
8693
|
_button_id: gridData.value.params.delete_button_id
|
|
8645
8694
|
};
|
|
8646
8695
|
let ae = "/window/delete";
|
|
8647
|
-
Q.requestPath && (ae = Q.requestPath), $vxeConfirm($T("你确定删除?"), void 0, { zIndex: 3e3 }).then(
|
|
8648
|
-
le
|
|
8649
|
-
|
|
8650
|
-
|
|
8651
|
-
|
|
8652
|
-
|
|
8653
|
-
|
|
8696
|
+
Q.requestPath && (ae = Q.requestPath), $vxeConfirm($T("你确定删除?"), void 0, { zIndex: 3e3 }).then(
|
|
8697
|
+
(le) => {
|
|
8698
|
+
le === "confirm" && axios.post(ae, oe).then((se) => {
|
|
8699
|
+
se.status === 200 && se.data.result ? (reload(), $vxeMessage({
|
|
8700
|
+
content: se.data.msg,
|
|
8701
|
+
status: "info",
|
|
8702
|
+
zIndex: 3e3
|
|
8703
|
+
})) : $vxeMessage({
|
|
8704
|
+
content: se.data.msg,
|
|
8705
|
+
status: "error",
|
|
8706
|
+
zIndex: 3e3
|
|
8707
|
+
});
|
|
8708
|
+
}).catch((se) => {
|
|
8709
|
+
$vxeMessage({
|
|
8710
|
+
content: se.msg,
|
|
8711
|
+
status: "error",
|
|
8712
|
+
zIndex: 3e3
|
|
8713
|
+
});
|
|
8714
|
+
});
|
|
8715
|
+
}
|
|
8716
|
+
);
|
|
8654
8717
|
}
|
|
8655
8718
|
break;
|
|
8656
8719
|
case "TRANSLATE":
|
|
8657
|
-
showPreView("11", $T("翻译"), {
|
|
8720
|
+
showPreView("11", $T("翻译"), {
|
|
8721
|
+
dataId: H[gridData.value.rowId],
|
|
8722
|
+
dsId: gridData.value.params.dsId
|
|
8723
|
+
});
|
|
8658
8724
|
break;
|
|
8659
8725
|
case "PIC_UPLOAD":
|
|
8660
8726
|
uploadConfig.value.show = !uploadConfig.value.show, uploadConfig.value.dataId = H[gridData.value.rowId];
|
|
@@ -8681,7 +8747,11 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8681
8747
|
$vxeReadFile({ types: ["xml"] }).then(({ file: ne }) => {
|
|
8682
8748
|
const re = new FormData();
|
|
8683
8749
|
re.append("file", ne), axios.upload("windowButton/importWindow", re).then((oe) => {
|
|
8684
|
-
oe.status === 200 && ($vxeMessage({
|
|
8750
|
+
oe.status === 200 && ($vxeMessage({
|
|
8751
|
+
content: oe.data.msg || $T("导入失败!"),
|
|
8752
|
+
status: "info",
|
|
8753
|
+
zIndex: 3e3
|
|
8754
|
+
}), oe.data.result && reload()), Q.loading = !1;
|
|
8685
8755
|
});
|
|
8686
8756
|
}).catch((ne) => {
|
|
8687
8757
|
console.error(ne), Q.loading = !1;
|
|
@@ -8691,20 +8761,30 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8691
8761
|
}
|
|
8692
8762
|
else if (te === "EXPORT" && gridData.value.params.code == "Window") {
|
|
8693
8763
|
if (!H || H.length === 0) {
|
|
8694
|
-
$vxeMessage({
|
|
8764
|
+
$vxeMessage({
|
|
8765
|
+
content: $T("请选择需要导出的窗口!"),
|
|
8766
|
+
status: "info",
|
|
8767
|
+
zIndex: 3e3
|
|
8768
|
+
}), Q.loading = !1;
|
|
8695
8769
|
return;
|
|
8696
8770
|
}
|
|
8697
|
-
H.length > 0 && (H = H[0]), await axios.download("/windowButton/exportWindow", {
|
|
8771
|
+
H.length > 0 && (H = H[0]), await axios.download("/windowButton/exportWindow", {
|
|
8772
|
+
windowId: H.SYS_WINDOW_ID
|
|
8773
|
+
}), Q.loading = !1;
|
|
8698
8774
|
} else if (te === "CREATE_COLUMN")
|
|
8699
|
-
$vxeConfirm($T("确定生成字段?"), void 0, { zIndex: 3e3 }).then(
|
|
8700
|
-
ne
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
8775
|
+
$vxeConfirm($T("确定生成字段?"), void 0, { zIndex: 3e3 }).then(
|
|
8776
|
+
(ne) => {
|
|
8777
|
+
ne === "confirm" && axios.post("windowButton/generateColumn", {
|
|
8778
|
+
datasourceId: H.SYS_DATASOURCE_ID
|
|
8779
|
+
}).then((re) => {
|
|
8780
|
+
$vxeMessage({
|
|
8781
|
+
content: re.data.msg,
|
|
8782
|
+
status: re.data.result ? "success" : "error",
|
|
8783
|
+
zIndex: 3e3
|
|
8784
|
+
}), re.data.result && reload(), Q.loading = !1;
|
|
8785
|
+
});
|
|
8786
|
+
}
|
|
8787
|
+
);
|
|
8708
8788
|
else if (te === "DATA_VIEW")
|
|
8709
8789
|
axios.post("datasource/" + H.URL).then((ne) => {
|
|
8710
8790
|
$vxeOpen({
|
|
@@ -8715,25 +8795,33 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8715
8795
|
}), Q.loading = !1;
|
|
8716
8796
|
});
|
|
8717
8797
|
else if (te === "GENERATETABLE")
|
|
8718
|
-
$vxeConfirm($T("确定生成表结构?"), void 0, { zIndex: 3e3 }).then(
|
|
8719
|
-
ne
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
|
|
8726
|
-
|
|
8798
|
+
$vxeConfirm($T("确定生成表结构?"), void 0, { zIndex: 3e3 }).then(
|
|
8799
|
+
(ne) => {
|
|
8800
|
+
ne === "confirm" && axios.post("windowButton/generateTableStructure", {
|
|
8801
|
+
dataSourceId: H.SYS_DATASOURCE_ID
|
|
8802
|
+
}).then((re) => {
|
|
8803
|
+
$vxeMessage({
|
|
8804
|
+
content: re.data.msg,
|
|
8805
|
+
status: re.data.result ? "success" : "error",
|
|
8806
|
+
zIndex: 3e3
|
|
8807
|
+
}), re.data.result && reload(), Q.loading = !1;
|
|
8808
|
+
});
|
|
8809
|
+
}
|
|
8810
|
+
);
|
|
8727
8811
|
else if (te === "GENERATE_FIELD")
|
|
8728
|
-
$vxeConfirm($T("确定生成字段?"), void 0, { zIndex: 3e3 }).then(
|
|
8729
|
-
ne
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8812
|
+
$vxeConfirm($T("确定生成字段?"), void 0, { zIndex: 3e3 }).then(
|
|
8813
|
+
(ne) => {
|
|
8814
|
+
ne === "confirm" && axios.post("windowButton/generateField", {
|
|
8815
|
+
regionId: H.SYS_WINDOW_REGION_ID
|
|
8816
|
+
}).then((re) => {
|
|
8817
|
+
$vxeMessage({
|
|
8818
|
+
content: re.data.msg,
|
|
8819
|
+
status: re.data.result ? "success" : "error",
|
|
8820
|
+
zIndex: 3e3
|
|
8821
|
+
}), re.data.result && reload(), Q.loading = !1;
|
|
8822
|
+
});
|
|
8823
|
+
}
|
|
8824
|
+
);
|
|
8737
8825
|
else if (Q.windowId)
|
|
8738
8826
|
showPreView(Q.windowId, Q.name, H, {
|
|
8739
8827
|
width: Q.openWidth,
|
|
@@ -8741,7 +8829,11 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8741
8829
|
});
|
|
8742
8830
|
else
|
|
8743
8831
|
try {
|
|
8744
|
-
Q.clickFunction && await evalEvent(
|
|
8832
|
+
Q.clickFunction && await evalEvent(
|
|
8833
|
+
"async " + Q.clickFunction,
|
|
8834
|
+
(X == null ? void 0 : X.length) > 1 ? X : H,
|
|
8835
|
+
Q
|
|
8836
|
+
) !== !1 && (Q.loading = !1);
|
|
8745
8837
|
} catch (ne) {
|
|
8746
8838
|
console.error(ne), Q.loading = !1;
|
|
8747
8839
|
}
|
|
@@ -8774,7 +8866,8 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8774
8866
|
rowIndex: H
|
|
8775
8867
|
}, X.params.queryParams !== null && typeof X.params.queryParams < "u" && (X.params.queryParams.unQuery = !0), X.formData._button_id = gridData.value.params.edit_button_id, X._reload = () => reload(), rowDbClick(X);
|
|
8776
8868
|
}, reload = () => {
|
|
8777
|
-
|
|
8869
|
+
var Q;
|
|
8870
|
+
(Q = getCurRegion()) == null || Q.commitProxy("query");
|
|
8778
8871
|
}, clearGrid = () => {
|
|
8779
8872
|
getCurRegion().commitProxy("query", { clearGrid: !0 });
|
|
8780
8873
|
}, getCheckedData = () => {
|
|
@@ -8785,14 +8878,20 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8785
8878
|
if (G.length > 0)
|
|
8786
8879
|
gridData.value.toolbarConfig.buttons.forEach((X) => {
|
|
8787
8880
|
X.displayLogic && !X.showInGrid && G.some((Z) => {
|
|
8788
|
-
if (X.visible = X.displayLogic ? displayLogic(X.displayLogic, {
|
|
8881
|
+
if (X.visible = X.displayLogic ? displayLogic(X.displayLogic, {
|
|
8882
|
+
...Z,
|
|
8883
|
+
...assembleParentData(gridData.value.params.parentData)
|
|
8884
|
+
}) : !0, !X.visible)
|
|
8789
8885
|
return !0;
|
|
8790
8886
|
});
|
|
8791
8887
|
});
|
|
8792
8888
|
else {
|
|
8793
8889
|
const X = getSelectRecord();
|
|
8794
8890
|
gridData.value.toolbarConfig.buttons.forEach((Z) => {
|
|
8795
|
-
Z.displayLogic && !Z.showInGrid && (Z.visible = displayLogic(Z.displayLogic, {
|
|
8891
|
+
Z.displayLogic && !Z.showInGrid && (Z.visible = displayLogic(Z.displayLogic, {
|
|
8892
|
+
...X,
|
|
8893
|
+
...assembleParentData(gridData.value.params.parentData)
|
|
8894
|
+
}));
|
|
8796
8895
|
});
|
|
8797
8896
|
}
|
|
8798
8897
|
}, getSelectRecord = () => {
|
|
@@ -8822,27 +8921,47 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8822
8921
|
}, removeRow = (Q) => {
|
|
8823
8922
|
getCurRegion().remove(Q);
|
|
8824
8923
|
}, exportCurrentData = async () => {
|
|
8825
|
-
exportButton.value ? getCurRegion().exportData() : $vxeMessage({
|
|
8924
|
+
exportButton.value ? getCurRegion().exportData() : $vxeMessage({
|
|
8925
|
+
content: $T("您没有导出数据权限!"),
|
|
8926
|
+
status: "error",
|
|
8927
|
+
zIndex: 3e3
|
|
8928
|
+
});
|
|
8826
8929
|
}, exportData = async () => {
|
|
8827
8930
|
var Q;
|
|
8828
8931
|
if (exportButton.value) {
|
|
8829
|
-
const H = Object.assign(
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
|
|
8932
|
+
const H = Object.assign(
|
|
8933
|
+
{
|
|
8934
|
+
_button_id: exportButton.value._button_id,
|
|
8935
|
+
_region_id: gridData.value.params._region_id
|
|
8936
|
+
},
|
|
8937
|
+
(Q = gridData.value.params.queryParams) == null ? void 0 : Q.data
|
|
8938
|
+
);
|
|
8939
|
+
await axios.export(
|
|
8940
|
+
"/window/export?data=" + base64Encode(JSON.stringify(H)),
|
|
8941
|
+
{}
|
|
8942
|
+
), exportButton.value.loading = !1;
|
|
8834
8943
|
} else
|
|
8835
|
-
$vxeMessage({
|
|
8944
|
+
$vxeMessage({
|
|
8945
|
+
content: $T("您没有导出数据权限!"),
|
|
8946
|
+
status: "error",
|
|
8947
|
+
zIndex: 3e3
|
|
8948
|
+
});
|
|
8836
8949
|
}, search = (Q) => {
|
|
8837
8950
|
clearTimeout(queryTimeout.value), Q && (gridData.value.params.queryParams = Q), queryTimeout.value = setTimeout(function() {
|
|
8838
8951
|
getCurRegion().commitProxy("query");
|
|
8839
8952
|
}, 500);
|
|
8840
8953
|
}, importFormatError = (Q) => {
|
|
8841
|
-
$vxeMessage({
|
|
8954
|
+
$vxeMessage({
|
|
8955
|
+
content: $T("导入文件格式错误"),
|
|
8956
|
+
status: "error",
|
|
8957
|
+
zIndex: 3e3
|
|
8958
|
+
});
|
|
8842
8959
|
}, importSuccess = (Q, H) => {
|
|
8843
8960
|
Q.result && (isImport.value = !1, reload()), $vxeMessage({ content: Q.msg, status: "info", zIndex: 3e3 });
|
|
8844
8961
|
}, downTemplate = () => {
|
|
8845
|
-
axios.download("/window/downloadTemplate", {
|
|
8962
|
+
axios.download("/window/downloadTemplate", {
|
|
8963
|
+
_region_id: gridData.value.params._region_id
|
|
8964
|
+
});
|
|
8846
8965
|
}, confirm = (Q, H) => {
|
|
8847
8966
|
$vxeConfirm(Q, void 0, { zIndex: 3e3 }).then((G) => {
|
|
8848
8967
|
G === "confirm" && evalEvent(H);
|
|
@@ -8863,7 +8982,11 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8863
8982
|
if (Z.data.result && Z.data.data)
|
|
8864
8983
|
for (const K in Z.data.data) {
|
|
8865
8984
|
const ee = Z.data.data[K];
|
|
8866
|
-
Q[K] = evalDefaultValue(ee, {
|
|
8985
|
+
Q[K] = evalDefaultValue(ee, {
|
|
8986
|
+
...Q,
|
|
8987
|
+
...G,
|
|
8988
|
+
...X
|
|
8989
|
+
});
|
|
8867
8990
|
}
|
|
8868
8991
|
});
|
|
8869
8992
|
}, editGridInitData = async (Q) => {
|
|
@@ -8871,29 +8994,46 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8871
8994
|
for (const H of Object.keys(formSelectMap.value)) {
|
|
8872
8995
|
const G = formSelectMap.value[H];
|
|
8873
8996
|
if (G.dataType === "TREE")
|
|
8874
|
-
await axios.post(
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8997
|
+
await axios.post(
|
|
8998
|
+
"/window/selector",
|
|
8999
|
+
$qs.stringify({
|
|
9000
|
+
...Q,
|
|
9001
|
+
_field_id: G.id,
|
|
9002
|
+
_select_id: G.selectorId
|
|
9003
|
+
})
|
|
9004
|
+
).then((X) => {
|
|
8879
9005
|
X.data.result && X.data.data && (G.editRender.props.treeData = X.data.data);
|
|
8880
9006
|
});
|
|
8881
9007
|
else if (G.remoteSearch) {
|
|
8882
9008
|
G.editRender.props.remoteMethod = async (Z) => {
|
|
8883
|
-
Z && (G.editRender.props.loading = !0, G.editRender.options = await remoteMethod(
|
|
9009
|
+
Z && (G.editRender.props.loading = !0, G.editRender.options = await remoteMethod(
|
|
9010
|
+
Z,
|
|
9011
|
+
G.id,
|
|
9012
|
+
G.selectorId
|
|
9013
|
+
), G.editRender.props.loading = !1);
|
|
8884
9014
|
};
|
|
8885
9015
|
let X = Q["_" + G.field + "_NAME"];
|
|
8886
|
-
Q[G.field] && X && (G.editRender.options = await remoteMethod(
|
|
9016
|
+
Q[G.field] && X && (G.editRender.options = await remoteMethod(
|
|
9017
|
+
X,
|
|
9018
|
+
G.id,
|
|
9019
|
+
G.selectorId
|
|
9020
|
+
));
|
|
8887
9021
|
} else
|
|
8888
|
-
typeof G.selectorId < "u" && await axios.post(
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
|
|
8896
|
-
|
|
9022
|
+
typeof G.selectorId < "u" && await axios.post(
|
|
9023
|
+
"/window/selector",
|
|
9024
|
+
$qs.stringify({
|
|
9025
|
+
...Q,
|
|
9026
|
+
_field_id: G.id,
|
|
9027
|
+
_select_id: G.selectorId
|
|
9028
|
+
})
|
|
9029
|
+
).then((X) => {
|
|
9030
|
+
X.data.result && X.data.data && (G.editRender.options = X.data.data.map((Z) => Object.assign(
|
|
9031
|
+
{
|
|
9032
|
+
value: Z.VALUE,
|
|
9033
|
+
label: Z.NAME
|
|
9034
|
+
},
|
|
9035
|
+
Z
|
|
9036
|
+
)));
|
|
8897
9037
|
});
|
|
8898
9038
|
}
|
|
8899
9039
|
isEditGridInitData.value = !0;
|
|
@@ -8910,9 +9050,18 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8910
9050
|
break;
|
|
8911
9051
|
}
|
|
8912
9052
|
}
|
|
8913
|
-
evalEvent(
|
|
9053
|
+
evalEvent(
|
|
9054
|
+
Q.column.editRender.props.changeFunction,
|
|
9055
|
+
H,
|
|
9056
|
+
K
|
|
9057
|
+
);
|
|
8914
9058
|
} else
|
|
8915
|
-
evalEvent(
|
|
9059
|
+
evalEvent(
|
|
9060
|
+
Q.column.editRender.props.changeFunction,
|
|
9061
|
+
H,
|
|
9062
|
+
X,
|
|
9063
|
+
Z
|
|
9064
|
+
);
|
|
8916
9065
|
}, success = (Q, H) => {
|
|
8917
9066
|
$vxeMessage({
|
|
8918
9067
|
content: Q,
|
|
@@ -8950,20 +9099,31 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8950
9099
|
}, onFieldEnter = (Q, H) => {
|
|
8951
9100
|
if (H.key === "Enter" && Q.column.editRender.props.enterFunction) {
|
|
8952
9101
|
let G = Q.row[Q.column.field];
|
|
8953
|
-
evalEvent(
|
|
9102
|
+
evalEvent(
|
|
9103
|
+
Q.column.editRender.props.enterFunction,
|
|
9104
|
+
G,
|
|
9105
|
+
Q.column.field,
|
|
9106
|
+
Q.row
|
|
9107
|
+
);
|
|
8954
9108
|
}
|
|
8955
9109
|
}, remoteMethod = async (Q, H, G) => {
|
|
8956
|
-
let X = [], Z = await axios.post(
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
9110
|
+
let X = [], Z = await axios.post(
|
|
9111
|
+
"/window/selector",
|
|
9112
|
+
$qs.stringify({
|
|
9113
|
+
$_f_value: Q,
|
|
9114
|
+
_region_id: gridData.value.params._region_id,
|
|
9115
|
+
_field_id: H,
|
|
9116
|
+
_select_id: G
|
|
9117
|
+
})
|
|
9118
|
+
);
|
|
8962
9119
|
if (Z.data.result && Z.data.data)
|
|
8963
|
-
return X = Z.data.data.map((K) => Object.assign(
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
9120
|
+
return X = Z.data.data.map((K) => Object.assign(
|
|
9121
|
+
{
|
|
9122
|
+
value: K.VALUE,
|
|
9123
|
+
label: K.NAME
|
|
9124
|
+
},
|
|
9125
|
+
K
|
|
9126
|
+
)), X;
|
|
8967
9127
|
}, handleAddChildTableData = async () => {
|
|
8968
9128
|
let Q = {}, H = "";
|
|
8969
9129
|
for (let Z in gridData.value.columns)
|
|
@@ -8974,7 +9134,11 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8974
9134
|
const H = getGrid();
|
|
8975
9135
|
let G = H.getCheckboxRecords();
|
|
8976
9136
|
if (G.length <= 0) {
|
|
8977
|
-
$vxeMessage({
|
|
9137
|
+
$vxeMessage({
|
|
9138
|
+
content: $T("请勾选需要复制的行数据!"),
|
|
9139
|
+
status: "warning",
|
|
9140
|
+
zIndex: 3e3
|
|
9141
|
+
});
|
|
8978
9142
|
return;
|
|
8979
9143
|
}
|
|
8980
9144
|
let X = H.getRowSeq(G[G.length - 1]);
|
|
@@ -8990,13 +9154,24 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
8990
9154
|
}, handleDeleteChildTableData = async () => {
|
|
8991
9155
|
const Q = getGrid();
|
|
8992
9156
|
if (Q.getCheckboxRecords().length <= 0) {
|
|
8993
|
-
$vxeMessage({
|
|
9157
|
+
$vxeMessage({
|
|
9158
|
+
content: $T("请勾选需要删除的行数据!"),
|
|
9159
|
+
status: "warning",
|
|
9160
|
+
zIndex: 3e3
|
|
9161
|
+
});
|
|
8994
9162
|
return;
|
|
8995
9163
|
}
|
|
8996
9164
|
await $vxeConfirm($T("您确定要删除吗?")) === "confirm" && Q.removeCheckboxRow();
|
|
8997
9165
|
};
|
|
8998
9166
|
let editActivedRow = null, editActivedRowIndex = 0;
|
|
8999
|
-
const editActived = ({
|
|
9167
|
+
const editActived = ({
|
|
9168
|
+
row: Q,
|
|
9169
|
+
rowIndex: H,
|
|
9170
|
+
$rowIndex: G,
|
|
9171
|
+
column: X,
|
|
9172
|
+
columnIndex: Z,
|
|
9173
|
+
$columnIndex: K
|
|
9174
|
+
}) => {
|
|
9000
9175
|
editActivedRow = Q, editActivedRowIndex = H, destroyCopyAreaBox(), destroyCellAreaBox();
|
|
9001
9176
|
};
|
|
9002
9177
|
let isSelecting = ref(!1), selectionStart = ref({ rowIndex: -1, cellIndex: -1 }), selectionEnd = ref({ rowIndex: -1, cellIndex: -1 }), cellarea = ref(), outevent = null, tbodyMousedownTimeout = null, cellAreaData = null, isCut = !1, cutSelectionStart = ref({ rowIndex: -1, cellIndex: -1 }), cutSelectionEnd = ref({ rowIndex: -1, cellIndex: -1 });
|
|
@@ -9046,7 +9221,9 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
9046
9221
|
ee[le][se.field] = G[le] ? G[le][ce] : "";
|
|
9047
9222
|
});
|
|
9048
9223
|
});
|
|
9049
|
-
let te = K.map((ae) => ae.field), ne = gridData.value.columns.filter(
|
|
9224
|
+
let te = K.map((ae) => ae.field), ne = gridData.value.columns.filter(
|
|
9225
|
+
(ae) => te.includes(ae.field)
|
|
9226
|
+
);
|
|
9050
9227
|
ee = verifyPasteData(ne, ee), X.remove(Z);
|
|
9051
9228
|
let re = selectionStart.value.rowIndex <= selectionEnd.value.rowIndex ? selectionStart.value.rowIndex : selectionEnd.value.rowIndex;
|
|
9052
9229
|
(await X.getTableData().tableData).length == re && (re = -1), X.insertAt(ee, re);
|
|
@@ -9058,7 +9235,9 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
9058
9235
|
if (G.dataType == "LIST") {
|
|
9059
9236
|
for (let X of H)
|
|
9060
9237
|
if (G.editRender.options && G.editRender.options.length > 0 && X[G.field]) {
|
|
9061
|
-
let Z = X[G.field].replace(/(\r\n|\n|\r)/g, ""), K = G.editRender.options.findIndex(
|
|
9238
|
+
let Z = X[G.field].replace(/(\r\n|\n|\r)/g, ""), K = G.editRender.options.findIndex(
|
|
9239
|
+
(ee) => ee.label == Z || ee.value == Z
|
|
9240
|
+
);
|
|
9062
9241
|
K != -1 ? X[G.field] = G.editRender.options[K].value : X[G.field] = "";
|
|
9063
9242
|
}
|
|
9064
9243
|
} else if (G.dataType == "LONG" || G.dataType == "PLONG" || G.dataType == "DOUBLE") {
|
|
@@ -9096,16 +9275,21 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
9096
9275
|
K[te.field] && K[te.field].trim() ? ee = ee + K[te.field] + " " : ee = ee + " " + K[te.field];
|
|
9097
9276
|
}), Z = Z ? Z + `
|
|
9098
9277
|
` + ee : ee;
|
|
9099
|
-
}), navigator.clipboard.writeText(Z).then(
|
|
9100
|
-
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
9278
|
+
}), navigator.clipboard.writeText(Z).then(
|
|
9279
|
+
function() {
|
|
9280
|
+
let K = getCurRegion().$el.querySelector(
|
|
9281
|
+
".vxe-table--main-wrapper .vxe-table--body-wrapper .vxe-table--cell-copy-area"
|
|
9282
|
+
);
|
|
9283
|
+
if (cellAreaData && K) {
|
|
9284
|
+
const { width: ee, height: te, left: ne, top: re, right: oe } = cellAreaData;
|
|
9285
|
+
K.style.width = `${ee}px`, K.style.height = `${te}px`, K.style.top = `${re}px`, K.style.display = "block", K.style.left = `${ne}px`;
|
|
9286
|
+
}
|
|
9287
|
+
$message.success(H);
|
|
9288
|
+
},
|
|
9289
|
+
function(K) {
|
|
9290
|
+
console.log(K);
|
|
9104
9291
|
}
|
|
9105
|
-
|
|
9106
|
-
}, function(K) {
|
|
9107
|
-
console.log(K);
|
|
9108
|
-
});
|
|
9292
|
+
);
|
|
9109
9293
|
}, getSelectData = (Q = selectionStart.value, H = selectionEnd.value) => {
|
|
9110
9294
|
const G = getGrid();
|
|
9111
9295
|
let X = G.getTableData().visibleData, Z = Q.rowIndex, K = H.rowIndex, ee = X.filter((ae, le) => Z <= K ? Z <= le && K >= le : Z >= le && K <= le), te = Q.cellIndex, ne = H.cellIndex, oe = G.getTableColumn().visibleColumn.filter((ae, le) => te <= ne ? te <= le && ne >= le : te >= le && ne <= le);
|
|
@@ -9113,8 +9297,16 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
9113
9297
|
}, addListener = () => {
|
|
9114
9298
|
nextTick(() => {
|
|
9115
9299
|
document.addEventListener("mousedown", tableOutDestroyAreaBox), document.addEventListener("mouseup", tbodymouseup), document.addEventListener("paste", ctrlVPaste), document.addEventListener("copy", ctrlCopyAndCut), document.addEventListener("cut", ctrlCopyAndCut);
|
|
9116
|
-
let Q = getCurRegion().$el.querySelector(
|
|
9117
|
-
|
|
9300
|
+
let Q = getCurRegion().$el.querySelector(
|
|
9301
|
+
".vxe-table--main-wrapper .vxe-table--body-wrapper table"
|
|
9302
|
+
);
|
|
9303
|
+
Q && (Q.addEventListener("mousedown", tbodymousedown), Q.addEventListener(
|
|
9304
|
+
"mousemove",
|
|
9305
|
+
XEUtils$4.throttle(tbodymousemove, 100)
|
|
9306
|
+
), Q.addEventListener(
|
|
9307
|
+
"mouseout",
|
|
9308
|
+
XEUtils$4.throttle(tbodymouseout, 100)
|
|
9309
|
+
), Q.appendChild(cellarea.value));
|
|
9118
9310
|
});
|
|
9119
9311
|
}, tbodymousedown = (Q) => {
|
|
9120
9312
|
tbodyMousedownTimeout = setTimeout(() => {
|
|
@@ -9130,14 +9322,20 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
9130
9322
|
Q.button === 0 && (isSelecting.value = !1, clearTimeout(tbodyMousedownTimeout));
|
|
9131
9323
|
}, tableOutDestroyAreaBox = (Q) => {
|
|
9132
9324
|
if (getCurRegion()) {
|
|
9133
|
-
let H = getCurRegion().$el.querySelector(
|
|
9325
|
+
let H = getCurRegion().$el.querySelector(
|
|
9326
|
+
".vxe-table--render-wrapper"
|
|
9327
|
+
);
|
|
9134
9328
|
H && (Q.clientX < H.getBoundingClientRect().left || Q.clientX > H.getBoundingClientRect().right || Q.clientY < H.getBoundingClientRect().top || Q.clientY > H.getBoundingClientRect().bottom) && destroyCellAreaBox();
|
|
9135
9329
|
}
|
|
9136
9330
|
}, destroyCellAreaBox = () => {
|
|
9137
|
-
let Q = getCurRegion().$el.querySelector(
|
|
9331
|
+
let Q = getCurRegion().$el.querySelector(
|
|
9332
|
+
".vxe-table--main-wrapper .vxe-table--body-wrapper .vxe-table--cell-area"
|
|
9333
|
+
);
|
|
9138
9334
|
Q && (Q.style.display = "none", selectionStart.value = { rowIndex: -1, cellIndex: -1 }, selectionEnd.value = { rowIndex: -1, cellIndex: -1 }, cellAreaData = null);
|
|
9139
9335
|
}, destroyCopyAreaBox = () => {
|
|
9140
|
-
let Q = getCurRegion().$el.querySelector(
|
|
9336
|
+
let Q = getCurRegion().$el.querySelector(
|
|
9337
|
+
".vxe-table--main-wrapper .vxe-table--body-wrapper .vxe-table--cell-copy-area"
|
|
9338
|
+
);
|
|
9141
9339
|
Q && (Q.style.display = "none", Q.style.width = "0px", Q.style.height = "0px", Q.style.top = "0px", Q.style.left = "0px");
|
|
9142
9340
|
}, getCellPosition = (Q) => {
|
|
9143
9341
|
for (; Q && Q.tagName !== "TD"; )
|
|
@@ -9147,7 +9345,11 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
9147
9345
|
const G = getCurRegion().getTableColumn().visibleColumn.findIndex((K) => K.id == Q.getAttribute("colid"));
|
|
9148
9346
|
return { rowIndex: getCurRegion().getTableData().visibleData.findIndex((K) => K.id == Q.parentElement.getAttribute("rowid")), cellIndex: G };
|
|
9149
9347
|
}, setselectedCellArea = () => {
|
|
9150
|
-
let Q = getCurRegion().$el.querySelector(
|
|
9348
|
+
let Q = getCurRegion().$el.querySelector(
|
|
9349
|
+
".vxe-table--main-wrapper .vxe-table--body-wrapper .vxe-table--cell-active-area"
|
|
9350
|
+
), H = getCurRegion().$el.querySelector(
|
|
9351
|
+
".vxe-table--main-wrapper .vxe-table--body-wrapper .vxe-table--cell-main-area"
|
|
9352
|
+
), G = [Q, H];
|
|
9151
9353
|
if (cellAreaData = getAreaBoxPosition(), cellAreaData)
|
|
9152
9354
|
var { width: X, height: Z, left: K, top: ee, right: te } = cellAreaData;
|
|
9153
9355
|
else
|
|
@@ -9166,13 +9368,17 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
9166
9368
|
G <= X ? (ce < G && (oe += se.renderWidth), ce > X && (le += se.renderWidth), G <= ce && ce <= X && (ne += se.renderWidth)) : (ce < X && (oe += se.renderWidth), ce > G && (le += se.renderWidth), G >= ce && ce >= X && (ne += se.renderWidth));
|
|
9167
9369
|
}), Q <= H ? (re = (H - Q + 1) * gridData.value.rowConfig.height, ae = Q * gridData.value.rowConfig.height) : (re = (Q - H + 1) * gridData.value.rowConfig.height, ae = H * gridData.value.rowConfig.height), { width: ne, height: re, left: oe, top: ae, right: le };
|
|
9168
9370
|
}, openAreaBox = () => {
|
|
9169
|
-
let Q = getCurRegion().$el.querySelector(
|
|
9371
|
+
let Q = getCurRegion().$el.querySelector(
|
|
9372
|
+
".vxe-table--main-wrapper .vxe-table--body-wrapper .vxe-table--cell-area"
|
|
9373
|
+
);
|
|
9170
9374
|
Q && (Q.style.display = "block");
|
|
9171
9375
|
}, tbodymouseout = (Q) => {
|
|
9172
9376
|
if (outevent = Q, isSelecting.value) {
|
|
9173
9377
|
const H = setInterval(() => {
|
|
9174
9378
|
if (isSelecting.value) {
|
|
9175
|
-
let G = getCurRegion().$el.querySelector(
|
|
9379
|
+
let G = getCurRegion().$el.querySelector(
|
|
9380
|
+
".vxe-table--body-wrapper table"
|
|
9381
|
+
), X = G.parentElement.getBoundingClientRect();
|
|
9176
9382
|
if (outevent.clientX > X.right - 30) {
|
|
9177
9383
|
let Z = G.parentElement.scrollWidth - G.parentElement.clientWidth;
|
|
9178
9384
|
G.parentElement.scrollLeft < Z && (G.parentElement.scrollLeft += 10);
|
|
@@ -9190,7 +9396,13 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
9190
9396
|
}, resizableChange = ({ column: Q, $columnIndex: H }) => {
|
|
9191
9397
|
if (selectionStart.value.rowIndex == -1 && selectionEnd.value.rowIndex == -1)
|
|
9192
9398
|
return;
|
|
9193
|
-
let { width: G, left: X } = getAreaBoxPosition(), Z = getCurRegion().$el.querySelector(
|
|
9399
|
+
let { width: G, left: X } = getAreaBoxPosition(), Z = getCurRegion().$el.querySelector(
|
|
9400
|
+
".vxe-table--main-wrapper .vxe-table--body-wrapper .vxe-table--cell-active-area"
|
|
9401
|
+
), K = getCurRegion().$el.querySelector(
|
|
9402
|
+
".vxe-table--main-wrapper .vxe-table--body-wrapper .vxe-table--cell-main-area"
|
|
9403
|
+
), ee = getCurRegion().$el.querySelector(
|
|
9404
|
+
".vxe-table--main-wrapper .vxe-table--body-wrapper .vxe-table--cell-copy-area"
|
|
9405
|
+
);
|
|
9194
9406
|
[Z, K, ee].forEach((ne) => {
|
|
9195
9407
|
ne && ne.style.display == "block" && cellAreaData && (ne.style.width = `${G}px`, cellAreaData.width = G, ne.style.left = `${X}px`, cellAreaData.left = X);
|
|
9196
9408
|
});
|
|
@@ -9205,7 +9417,15 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
9205
9417
|
rowIndex: X,
|
|
9206
9418
|
cellIndex: Q
|
|
9207
9419
|
}, setselectedCellArea();
|
|
9208
|
-
}, headerSeqCellDbClick = ({
|
|
9420
|
+
}, headerSeqCellDbClick = ({
|
|
9421
|
+
row: Q,
|
|
9422
|
+
rowIndex: H,
|
|
9423
|
+
$rowIndex: G,
|
|
9424
|
+
column: X,
|
|
9425
|
+
columnIndex: Z,
|
|
9426
|
+
$columnIndex: K,
|
|
9427
|
+
$event: ee
|
|
9428
|
+
}) => {
|
|
9209
9429
|
var ne = getCurRegion().getTableColumn().visibleColumn.length - 1;
|
|
9210
9430
|
selectionStart.value = {
|
|
9211
9431
|
rowIndex: G,
|
|
@@ -9232,22 +9452,38 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
9232
9452
|
}), gridData.value.formConfig.items.forEach((Q) => {
|
|
9233
9453
|
var H;
|
|
9234
9454
|
if (Q.itemRender && Q.itemRender.events && Q.itemRender.events.hasOwnProperty("change") && (Q.itemRender.events.change = search), Q.remoteSearch ? (Q.itemRender.props.remoteMethod = async (G) => {
|
|
9235
|
-
G && (Q.itemRender.props.loading = !0, Q.itemRender.options = await remoteMethod(
|
|
9236
|
-
|
|
9455
|
+
G && (Q.itemRender.props.loading = !0, Q.itemRender.options = await remoteMethod(
|
|
9456
|
+
G,
|
|
9457
|
+
Q.querys.id,
|
|
9458
|
+
Q.querys.selectorId
|
|
9459
|
+
), Q.itemRender.props.loading = !1);
|
|
9460
|
+
}, Q.itemRender.defaultValue && remoteMethod(
|
|
9461
|
+
Q.itemRender.defaultValue,
|
|
9462
|
+
Q.querys.id,
|
|
9463
|
+
Q.querys.selectorId
|
|
9464
|
+
).then((G) => {
|
|
9237
9465
|
Q.itemRender.options = G;
|
|
9238
|
-
})) : Q.querys && axios.post(
|
|
9239
|
-
|
|
9240
|
-
|
|
9241
|
-
|
|
9242
|
-
|
|
9466
|
+
})) : Q.querys && axios.post(
|
|
9467
|
+
"/window/selector",
|
|
9468
|
+
$qs.stringify({
|
|
9469
|
+
_region_id: gridData.value.params._region_id,
|
|
9470
|
+
_field_id: Q.querys.id,
|
|
9471
|
+
_select_id: Q.querys.selectorId
|
|
9472
|
+
})
|
|
9473
|
+
).then((G) => {
|
|
9243
9474
|
if (G.data.result && G.data.data) {
|
|
9244
|
-
const X = G.data.data.map((Z) => Object.assign(
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
-
|
|
9475
|
+
const X = G.data.data.map((Z) => Object.assign(
|
|
9476
|
+
{
|
|
9477
|
+
value: Z.VALUE,
|
|
9478
|
+
label: Z.NAME
|
|
9479
|
+
},
|
|
9480
|
+
Z
|
|
9481
|
+
));
|
|
9248
9482
|
Q.itemRender.options = X;
|
|
9249
9483
|
}
|
|
9250
|
-
}), ["ElDateRangePicker", "ElDateTimeRangePicker"].includes(
|
|
9484
|
+
}), ["ElDateRangePicker", "ElDateTimeRangePicker"].includes(
|
|
9485
|
+
(H = Q == null ? void 0 : Q.itemRender) == null ? void 0 : H.name
|
|
9486
|
+
)) {
|
|
9251
9487
|
let G = Q.itemRender.props;
|
|
9252
9488
|
G.unlinkPanels = !0, G.disabledDate = (X) => {
|
|
9253
9489
|
let Z = /* @__PURE__ */ new Date();
|
|
@@ -9256,7 +9492,10 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
9256
9492
|
}
|
|
9257
9493
|
}), gridData.value.columns.forEach((Q) => {
|
|
9258
9494
|
Q.hasOwnProperty("field") && !Q.hasOwnProperty("treeNode") && (Q.events.change = onFieldChange, Q.events["on-change"] = onFieldChange, Q.events.keyup = onFieldEnter, Q.editRender.events = Q.events, Q.itemRender.events = Q.events), Q.itemRender && Q.itemRender.props._select_id && (formSelectMap.value[Q.id] = Q);
|
|
9259
|
-
}), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
|
|
9495
|
+
}), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
|
|
9496
|
+
body: { options: bodyMenus.value },
|
|
9497
|
+
visibleMethod
|
|
9498
|
+
}), searchData(), regionMap.value[gridData.value.params.code + "-" + preTag.value] = curRegion.value, regionMap.value[gridData.value.params.code] = curRegion.value, evalEvent(gridData.value.params.formEvents.regionInit), gridData.value.params.parentRegionId && addGridClickEvent(rowClickEmitFun), curRegion.value.closeModal = () => {
|
|
9260
9499
|
closeModal && closeModal();
|
|
9261
9500
|
}, curRegion.value.closePreModal = () => {
|
|
9262
9501
|
closePreModal && closePreModal();
|
|
@@ -9300,15 +9539,15 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
9300
9539
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(showButtons(ae), (le) => (openBlock(), createBlock(Z, {
|
|
9301
9540
|
key: le._button_id,
|
|
9302
9541
|
iconComponent: le.iconComponent,
|
|
9303
|
-
"auto-insert-space":
|
|
9542
|
+
"auto-insert-space": "",
|
|
9304
9543
|
size: "small",
|
|
9305
9544
|
style: normalizeStyle({ ...le.css, marginLeft: "0px", padding: "5px" }),
|
|
9306
9545
|
type: "primary",
|
|
9307
|
-
text:
|
|
9546
|
+
text: "",
|
|
9308
9547
|
onClick: (se) => toolBarButtonClick(le, oe, ae)
|
|
9309
9548
|
}, createSlots({
|
|
9310
9549
|
default: withCtx(() => [
|
|
9311
|
-
!le.iconComponent || typeof le.iconComponent > "u" ? (openBlock(), createElementBlock("span", _hoisted_6$1_, toDisplayString(le.name), 1)) : createCommentVNode("", !0)
|
|
9550
|
+
!le.iconComponent || typeof le.iconComponent > "u" ? (openBlock(), createElementBlock("span", _hoisted_6$1_, toDisplayString(unref($T)(le.name)), 1)) : createCommentVNode("", !0)
|
|
9312
9551
|
]),
|
|
9313
9552
|
_: 2
|
|
9314
9553
|
}, [
|
|
@@ -9316,7 +9555,7 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
9316
9555
|
name: "icon",
|
|
9317
9556
|
fn: withCtx(() => [
|
|
9318
9557
|
createVNode(X, {
|
|
9319
|
-
content: le.name,
|
|
9558
|
+
content: unref($T)(le.name),
|
|
9320
9559
|
placement: "top"
|
|
9321
9560
|
}, {
|
|
9322
9561
|
default: withCtx(() => [
|
|
@@ -9426,7 +9665,7 @@ const XEUtils$4 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils$1), windowGrid
|
|
|
9426
9665
|
]);
|
|
9427
9666
|
};
|
|
9428
9667
|
}
|
|
9429
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
9668
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-3c299fd2"]]);
|
|
9430
9669
|
WindowGrid.name = "slw-window-grid";
|
|
9431
9670
|
WindowGrid.install = (Q) => {
|
|
9432
9671
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -31736,7 +31975,11 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
31736
31975
|
type: Object
|
|
31737
31976
|
}
|
|
31738
31977
|
},
|
|
31739
|
-
emits: [
|
|
31978
|
+
emits: [
|
|
31979
|
+
"saveLoadingChange",
|
|
31980
|
+
"gridReload",
|
|
31981
|
+
"update:formConfig"
|
|
31982
|
+
],
|
|
31740
31983
|
setup(__props, { expose: __expose, emit: emits }) {
|
|
31741
31984
|
const props = __props, componentMapping = inject("$componentMapping");
|
|
31742
31985
|
let formConfig = useVModel(props, "formConfig", emits);
|
|
@@ -31787,8 +32030,13 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
31787
32030
|
let data = Object.assign({}, datax), result = !1;
|
|
31788
32031
|
try {
|
|
31789
32032
|
for (let Q in data)
|
|
31790
|
-
displayStr = displayStr.replace(
|
|
31791
|
-
|
|
32033
|
+
displayStr = displayStr.replace(
|
|
32034
|
+
new RegExp("@" + Q + "@", "gi"),
|
|
32035
|
+
typeof data[Q] == "string" ? "'" + data[Q] + "'" : data[Q]
|
|
32036
|
+
);
|
|
32037
|
+
result = eval(
|
|
32038
|
+
displayStr.replaceAll("this.$data.", "").replaceAll("this.", "")
|
|
32039
|
+
);
|
|
31792
32040
|
} catch (Q) {
|
|
31793
32041
|
result = !1;
|
|
31794
32042
|
}
|
|
@@ -31871,17 +32119,35 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
31871
32119
|
});
|
|
31872
32120
|
}, rowClickEmitFun = (Q, H) => {
|
|
31873
32121
|
formConfig.value.params.parentRegionId === H && (Q ? preTag.value === Q.preTag && (formConfig.value.params.parentRowId = Q.rowId, formConfig.value.params.parentRowIdValue = Q.rowIdValue) : (formConfig.value.params.parentRowId = null, formConfig.value.params.parentRowIdValue = null), searchData());
|
|
31874
|
-
}, displayLogicEvent = (Q) => displayLogic(Q.item.itemRender.props.displayLogic, {
|
|
32122
|
+
}, displayLogicEvent = (Q) => displayLogic(Q.item.itemRender.props.displayLogic, {
|
|
32123
|
+
...Q.data,
|
|
32124
|
+
...assembleParentData()
|
|
32125
|
+
}), form = ref(), submitData = (Q) => {
|
|
31875
32126
|
form.value.validate(async (H) => {
|
|
31876
32127
|
if (typeof H > "u") {
|
|
31877
|
-
let G = await evalEvent(
|
|
32128
|
+
let G = await evalEvent(
|
|
32129
|
+
formConfig.value.params.formEvents.beginSubmit,
|
|
32130
|
+
formData.value
|
|
32131
|
+
);
|
|
31878
32132
|
if (typeof G < "u" && G === !1) {
|
|
31879
32133
|
emits("saveLoadingChange");
|
|
31880
32134
|
return;
|
|
31881
32135
|
}
|
|
31882
32136
|
let X = "/window/submit";
|
|
31883
32137
|
formConfig.value.openType === "new" && formConfig.value.params.newRequestPath && (X = formConfig.value.params.newRequestPath), formConfig.value.openType === "edit" && formConfig.value.params.editRequestPath && (X = formConfig.value.params.editRequestPath), formConfig.value.openType === "submit" && formConfig.value.params.submitRequestPath && (X = formConfig.value.params.submitRequestPath), axios.post(X, formData.value).then((Z) => {
|
|
31884
|
-
emits("saveLoadingChange"), typeof Q < "u" && Q instanceof Object && (formConfig.value.showEdit = !Z.data.result, showPreViewClose()), $vxeMessage({
|
|
32138
|
+
emits("saveLoadingChange"), typeof Q < "u" && Q instanceof Object && (formConfig.value.showEdit = !Z.data.result, showPreViewClose()), $vxeMessage({
|
|
32139
|
+
content: Z.data.msg,
|
|
32140
|
+
status: Z.data.result ? "success" : "error",
|
|
32141
|
+
zIndex: 3e3
|
|
32142
|
+
}), Z.data.result && (evalEvent(
|
|
32143
|
+
formConfig.value.params.formEvents.afterSubmit,
|
|
32144
|
+
formData.value,
|
|
32145
|
+
Z.data
|
|
32146
|
+
), typeof Q < "u" && (Q instanceof Object || Q === !0) && emits(
|
|
32147
|
+
"gridReload",
|
|
32148
|
+
formData.value._region_id,
|
|
32149
|
+
formConfig.value.openType === "new" ? 0 : null
|
|
32150
|
+
)), nextTick(() => {
|
|
31885
32151
|
formDataClone.value = XEUtils$1.clone(toRaw(formData.value), !0);
|
|
31886
32152
|
});
|
|
31887
32153
|
}).catch((Z) => {
|
|
@@ -31954,7 +32220,11 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
31954
32220
|
if (K.data.result && K.data.data)
|
|
31955
32221
|
for (let ee in K.data.data) {
|
|
31956
32222
|
let te = K.data.data[ee];
|
|
31957
|
-
Q[ee] = evalDefaultValue(te, {
|
|
32223
|
+
Q[ee] = evalDefaultValue(te, {
|
|
32224
|
+
...Q,
|
|
32225
|
+
...X,
|
|
32226
|
+
...Z
|
|
32227
|
+
});
|
|
31958
32228
|
}
|
|
31959
32229
|
});
|
|
31960
32230
|
}
|
|
@@ -31962,45 +32232,70 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
31962
32232
|
let Z = formSelectMap.value[X];
|
|
31963
32233
|
if (Z.displayForm) {
|
|
31964
32234
|
if (Z.dataType === "TREE")
|
|
31965
|
-
await axios.post(
|
|
31966
|
-
|
|
31967
|
-
|
|
31968
|
-
|
|
31969
|
-
|
|
32235
|
+
await axios.post(
|
|
32236
|
+
"/window/selector",
|
|
32237
|
+
$qs.stringify({
|
|
32238
|
+
...Q,
|
|
32239
|
+
_field_id: Z.id,
|
|
32240
|
+
_select_id: Z.selectorId
|
|
32241
|
+
})
|
|
32242
|
+
).then((K) => {
|
|
31970
32243
|
K.data.result && K.data.data && (Z.itemRender.props.treeData = K.data.data);
|
|
31971
32244
|
});
|
|
31972
32245
|
else if (Z.remoteSearch) {
|
|
31973
32246
|
Z.itemRender.options = [], Z.itemRender.props.remoteMethod = async (ee) => {
|
|
31974
|
-
ee && (Z.itemRender.props.loading = !0, Z.itemRender.options = await remoteMethod(
|
|
32247
|
+
ee && (Z.itemRender.props.loading = !0, Z.itemRender.options = await remoteMethod(
|
|
32248
|
+
ee,
|
|
32249
|
+
Z.id,
|
|
32250
|
+
Z.selectorId
|
|
32251
|
+
), Z.itemRender.props.loading = !1);
|
|
31975
32252
|
};
|
|
31976
32253
|
let K = Q["_" + Z.field + "_NAME"];
|
|
31977
32254
|
if (Q[Z.field] && K) {
|
|
31978
|
-
Z.itemRender.options = await remoteMethod(
|
|
32255
|
+
Z.itemRender.options = await remoteMethod(
|
|
32256
|
+
K,
|
|
32257
|
+
Z.id,
|
|
32258
|
+
Z.selectorId
|
|
32259
|
+
);
|
|
31979
32260
|
let ee = Z.itemRender.options;
|
|
31980
32261
|
formConfig.value.openType === "new" && Z.visible && !Q[Z.field] && ee.length > 0 && (Q[Z.field] = ee[0].VALUE);
|
|
31981
32262
|
} else
|
|
31982
|
-
Q[Z.field] && !K && await axios.post(
|
|
31983
|
-
|
|
31984
|
-
|
|
31985
|
-
|
|
31986
|
-
|
|
31987
|
-
|
|
31988
|
-
|
|
31989
|
-
|
|
31990
|
-
|
|
31991
|
-
|
|
32263
|
+
Q[Z.field] && !K && await axios.post(
|
|
32264
|
+
"/window/selector",
|
|
32265
|
+
$qs.stringify({
|
|
32266
|
+
$_value: Q[Z.field],
|
|
32267
|
+
_region_id: formConfig.value.params._region_id,
|
|
32268
|
+
_field_id: Z.id,
|
|
32269
|
+
_select_id: Z.selectorId
|
|
32270
|
+
})
|
|
32271
|
+
).then((ee) => {
|
|
32272
|
+
ee.data.result && ee.data.data && (Z.itemRender.options = ee.data.data.map(
|
|
32273
|
+
(te) => Object.assign(
|
|
32274
|
+
{
|
|
32275
|
+
value: te.VALUE,
|
|
32276
|
+
label: te.NAME
|
|
32277
|
+
},
|
|
32278
|
+
te
|
|
32279
|
+
)
|
|
32280
|
+
));
|
|
31992
32281
|
});
|
|
31993
32282
|
} else if (typeof Z.selectorId < "u")
|
|
31994
|
-
Z.itemRender.props.loading = !0, await axios.post(
|
|
31995
|
-
|
|
31996
|
-
|
|
31997
|
-
|
|
31998
|
-
|
|
32283
|
+
Z.itemRender.props.loading = !0, await axios.post(
|
|
32284
|
+
"/window/selector",
|
|
32285
|
+
$qs.stringify({
|
|
32286
|
+
...Q,
|
|
32287
|
+
_field_id: Z.id,
|
|
32288
|
+
_select_id: Z.selectorId
|
|
32289
|
+
})
|
|
32290
|
+
).then((K) => {
|
|
31999
32291
|
if (K.data.result && K.data.data) {
|
|
32000
|
-
if (Z.itemRender.options = K.data.data.map((ee) => Object.assign(
|
|
32001
|
-
|
|
32002
|
-
|
|
32003
|
-
|
|
32292
|
+
if (Z.itemRender.options = K.data.data.map((ee) => Object.assign(
|
|
32293
|
+
{
|
|
32294
|
+
value: ee.VALUE,
|
|
32295
|
+
label: ee.NAME
|
|
32296
|
+
},
|
|
32297
|
+
ee
|
|
32298
|
+
)), formConfig.value.openType === "new" && Z.visible && !Q[Z.field] && K.data.data.length > 0) {
|
|
32004
32299
|
Q[Z.field] = K.data.data[0].VALUE;
|
|
32005
32300
|
let ee = {
|
|
32006
32301
|
data: Q,
|
|
@@ -32025,22 +32320,31 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
32025
32320
|
}
|
|
32026
32321
|
readonlyLogic();
|
|
32027
32322
|
}, remoteMethod = async (Q, H, G) => {
|
|
32028
|
-
let X = [], Z = await axios.post(
|
|
32029
|
-
|
|
32030
|
-
|
|
32031
|
-
|
|
32032
|
-
|
|
32033
|
-
|
|
32323
|
+
let X = [], Z = await axios.post(
|
|
32324
|
+
"/window/selector",
|
|
32325
|
+
$qs.stringify({
|
|
32326
|
+
$_f_value: Q,
|
|
32327
|
+
_region_id: formConfig.value.params._region_id,
|
|
32328
|
+
_field_id: H,
|
|
32329
|
+
_select_id: G
|
|
32330
|
+
})
|
|
32331
|
+
);
|
|
32034
32332
|
if (Z.data.result && Z.data.data)
|
|
32035
|
-
return X = Z.data.data.map((K) => Object.assign(
|
|
32036
|
-
|
|
32037
|
-
|
|
32038
|
-
|
|
32333
|
+
return X = Z.data.data.map((K) => Object.assign(
|
|
32334
|
+
{
|
|
32335
|
+
value: K.VALUE,
|
|
32336
|
+
label: K.NAME
|
|
32337
|
+
},
|
|
32338
|
+
K
|
|
32339
|
+
)), X;
|
|
32039
32340
|
}, readonlyLogic = () => {
|
|
32040
32341
|
if (Object.keys(readOnlyColumnMap.value).length > 0) {
|
|
32041
32342
|
let Q = Object.keys(readOnlyColumnMap.value);
|
|
32042
32343
|
for (let H = 0; H < Q.length; H++) {
|
|
32043
|
-
let G = readOnlyColumnMap.value[Q[H]], X = Object.assign({}, formData.value), Z = displayLogic(G.itemRender.props.readonlyLogic, {
|
|
32344
|
+
let G = readOnlyColumnMap.value[Q[H]], X = Object.assign({}, formData.value), Z = displayLogic(G.itemRender.props.readonlyLogic, {
|
|
32345
|
+
...X,
|
|
32346
|
+
...assembleParentData()
|
|
32347
|
+
});
|
|
32044
32348
|
G.itemRender.props.readonly = Z, (G.dataType === "LIST" || G.dataType === "TABLE" || G.dataType === "TREE" || G.dataType === "BOOL") && (G.itemRender.props.disabled = Z);
|
|
32045
32349
|
}
|
|
32046
32350
|
}
|
|
@@ -32050,7 +32354,10 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
32050
32354
|
if (Q.item.itemRender.props.dataType === "TREE" && Q.item.itemRender.name === "ATreeSelect") {
|
|
32051
32355
|
if (Q.item.itemRender.props.treeData) {
|
|
32052
32356
|
let Z = Q.item.itemRender.props.treeData;
|
|
32053
|
-
G = Object.assign(
|
|
32357
|
+
G = Object.assign(
|
|
32358
|
+
{},
|
|
32359
|
+
getSelectedTreeDataOptionByValue(Z, H)
|
|
32360
|
+
), G.label = G.title;
|
|
32054
32361
|
}
|
|
32055
32362
|
} else if (formSelectMap.value[Q.item.itemRender.props._field_id].itemRender.options) {
|
|
32056
32363
|
let Z = formSelectMap.value[Q.item.itemRender.props._field_id].itemRender.options;
|
|
@@ -32066,15 +32373,21 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
32066
32373
|
evalEvent(Q.item.itemRender.props.changeFunction, H, G), readonlyLogic();
|
|
32067
32374
|
let X = formConfig.value;
|
|
32068
32375
|
X.params.selectTableField[Q.property] && X.params.selectTableField[Q.property].forEach((K) => {
|
|
32069
|
-
axios.post(
|
|
32070
|
-
|
|
32071
|
-
|
|
32072
|
-
|
|
32073
|
-
|
|
32074
|
-
|
|
32075
|
-
|
|
32076
|
-
|
|
32077
|
-
|
|
32376
|
+
axios.post(
|
|
32377
|
+
"/window/selector",
|
|
32378
|
+
$qs.stringify({
|
|
32379
|
+
...formData.value,
|
|
32380
|
+
_field_id: K._field_id,
|
|
32381
|
+
_select_id: K._select_id
|
|
32382
|
+
})
|
|
32383
|
+
).then((ee) => {
|
|
32384
|
+
ee.data.result && ee.data.data && (formSelectMap.value[K._field_id].dataType === "TREE" ? formSelectMap.value[K._field_id].itemRender.props.treeData = ee.data.data : (formSelectMap.value[K._field_id].itemRender.options = ee.data.data.map((te) => Object.assign(
|
|
32385
|
+
{
|
|
32386
|
+
value: te.VALUE,
|
|
32387
|
+
label: te.NAME
|
|
32388
|
+
},
|
|
32389
|
+
te
|
|
32390
|
+
)), formData.value[formSelectMap.value[K._field_id].field] = null));
|
|
32078
32391
|
});
|
|
32079
32392
|
}), subQueryFields.value.forEach((Z) => {
|
|
32080
32393
|
getSubQueryData(Q.data._region_id, Z.id, Z.field);
|
|
@@ -32095,20 +32408,28 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
32095
32408
|
let G = Object.assign({}, formData.value);
|
|
32096
32409
|
G.$_f_value = H;
|
|
32097
32410
|
let X = Q.item.itemRender.props._field_id, Z = Q.item.itemRender.props._select_id;
|
|
32098
|
-
axios.post(
|
|
32099
|
-
|
|
32100
|
-
|
|
32101
|
-
|
|
32102
|
-
|
|
32411
|
+
axios.post(
|
|
32412
|
+
"/window/selector",
|
|
32413
|
+
$qs.stringify({
|
|
32414
|
+
...G,
|
|
32415
|
+
_field_id: X,
|
|
32416
|
+
_select_id: Z
|
|
32417
|
+
})
|
|
32418
|
+
).then((K) => {
|
|
32103
32419
|
if (K.data.result && K.data.data) {
|
|
32104
|
-
let ee = Object.assign(
|
|
32420
|
+
let ee = Object.assign(
|
|
32421
|
+
[],
|
|
32422
|
+
formSelectMap.value[X].itemRender.options
|
|
32423
|
+
), te = {};
|
|
32105
32424
|
ee.forEach((ne) => {
|
|
32106
32425
|
te[ne.value] = ne;
|
|
32107
32426
|
}), K.data.data.map((ne) => {
|
|
32108
|
-
te[ne.VALUE] || ee.push(
|
|
32109
|
-
|
|
32110
|
-
|
|
32111
|
-
|
|
32427
|
+
te[ne.VALUE] || ee.push(
|
|
32428
|
+
Object.assign({
|
|
32429
|
+
value: ne.VALUE,
|
|
32430
|
+
label: ne.NAME
|
|
32431
|
+
})
|
|
32432
|
+
);
|
|
32112
32433
|
}), formSelectMap.value[X].itemRender.options = ee;
|
|
32113
32434
|
}
|
|
32114
32435
|
});
|
|
@@ -32152,7 +32473,9 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
32152
32473
|
}
|
|
32153
32474
|
return G;
|
|
32154
32475
|
}, computeNewLine = (Q) => {
|
|
32155
|
-
let H = Q.columns.filter(
|
|
32476
|
+
let H = Q.columns.filter(
|
|
32477
|
+
(G) => G.type !== "seq" && G.type !== "checkbox" && G.fixed !== "left"
|
|
32478
|
+
);
|
|
32156
32479
|
for (let [G, X] of H.entries())
|
|
32157
32480
|
if (X.visible && X.displayForm) {
|
|
32158
32481
|
X.width = X.width ? X.width : 12;
|
|
@@ -32165,7 +32488,7 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
32165
32488
|
return __expose({ submitData, validateDataChg, getValue, getRegion, getData }), (Q, H) => {
|
|
32166
32489
|
const G = resolveComponent("vxe-form-item"), X = resolveComponent("el-icon"), Z = resolveComponent("el-button"), K = resolveComponent("vxe-form");
|
|
32167
32490
|
return openBlock(), createElementBlock("div", _hoisted_1$kV, [
|
|
32168
|
-
unref(formConfig).params.showTitle && unref(formConfig).type === "FORM" ? (openBlock(), createElementBlock("div", _hoisted_2$kR, toDisplayString(unref(formConfig).params.windowTitle), 1)) : createCommentVNode("", !0),
|
|
32491
|
+
unref(formConfig).params.showTitle && unref(formConfig).type === "FORM" ? (openBlock(), createElementBlock("div", _hoisted_2$kR, toDisplayString(unref($T)(unref(formConfig).params.windowTitle)), 1)) : createCommentVNode("", !0),
|
|
32169
32492
|
createVNode(K, {
|
|
32170
32493
|
ref_key: "form",
|
|
32171
32494
|
ref: form,
|
|
@@ -32183,7 +32506,7 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
32183
32506
|
ee.colType !== "showInGrid" ? (openBlock(), createBlock(G, {
|
|
32184
32507
|
key: 0,
|
|
32185
32508
|
field: ee.field,
|
|
32186
|
-
title: ee.title,
|
|
32509
|
+
title: unref($T)(ee.title),
|
|
32187
32510
|
"title-overflow": "tooltip",
|
|
32188
32511
|
span: computeSpan.value(ee),
|
|
32189
32512
|
"item-render": ee.itemRender,
|
|
@@ -32201,7 +32524,10 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
32201
32524
|
ref: localEditor,
|
|
32202
32525
|
modelValue: unref(formData)[ee.field],
|
|
32203
32526
|
"onUpdate:modelValue": (te) => unref(formData)[ee.field] = te,
|
|
32204
|
-
extensions: [
|
|
32527
|
+
extensions: [
|
|
32528
|
+
getCodeLanguagePlugin(ee.language),
|
|
32529
|
+
unref(EditorView).lineWrapping
|
|
32530
|
+
],
|
|
32205
32531
|
"auto-destroy": ""
|
|
32206
32532
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "extensions"])
|
|
32207
32533
|
]),
|
|
@@ -32211,9 +32537,12 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
32211
32537
|
name: "title",
|
|
32212
32538
|
fn: withCtx(() => [
|
|
32213
32539
|
createElementVNode("a", {
|
|
32214
|
-
onClick: (te) => linkToMenu({
|
|
32540
|
+
onClick: (te) => linkToMenu({
|
|
32541
|
+
type: ee.title === unref($T)("数据源") ? "dataSource" : "selector",
|
|
32542
|
+
params: { name: unref(formData)["_" + ee.field + "_NAME"] }
|
|
32543
|
+
}),
|
|
32215
32544
|
href: "javascript: void(0)"
|
|
32216
|
-
}, toDisplayString(ee.title), 9, _hoisted_3$hS)
|
|
32545
|
+
}, toDisplayString(unref($T)(ee.title)), 9, _hoisted_3$hS)
|
|
32217
32546
|
]),
|
|
32218
32547
|
key: "1"
|
|
32219
32548
|
} : void 0
|
|
@@ -32227,14 +32556,14 @@ const XEUtils$1 = /* @__PURE__ */ getDefaultExportFromCjs(xeUtils), windowForm_v
|
|
|
32227
32556
|
default: withCtx(() => [
|
|
32228
32557
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(buttons.value, (ee) => (openBlock(), createBlock(Z, {
|
|
32229
32558
|
key: ee.id,
|
|
32230
|
-
"auto-insert-space":
|
|
32559
|
+
"auto-insert-space": "",
|
|
32231
32560
|
style: normalizeStyle("margin: 2px 2px 2px 2px;" + ee.css),
|
|
32232
32561
|
type: "primary",
|
|
32233
32562
|
loading: ee.loading,
|
|
32234
32563
|
onClick: (te) => btnClickFun(ee)
|
|
32235
32564
|
}, createSlots({
|
|
32236
32565
|
default: withCtx(() => [
|
|
32237
|
-
createTextVNode(" " + toDisplayString(ee.name), 1)
|
|
32566
|
+
createTextVNode(" " + toDisplayString(unref($T)(ee.name)), 1)
|
|
32238
32567
|
]),
|
|
32239
32568
|
_: 2
|
|
32240
32569
|
}, [
|
|
@@ -32604,7 +32933,7 @@ function P$1(Q, H, G, X, Z, K) {
|
|
|
32604
32933
|
renderSlot(Q.$slots, "default")
|
|
32605
32934
|
], 4);
|
|
32606
32935
|
}
|
|
32607
|
-
const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "",
|
|
32936
|
+
const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", windowLayout_vue_vue_type_style_index_0_scoped_773858d3_lang = "", _withScopeId$1 = (Q) => (pushScopeId("data-v-773858d3"), Q = Q(), popScopeId(), Q), _hoisted_1$kU = { class: "slw-window-layout-container" }, _sfc_main$4 = {
|
|
32608
32937
|
__name: "window-layout",
|
|
32609
32938
|
props: {
|
|
32610
32939
|
layoutData: {
|
|
@@ -32667,9 +32996,9 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
|
|
|
32667
32996
|
default: withCtx(() => [
|
|
32668
32997
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(pe.child, (me, _e) => (openBlock(), createBlock(he, {
|
|
32669
32998
|
key: me.id,
|
|
32670
|
-
tab: me.name,
|
|
32671
|
-
label: me.name,
|
|
32672
|
-
title: me.name,
|
|
32999
|
+
tab: se.$T(me.name),
|
|
33000
|
+
label: se.$T(me.name),
|
|
33001
|
+
title: se.$T(me.name),
|
|
32673
33002
|
forceRender: !0
|
|
32674
33003
|
}, {
|
|
32675
33004
|
default: withCtx(() => [
|
|
@@ -32701,9 +33030,9 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
|
|
|
32701
33030
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(K).child, (pe, fe) => (openBlock(), createBlock(he, {
|
|
32702
33031
|
forceRender: !0,
|
|
32703
33032
|
key: pe.id,
|
|
32704
|
-
tab: pe.name,
|
|
32705
|
-
label: pe.name,
|
|
32706
|
-
title: pe.name
|
|
33033
|
+
tab: se.$T(pe.name),
|
|
33034
|
+
label: se.$T(pe.name),
|
|
33035
|
+
title: se.$T(pe.name)
|
|
32707
33036
|
}, {
|
|
32708
33037
|
default: withCtx(() => [
|
|
32709
33038
|
createVNode(ue, {
|
|
@@ -32740,7 +33069,7 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
|
|
|
32740
33069
|
]);
|
|
32741
33070
|
};
|
|
32742
33071
|
}
|
|
32743
|
-
}, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
33072
|
+
}, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-773858d3"]]);
|
|
32744
33073
|
WindowLayout.name = "slw-window-layout";
|
|
32745
33074
|
WindowLayout.install = (Q) => {
|
|
32746
33075
|
Q.component(WindowLayout.name, WindowLayout);
|
|
@@ -32759,30 +33088,34 @@ const _hoisted_1$kT = ["src"], _sfc_main$3 = {
|
|
|
32759
33088
|
},
|
|
32760
33089
|
emits: ["close"],
|
|
32761
33090
|
setup(Q, { emit: H }) {
|
|
32762
|
-
const G = Q, X = inject("$componentMapping"), Z = inject("$base64Encode"), K = inject("$base64Decode");
|
|
32763
|
-
let
|
|
32764
|
-
const
|
|
32765
|
-
|
|
33091
|
+
const G = Q, X = inject("$componentMapping"), Z = inject("$base64Encode"), K = inject("$base64Decode"), ee = inject("$t");
|
|
33092
|
+
let te = ref(!1), ne = shallowRef(), re = ref(!1), oe = ref(1e3), ae = ref({}), le = ref(500), se = ref(400), ce = ref();
|
|
33093
|
+
const ue = inject("$components"), he = inject("$componentsPath"), de = () => {
|
|
33094
|
+
te.value = !1;
|
|
32766
33095
|
};
|
|
32767
|
-
watch(
|
|
32768
|
-
|
|
32769
|
-
|
|
32770
|
-
|
|
33096
|
+
watch(
|
|
33097
|
+
() => G.actionData,
|
|
33098
|
+
async (fe) => {
|
|
33099
|
+
fe.type === "show" ? (te.value = !0, fe.params && typeof fe.params.width < "u" && (le.value = fe.params.width), fe.params && typeof fe.params.height < "u" && (se.value = fe.params.height), fe.params && typeof fe.params.fullscreen < "u" && (re.value = fe.params.fullscreen), fe.params && typeof fe.params.zIndex < "u" && (oe.value = fe.params.zIndex), ae.value = XEUtils$1.clone(toRaw(fe.params), !0), fe.showComponent && (ne.value = (await ue[`${he}/${fe.showComponent}`]()).default)) : te.value = !1;
|
|
33100
|
+
},
|
|
33101
|
+
{ deep: !0 }
|
|
33102
|
+
);
|
|
33103
|
+
function pe() {
|
|
32771
33104
|
H("close");
|
|
32772
33105
|
}
|
|
32773
|
-
return (
|
|
32774
|
-
const
|
|
32775
|
-
return openBlock(), createBlock(
|
|
33106
|
+
return (fe, me) => {
|
|
33107
|
+
const _e = resolveComponent("el-dialog");
|
|
33108
|
+
return openBlock(), createBlock(_e, {
|
|
32776
33109
|
ref_key: "selfModal",
|
|
32777
|
-
ref:
|
|
32778
|
-
width: unref(
|
|
32779
|
-
height: unref(
|
|
32780
|
-
modelValue: unref(
|
|
32781
|
-
"onUpdate:modelValue":
|
|
32782
|
-
visible: unref(
|
|
32783
|
-
"onUpdate:visible":
|
|
32784
|
-
fullscreen: unref(
|
|
32785
|
-
"z-index": unref(
|
|
33110
|
+
ref: ce,
|
|
33111
|
+
width: unref(le),
|
|
33112
|
+
height: unref(se),
|
|
33113
|
+
modelValue: unref(te),
|
|
33114
|
+
"onUpdate:modelValue": me[0] || (me[0] = (ve) => isRef(te) ? te.value = ve : te = ve),
|
|
33115
|
+
visible: unref(te),
|
|
33116
|
+
"onUpdate:visible": me[1] || (me[1] = (ve) => isRef(te) ? te.value = ve : te = ve),
|
|
33117
|
+
fullscreen: unref(re),
|
|
33118
|
+
"z-index": unref(oe),
|
|
32786
33119
|
draggable: "",
|
|
32787
33120
|
footer: null,
|
|
32788
33121
|
"append-to-body": "",
|
|
@@ -32790,9 +33123,9 @@ const _hoisted_1$kT = ["src"], _sfc_main$3 = {
|
|
|
32790
33123
|
resize: "",
|
|
32791
33124
|
"close-on-press-escape": "",
|
|
32792
33125
|
"destroy-on-close": "",
|
|
32793
|
-
onShow:
|
|
32794
|
-
title: Q.title,
|
|
32795
|
-
onClosed:
|
|
33126
|
+
onShow: me[2] || (me[2] = (ve) => unref(re) ? unref(ce).maximize() : null),
|
|
33127
|
+
title: unref(ee)(Q.title),
|
|
33128
|
+
onClosed: pe
|
|
32796
33129
|
}, {
|
|
32797
33130
|
default: withCtx(() => [
|
|
32798
33131
|
Q.actionData.showComponent && Q.actionData.showComponent.indexOf("http") !== -1 ? (openBlock(), createElementBlock("iframe", {
|
|
@@ -32803,10 +33136,10 @@ const _hoisted_1$kT = ["src"], _sfc_main$3 = {
|
|
|
32803
33136
|
height: "100%",
|
|
32804
33137
|
scrolling: "auto",
|
|
32805
33138
|
style: { "background-color": "#fff" }
|
|
32806
|
-
}, null, 8, _hoisted_1$kT)) : (openBlock(), createBlock(resolveDynamicComponent(unref(
|
|
33139
|
+
}, null, 8, _hoisted_1$kT)) : (openBlock(), createBlock(resolveDynamicComponent(unref(ne)), {
|
|
32807
33140
|
key: 1,
|
|
32808
|
-
componentData: unref(
|
|
32809
|
-
onClose:
|
|
33141
|
+
componentData: unref(ae),
|
|
33142
|
+
onClose: de
|
|
32810
33143
|
}, null, 40, ["componentData"]))
|
|
32811
33144
|
]),
|
|
32812
33145
|
_: 1
|
|
@@ -32831,23 +33164,27 @@ const _hoisted_1$kS = ["src"], _sfc_main$2 = {
|
|
|
32831
33164
|
}
|
|
32832
33165
|
},
|
|
32833
33166
|
setup(Q) {
|
|
32834
|
-
const H = Q, G = inject("$componentMapping"), X = inject("$components"), Z = inject("$componentsPath");
|
|
32835
|
-
let
|
|
32836
|
-
const
|
|
32837
|
-
return watch(
|
|
32838
|
-
|
|
32839
|
-
|
|
32840
|
-
|
|
32841
|
-
|
|
33167
|
+
const H = Q, G = inject("$componentMapping"), X = inject("$components"), Z = inject("$componentsPath"), K = inject("$t");
|
|
33168
|
+
let ee = ref(!1), te = ref(""), ne = ref(!1), re = ref({}), oe = ref(500), ae = ref(400);
|
|
33169
|
+
const le = ref();
|
|
33170
|
+
return watch(
|
|
33171
|
+
() => H.actionData,
|
|
33172
|
+
async (se) => {
|
|
33173
|
+
se.type === "show" ? (ee.value = !0, se.params && typeof se.params.width < "u" && (oe.value = se.params.width), se.params && typeof se.params.height < "u" && (ae.value = se.params.height), se.params && typeof se.params.fullscreen < "u" && (ne.value = se.params.fullscreen), re.value = XEUtils$1.clone(toRaw(se.params), !0), se.showComponent && (te.value = (await X[`${Z}/${se.showComponent}`]()).default)) : ee.value = !1;
|
|
33174
|
+
},
|
|
33175
|
+
{ deep: !0 }
|
|
33176
|
+
), (se, ce) => {
|
|
33177
|
+
const ue = resolveComponent("el-dialog");
|
|
33178
|
+
return openBlock(), createBlock(ue, {
|
|
32842
33179
|
ref_key: "selfModal",
|
|
32843
|
-
ref:
|
|
32844
|
-
width: unref(
|
|
32845
|
-
height: unref(
|
|
32846
|
-
modelValue: unref(
|
|
32847
|
-
"onUpdate:modelValue":
|
|
32848
|
-
visible: unref(
|
|
32849
|
-
"onUpdate:visible":
|
|
32850
|
-
fullscreen: unref(
|
|
33180
|
+
ref: le,
|
|
33181
|
+
width: unref(oe),
|
|
33182
|
+
height: unref(ae),
|
|
33183
|
+
modelValue: unref(ee),
|
|
33184
|
+
"onUpdate:modelValue": ce[0] || (ce[0] = (he) => isRef(ee) ? ee.value = he : ee = he),
|
|
33185
|
+
visible: unref(ee),
|
|
33186
|
+
"onUpdate:visible": ce[1] || (ce[1] = (he) => isRef(ee) ? ee.value = he : ee = he),
|
|
33187
|
+
fullscreen: unref(ne),
|
|
32851
33188
|
zIndex: 1e3,
|
|
32852
33189
|
draggable: "",
|
|
32853
33190
|
footer: null,
|
|
@@ -32857,8 +33194,8 @@ const _hoisted_1$kS = ["src"], _sfc_main$2 = {
|
|
|
32857
33194
|
"esc-closable": "",
|
|
32858
33195
|
"destroy-on-close": "",
|
|
32859
33196
|
destroyOnClose: "",
|
|
32860
|
-
onShow:
|
|
32861
|
-
title: Q.title
|
|
33197
|
+
onShow: ce[2] || (ce[2] = (he) => unref(ne) ? le.value.maximize() : null),
|
|
33198
|
+
title: unref(K)(Q.title)
|
|
32862
33199
|
}, {
|
|
32863
33200
|
default: withCtx(() => [
|
|
32864
33201
|
Q.actionData.showComponent && Q.actionData.showComponent.indexOf("http") !== -1 ? (openBlock(), createElementBlock("iframe", {
|
|
@@ -32869,9 +33206,9 @@ const _hoisted_1$kS = ["src"], _sfc_main$2 = {
|
|
|
32869
33206
|
height: "100%",
|
|
32870
33207
|
scrolling: "auto",
|
|
32871
33208
|
style: { "background-color": "#fff" }
|
|
32872
|
-
}, null, 8, _hoisted_1$kS)) : (openBlock(), createBlock(resolveDynamicComponent(unref(
|
|
33209
|
+
}, null, 8, _hoisted_1$kS)) : (openBlock(), createBlock(resolveDynamicComponent(unref(te)), {
|
|
32873
33210
|
key: 1,
|
|
32874
|
-
componentData: unref(
|
|
33211
|
+
componentData: unref(re)
|
|
32875
33212
|
}, null, 8, ["componentData"]))
|
|
32876
33213
|
]),
|
|
32877
33214
|
_: 1
|
|
@@ -32883,7 +33220,7 @@ _sfc_main$2.name = "slw-preview-modal";
|
|
|
32883
33220
|
_sfc_main$2.install = (Q) => {
|
|
32884
33221
|
Q.component(_sfc_main$2.name, _sfc_main$2);
|
|
32885
33222
|
};
|
|
32886
|
-
const
|
|
33223
|
+
const windowIndex_vue_vue_type_style_index_0_scoped_0132f153_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-0132f153"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
|
|
32887
33224
|
__name: "window-index",
|
|
32888
33225
|
props: {
|
|
32889
33226
|
windowId: {
|
|
@@ -32897,11 +33234,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_24964901_lang = "", _withSco
|
|
|
32897
33234
|
type: Object
|
|
32898
33235
|
}
|
|
32899
33236
|
},
|
|
32900
|
-
emits: [
|
|
32901
|
-
"update:queryParams",
|
|
32902
|
-
"on-load-success",
|
|
32903
|
-
"close"
|
|
32904
|
-
],
|
|
33237
|
+
emits: ["update:queryParams", "on-load-success", "close"],
|
|
32905
33238
|
setup(__props, { emit }) {
|
|
32906
33239
|
const props = __props, componentMapping = inject("$componentMapping");
|
|
32907
33240
|
let queryParams = useVModel(props, "queryParams", emit);
|
|
@@ -32977,9 +33310,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_24964901_lang = "", _withSco
|
|
|
32977
33310
|
}, getInitData = async (Q) => {
|
|
32978
33311
|
let G = (await axios.post("/window/init", { id: Q })).data;
|
|
32979
33312
|
if (G.result) {
|
|
32980
|
-
let X = JSON.parse($crypto.decrypt(G.info));
|
|
32981
|
-
console.log(X);
|
|
32982
|
-
let Z = {}, K = layoutHeight.value - 100;
|
|
33313
|
+
let X = JSON.parse($crypto.decrypt(G.info)), Z = {}, K = layoutHeight.value - 100;
|
|
32983
33314
|
if (X) {
|
|
32984
33315
|
X.regions.map((ne) => {
|
|
32985
33316
|
if (ne.addFollowMain && ne.parentRegionId && regionIdRegionMap.value[ne.parentRegionId]) {
|
|
@@ -33194,7 +33525,10 @@ const windowIndex_vue_vue_type_style_index_0_scoped_24964901_lang = "", _withSco
|
|
|
33194
33525
|
childRegionCode: Z.childRegionCode
|
|
33195
33526
|
}, Z.linkUrl && $components && $componentsPath) {
|
|
33196
33527
|
let ae = `${$componentsPath}/${Z.linkUrl}`, le = await $components[ae]();
|
|
33197
|
-
X.params.linkComponentView = le.default, console.info(
|
|
33528
|
+
X.params.linkComponentView = le.default, console.info(
|
|
33529
|
+
X.params.linkComponentView,
|
|
33530
|
+
"gridData.params.linkComponentView"
|
|
33531
|
+
);
|
|
33198
33532
|
}
|
|
33199
33533
|
queryParams.value && (X.params.queryParams = Object.assign({}, queryParams.value), X.params.parentData = Object.assign({}, queryParams.value)), [void 0, null].includes(Z.pageSize) || (Z.pageSize === 0 && (X.pagerConfig.enabled = !1), X.pagerConfig.pageSize = Z.pageSize), X.type === "EDIT_GRID" && (X.editConfig.trigger = "click", X.editConfig.mode = "cell", X.editConfig.enabled = !0, X.toolbarConfig.refresh = !1);
|
|
33200
33534
|
let K = Z.querys;
|
|
@@ -33638,7 +33972,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_24964901_lang = "", _withSco
|
|
|
33638
33972
|
evalEvent(preViewSubmitFun.value);
|
|
33639
33973
|
}, openModal = (Q, H, G) => {
|
|
33640
33974
|
componentModalTitle.value = Q;
|
|
33641
|
-
let X = XEUtils$
|
|
33975
|
+
let X = XEUtils$4.clone(G, !0);
|
|
33642
33976
|
componentModalData.value = {
|
|
33643
33977
|
type: "show",
|
|
33644
33978
|
showComponent: H,
|
|
@@ -33737,14 +34071,14 @@ const windowIndex_vue_vue_type_style_index_0_scoped_24964901_lang = "", _withSco
|
|
|
33737
34071
|
header: withCtx(() => [
|
|
33738
34072
|
createVNode(ne, null, {
|
|
33739
34073
|
default: withCtx(() => [
|
|
33740
|
-
createElementVNode("span", null, toDisplayString(unref(formConfig).windowTitle), 1),
|
|
34074
|
+
createElementVNode("span", null, toDisplayString(unref($T)(unref(formConfig).windowTitle)), 1),
|
|
33741
34075
|
unref(formConfig).openType === "edit" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
33742
34076
|
createVNode(G, {
|
|
33743
34077
|
modelValue: unref(isAutoSave),
|
|
33744
34078
|
"onUpdate:modelValue": H[1] || (H[1] = (he) => isRef(isAutoSave) ? isAutoSave.value = he : isAutoSave = he),
|
|
33745
34079
|
style: { "margin-left": "30px" },
|
|
33746
|
-
label: "自动保存"
|
|
33747
|
-
}, null, 8, ["modelValue"]),
|
|
34080
|
+
label: unref($T)("自动保存")
|
|
34081
|
+
}, null, 8, ["modelValue", "label"]),
|
|
33748
34082
|
createVNode(te, null, {
|
|
33749
34083
|
default: withCtx(() => [
|
|
33750
34084
|
createVNode(K, {
|
|
@@ -33816,15 +34150,15 @@ const windowIndex_vue_vue_type_style_index_0_scoped_24964901_lang = "", _withSco
|
|
|
33816
34150
|
onGridReload: H[5] || (H[5] = () => unref(formConfig)._reload())
|
|
33817
34151
|
}, null, 8, ["form-config"])),
|
|
33818
34152
|
unref(formConfig).params.addChildData && unref(formConfig).childForm ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
33819
|
-
_hoisted_2$kQ,
|
|
34153
|
+
createElementVNode("p", _hoisted_2$kQ, toDisplayString(unref($T)("[新增] 关联子表数据")), 1),
|
|
33820
34154
|
createVNode(oe, { class: "child-tab" }, {
|
|
33821
34155
|
default: withCtx(() => [
|
|
33822
34156
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(Object.values(unref(formConfig).childForm), (he, de) => (openBlock(), createBlock(re, {
|
|
33823
34157
|
class: "child-tab-pane",
|
|
33824
34158
|
key: he.id,
|
|
33825
|
-
tab: he.name,
|
|
33826
|
-
label: he.name,
|
|
33827
|
-
title: he.name,
|
|
34159
|
+
tab: unref($T)(he.name),
|
|
34160
|
+
label: unref($T)(he.name),
|
|
34161
|
+
title: unref($T)(he.name),
|
|
33828
34162
|
forceRender: !0
|
|
33829
34163
|
}, {
|
|
33830
34164
|
default: withCtx(() => [
|
|
@@ -33869,7 +34203,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_24964901_lang = "", _withSco
|
|
|
33869
34203
|
})
|
|
33870
34204
|
]),
|
|
33871
34205
|
default: withCtx(() => [
|
|
33872
|
-
createTextVNode("
|
|
34206
|
+
createTextVNode(toDisplayString(unref($T)("保存")) + " ", 1)
|
|
33873
34207
|
]),
|
|
33874
34208
|
_: 1
|
|
33875
34209
|
}, 8, ["loading"]),
|
|
@@ -33889,7 +34223,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_24964901_lang = "", _withSco
|
|
|
33889
34223
|
})
|
|
33890
34224
|
]),
|
|
33891
34225
|
default: withCtx(() => [
|
|
33892
|
-
createTextVNode("
|
|
34226
|
+
createTextVNode(toDisplayString(unref($T)("取消")) + " ", 1)
|
|
33893
34227
|
]),
|
|
33894
34228
|
_: 1
|
|
33895
34229
|
})
|
|
@@ -33947,13 +34281,13 @@ const windowIndex_vue_vue_type_style_index_0_scoped_24964901_lang = "", _withSco
|
|
|
33947
34281
|
onClick: preViewSubmit
|
|
33948
34282
|
}, {
|
|
33949
34283
|
default: withCtx(() => [
|
|
33950
|
-
createTextVNode("
|
|
34284
|
+
createTextVNode(toDisplayString(unref($T)("提交")), 1)
|
|
33951
34285
|
]),
|
|
33952
34286
|
_: 1
|
|
33953
34287
|
}),
|
|
33954
34288
|
createVNode(K, { onClick: closePreModal }, {
|
|
33955
34289
|
default: withCtx(() => [
|
|
33956
|
-
createTextVNode("
|
|
34290
|
+
createTextVNode(toDisplayString(unref($T)("取消")), 1)
|
|
33957
34291
|
]),
|
|
33958
34292
|
_: 1
|
|
33959
34293
|
})
|
|
@@ -33973,7 +34307,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_24964901_lang = "", _withSco
|
|
|
33973
34307
|
]);
|
|
33974
34308
|
};
|
|
33975
34309
|
}
|
|
33976
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
34310
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-0132f153"]]);
|
|
33977
34311
|
WindowIndex.name = "slw-window-index";
|
|
33978
34312
|
WindowIndex.install = (Q) => {
|
|
33979
34313
|
Q.component(WindowIndex.name, WindowIndex);
|