slw 0.5.998 → 0.6.0
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 +41 -24
- package/lib/index.umd.cjs +6 -6
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -8511,7 +8511,7 @@ PictureUpload.name = "slw-picture-upload";
|
|
|
8511
8511
|
PictureUpload.install = (Q) => {
|
|
8512
8512
|
Q.component(PictureUpload.name, PictureUpload);
|
|
8513
8513
|
};
|
|
8514
|
-
const
|
|
8514
|
+
const windowGrid_vue_vue_type_style_index_0_scoped_1e029ec8_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-1e029ec8"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
|
|
8515
8515
|
class: "slw-window-grid-container",
|
|
8516
8516
|
style: { height: "100%" }
|
|
8517
8517
|
}, _hoisted_2$kS = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hT = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$au = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4U = [
|
|
@@ -8671,7 +8671,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ac0b799b_lang = "", _withScop
|
|
|
8671
8671
|
});
|
|
8672
8672
|
let ee = getParentRegion(), te = null;
|
|
8673
8673
|
ee && ee.params && (te = ee.params.subtableSearchExParams);
|
|
8674
|
-
const ne = Object.assign({}, Z, K, te), re = G[0];
|
|
8674
|
+
const ne = Object.assign({}, Z, K, te, queryFormScanData.value), re = G[0];
|
|
8675
8675
|
re && (ne.$_sort_column = re.property, ne.$_sort_type = re.order), X.forEach(({ property: ae, values: le }) => {
|
|
8676
8676
|
ne[ae.toUpperCase()] = le.join(",");
|
|
8677
8677
|
}), ne.page = H.currentPage, ne.limit = H.pageSize, ne._region_id = gridData.value.params._region_id, gridData.value.params.parentRowId && (ne[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue), gridData.value.params.queryParams && Object.keys(gridData.value.params.queryParams).forEach((ae) => {
|
|
@@ -9713,11 +9713,15 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ac0b799b_lang = "", _withScop
|
|
|
9713
9713
|
}
|
|
9714
9714
|
}
|
|
9715
9715
|
}, 500);
|
|
9716
|
-
}
|
|
9716
|
+
};
|
|
9717
|
+
let queryFormScanData = ref({});
|
|
9718
|
+
const onScanIconClick = (Q, H) => {
|
|
9717
9719
|
const G = gridData.value.formConfig.items.filter(
|
|
9718
9720
|
(X) => X.field == H
|
|
9719
9721
|
)[0];
|
|
9720
9722
|
G.itemRender.props.clickFunction && evalEvent(G.itemRender.props.clickFunction, Q, H);
|
|
9723
|
+
}, setFormScanValue = (Q, H) => {
|
|
9724
|
+
queryFormScanData.value[Q] = H;
|
|
9721
9725
|
}, setFormValue = (Q, H) => {
|
|
9722
9726
|
let G = gridData.value.formConfig.items.filter(
|
|
9723
9727
|
(X) => X.field == Q
|
|
@@ -9755,6 +9759,16 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ac0b799b_lang = "", _withScop
|
|
|
9755
9759
|
} else
|
|
9756
9760
|
Z = X.itemRender.options;
|
|
9757
9761
|
return Z;
|
|
9762
|
+
}, footerSum = (Q) => {
|
|
9763
|
+
const H = (X, Z) => {
|
|
9764
|
+
let K = 0;
|
|
9765
|
+
return X.forEach((ee) => {
|
|
9766
|
+
K += Number(ee[Z]);
|
|
9767
|
+
}), K;
|
|
9768
|
+
}, G = ({ columns: X, data: Z }) => [
|
|
9769
|
+
X.map((K, ee) => ee === 2 ? "和值" : Q.includes(K.field) ? H(Z, K.field) : "")
|
|
9770
|
+
];
|
|
9771
|
+
gridData.value.showFooter = !0, gridData.value.footerMethod = G;
|
|
9758
9772
|
};
|
|
9759
9773
|
return onMounted(async () => {
|
|
9760
9774
|
gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
|
|
@@ -9775,7 +9789,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ac0b799b_lang = "", _withScop
|
|
|
9775
9789
|
});
|
|
9776
9790
|
}), gridData.value.formConfig.items.forEach((Q) => {
|
|
9777
9791
|
var H, G, X;
|
|
9778
|
-
if ((G = (H = Q == null ? void 0 : Q.itemRender) == null ? void 0 : H.events) != null && G.hasOwnProperty("change") && (Q.itemRender.events.change = search), Q.remoteSearch ? (Q.itemRender.props.remoteMethod = async (Z) => {
|
|
9792
|
+
if (Q.canScan && (queryFormScanData.value[Q.field] = ""), (G = (H = Q == null ? void 0 : Q.itemRender) == null ? void 0 : H.events) != null && G.hasOwnProperty("change") && (Q.itemRender.events.change = search), Q.remoteSearch ? (Q.itemRender.props.remoteMethod = async (Z) => {
|
|
9779
9793
|
Z && (Q.itemRender.props.loading = !0, Q.itemRender.options = await remoteMethod(
|
|
9780
9794
|
Z,
|
|
9781
9795
|
Q.querys.id,
|
|
@@ -9855,8 +9869,8 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ac0b799b_lang = "", _withScop
|
|
|
9855
9869
|
}), {
|
|
9856
9870
|
scan_item: withCtx(({ data: ae, property: le }) => [
|
|
9857
9871
|
createVNode(G, {
|
|
9858
|
-
modelValue:
|
|
9859
|
-
"onUpdate:modelValue": (se) =>
|
|
9872
|
+
modelValue: unref(queryFormScanData)[le],
|
|
9873
|
+
"onUpdate:modelValue": (se) => unref(queryFormScanData)[le] = se
|
|
9860
9874
|
}, {
|
|
9861
9875
|
suffix: withCtx(() => [
|
|
9862
9876
|
createElementVNode("i", {
|
|
@@ -9996,7 +10010,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_ac0b799b_lang = "", _withScop
|
|
|
9996
10010
|
]);
|
|
9997
10011
|
};
|
|
9998
10012
|
}
|
|
9999
|
-
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
10013
|
+
}, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-1e029ec8"]]);
|
|
10000
10014
|
WindowGrid.name = "slw-window-grid";
|
|
10001
10015
|
WindowGrid.install = (Q) => {
|
|
10002
10016
|
Q.component(WindowGrid.name, WindowGrid);
|
|
@@ -37030,7 +37044,7 @@ const pseudoClasses = /* @__PURE__ */ [
|
|
|
37030
37044
|
function css$1() {
|
|
37031
37045
|
return new LanguageSupport(cssLanguage, cssLanguage.data.of({ autocomplete: cssCompletionSource }));
|
|
37032
37046
|
}
|
|
37033
|
-
const
|
|
37047
|
+
const windowForm_vue_vue_type_style_index_0_scoped_a12a6513_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-a12a6513"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
|
|
37034
37048
|
key: 0,
|
|
37035
37049
|
style: { "text-align": "left", "font-size": "18px", "line-height": "30px", "font-weight": "bold", padding: "5px 30px 0 15px" }
|
|
37036
37050
|
}, _hoisted_3$hS = ["onClick"], _sfc_main$5 = {
|
|
@@ -37131,15 +37145,13 @@ const windowForm_vue_vue_type_style_index_0_scoped_3b82697d_lang = "", _withScop
|
|
|
37131
37145
|
}
|
|
37132
37146
|
}
|
|
37133
37147
|
return Q;
|
|
37134
|
-
}), buttons = computed(() => formConfig.value.toolbarConfig.buttons.filter(
|
|
37135
|
-
|
|
37136
|
-
|
|
37137
|
-
|
|
37138
|
-
|
|
37139
|
-
|
|
37140
|
-
|
|
37141
|
-
}
|
|
37142
|
-
)), formSelectMap = computed(() => {
|
|
37148
|
+
}), buttons = computed(() => formConfig.value.toolbarConfig.buttons.filter((Q) => {
|
|
37149
|
+
let H = !0;
|
|
37150
|
+
return Q.displayLogic && (H = displayLogic(Q.displayLogic, {
|
|
37151
|
+
...formData.value,
|
|
37152
|
+
...assembleParentData()
|
|
37153
|
+
})), typeof Q.code < "u" && Q.type != "EDIT" && Q.type != "DELETE" && Q.type != "NEW" && !(uploadConfig.value.isHaveImgField && Q.type == "PIC_UPLOAD") && H;
|
|
37154
|
+
})), formSelectMap = computed(() => {
|
|
37143
37155
|
let Q = {};
|
|
37144
37156
|
return formConfig.value.columns.forEach((H) => {
|
|
37145
37157
|
H.itemRender && H.itemRender.props._select_id && (Q[H.id] = H);
|
|
@@ -37289,7 +37301,9 @@ const windowForm_vue_vue_type_style_index_0_scoped_3b82697d_lang = "", _withScop
|
|
|
37289
37301
|
}, setInitData = (Q) => {
|
|
37290
37302
|
setData(Q);
|
|
37291
37303
|
}, setValue = async (Q, H) => {
|
|
37292
|
-
let G = formConfig.value.columns.filter(
|
|
37304
|
+
let G = formConfig.value.columns.filter(
|
|
37305
|
+
(X) => X.field == Q.toUpperCase()
|
|
37306
|
+
)[0];
|
|
37293
37307
|
G != null && G.remoteSearch ? (G.itemRender.options = await remoteMethod(
|
|
37294
37308
|
H,
|
|
37295
37309
|
G.id,
|
|
@@ -37440,10 +37454,7 @@ const windowForm_vue_vue_type_style_index_0_scoped_3b82697d_lang = "", _withScop
|
|
|
37440
37454
|
_select_id: G
|
|
37441
37455
|
};
|
|
37442
37456
|
K[X] = Q;
|
|
37443
|
-
let ee = await axios.post(
|
|
37444
|
-
"/window/selector",
|
|
37445
|
-
$qs.stringify(K)
|
|
37446
|
-
);
|
|
37457
|
+
let ee = await axios.post("/window/selector", $qs.stringify(K));
|
|
37447
37458
|
if (ee.data.result && ee.data.data)
|
|
37448
37459
|
return Z = ee.data.data.map((te) => Object.assign(
|
|
37449
37460
|
{
|
|
@@ -37639,6 +37650,12 @@ const windowForm_vue_vue_type_style_index_0_scoped_3b82697d_lang = "", _withScop
|
|
|
37639
37650
|
var X;
|
|
37640
37651
|
(X = G == null ? void 0 : G.data) != null && X.result || $message.error(G.msg);
|
|
37641
37652
|
});
|
|
37653
|
+
}, setFormSelectOption = (Q, H = []) => {
|
|
37654
|
+
let G = formConfig.value.columns.filter(
|
|
37655
|
+
(X) => X.field == Q.toUpperCase()
|
|
37656
|
+
)[0];
|
|
37657
|
+
G && (G.itemRender.options = H);
|
|
37658
|
+
}, footerSum = () => {
|
|
37642
37659
|
}, throwFunction = (Q) => {
|
|
37643
37660
|
Q.getData = () => getData(), Q.submitData = () => submitData(), Q.getValue = (H) => getValue(H), Q.setValue = (H, G) => setValue(H, G);
|
|
37644
37661
|
};
|
|
@@ -37800,7 +37817,7 @@ const windowForm_vue_vue_type_style_index_0_scoped_3b82697d_lang = "", _withScop
|
|
|
37800
37817
|
]);
|
|
37801
37818
|
};
|
|
37802
37819
|
}
|
|
37803
|
-
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
37820
|
+
}, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a12a6513"]]);
|
|
37804
37821
|
WindowForm.name = "slw-window-form";
|
|
37805
37822
|
WindowForm.install = (Q) => {
|
|
37806
37823
|
Q.component(WindowForm.name, WindowForm);
|
|
@@ -122318,7 +122335,7 @@ function reConsole() {
|
|
|
122318
122335
|
}
|
|
122319
122336
|
}
|
|
122320
122337
|
console.info(
|
|
122321
|
-
"%cSLW %cVer 0.
|
|
122338
|
+
"%cSLW %cVer 0.6.000",
|
|
122322
122339
|
"color:#409EFF;font-size: 22px;font-weight:bolder",
|
|
122323
122340
|
"color:#999;font-size: 12px"
|
|
122324
122341
|
);
|