slw 0.7.6 → 0.7.8
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 +29 -14
- package/lib/index.umd.cjs +4 -4
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -38865,7 +38865,7 @@ var js = js$1.exports;
|
|
|
38865
38865
|
})(Q);
|
|
38866
38866
|
})(js$1);
|
|
38867
38867
|
var jsExports = js$1.exports;
|
|
38868
|
-
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports),
|
|
38868
|
+
const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_e75f88ed_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-e75f88ed"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
|
|
38869
38869
|
key: 0,
|
|
38870
38870
|
style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
|
|
38871
38871
|
}, _hoisted_3$hS = ["onClick"], _sfc_main$5 = {
|
|
@@ -38884,7 +38884,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
38884
38884
|
const props = __props, componentMapping = inject("$componentMapping"), axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), $Modal = inject("$modal"), $qs = inject("$qs"), $vxeMessage = inject("$vxeMessage"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $vxeConfirm = inject("$vxeConfirm"), $T = inject("$t"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), focusInput = inject("$focusInput"), evalDefaultValue = inject("$evalDefaultValue");
|
|
38885
38885
|
let regionMap = inject("$regionMap");
|
|
38886
38886
|
const ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce");
|
|
38887
|
-
let formConfig = useVModel(props, "formConfig", emits), formData = ref({}), fieldColumnMap = ref({}), formDataClone = ref({}), formLoading = ref(!1), queryTimeout = ref(null);
|
|
38887
|
+
let formConfig = useVModel(props, "formConfig", emits), gridData = formConfig.value, formData = ref({}), fieldColumnMap = ref({}), formDataClone = ref({}), formLoading = ref(!1), queryTimeout = ref(null);
|
|
38888
38888
|
const $modal = $Modal;
|
|
38889
38889
|
let uploadConfig = ref({
|
|
38890
38890
|
show: !1,
|
|
@@ -39166,17 +39166,26 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39166
39166
|
}, formInitData = async (Q, H, X) => {
|
|
39167
39167
|
if (X) {
|
|
39168
39168
|
let G = {}, Z = {};
|
|
39169
|
-
|
|
39169
|
+
formConfig.value.params.queryParams && Object.keys(formConfig.value.params.queryParams).forEach((K) => {
|
|
39170
|
+
G["PARAMS." + K] = formConfig.value.params.queryParams[K];
|
|
39171
|
+
}), formConfig.value.params.parentData && Object.keys(formConfig.value.params.parentData).forEach((K) => {
|
|
39170
39172
|
Z["PARENT." + K] = formConfig.value.params.parentData[K];
|
|
39171
39173
|
}), await axios.post("window/defaultValue", $qs.stringify({ _region_id: H })).then((K) => {
|
|
39172
39174
|
if (K.data.result && K.data.data)
|
|
39173
39175
|
for (let ee in K.data.data) {
|
|
39174
39176
|
let te = K.data.data[ee];
|
|
39175
|
-
Q[ee] = evalDefaultValue(te, {
|
|
39177
|
+
if (Q[ee] = evalDefaultValue(te, {
|
|
39176
39178
|
...Q,
|
|
39177
39179
|
...G,
|
|
39178
39180
|
...Z
|
|
39179
|
-
})
|
|
39181
|
+
}), Q[ee]) {
|
|
39182
|
+
let ne = {
|
|
39183
|
+
data: Q,
|
|
39184
|
+
item: formConfig.value.columns.filter((re) => re.field == ee)[0],
|
|
39185
|
+
property: ee
|
|
39186
|
+
};
|
|
39187
|
+
onFieldChange(ne);
|
|
39188
|
+
}
|
|
39180
39189
|
}
|
|
39181
39190
|
});
|
|
39182
39191
|
}
|
|
@@ -39328,7 +39337,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39328
39337
|
}
|
|
39329
39338
|
}
|
|
39330
39339
|
}
|
|
39331
|
-
evalEvent(Q.item.itemRender.props.changeFunction, H, X), readonlyLogic(),
|
|
39340
|
+
evalEvent(Q.item.itemRender.props.changeFunction, H, X), readonlyLogic(), handleSelectTableField(Q.property), subQueryFields.value.forEach((G) => {
|
|
39332
39341
|
getSubQueryData(Q.data._region_id, G.id, G.field);
|
|
39333
39342
|
});
|
|
39334
39343
|
}, getSubQueryData = (Q, H, X) => {
|
|
@@ -39473,7 +39482,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39473
39482
|
(Z) => Z.field == Q.toUpperCase()
|
|
39474
39483
|
)[0];
|
|
39475
39484
|
G && (G.itemRender.props[H] = X);
|
|
39476
|
-
},
|
|
39485
|
+
}, handleSelectTableField = (Q) => {
|
|
39477
39486
|
const H = formConfig.value.params.selectTableField[Q.toUpperCase()];
|
|
39478
39487
|
H && H.forEach((X) => {
|
|
39479
39488
|
axios.post(
|
|
@@ -39493,6 +39502,11 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39493
39502
|
)), formData.value[formSelectMap.value[X._field_id].field] = null));
|
|
39494
39503
|
});
|
|
39495
39504
|
});
|
|
39505
|
+
}, getTableFieldSelectData = (Q) => {
|
|
39506
|
+
let H = formConfig.value.columns.filter(
|
|
39507
|
+
(G) => G.field == Q.toUpperCase()
|
|
39508
|
+
)[0], X = [];
|
|
39509
|
+
return H && (X = H.itemRender.options), X;
|
|
39496
39510
|
}, footerSum = () => {
|
|
39497
39511
|
}, throwFunction = (Q) => {
|
|
39498
39512
|
Q.getData = () => getData(), Q.submitData = () => submitData(), Q.getValue = (H) => getValue(H), Q.setValue = (H, X) => setValue(H, X);
|
|
@@ -39656,7 +39670,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39656
39670
|
]);
|
|
39657
39671
|
};
|
|
39658
39672
|
}
|
|
39659
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
39673
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-e75f88ed"]]);
|
|
39660
39674
|
WindowForm.name = "slw-window-form";
|
|
39661
39675
|
WindowForm.install = (Q) => {
|
|
39662
39676
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -39997,7 +40011,7 @@ function P$1(Q, H, X, G, Z, K) {
|
|
|
39997
40011
|
renderSlot(Q.$slots, "default")
|
|
39998
40012
|
], 4);
|
|
39999
40013
|
}
|
|
40000
|
-
const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "",
|
|
40014
|
+
const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", windowLayout_vue_vue_type_style_index_0_scoped_a185b046_lang = "", _withScopeId$1 = (Q) => (pushScopeId("data-v-a185b046"), Q = Q(), popScopeId(), Q), _hoisted_1$kU = { class: "slw-window-layout-container" }, _sfc_main$4 = {
|
|
40001
40015
|
__name: "window-layout",
|
|
40002
40016
|
props: {
|
|
40003
40017
|
layoutData: {
|
|
@@ -40055,6 +40069,7 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
|
|
|
40055
40069
|
}, {
|
|
40056
40070
|
default: withCtx(() => [
|
|
40057
40071
|
fe.mode === "tab" ? (openBlock(), createBlock(pe, {
|
|
40072
|
+
type: "card",
|
|
40058
40073
|
key: fe.id
|
|
40059
40074
|
}, {
|
|
40060
40075
|
default: withCtx(() => [
|
|
@@ -40133,7 +40148,7 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
|
|
|
40133
40148
|
]);
|
|
40134
40149
|
};
|
|
40135
40150
|
}
|
|
40136
|
-
}, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
40151
|
+
}, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-a185b046"]]);
|
|
40137
40152
|
WindowLayout.name = "slw-window-layout";
|
|
40138
40153
|
WindowLayout.install = (Q) => {
|
|
40139
40154
|
Q.component(WindowLayout.name, WindowLayout);
|
|
@@ -40288,7 +40303,7 @@ _sfc_main$2.name = "slw-preview-modal";
|
|
|
40288
40303
|
_sfc_main$2.install = (Q) => {
|
|
40289
40304
|
Q.component(_sfc_main$2.name, _sfc_main$2);
|
|
40290
40305
|
};
|
|
40291
|
-
const
|
|
40306
|
+
const windowIndex_vue_vue_type_style_index_0_scoped_defaad7b_lang = "", _withScopeId = (Q) => (pushScopeId("data-v-defaad7b"), Q = Q(), popScopeId(), Q), _hoisted_1$kR = { class: "slw-config-window-container" }, _hoisted_2$kQ = { class: "child-table-p" }, _sfc_main$1 = {
|
|
40292
40307
|
__name: "window-index",
|
|
40293
40308
|
props: {
|
|
40294
40309
|
windowId: {
|
|
@@ -41041,7 +41056,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c9d3b0b2_lang = "", _withSco
|
|
|
41041
41056
|
}, checkColumnMethod = ({ column: Q }) => !(Q.type === "seq" || Q.type === "checkbox"), updateData = (Q, H) => {
|
|
41042
41057
|
rootLayout.value = H;
|
|
41043
41058
|
}, showPreView = (Q, H, X, G) => {
|
|
41044
|
-
preWindowName.value = H, X && (preQueryParams.value = X), G && (G.preViewFooterShow && (preViewFooterShow.value = G.preViewFooterShow), G.preViewSubmitFun && (preViewSubmitFun.value = G.preViewSubmitFun), G.preViewCloseFun && (preViewCloseFun.value = G.preViewCloseFun), G.preViewCode && (preViewCode.value = G.preViewCode), G.width && (preViewWidth.value = G.width), G.height && (
|
|
41059
|
+
preWindowName.value = H, X && (preQueryParams.value = X), G && (G.preViewFooterShow && (preViewFooterShow.value = G.preViewFooterShow), G.preViewSubmitFun && (preViewSubmitFun.value = G.preViewSubmitFun), G.preViewCloseFun && (preViewCloseFun.value = G.preViewCloseFun), G.preViewCode && (preViewCode.value = G.preViewCode), G.width && (preViewWidth.value = G.width), G.height && (!isNaN(G.height) || G.height.indexOf("px") > 0 ? (preViewHeight.value = parseFloat(G.height) / document.documentElement.clientHeight * 100, preViewHeight.value = Math.floor(preViewHeight.value)) : G.height.indexOf("%") > 0 || G.height.indexOf("vh") > 0 ? preViewHeight.value = parseFloat(G.height) : preViewHeight.value = 75)), preWindowId.value = Q, preViewShow.value = !preViewShow.value, preViewLoading.value = !0;
|
|
41045
41060
|
}, preViewLoadSuccess = () => {
|
|
41046
41061
|
preViewLoading.value = !1;
|
|
41047
41062
|
}, preViewxModal = ref(), showPreViewClose = () => {
|
|
@@ -41415,7 +41430,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_c9d3b0b2_lang = "", _withSco
|
|
|
41415
41430
|
]);
|
|
41416
41431
|
};
|
|
41417
41432
|
}
|
|
41418
|
-
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
41433
|
+
}, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-defaad7b"]]);
|
|
41419
41434
|
WindowIndex.name = "slw-window-index";
|
|
41420
41435
|
WindowIndex.install = (Q) => {
|
|
41421
41436
|
Q.component(WindowIndex.name, WindowIndex);
|
|
@@ -124214,7 +124229,7 @@ function reConsole() {
|
|
|
124214
124229
|
}
|
|
124215
124230
|
}
|
|
124216
124231
|
console.info(
|
|
124217
|
-
"%cSLW %cVer 0.7.
|
|
124232
|
+
"%cSLW %cVer 0.7.8",
|
|
124218
124233
|
"color:#409EFF;font-size: 22px;font-weight:bolder",
|
|
124219
124234
|
"color:#999;font-size: 12px"
|
|
124220
124235
|
);
|