slw 1.0.0-alpha.2 → 1.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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-066ef62f.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
const I = {
|
|
5
5
|
computed: {},
|
|
@@ -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_52333277_lang = "", _withScopeId$9 = (Q) => (pushScopeId("data-v-52333277"), Q = Q(), popScopeId(), Q), _hoisted_1$l2 = {
|
|
8529
8529
|
class: "slw-window-grid-container",
|
|
8530
8530
|
style: { height: "100%" }
|
|
8531
8531
|
}, _hoisted_2$kY = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$ay = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4Y = [
|
|
@@ -8661,64 +8661,50 @@ const windowGrid_vue_vue_type_style_index_0_scoped_db255132_lang = "", _withScop
|
|
|
8661
8661
|
total: "data.count"
|
|
8662
8662
|
},
|
|
8663
8663
|
ajax: {
|
|
8664
|
-
query: async ({ page: H, sorts: X, filters: G, form: K }
|
|
8665
|
-
var
|
|
8664
|
+
query: async ({ page: H, sorts: X, filters: G, form: K }) => {
|
|
8665
|
+
var le;
|
|
8666
8666
|
if (gridData.value.noSearchData) {
|
|
8667
8667
|
delete gridData.value.noSearchData;
|
|
8668
8668
|
return;
|
|
8669
8669
|
}
|
|
8670
|
-
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
status: 200
|
|
8679
|
-
};
|
|
8680
|
-
}
|
|
8681
|
-
let ee = getParentRegion(), te = null;
|
|
8682
|
-
ee && ee.params && (te = ee.params.subtableSearchExParams);
|
|
8683
|
-
const ne = Object.assign({}, queryFormData.value, Z, te);
|
|
8684
|
-
Object.entries(ne).forEach(([ce, ue]) => {
|
|
8685
|
-
var he;
|
|
8686
|
-
if (ue == null && (queryFormData.value[ce] = null), ne[ce] instanceof Array) {
|
|
8687
|
-
let de = gridData.value.formConfig.items.filter((ge) => ge.field == ce)[0], fe = (he = de == null ? void 0 : de.itemRender) == null ? void 0 : he.name, pe = XEUtils$4.clone(ne[ce], !0);
|
|
8688
|
-
fe == "ElTimePicker" ? (ne[ce] = pe[0], ne["end_" + ce] = pe[1]) : ["ElDateRangePicker", "ElDateTimeRangePicker"].includes(fe) && (ne[ce] = pe[0], ne["end_" + ce] = pe[1], queryFormData.value[ce] = pe[0], queryFormData.value["end_" + ce] = pe[1]);
|
|
8670
|
+
let Z = getParentRegion(), ee = null;
|
|
8671
|
+
Z != null && Z.params && (ee = Z.params.subtableSearchExParams);
|
|
8672
|
+
const te = Object.assign({}, gridData.value.params.queryParams, queryFormData.value, ee);
|
|
8673
|
+
Object.entries(te).forEach(([se, ce]) => {
|
|
8674
|
+
var ue;
|
|
8675
|
+
if (ce == null && (queryFormData.value[se] = null), te[se] instanceof Array) {
|
|
8676
|
+
let he = gridData.value.formConfig.items.filter((pe) => pe.field == se)[0], de = (ue = he == null ? void 0 : he.itemRender) == null ? void 0 : ue.name, fe = XEUtils$4.clone(te[se], !0);
|
|
8677
|
+
de == "ElTimePicker" ? (te[se] = fe[0], te["end_" + se] = fe[1]) : ["ElDateRangePicker", "ElDateTimeRangePicker"].includes(de) && (te[se] = fe[0], te["end_" + se] = fe[1], queryFormData.value[se] = fe[0], queryFormData.value["end_" + se] = fe[1]);
|
|
8689
8678
|
}
|
|
8690
8679
|
});
|
|
8691
|
-
const
|
|
8692
|
-
|
|
8693
|
-
for (let { property:
|
|
8694
|
-
let
|
|
8695
|
-
if ((
|
|
8696
|
-
let
|
|
8697
|
-
|
|
8698
|
-
} else if ((
|
|
8699
|
-
let
|
|
8700
|
-
|
|
8680
|
+
const ne = X[0];
|
|
8681
|
+
ne && (te.$_sort_column = ne.property, te.$_sort_type = ne.order);
|
|
8682
|
+
for (let { property: se, datas: ce } of G) {
|
|
8683
|
+
let ue = ce.join(","), he = gridData.value.columns.filter((de) => de.field == se)[0];
|
|
8684
|
+
if ((he == null ? void 0 : he.dataType) == "LIST" && ((le = he == null ? void 0 : he.itemRender.options) == null ? void 0 : le.length) > 0) {
|
|
8685
|
+
let de = he.itemRender.options.filter((fe) => fe.label.indexOf(ue) > -1)[0];
|
|
8686
|
+
de && (ue = de.value);
|
|
8687
|
+
} else if ((he == null ? void 0 : he.dataType) == "TABLE") {
|
|
8688
|
+
let fe = (await getSelectorData({ _region_id: gridData.value.params._region_id }, he.id, he.selectorId)).filter((pe) => pe.NAME.indexOf(ue) > -1)[0];
|
|
8689
|
+
fe && (ue = fe.VALUE);
|
|
8701
8690
|
}
|
|
8702
|
-
|
|
8691
|
+
te[se.toLowerCase()] = ue;
|
|
8703
8692
|
}
|
|
8704
|
-
if (
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
})
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
let ce = {};
|
|
8714
|
-
if (queryBeforeList.forEach((ue) => {
|
|
8715
|
-
if (ue && typeof ue == "function")
|
|
8693
|
+
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((se) => {
|
|
8694
|
+
te[se] instanceof Object && (te[se] = Object.values(te[se]).join());
|
|
8695
|
+
}), Q ? Object.keys(Q).forEach((se) => {
|
|
8696
|
+
const ce = se.toLowerCase();
|
|
8697
|
+
te.hasOwnProperty(ce) && (te[ce] = Q[se]);
|
|
8698
|
+
}) : 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) {
|
|
8699
|
+
let se = {};
|
|
8700
|
+
if (queryBeforeList.forEach((ce) => {
|
|
8701
|
+
if (ce && typeof ce == "function")
|
|
8716
8702
|
try {
|
|
8717
|
-
|
|
8718
|
-
} catch (
|
|
8719
|
-
console.error(
|
|
8703
|
+
se = ce();
|
|
8704
|
+
} catch (ue) {
|
|
8705
|
+
console.error(ue);
|
|
8720
8706
|
}
|
|
8721
|
-
}),
|
|
8707
|
+
}), se === !1)
|
|
8722
8708
|
return {
|
|
8723
8709
|
data: {
|
|
8724
8710
|
data: [],
|
|
@@ -8727,74 +8713,74 @@ const windowGrid_vue_vue_type_style_index_0_scoped_db255132_lang = "", _withScop
|
|
|
8727
8713
|
status: 200
|
|
8728
8714
|
};
|
|
8729
8715
|
}
|
|
8730
|
-
const
|
|
8731
|
-
let
|
|
8732
|
-
return
|
|
8733
|
-
let
|
|
8734
|
-
if (
|
|
8735
|
-
let
|
|
8736
|
-
|
|
8737
|
-
let
|
|
8738
|
-
gridData.value.toolbarConfig.buttons.forEach((
|
|
8739
|
-
if (typeof
|
|
8740
|
-
|
|
8741
|
-
const
|
|
8742
|
-
...
|
|
8716
|
+
const oe = axios.post("/window/data/" + gridData.value.params.datasourceCode, te);
|
|
8717
|
+
let re = {};
|
|
8718
|
+
return oe.then((se) => {
|
|
8719
|
+
let ce = {};
|
|
8720
|
+
if (se && se.data && se.data.result && se.data.data && se.data.data.length > 0) {
|
|
8721
|
+
let fe = function(ve) {
|
|
8722
|
+
ve.forEach((me, _e) => {
|
|
8723
|
+
let we = 0;
|
|
8724
|
+
gridData.value.toolbarConfig.buttons.forEach((xe) => {
|
|
8725
|
+
if (typeof xe.type < "u") {
|
|
8726
|
+
xe.btnLoad[de] = !1;
|
|
8727
|
+
const $e = xe.displayLogic ? displayLogic(xe.displayLogic, {
|
|
8728
|
+
...me,
|
|
8743
8729
|
...assembleParentData(gridData.value.params.parentData)
|
|
8744
|
-
}) : !0,
|
|
8745
|
-
if (
|
|
8746
|
-
if (
|
|
8747
|
-
|
|
8730
|
+
}) : !0, ke = xe.showInGrid && $e, Se = !xe.showInGrid && $e;
|
|
8731
|
+
if (xe.btnShowInGrid[de] = ke, xe.btnShow[de] = Se, ue = ue || ke, ke)
|
|
8732
|
+
if (xe.iconComponent)
|
|
8733
|
+
we = we + 0.7;
|
|
8748
8734
|
else {
|
|
8749
|
-
let
|
|
8750
|
-
if (
|
|
8751
|
-
let
|
|
8752
|
-
|
|
8735
|
+
let Ee = xe.name.match(/[\u4e00-\u9fa5]/g);
|
|
8736
|
+
if (Ee) {
|
|
8737
|
+
let Pe = Math.ceil(Ee.length / 2);
|
|
8738
|
+
we += Pe;
|
|
8753
8739
|
} else {
|
|
8754
|
-
let
|
|
8755
|
-
|
|
8740
|
+
let Pe = Math.ceil(xe.name.length / 6);
|
|
8741
|
+
we += Pe;
|
|
8756
8742
|
}
|
|
8757
8743
|
}
|
|
8758
8744
|
}
|
|
8759
|
-
}),
|
|
8745
|
+
}), we > he && (he = we), me._INDEX = de, de++, me._CHILDS && me._CHILDS.length > 0 && fe(me._CHILDS);
|
|
8760
8746
|
});
|
|
8761
|
-
},
|
|
8762
|
-
|
|
8763
|
-
let
|
|
8764
|
-
gridData.value.columns.forEach((
|
|
8765
|
-
if (
|
|
8766
|
-
|
|
8747
|
+
}, ue = !1, he = 0, de = 0;
|
|
8748
|
+
fe(se.data.data);
|
|
8749
|
+
let pe = !1;
|
|
8750
|
+
gridData.value.columns.forEach((ve) => {
|
|
8751
|
+
if (ve.colId == "_operation_" && ve.title == "操作") {
|
|
8752
|
+
ve.width != he * 60 && he * 60 >= 60 && (pe = !0, ve.width = he.toFixed(1) * 60);
|
|
8767
8753
|
return;
|
|
8768
8754
|
}
|
|
8769
|
-
}),
|
|
8770
|
-
const
|
|
8771
|
-
if (
|
|
8772
|
-
const
|
|
8773
|
-
|
|
8755
|
+
}), pe && getCurRegion().loadColumn(gridData.value.columns), gridData.value.params.rowIndex != null && (rowIndex.value = gridData.value.params.rowIndex), se.data.data.length > rowIndex.value ? ce = se.data.data[rowIndex.value] : ce = se.data.data[0];
|
|
8756
|
+
const ge = getCurRegion();
|
|
8757
|
+
if (ge) {
|
|
8758
|
+
const ve = ge.getColumnById("_operation_");
|
|
8759
|
+
ve && ue && ge.showColumn(ve);
|
|
8774
8760
|
}
|
|
8775
|
-
!isEditGridInitData.value && gridData.value.type === "EDIT_GRID" && editGridInitData(
|
|
8761
|
+
!isEditGridInitData.value && gridData.value.type === "EDIT_GRID" && editGridInitData(ce);
|
|
8776
8762
|
}
|
|
8777
|
-
rowClickCommon(
|
|
8778
|
-
var
|
|
8779
|
-
if (
|
|
8763
|
+
rowClickCommon(ce, rowIndex.value), queryAfterList && queryAfterList.length > 0 && queryAfterList.forEach((ue) => {
|
|
8764
|
+
var he;
|
|
8765
|
+
if (ue && typeof ue == "function")
|
|
8780
8766
|
try {
|
|
8781
|
-
|
|
8782
|
-
} catch (
|
|
8783
|
-
console.error(
|
|
8767
|
+
re = ue(((he = se == null ? void 0 : se.data) == null ? void 0 : he.data) || []);
|
|
8768
|
+
} catch (de) {
|
|
8769
|
+
console.error(de);
|
|
8784
8770
|
}
|
|
8785
8771
|
});
|
|
8786
|
-
}), typeof await
|
|
8772
|
+
}), typeof await oe > "u" || re === !1 ? {
|
|
8787
8773
|
data: {
|
|
8788
8774
|
data: [],
|
|
8789
8775
|
count: 0
|
|
8790
8776
|
},
|
|
8791
8777
|
status: 200
|
|
8792
|
-
} :
|
|
8778
|
+
} : oe;
|
|
8793
8779
|
}
|
|
8794
8780
|
}
|
|
8795
8781
|
}, gridData.value.params.parentRegionId && (gridData.value.proxyConfig.autoLoad = !1);
|
|
8796
8782
|
}, rowClick = (Q) => {
|
|
8797
|
-
gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE" || Q.rowIndex !== rowIndex.value ? rowClickCommon(Q.row, Q.rowIndex) :
|
|
8783
|
+
gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE" || Q.rowIndex !== rowIndex.value ? rowClickCommon(Q.row, Q.rowIndex) : rowIndex.value = Q.rowIndex;
|
|
8798
8784
|
}, rowClickCommon = (Q, H) => {
|
|
8799
8785
|
var Z;
|
|
8800
8786
|
const X = {
|
|
@@ -9154,17 +9140,19 @@ const windowGrid_vue_vue_type_style_index_0_scoped_db255132_lang = "", _withScop
|
|
|
9154
9140
|
}, 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 = () => reload(), rowDbClick(G);
|
|
9155
9141
|
}, reload = () => {
|
|
9156
9142
|
var Q;
|
|
9157
|
-
(Q = getCurRegion()) == null || Q.commitProxy("
|
|
9143
|
+
(Q = getCurRegion()) == null || Q.commitProxy("reload");
|
|
9158
9144
|
}, clearGrid = () => {
|
|
9159
|
-
|
|
9145
|
+
for (let Q in queryFormData.value)
|
|
9146
|
+
queryFormData.value[Q] = null;
|
|
9147
|
+
localStorage.setItem(gridData.value.params._region_id + preTag.value, JSON.stringify(queryFormData.value)), getCurRegion().reloadData();
|
|
9160
9148
|
}, resetGrid = () => {
|
|
9161
9149
|
var Q;
|
|
9162
9150
|
for (let H in queryFormData.value)
|
|
9163
9151
|
queryFormData.value[H] = null;
|
|
9164
|
-
(Q = getCurRegion()) == null || Q.commitProxy("
|
|
9152
|
+
(Q = getCurRegion()) == null || Q.commitProxy("reload");
|
|
9165
9153
|
}, getCheckedData = () => {
|
|
9166
9154
|
const Q = getCurRegion();
|
|
9167
|
-
return Q ? Q.getCheckboxRecords() : null;
|
|
9155
|
+
return Q ? Q.getCheckboxRecords().concat(Q.getCheckboxReserveRecords()) : null;
|
|
9168
9156
|
}, headerCheckboxChange = ({ checked: Q, row: H, rowIndex: X }) => {
|
|
9169
9157
|
let G = getCheckedData();
|
|
9170
9158
|
if (G.length > 0)
|
|
@@ -9239,7 +9227,8 @@ const windowGrid_vue_vue_type_style_index_0_scoped_db255132_lang = "", _withScop
|
|
|
9239
9227
|
});
|
|
9240
9228
|
}, search = (Q) => {
|
|
9241
9229
|
clearTimeout(queryTimeout.value), Q && (gridData.value.params.queryParams = Q), queryTimeout.value = setTimeout(function() {
|
|
9242
|
-
|
|
9230
|
+
var H;
|
|
9231
|
+
(H = getCurRegion()) == null || H.commitProxy("query");
|
|
9243
9232
|
}, 500);
|
|
9244
9233
|
}, importFormatError = (Q) => {
|
|
9245
9234
|
$vxeMessage({
|
|
@@ -9711,6 +9700,9 @@ const windowGrid_vue_vue_type_style_index_0_scoped_db255132_lang = "", _withScop
|
|
|
9711
9700
|
}, setQueryFieldChangeFun = (Q, H) => {
|
|
9712
9701
|
const G = getCurRegion().formConfig.items.filter((K) => K.field == Q)[0];
|
|
9713
9702
|
G && (G.itemRender.props.changeFunction = H);
|
|
9703
|
+
}, setQueryFormItemDisplay = (Q, H) => {
|
|
9704
|
+
const G = getCurRegion().formConfig.items.filter((K) => K.field == Q)[0];
|
|
9705
|
+
G && (G.visible = H);
|
|
9714
9706
|
}, footerSum = (Q, H, X = 2, G = "和值") => {
|
|
9715
9707
|
const K = (te, ne) => {
|
|
9716
9708
|
let oe = 0;
|
|
@@ -9856,21 +9848,21 @@ const windowGrid_vue_vue_type_style_index_0_scoped_db255132_lang = "", _withScop
|
|
|
9856
9848
|
events: { click: toolBarButtonClick }
|
|
9857
9849
|
});
|
|
9858
9850
|
}), gridData.value.formConfig.items.forEach((Q) => {
|
|
9859
|
-
var H, X, G;
|
|
9860
|
-
if (queryFormData.value[Q.field] = null, (
|
|
9861
|
-
const
|
|
9851
|
+
var H, X, G, K;
|
|
9852
|
+
if (queryFormData.value[Q.field] = null, (H = Q == null ? void 0 : Q.itemRender) != null && H.defaultValue && (queryFormData.value[Q.field] = Q.itemRender.defaultValue), (G = (X = Q == null ? void 0 : Q.itemRender) == null ? void 0 : X.events) != null && G.hasOwnProperty("change") && (Q.itemRender.events.change = onQueryFieldChange), Q.querys && getSelectorData({ _region_id: gridData.value.params._region_id }, Q.querys.id, Q.querys.selectorId).then((Z) => {
|
|
9853
|
+
const ee = Z.map((te) => Object.assign(
|
|
9862
9854
|
{
|
|
9863
|
-
value:
|
|
9864
|
-
label:
|
|
9855
|
+
value: te.VALUE,
|
|
9856
|
+
label: te.NAME
|
|
9865
9857
|
},
|
|
9866
|
-
|
|
9858
|
+
te
|
|
9867
9859
|
));
|
|
9868
|
-
Q.itemRender.options =
|
|
9869
|
-
}), ["ElDateRangePicker", "ElDateTimeRangePicker"].includes((
|
|
9870
|
-
let
|
|
9871
|
-
|
|
9872
|
-
let
|
|
9873
|
-
return
|
|
9860
|
+
Q.itemRender.options = ee;
|
|
9861
|
+
}), ["ElDateRangePicker", "ElDateTimeRangePicker"].includes((K = Q == null ? void 0 : Q.itemRender) == null ? void 0 : K.name)) {
|
|
9862
|
+
let Z = Q.itemRender.props;
|
|
9863
|
+
Z.unlinkPanels = !0, Z.disabledDate = (ee) => {
|
|
9864
|
+
let te = /* @__PURE__ */ new Date();
|
|
9865
|
+
return te.setHours(23), te.setMinutes(59), te.setSeconds(59), ee.valueOf() > te.valueOf();
|
|
9874
9866
|
};
|
|
9875
9867
|
}
|
|
9876
9868
|
}), gridData.value.params.queryFormData = queryFormData.value, gridData.value.columns.forEach((Q) => {
|
|
@@ -9885,7 +9877,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_db255132_lang = "", _withScop
|
|
|
9885
9877
|
search(Q);
|
|
9886
9878
|
}, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (Q) => {
|
|
9887
9879
|
setChecked(Q);
|
|
9888
|
-
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow(), 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);
|
|
9880
|
+
}, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow(), 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);
|
|
9889
9881
|
}), onUnmounted(() => {
|
|
9890
9882
|
document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
|
|
9891
9883
|
}), __expose({ gridReload, reload }), (Q, H) => {
|
|
@@ -10149,7 +10141,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_db255132_lang = "", _withScop
|
|
|
10149
10141
|
]);
|
|
10150
10142
|
};
|
|
10151
10143
|
}
|
|
10152
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
10144
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-52333277"]]);
|
|
10153
10145
|
WindowGrid.name = "slw-window-grid";
|
|
10154
10146
|
WindowGrid.install = (Q) => {
|
|
10155
10147
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -42461,7 +42453,7 @@ var js = js$1.exports;
|
|
|
42461
42453
|
})(Q);
|
|
42462
42454
|
})(js$1);
|
|
42463
42455
|
var jsExports = js$1.exports;
|
|
42464
|
-
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
42456
|
+
const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_3b9acef8_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-3b9acef8"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kX = {
|
|
42465
42457
|
key: 0,
|
|
42466
42458
|
class: "form-title"
|
|
42467
42459
|
}, _hoisted_3$hX = ["onClick"], _hoisted_4$ax = ["onClick"], _hoisted_5$4X = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _sfc_main$d = {
|
|
@@ -42552,6 +42544,10 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42552
42544
|
for (let X = 0; X < H.length; X++) {
|
|
42553
42545
|
let G = formConfig.value.editRules[H[X]], K = formConfig.value.columns.filter((Z) => Z.field == H[X])[0];
|
|
42554
42546
|
if (K) {
|
|
42547
|
+
(K.dataType == "TABLE" || K.dataType == "LIST") && (G[0].validator = ({ itemValue: ee, rule: te, rules: ne, data: oe, field: re }) => {
|
|
42548
|
+
if (!oe[re] || oe[re].length == 0)
|
|
42549
|
+
return new Error(te.message);
|
|
42550
|
+
});
|
|
42555
42551
|
let Z = K.editRender.props.displayLogic;
|
|
42556
42552
|
Z ? displayLogic(Z, { ...formData.value, ...assembleParentData() }) && (Q[H[X]] = G) : Q[H[X]] = G;
|
|
42557
42553
|
}
|
|
@@ -42623,7 +42619,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
42623
42619
|
if (formConfig.value.formData) {
|
|
42624
42620
|
formData.value = formConfig.value.formData, Q = formConfig.value.openType === "new", formConfig.value.openType === "view" && (formConfig.value.columns = XEUtils$4.clone(formConfig.value.columns, !0));
|
|
42625
42621
|
for (const Z of formConfig.value.columns)
|
|
42626
|
-
formConfig.value.openType === "view" && ((H = Z.itemRender) == null ? void 0 : H.name) == "ElInput" && (Z.itemRender.props.readonly = !0), Z.dataType === "EDITOR" ? formData.value[Z.field] == null ? formData.value[Z.field] = "" : Z.language == "javascript" && (formData.value[Z.field] = jsExports.js_beautify(formData.value[Z.field], codeBeautifyConfig)) : (((X = Z.itemRender) == null ? void 0 : X.name) == "ElSelect" || ((G = Z.itemRender) == null ? void 0 : G.name) == "VxeSelect") && Z.itemRender.props.multiple && (formData.value[Z.field] = (K = formData.value[Z.field]) == null ? void 0 : K.split(","));
|
|
42622
|
+
formConfig.value.openType === "view" && ((H = Z.itemRender) == null ? void 0 : H.name) == "ElInput" && (Z.itemRender.props.readonly = !0), Z.dataType === "EDITOR" ? formData.value[Z.field] == null ? formData.value[Z.field] = "" : Z.language == "javascript" && (formData.value[Z.field] = jsExports.js_beautify(formData.value[Z.field], codeBeautifyConfig)) : (((X = Z.itemRender) == null ? void 0 : X.name) == "ElSelect" || ((G = Z.itemRender) == null ? void 0 : G.name) == "VxeSelect") && Z.itemRender.props.multiple && (formData.value[Z.field] = formData.value[Z.field] == "" ? [] : (K = formData.value[Z.field]) == null ? void 0 : K.split(","));
|
|
42627
42623
|
} else
|
|
42628
42624
|
for (const Z in formConfig.value.columns)
|
|
42629
42625
|
formConfig.value.columns[Z].type !== "seq" && formConfig.value.columns[Z].type !== "checkbox" && (formData.value[formConfig.value.columns[Z].field] = "");
|
|
@@ -43057,7 +43053,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43057
43053
|
formData.value[Q.toUpperCase()] = [];
|
|
43058
43054
|
}));
|
|
43059
43055
|
}, throwFunction = (Q) => {
|
|
43060
|
-
Q.getData = () => getData(), Q.submitData = () => submitData(), Q.getValue = (H) => getValue(H), Q.setValue = (H, X) => setValue(H, X), Q.checkSubmitData = () => checkSubmitData(), Q.searchData = (H) => searchData(H), Q.displayFormItem = (H, X) => displayFormItem(H, X), Q.reset = () => reset(), Q.clearData = () => clearData();
|
|
43056
|
+
Q.getData = () => getData(), Q.submitData = () => submitData(), Q.getValue = (H) => getValue(H), Q.setValue = (H, X) => setValue(H, X), Q.checkSubmitData = () => checkSubmitData(), Q.searchData = (H) => searchData(H), Q.displayFormItem = (H, X) => displayFormItem(H, X), Q.reset = () => reset(), Q.clearData = () => clearData(), Q.setFieldName = (H, X) => setFieldName(H, X), Q.setFormItemProperty = (H, X, G) => setFormItemProperty(H, X, G), Q.getTableFieldSelectData = (H) => getTableFieldSelectData(H), Q.setFormSelectOption = (H, X) => setFormSelectOption(H, X);
|
|
43061
43057
|
};
|
|
43062
43058
|
return __expose({ submitData, validateDataChg, getValue, getRegion, getData }), (Q, H) => {
|
|
43063
43059
|
const X = resolveComponent("el-icon"), G = resolveComponent("el-button"), K = resolveComponent("el-input"), Z = resolveComponent("vxe-form-item"), ee = resolveComponent("vxe-form"), te = resolveComponent("el-dialog");
|
|
@@ -43304,7 +43300,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
43304
43300
|
]);
|
|
43305
43301
|
};
|
|
43306
43302
|
}
|
|
43307
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
43303
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-3b9acef8"]]);
|
|
43308
43304
|
WindowForm.name = "slw-window-form";
|
|
43309
43305
|
WindowForm.install = (Q) => {
|
|
43310
43306
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -59080,7 +59076,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
|
|
|
59080
59076
|
emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
|
|
59081
59077
|
setup(Q, { emit: H }) {
|
|
59082
59078
|
const X = Q, G = defineAsyncComponent(
|
|
59083
|
-
() => import("./index-
|
|
59079
|
+
() => import("./index-0266a427.js")
|
|
59084
59080
|
);
|
|
59085
59081
|
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);
|
|
59086
59082
|
oe.value = createDesigner();
|
|
@@ -59165,7 +59161,7 @@ WindowDesigner.name = "slw-window-designer";
|
|
|
59165
59161
|
WindowDesigner.install = (Q) => {
|
|
59166
59162
|
Q.component(WindowDesigner.name, WindowDesigner);
|
|
59167
59163
|
};
|
|
59168
|
-
const
|
|
59164
|
+
const windowIndex_vue_vue_type_style_index_0_scoped_40d321d5_lang = "", _withScopeId$1 = (Q) => (pushScopeId("data-v-40d321d5"), Q = Q(), popScopeId(), Q), _hoisted_1$kS = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$2 = {
|
|
59169
59165
|
__name: "window-index",
|
|
59170
59166
|
props: {
|
|
59171
59167
|
windowId: {
|
|
@@ -59406,7 +59402,8 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c312ddce_lang = "", _withSco
|
|
|
59406
59402
|
},
|
|
59407
59403
|
checkboxConfig: {
|
|
59408
59404
|
trigger: "column",
|
|
59409
|
-
range: !0
|
|
59405
|
+
range: !0,
|
|
59406
|
+
reserve: !0
|
|
59410
59407
|
},
|
|
59411
59408
|
printConfig: {
|
|
59412
59409
|
modes: ["current", "selected", "all"]
|
|
@@ -59513,7 +59510,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c312ddce_lang = "", _withSco
|
|
|
59513
59510
|
)));
|
|
59514
59511
|
break;
|
|
59515
59512
|
case "TABLE":
|
|
59516
|
-
de.itemRender.name = "VxeSelect", de.itemRender.props.filterable = !
|
|
59513
|
+
de.itemRender.name = "VxeSelect", de.itemRender.props.filterable = !0, Z[se].type === "IN" && (de.itemRender.props.multiple = !0), de.querys = Z[se], Z[se].remoteSearch && (de.remoteSearch = Z[se].remoteSearch, de.itemRender.props.loading = !1);
|
|
59517
59514
|
break;
|
|
59518
59515
|
case "BOOL":
|
|
59519
59516
|
de.itemRender.name = "ElSwitch";
|
|
@@ -59769,7 +59766,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c312ddce_lang = "", _withSco
|
|
|
59769
59766
|
de.name = "ElInput";
|
|
59770
59767
|
break;
|
|
59771
59768
|
case "LIST":
|
|
59772
|
-
de.name = "
|
|
59769
|
+
de.name = "VxeSelect", de.attrs.style = "width: 100%;min-width: 80px;", de.props.filterable = !0, de.props.transfer = !0, de.props.disabled = re[se].notUpdate || re[se].readOnly, re[se].selector && re[se].selector.data && (de.options = re[se].selector.data.map((ve) => Object.assign(
|
|
59773
59770
|
{
|
|
59774
59771
|
value: ve.VALUE,
|
|
59775
59772
|
label: ve.NAME
|
|
@@ -59786,7 +59783,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c312ddce_lang = "", _withSco
|
|
|
59786
59783
|
};
|
|
59787
59784
|
break;
|
|
59788
59785
|
case "TABLE":
|
|
59789
|
-
de.name = "VxeSelect", de.attrs.style = "width: 100%;min-width: 80px;", de.props.disabled = re[se].notUpdate || re[se].readOnly, pe.selectorId = re[se].selectorId, pe.formatter = ({ row: ve, column: me }) => (!ve["_" + me.property + "_NAME"] && me.editRender.options && me.editRender.options.forEach((_e) => {
|
|
59786
|
+
de.name = "VxeSelect", de.attrs.style = "width: 100%;min-width: 80px;", de.props.disabled = re[se].notUpdate || re[se].readOnly, de.props.filterable = !0, de.props.transfer = !0, pe.selectorId = re[se].selectorId, pe.formatter = ({ row: ve, column: me }) => (!ve["_" + me.property + "_NAME"] && me.editRender.options && me.editRender.options.forEach((_e) => {
|
|
59790
59787
|
if (_e.VALUE == ve[me.property]) {
|
|
59791
59788
|
ve["_" + me.property + "_NAME"] = _e.NAME;
|
|
59792
59789
|
return;
|
|
@@ -59795,7 +59792,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c312ddce_lang = "", _withSco
|
|
|
59795
59792
|
cellValue: ve["_" + me.property + "_NAME"] || ve[me.property],
|
|
59796
59793
|
row: ve,
|
|
59797
59794
|
column: me
|
|
59798
|
-
}) : ve["_" + me.property + "_NAME"] || ve[me.property]),
|
|
59795
|
+
}) : ve["_" + me.property + "_NAME"] || ve[me.property]), de.props.dropdownStyle = {
|
|
59799
59796
|
"z-index": 5e3
|
|
59800
59797
|
};
|
|
59801
59798
|
break;
|
|
@@ -60264,7 +60261,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c312ddce_lang = "", _withSco
|
|
|
60264
60261
|
]);
|
|
60265
60262
|
};
|
|
60266
60263
|
}
|
|
60267
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
60264
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-40d321d5"]]);
|
|
60268
60265
|
WindowIndex.name = "slw-window-index";
|
|
60269
60266
|
WindowIndex.install = (Q) => {
|
|
60270
60267
|
Q.component(WindowIndex.name, WindowIndex);
|
|
@@ -165450,7 +165447,7 @@ function reConsole() {
|
|
|
165450
165447
|
}
|
|
165451
165448
|
}
|
|
165452
165449
|
console.info(
|
|
165453
|
-
`%cSLW %cVer 1.0.0-alpha.
|
|
165450
|
+
`%cSLW %cVer 1.0.0-alpha.4%c
|
|
165454
165451
|
%c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
|
|
165455
165452
|
%c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
|
|
165456
165453
|
"color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
|
package/lib/index.js
CHANGED