slw 0.7.7 → 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 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), windowForm_vue_vue_type_style_index_0_scoped_a5b54b04_lang = "", _withScopeId$2 = (Q) => (pushScopeId("data-v-a5b54b04"), Q = Q(), popScopeId(), Q), _hoisted_1$kV = { class: "slw-window-form" }, _hoisted_2$kR = {
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,
@@ -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(), getSelectTableField(Q.property), subQueryFields.value.forEach((G) => {
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) => {
@@ -39482,7 +39482,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39482
39482
  (Z) => Z.field == Q.toUpperCase()
39483
39483
  )[0];
39484
39484
  G && (G.itemRender.props[H] = X);
39485
- }, getSelectTableField = (Q) => {
39485
+ }, handleSelectTableField = (Q) => {
39486
39486
  const H = formConfig.value.params.selectTableField[Q.toUpperCase()];
39487
39487
  H && H.forEach((X) => {
39488
39488
  axios.post(
@@ -39502,6 +39502,11 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39502
39502
  )), formData.value[formSelectMap.value[X._field_id].field] = null));
39503
39503
  });
39504
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;
39505
39510
  }, footerSum = () => {
39506
39511
  }, throwFunction = (Q) => {
39507
39512
  Q.getData = () => getData(), Q.submitData = () => submitData(), Q.getValue = (H) => getValue(H), Q.setValue = (H, X) => setValue(H, X);
@@ -39665,7 +39670,7 @@ const index$n = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
39665
39670
  ]);
39666
39671
  };
39667
39672
  }
39668
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a5b54b04"]]);
39673
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-e75f88ed"]]);
39669
39674
  WindowForm.name = "slw-window-form";
39670
39675
  WindowForm.install = (Q) => {
39671
39676
  Q.component(WindowForm.name, WindowForm);
@@ -40006,7 +40011,7 @@ function P$1(Q, H, X, G, Z, K) {
40006
40011
  renderSlot(Q.$slots, "default")
40007
40012
  ], 4);
40008
40013
  }
40009
- const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", windowLayout_vue_vue_type_style_index_0_scoped_ce781476_lang = "", _withScopeId$1 = (Q) => (pushScopeId("data-v-ce781476"), Q = Q(), popScopeId(), Q), _hoisted_1$kU = { class: "slw-window-layout-container" }, _sfc_main$4 = {
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 = {
40010
40015
  __name: "window-layout",
40011
40016
  props: {
40012
40017
  layoutData: {
@@ -40143,7 +40148,7 @@ const g$1 = /* @__PURE__ */ S$1(x$1, [["render", P$1]]), splitpanes = "", window
40143
40148
  ]);
40144
40149
  };
40145
40150
  }
40146
- }, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-ce781476"]]);
40151
+ }, WindowLayout = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-a185b046"]]);
40147
40152
  WindowLayout.name = "slw-window-layout";
40148
40153
  WindowLayout.install = (Q) => {
40149
40154
  Q.component(WindowLayout.name, WindowLayout);
@@ -124224,7 +124229,7 @@ function reConsole() {
124224
124229
  }
124225
124230
  }
124226
124231
  console.info(
124227
- "%cSLW %cVer 0.7.7",
124232
+ "%cSLW %cVer 0.7.8",
124228
124233
  "color:#409EFF;font-size: 22px;font-weight:bolder",
124229
124234
  "color:#999;font-size: 12px"
124230
124235
  );