slw 0.7.7 → 0.7.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.
- package/lib/index.js +16 -10
- package/lib/index.umd.cjs +3 -3
- 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_bcfc3a04_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-bcfc3a04"), 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,
|
|
@@ -39337,7 +39337,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39337
39337
|
}
|
|
39338
39338
|
}
|
|
39339
39339
|
}
|
|
39340
|
-
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) => {
|
|
39341
39341
|
getSubQueryData(Q.data._region_id, G.id, G.field);
|
|
39342
39342
|
});
|
|
39343
39343
|
}, getSubQueryData = (Q, H, X) => {
|
|
@@ -39456,11 +39456,12 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39456
39456
|
(X) => X.type !== "seq" && X.type !== "checkbox" && X.fixed !== "left"
|
|
39457
39457
|
);
|
|
39458
39458
|
for (let [X, G] of H.entries())
|
|
39459
|
-
if (G.
|
|
39459
|
+
if (G.displayForm && X > 0) {
|
|
39460
39460
|
G.fwidth = G.fwidth ? G.fwidth : 12;
|
|
39461
39461
|
let Z = H[X - 1];
|
|
39462
39462
|
Number(G.fwidth) > 24 ? (G.aLine = !0, G.residue = 0) : (G.aLine = !1, G.residue = 24 - Number(G.fwidth), Z && (Z.aLine || Z.residue - Number(G.fwidth) < 0) || X == 0 ? G.residue = 24 - Number(G.fwidth) : Z.residue - Number(G.fwidth) >= 0 && (G.residue = Z.residue - Number(G.fwidth))), (G.itemRender.props.newLine === !0 || G.itemRender.props.newLine === "Y") && (Z.fwidth = Number(Z.fwidth) + Number(Z.residue), Z.residue = 0, G.residue = 24 - Number(G.fwidth));
|
|
39463
|
-
}
|
|
39463
|
+
} else
|
|
39464
|
+
G.displayForm && X == 0 && (G.fwidth = G.fwidth ? Number(G.fwidth) : 12, G.residue = G.fwidth > 24 ? 0 : 24 - Number(G.fwidth));
|
|
39464
39465
|
}, getPictureList = async () => {
|
|
39465
39466
|
let Q = await axios.post(
|
|
39466
39467
|
`/dataFile/list/${uploadConfig.value.regionId}/${uploadConfig.value.dataId}`
|
|
@@ -39482,7 +39483,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39482
39483
|
(Z) => Z.field == Q.toUpperCase()
|
|
39483
39484
|
)[0];
|
|
39484
39485
|
G && (G.itemRender.props[H] = X);
|
|
39485
|
-
},
|
|
39486
|
+
}, handleSelectTableField = (Q) => {
|
|
39486
39487
|
const H = formConfig.value.params.selectTableField[Q.toUpperCase()];
|
|
39487
39488
|
H && H.forEach((X) => {
|
|
39488
39489
|
axios.post(
|
|
@@ -39502,6 +39503,11 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39502
39503
|
)), formData.value[formSelectMap.value[X._field_id].field] = null));
|
|
39503
39504
|
});
|
|
39504
39505
|
});
|
|
39506
|
+
}, getTableFieldSelectData = (Q) => {
|
|
39507
|
+
let H = formConfig.value.columns.filter(
|
|
39508
|
+
(G) => G.field == Q.toUpperCase()
|
|
39509
|
+
)[0], X = [];
|
|
39510
|
+
return H && (X = H.itemRender.options), X;
|
|
39505
39511
|
}, footerSum = () => {
|
|
39506
39512
|
}, throwFunction = (Q) => {
|
|
39507
39513
|
Q.getData = () => getData(), Q.submitData = () => submitData(), Q.getValue = (H) => getValue(H), Q.setValue = (H, X) => setValue(H, X);
|
|
@@ -39665,7 +39671,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
|
|
|
39665
39671
|
]);
|
|
39666
39672
|
};
|
|
39667
39673
|
}
|
|
39668
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
39674
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-bcfc3a04"]]);
|
|
39669
39675
|
WindowForm.name = "slw-window-form";
|
|
39670
39676
|
WindowForm.install = (Q) => {
|
|
39671
39677
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -40006,7 +40012,7 @@ function P$1(Q, H, X, G, Z, K) {
|
|
|
40006
40012
|
renderSlot(Q.$slots, "default")
|
|
40007
40013
|
], 4);
|
|
40008
40014
|
}
|
|
40009
|
-
const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "",
|
|
40015
|
+
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 = {
|
|
40010
40016
|
__name: "window-layout",
|
|
40011
40017
|
props: {
|
|
40012
40018
|
layoutData: {
|
|
@@ -40143,7 +40149,7 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
|
|
|
40143
40149
|
]);
|
|
40144
40150
|
};
|
|
40145
40151
|
}
|
|
40146
|
-
}, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
40152
|
+
}, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-a185b046"]]);
|
|
40147
40153
|
WindowLayout.name = "slw-window-layout";
|
|
40148
40154
|
WindowLayout.install = (Q) => {
|
|
40149
40155
|
Q.component(WindowLayout.name, WindowLayout);
|
|
@@ -124224,7 +124230,7 @@ function reConsole() {
|
|
|
124224
124230
|
}
|
|
124225
124231
|
}
|
|
124226
124232
|
console.info(
|
|
124227
|
-
"%cSLW %cVer 0.7.
|
|
124233
|
+
"%cSLW %cVer 0.7.9",
|
|
124228
124234
|
"color:#409EFF;font-size: 22px;font-weight:bolder",
|
|
124229
124235
|
"color:#999;font-size: 12px"
|
|
124230
124236
|
);
|