slw 1.0.0-beta.6 → 1.0.0-beta.9
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.
|
@@ -8525,7 +8525,7 @@ PictureUpload.name = "slw-picture-upload";
|
|
|
8525
8525
|
PictureUpload.install = (Q) => {
|
|
8526
8526
|
Q.component(PictureUpload.name, PictureUpload);
|
|
8527
8527
|
};
|
|
8528
|
-
const
|
|
8528
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_14a72e32_lang = "", _withScopeId$9 = (Q) => (pushScopeId("data-v-14a72e32"), Q = Q(), popScopeId(), Q), _hoisted_1$l2 = {
|
|
8529
8529
|
class: "slw-window-grid-container",
|
|
8530
8530
|
style: { height: "100%" }
|
|
8531
8531
|
}, _hoisted_2$kZ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hZ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$az = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4Z = [
|
|
@@ -8548,7 +8548,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_958bb110_lang = "", _withScop
|
|
|
8548
8548
|
},
|
|
8549
8549
|
emits: ["update:gridData", "jumpDesign"],
|
|
8550
8550
|
setup(__props, { expose: __expose, emit }) {
|
|
8551
|
-
const props = __props, axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), regionMap = inject("$regionMap"), focusInput = inject("$focusInput"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $T = inject("$t"), httpHeaders = inject("$httpHeaders"), addGridClickEvent = inject("$addGridClickEvent"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), toggleModalLoading = inject("$toggleModalLoading"), closePreModal = inject("$closePreModal"), rowDbClick = inject("$rowDbClick"), $Modal = inject("$modal"), $qs = inject("$qs"), $ElMessage = inject("$ElMessage"), $vxeMessage = inject("$vxeMessage"), $vxeConfirm = inject("$vxeConfirm"), $vxeOpen = inject("$vxeOpen"), $vxeReadFile = inject("$vxeReadFile"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), evalDefaultValue = inject("$evalDefaultValue"), callGridClickEvents = inject("$callGridClickEvents"), ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $components = inject("$components"), $componentsPath = inject("$componentsPath"), $externalFun = inject("$externalFun"), route = useRoute();
|
|
8551
|
+
const props = __props, axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), regionMap = inject("$regionMap"), focusInput = inject("$focusInput"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $T = inject("$t"), httpHeaders = inject("$httpHeaders"), addGridClickEvent = inject("$addGridClickEvent"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), toggleModalLoading = inject("$toggleModalLoading"), closePreModal = inject("$closePreModal"), rowDbClick = inject("$rowDbClick"), $Modal = inject("$modal"), $qs = inject("$qs"), $ElMessage = inject("$ElMessage"), $vxeMessage = inject("$vxeMessage"), $vxeConfirm = inject("$vxeConfirm"), $vxeOpen = inject("$vxeOpen"), $vxeReadFile = inject("$vxeReadFile"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), evalDefaultValue = inject("$evalDefaultValue"), callGridClickEvents = inject("$callGridClickEvents"), ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $components = inject("$components"), $componentsPath = inject("$componentsPath"), $externalFun = inject("$externalFun"), beginEdit = inject("$beginEdit"), route = useRoute();
|
|
8552
8552
|
let gridData = useVModel$1(props, "gridData", emit), rowIndex = ref(0), isImport = ref(!1), importUrl = ref(`${(axios == null ? void 0 : axios.baseUrl) || ""}/window/import`), importBtnId = ref(""), uploadConfig = ref({
|
|
8553
8553
|
show: !1,
|
|
8554
8554
|
dataId: "",
|
|
@@ -8664,7 +8664,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_958bb110_lang = "", _withScop
|
|
|
8664
8664
|
},
|
|
8665
8665
|
ajax: {
|
|
8666
8666
|
query: async ({ page: H, sorts: X, filters: G, form: K }) => {
|
|
8667
|
-
var
|
|
8667
|
+
var se;
|
|
8668
8668
|
if (gridData.value.noSearchData) {
|
|
8669
8669
|
delete gridData.value.noSearchData;
|
|
8670
8670
|
return;
|
|
@@ -8672,40 +8672,40 @@ const windowGrid_vue_vue_type_style_index_0_scoped_958bb110_lang = "", _withScop
|
|
|
8672
8672
|
let Z = getParentRegion(), ee = null;
|
|
8673
8673
|
Z != null && Z.params && (ee = Z.params.subtableSearchExParams);
|
|
8674
8674
|
const te = Object.assign({}, queryFormData.value, ee);
|
|
8675
|
-
Object.entries(te).forEach(([
|
|
8676
|
-
var
|
|
8677
|
-
if (
|
|
8678
|
-
let
|
|
8679
|
-
|
|
8675
|
+
Object.entries(te).forEach(([ce, de]) => {
|
|
8676
|
+
var he;
|
|
8677
|
+
if (de == null && (queryFormData.value[ce] = null), te[ce] instanceof Array) {
|
|
8678
|
+
let ue = gridData.value.formConfig.items.filter((me) => me.field == ce)[0], pe = (he = ue == null ? void 0 : ue.itemRender) == null ? void 0 : he.name, fe = XEUtils$4.clone(te[ce], !0);
|
|
8679
|
+
pe == "ElTimePicker" ? (te[ce] = fe[0], te["end_" + ce] = fe[1]) : ["ElDateRangePicker", "ElDateTimeRangePicker"].includes(pe) && (te[ce] = fe[0], te["end_" + ce] = fe[1], queryFormData.value[ce] = fe[0], queryFormData.value["end_" + ce] = fe[1]);
|
|
8680
8680
|
}
|
|
8681
8681
|
});
|
|
8682
8682
|
const ne = X[0];
|
|
8683
8683
|
ne && (te.$_sort_column = ne.property, te.$_sort_type = ne.order);
|
|
8684
|
-
for (let { property:
|
|
8685
|
-
let
|
|
8686
|
-
if (
|
|
8687
|
-
let
|
|
8688
|
-
te[
|
|
8684
|
+
for (let { property: ce, datas: de } of G) {
|
|
8685
|
+
let he = ce.toLowerCase(), ue = gridData.value.formConfig.items.filter((fe) => fe.field == he)[0], pe = (se = ue == null ? void 0 : ue.itemRender) == null ? void 0 : se.name;
|
|
8686
|
+
if (de[0] instanceof Array && ["ElDateRangePicker", "ElDateTimeRangePicker", "ElTimePicker", "ElInputNumber"].includes(pe)) {
|
|
8687
|
+
let fe = XEUtils$4.clone(de[0], !0);
|
|
8688
|
+
te[he] = fe[0], te["end_" + he] = fe[1];
|
|
8689
8689
|
} else {
|
|
8690
|
-
let
|
|
8691
|
-
te[
|
|
8690
|
+
let fe = de.join(",");
|
|
8691
|
+
te[he] = fe;
|
|
8692
8692
|
}
|
|
8693
8693
|
}
|
|
8694
|
-
if (te.page = H.currentPage, te.limit = H.pageSize, te._region_id = gridData.value.params._region_id, gridData.value.params.parentRowId && (te[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue), Object.keys(te).forEach((
|
|
8695
|
-
te[
|
|
8696
|
-
}), Q ? Object.keys(Q).forEach((
|
|
8697
|
-
const
|
|
8698
|
-
te.hasOwnProperty(
|
|
8694
|
+
if (te.page = H.currentPage, te.limit = H.pageSize, te._region_id = gridData.value.params._region_id, gridData.value.params.parentRowId && (te[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue), Object.keys(te).forEach((ce) => {
|
|
8695
|
+
te[ce] instanceof Object && (te[ce] = Object.values(te[ce]).join());
|
|
8696
|
+
}), Q ? Object.keys(Q).forEach((ce) => {
|
|
8697
|
+
const de = ce.toLowerCase();
|
|
8698
|
+
te.hasOwnProperty(de) && (te[de] = Q[ce]);
|
|
8699
8699
|
}) : localStorage.setItem(gridData.value.params._region_id + preTag.value, JSON.stringify(queryFormData.value)), gridData.value.params.exportForm = XEUtils$4.clone(te, !0), queryBeforeList && queryBeforeList.length > 0) {
|
|
8700
|
-
let
|
|
8701
|
-
if (queryBeforeList.forEach((
|
|
8702
|
-
if (
|
|
8700
|
+
let ce = {};
|
|
8701
|
+
if (queryBeforeList.forEach((de) => {
|
|
8702
|
+
if (de && typeof de == "function")
|
|
8703
8703
|
try {
|
|
8704
|
-
|
|
8705
|
-
} catch (
|
|
8706
|
-
console.error(
|
|
8704
|
+
ce = de(te, "GIRD");
|
|
8705
|
+
} catch (he) {
|
|
8706
|
+
console.error(he, gridData.value.params.windowTitle, "表格查询前方法");
|
|
8707
8707
|
}
|
|
8708
|
-
}),
|
|
8708
|
+
}), ce === !1)
|
|
8709
8709
|
return {
|
|
8710
8710
|
data: {
|
|
8711
8711
|
data: [],
|
|
@@ -8715,57 +8715,49 @@ const windowGrid_vue_vue_type_style_index_0_scoped_958bb110_lang = "", _withScop
|
|
|
8715
8715
|
};
|
|
8716
8716
|
}
|
|
8717
8717
|
const oe = axios.post("/window/data/" + gridData.value.params.datasourceCode, te);
|
|
8718
|
-
let re = {};
|
|
8719
|
-
return oe.then((
|
|
8720
|
-
let
|
|
8721
|
-
if (
|
|
8722
|
-
let
|
|
8723
|
-
|
|
8724
|
-
let
|
|
8725
|
-
gridData.value.toolbarConfig.buttons.forEach((
|
|
8726
|
-
if (typeof
|
|
8727
|
-
|
|
8728
|
-
const
|
|
8729
|
-
...
|
|
8718
|
+
let re = {}, ae = [];
|
|
8719
|
+
return oe.then(async (ce) => {
|
|
8720
|
+
let de = {};
|
|
8721
|
+
if (ce && ce.data && ce.data.result && ce.data.data && ce.data.data.length > 0) {
|
|
8722
|
+
let fe = function(ge) {
|
|
8723
|
+
ge.forEach((_e, we) => {
|
|
8724
|
+
let xe = 15;
|
|
8725
|
+
gridData.value.toolbarConfig.buttons.forEach(($e) => {
|
|
8726
|
+
if (typeof $e.type < "u") {
|
|
8727
|
+
$e.btnLoad[pe] = !1;
|
|
8728
|
+
const ye = $e.displayLogic ? displayLogic($e.displayLogic, {
|
|
8729
|
+
..._e,
|
|
8730
8730
|
...assembleParentData(gridData.value.params.parentData)
|
|
8731
|
-
}) : !0,
|
|
8732
|
-
if (
|
|
8733
|
-
if (
|
|
8734
|
-
|
|
8731
|
+
}) : !0, Se = $e.showInGrid && ye, Ee = !$e.showInGrid && ye;
|
|
8732
|
+
if ($e.btnShowInGrid[pe] = Se, $e.btnShow[pe] = Ee, he = he || Se, Se)
|
|
8733
|
+
if ($e.type == "EDIT" || $e.type == "DELETE")
|
|
8734
|
+
xe += 30;
|
|
8735
|
+
else if ($e.iconComponent)
|
|
8736
|
+
xe += 30;
|
|
8735
8737
|
else {
|
|
8736
|
-
let
|
|
8737
|
-
|
|
8738
|
-
let Pe = Math.ceil(Ee.length / 2);
|
|
8739
|
-
we += Pe;
|
|
8740
|
-
} else {
|
|
8741
|
-
let Pe = Math.ceil(xe.name.length / 6);
|
|
8742
|
-
we += Pe;
|
|
8743
|
-
}
|
|
8738
|
+
let Pe = $e.name.replace(/[\u4e00-\u9fa5]/g, "DD").length;
|
|
8739
|
+
xe += Pe * 8;
|
|
8744
8740
|
}
|
|
8745
8741
|
}
|
|
8746
|
-
}),
|
|
8742
|
+
}), xe > ue && (ue = xe), _e._INDEX = pe, pe++, _e._CHILDS && _e._CHILDS.length > 0 && fe(_e._CHILDS);
|
|
8747
8743
|
});
|
|
8748
|
-
},
|
|
8749
|
-
|
|
8750
|
-
let
|
|
8751
|
-
gridData.value.columns.forEach((
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
-
if (me) {
|
|
8759
|
-
const ve = me.getColumnById("_operation_");
|
|
8760
|
-
ve && de && me.showColumn(ve);
|
|
8744
|
+
}, he = !1, ue = 0, pe = 0;
|
|
8745
|
+
ae = ce.data.data, fe(ae);
|
|
8746
|
+
let me = !1;
|
|
8747
|
+
gridData.value.columns.forEach((ge) => {
|
|
8748
|
+
ge.colId == "_operation_" && ge.title == "操作" && ge.width != ue && ue >= 60 && (me = !0, ge.width = ue + "px");
|
|
8749
|
+
}), me && getCurRegion().loadColumn(gridData.value.columns), gridData.value.params.rowIndex != null && (rowIndex.value = gridData.value.params.rowIndex), ce.data.data.length > rowIndex.value ? de = ce.data.data[rowIndex.value] : de = ce.data.data[0];
|
|
8750
|
+
const ve = getCurRegion();
|
|
8751
|
+
if (ve) {
|
|
8752
|
+
const ge = ve.getColumnById("_operation_");
|
|
8753
|
+
ge && he && ve.showColumn(ge);
|
|
8761
8754
|
}
|
|
8762
|
-
!isEditGridInitData.value && gridData.value.type === "EDIT_GRID" && editGridInitData(
|
|
8755
|
+
!isEditGridInitData.value && gridData.value.type === "EDIT_GRID" && editGridInitData(de);
|
|
8763
8756
|
}
|
|
8764
|
-
rowClickCommon(
|
|
8765
|
-
|
|
8766
|
-
if (de && typeof de == "function")
|
|
8757
|
+
rowClickCommon(de, rowIndex.value), queryAfterList && queryAfterList.length > 0 && queryAfterList.forEach((he) => {
|
|
8758
|
+
if (he && typeof he == "function")
|
|
8767
8759
|
try {
|
|
8768
|
-
re =
|
|
8760
|
+
re = he(ae, "GRID");
|
|
8769
8761
|
} catch (ue) {
|
|
8770
8762
|
console.error(ue, gridData.value.params.windowTitle, "表格查询后方法");
|
|
8771
8763
|
}
|
|
@@ -9074,12 +9066,14 @@ const windowGrid_vue_vue_type_style_index_0_scoped_958bb110_lang = "", _withScop
|
|
|
9074
9066
|
oe.data.result ? (reload(), $message.success(oe.data.msg)) : $message.error(oe.data.msg), Q.loading = !1;
|
|
9075
9067
|
});
|
|
9076
9068
|
});
|
|
9077
|
-
else if (Q.windowId)
|
|
9069
|
+
else if (Q.windowId) {
|
|
9070
|
+
if (beginEdit && await beginEdit(H, gridData.value.rowConfig.keyField, curRegion.value) == !1)
|
|
9071
|
+
return;
|
|
9078
9072
|
showPreView(Q.windowId, Q.name, H, {
|
|
9079
9073
|
width: Q.openWidth,
|
|
9080
9074
|
height: Q.openHeight
|
|
9081
9075
|
});
|
|
9082
|
-
else
|
|
9076
|
+
} else
|
|
9083
9077
|
try {
|
|
9084
9078
|
Q.clickFunction && await evalEvent("async " + Q.clickFunction, (G == null ? void 0 : G.length) > 1 ? G : H, Q, "按钮点击事件") !== !1 && (Q.loading = !1);
|
|
9085
9079
|
} catch (ne) {
|
|
@@ -9097,11 +9091,11 @@ const windowGrid_vue_vue_type_style_index_0_scoped_958bb110_lang = "", _withScop
|
|
|
9097
9091
|
break;
|
|
9098
9092
|
}
|
|
9099
9093
|
typeof X < "u" ? Q.btnLoad[X] = !1 : Q.loading = !1;
|
|
9100
|
-
}, curRegion = ref(), getCurRegion = () => curRegion.value, commonEditData = (Q, H) => {
|
|
9094
|
+
}, curRegion = ref(), getCurRegion = () => curRegion.value, commonEditData = async (Q, H) => {
|
|
9101
9095
|
const X = gridData.value.params.isEdit && (editBtn.value.visible || editBtn.value.btnShowInGrid[H] || gridData.value.type === "TREE");
|
|
9102
9096
|
gridData.value.params.parentData = getParentData();
|
|
9103
9097
|
let G = Object.assign({}, gridData.value);
|
|
9104
|
-
G = {
|
|
9098
|
+
beginEdit && X && await beginEdit(Q, gridData.value.rowConfig.keyField, curRegion.value) == !1 || (G = {
|
|
9105
9099
|
...G,
|
|
9106
9100
|
formData: Object.assign({}, Q),
|
|
9107
9101
|
windowTitle: $T(X ? "[编辑]" : "[查看]") + gridData.value.params.windowTitle,
|
|
@@ -9112,7 +9106,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_958bb110_lang = "", _withScop
|
|
|
9112
9106
|
height: gridData.value.params.editHeight ? gridData.value.params.editHeight : "",
|
|
9113
9107
|
tableData: getCanEditData(),
|
|
9114
9108
|
rowIndex: H
|
|
9115
|
-
}, G.params.queryParams !== null && typeof G.params.queryParams < "u" && (G.params.queryParams.unQuery = !0), G.formData._button_id = gridData.value.params.edit_button_id, G._reload = (K) => reloadRow(K), rowDbClick(G);
|
|
9109
|
+
}, G.params.queryParams !== null && typeof G.params.queryParams < "u" && (G.params.queryParams.unQuery = !0), G.formData._button_id = gridData.value.params.edit_button_id, G._reload = (K) => reloadRow(K), rowDbClick(G));
|
|
9116
9110
|
}, reload = () => {
|
|
9117
9111
|
var Q;
|
|
9118
9112
|
(Q = getCurRegion()) == null || Q.commitProxy("reload");
|
|
@@ -9835,7 +9829,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_958bb110_lang = "", _withScop
|
|
|
9835
9829
|
gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
|
|
9836
9830
|
body: { options: bodyMenus.value },
|
|
9837
9831
|
visibleMethod
|
|
9838
|
-
}), await evalEvent(gridData.value.params.formEvents.dataInit, "
|
|
9832
|
+
}), await evalEvent(gridData.value.params.formEvents.dataInit, "GRID"), gridData.value.toolbarConfig.buttons.forEach((Q) => {
|
|
9839
9833
|
typeof Q.type < "u" && Q.type.toLowerCase() === "edit" && (editBtn.value = Q), typeof Q.type < "u" && Q.type.toLowerCase() === "export" && (exportButton.value = Q), Q.hasOwnProperty("buttonRender") || (Q.buttonRender = {
|
|
9840
9834
|
name: "ElButton",
|
|
9841
9835
|
props: {
|
|
@@ -9872,7 +9866,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_958bb110_lang = "", _withScop
|
|
|
9872
9866
|
queryFormData.value.hasOwnProperty(H) && !queryFormData.value[H] && (queryFormData.value[H] = gridData.value.params.queryParams[Q]);
|
|
9873
9867
|
}), gridData.value.params.queryFormData = queryFormData.value, gridData.value.columns.forEach((Q) => {
|
|
9874
9868
|
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);
|
|
9875
|
-
}), 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, "
|
|
9869
|
+
}), 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, "GRID"), gridData.value.params.parentRegionId && addGridClickEvent(rowClickEmitFun), curRegion.value.closeModal = () => {
|
|
9876
9870
|
closeModal && closeModal();
|
|
9877
9871
|
}, curRegion.value.closePreModal = () => {
|
|
9878
9872
|
closePreModal && closePreModal();
|
|
@@ -9882,7 +9876,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_958bb110_lang = "", _withScop
|
|
|
9882
9876
|
search(Q);
|
|
9883
9877
|
}, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (Q) => {
|
|
9884
9878
|
setChecked(Q);
|
|
9885
|
-
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow(Q), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = (Q, H) => setCheckboxRowColor(Q, H), curRegion.value.setFormValue = (Q, H) => setFormValue(Q, H), curRegion.value.setRowCellColor = (Q, H, X, G) => setRowCellColor(Q, H, X, G), curRegion.value.setFormSelectOption = (Q, H, X) => setFormSelectOption(Q, H, X), curRegion.value.getFormSelectOption = (Q, H) => getFormSelectOption(Q, H), curRegion.value.setColumnFixed = (Q, H) => setColumnFixed(Q, H), curRegion.value.getQueryForm = (Q) => getQueryForm(Q), curRegion.value.setCurrentRowByRowIndex = (Q, H) => setCurrentRowByRowIndex(Q, H), curRegion.value.setUploadData = (Q) => setUploadData(Q), curRegion.value.setQueryFieldChangeFun = (Q, H) => setQueryFieldChangeFun(Q, H), curRegion.value.setQueryFormItemDisplay = (Q, H) => setQueryFormItemDisplay(Q, H), curRegion.value.setCheckMethod = (Q) => setCheckMethod(Q), curRegion.value.setButtonDisplay = (Q, H) => setButtonDisplay(Q, H);
|
|
9879
|
+
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.getRegion = (Q) => getRegion(Q), curRegion.value.removeRow = (Q) => removeRow(Q), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = (Q, H) => setCheckboxRowColor(Q, H), curRegion.value.setFormValue = (Q, H) => setFormValue(Q, H), curRegion.value.setRowCellColor = (Q, H, X, G) => setRowCellColor(Q, H, X, G), curRegion.value.setFormSelectOption = (Q, H, X) => setFormSelectOption(Q, H, X), curRegion.value.getFormSelectOption = (Q, H) => getFormSelectOption(Q, H), curRegion.value.setColumnFixed = (Q, H) => setColumnFixed(Q, H), curRegion.value.getQueryForm = (Q) => getQueryForm(Q), curRegion.value.setCurrentRowByRowIndex = (Q, H) => setCurrentRowByRowIndex(Q, H), curRegion.value.setUploadData = (Q) => setUploadData(Q), curRegion.value.setQueryFieldChangeFun = (Q, H) => setQueryFieldChangeFun(Q, H), curRegion.value.setQueryFormItemDisplay = (Q, H) => setQueryFormItemDisplay(Q, H), curRegion.value.setCheckMethod = (Q) => setCheckMethod(Q), curRegion.value.setButtonDisplay = (Q, H) => setButtonDisplay(Q, H);
|
|
9886
9880
|
}), onUnmounted(() => {
|
|
9887
9881
|
document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
|
|
9888
9882
|
}), __expose({ gridReload, reload }), (Q, H) => {
|
|
@@ -10171,7 +10165,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_958bb110_lang = "", _withScop
|
|
|
10171
10165
|
]);
|
|
10172
10166
|
};
|
|
10173
10167
|
}
|
|
10174
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
10168
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-14a72e32"]]);
|
|
10175
10169
|
WindowGrid.name = "slw-window-grid";
|
|
10176
10170
|
WindowGrid.install = (Q) => {
|
|
10177
10171
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -42483,7 +42477,7 @@ var js = js$1.exports;
|
|
|
42483
42477
|
})(Q);
|
|
42484
42478
|
})(js$1);
|
|
42485
42479
|
var jsExports = js$1.exports;
|
|
42486
|
-
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
42480
|
+
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_2d0dcb37_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-2d0dcb37"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
|
|
42487
42481
|
key: 0,
|
|
42488
42482
|
class: "form-title"
|
|
42489
42483
|
}, _hoisted_3$hY = ["onClick"], _hoisted_4$ay = ["onClick"], _hoisted_5$4Y = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _hoisted_8$G = ["onClick"], _sfc_main$d = {
|
|
@@ -42651,7 +42645,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42651
42645
|
}
|
|
42652
42646
|
], formConfig.value.columns.forEach((Z, ee, te) => {
|
|
42653
42647
|
Z.hasOwnProperty("field") && !Z.hasOwnProperty("treeNode") && (Z.events.change = onFieldChange, Z.events.keyup = onFieldEnter, Z.events.click = onFieldClick), (Z == null ? void 0 : Z.dataType) === "IMG" && (uploadConfig.value.isHaveImgField = !0, fieldPreviewMap.value[Z.field] = []);
|
|
42654
|
-
}), await evalEvent(formConfig.value.params.formEvents.dataInit, "
|
|
42648
|
+
}), await evalEvent(formConfig.value.params.formEvents.dataInit, "表单数据初始化前");
|
|
42655
42649
|
let Q = !0;
|
|
42656
42650
|
if (formConfig.value.formData) {
|
|
42657
42651
|
formData.value = formConfig.value.formData, Q = formConfig.value.openType === "new", formConfig.value.openType === "view" && (formConfig.value.columns = XEUtils$4.clone(formConfig.value.columns, !0));
|
|
@@ -42664,7 +42658,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42664
42658
|
}
|
|
42665
42659
|
uploadConfig.value.dataId = formData.value[formConfig.value.rowConfig.keyField], uploadConfig.value.regionId = formConfig.value.params._region_id, uploadConfig.value.isHavePicUploadBtn = formConfig.value.params.isHavePicUploadBtn, uploadConfig.value.openType = formConfig.value.openType, computeNewLine(), formData.value._region_id = formConfig.value.params._region_id, await formInitData(formData.value, formConfig.value.params._region_id, Q), form.value.params = formConfig.value.params, formConfig.value.params.queryParams && Object.keys(formConfig.value.params.queryParams).length > 0 && formConfig.value.params.queryParams.unQuery !== !0 && searchData(formConfig.value.params.queryParams), formConfig.value.columns.map((Z) => {
|
|
42666
42660
|
Z.hasOwnProperty("field") && !Z.hasOwnProperty("treeNode") && (fieldColumnMap.value[Z.field] = Z);
|
|
42667
|
-
}), !formConfig.value.params.linkUrl && (formConfig.value.type === "FORM" ? (regionMap.value[formConfig.value.params.code + "-" + preTag.value] = form.value, regionMap.value[formConfig.value.params.code] = form.value) : regionMap.value["Edit-" + formConfig.value.params.code + "-" + preTag.value] = form.value, throwFunction(form.value), await evalEvent(formConfig.value.params.formEvents.regionInit, "
|
|
42661
|
+
}), !formConfig.value.params.linkUrl && (formConfig.value.type === "FORM" ? (regionMap.value[formConfig.value.params.code + "-" + preTag.value] = form.value, regionMap.value[formConfig.value.params.code] = form.value) : regionMap.value["Edit-" + formConfig.value.params.code + "-" + preTag.value] = form.value, throwFunction(form.value), await evalEvent(formConfig.value.params.formEvents.regionInit, "表单页面初始化触发"), nextTick(() => {
|
|
42668
42662
|
formDataClone.value = XEUtils$4.clone(toRaw(formData.value), !0);
|
|
42669
42663
|
}), formLoading.value = !1);
|
|
42670
42664
|
}), onUnmounted(() => {
|
|
@@ -43409,7 +43403,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43409
43403
|
]);
|
|
43410
43404
|
};
|
|
43411
43405
|
}
|
|
43412
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
43406
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-2d0dcb37"]]);
|
|
43413
43407
|
WindowForm.name = "slw-window-form";
|
|
43414
43408
|
WindowForm.install = (Q) => {
|
|
43415
43409
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -59186,7 +59180,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
59186
59180
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
59187
59181
|
setup(Q, { emit: H }) {
|
|
59188
59182
|
const X = Q, G = defineAsyncComponent(
|
|
59189
|
-
() => import("./index-
|
|
59183
|
+
() => import("./index-5c4905f8.js")
|
|
59190
59184
|
);
|
|
59191
59185
|
let K = useVModel(X, "type", H), Z = useVModel(X, "rootLayout", H), ee = useVModel(X, "viewData", H), te = useVModel(X, "rowData", H), ne = ref(0), oe = ref(null);
|
|
59192
59186
|
oe.value = createDesigner();
|
|
@@ -165641,7 +165635,8 @@ const loading = LoadingController, modal = ModalController, drawer = DrawerContr
|
|
|
165641
165635
|
componentsPath: "/src/view",
|
|
165642
165636
|
customI18n: !1,
|
|
165643
165637
|
VXETableConfig: null,
|
|
165644
|
-
externalFun: null
|
|
165638
|
+
externalFun: null,
|
|
165639
|
+
beginEdit: null
|
|
165645
165640
|
}) => {
|
|
165646
165641
|
var K, Z;
|
|
165647
165642
|
components.forEach((ee) => {
|
|
@@ -165661,7 +165656,7 @@ const loading = LoadingController, modal = ModalController, drawer = DrawerContr
|
|
|
165661
165656
|
translate(ee, te) {
|
|
165662
165657
|
return H.customI18n(ee, te);
|
|
165663
165658
|
}
|
|
165664
|
-
})) : (G = (ee) => ee, Q.provide("$t", G)), H.VXETableConfig && VxeTableExport.setConfig(H.VXETableConfig), Q.provide("$VXETableConfig", H.VXETableConfig), Q.provide("$externalFun", H.externalFun), Q.use(VxeTableExport), Q.provide("$componentMapping", X), Q.provide("$axios", Q.config.globalProperties.axios), Q.provide("$qs", qs), Q.provide(
|
|
165659
|
+
})) : (G = (ee) => ee, Q.provide("$t", G)), H.VXETableConfig && VxeTableExport.setConfig(H.VXETableConfig), Q.provide("$VXETableConfig", H.VXETableConfig), Q.provide("$externalFun", H.externalFun), Q.provide("$beginEdit", H.beginEdit), Q.use(VxeTableExport), Q.provide("$componentMapping", X), Q.provide("$axios", Q.config.globalProperties.axios), Q.provide("$qs", qs), Q.provide(
|
|
165665
165660
|
"$crypto",
|
|
165666
165661
|
(H == null ? void 0 : H.crypto) || {
|
|
165667
165662
|
encrypt,
|
|
@@ -165690,7 +165685,7 @@ function reConsole() {
|
|
|
165690
165685
|
}
|
|
165691
165686
|
}
|
|
165692
165687
|
console.info(
|
|
165693
|
-
`%cSLW %cVer 1.0.0-beta.
|
|
165688
|
+
`%cSLW %cVer 1.0.0-beta.9%c
|
|
165694
165689
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
165695
165690
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
165696
165691
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { pushScopeId as P, popScopeId as V, createElementVNode as h, resolveComponent as g, openBlock as o, createElementBlock as p, createBlock as f, normalizeClass as T, normalizeStyle as A, withModifiers as R, withCtx as r, renderSlot as q, createCommentVNode as _, Fragment as B, createVNode as s, mergeProps as k, renderList as j, toDisplayString as E, normalizeProps as K, guardReactiveProps as Q, resolveDynamicComponent as Z, defineAsyncComponent as $, computed as F, unref as D, withDirectives as ee, vShow as te } from "vue";
|
|
2
|
-
import { _ as x, d as S, a as L, u as N } from "./index-
|
|
2
|
+
import { _ as x, d as S, a as L, u as N } from "./index-0aa353b4.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const I = {
|
|
5
5
|
computed: {},
|
package/lib/index.js
CHANGED