slw 0.5.998 → 0.5.999

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 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 windowGrid_vue_vue_type_style_index_0_scoped_ac0b799b_lang = "", _withScopeId$3 = (Q) => (pushScopeId("data-v-ac0b799b"), Q = Q(), popScopeId(), Q), _hoisted_1$kW = {
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
- }, onScanIconClick = (Q, H) => {
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: ae[le],
9859
- "onUpdate:modelValue": (se) => ae[le] = 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-ac0b799b"]]);
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);
@@ -122318,7 +122332,7 @@ function reConsole() {
122318
122332
  }
122319
122333
  }
122320
122334
  console.info(
122321
- "%cSLW %cVer 0.5.998",
122335
+ "%cSLW %cVer 0.5.999",
122322
122336
  "color:#409EFF;font-size: 22px;font-weight:bolder",
122323
122337
  "color:#999;font-size: 12px"
122324
122338
  );