slw 1.0.0-beta.5 → 1.0.0-beta.6

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.
@@ -1,5 +1,5 @@
1
1
  import { pushScopeId as P, popScopeId as V, createElementVNode as h, resolveComponent as g, openBlock as o, createElementBlock as p, createBlock as f, normalizeClass as T, normalizeStyle as A, withModifiers as R, withCtx as r, renderSlot as q, createCommentVNode as _, Fragment as B, createVNode as s, mergeProps as k, renderList as j, toDisplayString as E, normalizeProps as K, guardReactiveProps as Q, resolveDynamicComponent as Z, defineAsyncComponent as $, computed as F, unref as D, withDirectives as ee, vShow as te } from "vue";
2
- import { _ as x, d as S, a as L, u as N } from "./index-c2265d7c.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-5a8c9d05.js";
3
3
  import "vue-router";
4
4
  const I = {
5
5
  computed: {},
@@ -1090,7 +1090,7 @@ const je = { class: "form-widget-list" }, Fe = {
1090
1090
  }, 8, ["list", "component-data"])
1091
1091
  ]));
1092
1092
  }
1093
- }, Ne = /* @__PURE__ */ x(Fe, [["__scopeId", "data-v-5cc15e60"]]), Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1093
+ }, Ne = /* @__PURE__ */ x(Fe, [["__scopeId", "data-v-48225462"]]), Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1094
1094
  __proto__: null,
1095
1095
  default: Ne
1096
1096
  }, Symbol.toStringTag, { value: "Module" }));
@@ -8525,7 +8525,7 @@ PictureUpload.name = "slw-picture-upload";
8525
8525
  PictureUpload.install = (Q) => {
8526
8526
  Q.component(PictureUpload.name, PictureUpload);
8527
8527
  };
8528
- const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScopeId$9 = (Q) => (pushScopeId("data-v-f8c6bf36"), Q = Q(), popScopeId(), Q), _hoisted_1$l2 = {
8528
+ const windowGrid_vue_vue_type_style_index_0_scoped_958bb110_lang = "", _withScopeId$9 = (Q) => (pushScopeId("data-v-958bb110"), Q = Q(), popScopeId(), Q), _hoisted_1$l2 = {
8529
8529
  class: "slw-window-grid-container",
8530
8530
  style: { height: "100%" }
8531
8531
  }, _hoisted_2$kZ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hZ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$az = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4Z = [
@@ -8548,7 +8548,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
8548
8548
  },
8549
8549
  emits: ["update:gridData", "jumpDesign"],
8550
8550
  setup(__props, { expose: __expose, emit }) {
8551
- const props = __props, axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), regionMap = inject("$regionMap"), focusInput = inject("$focusInput"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $T = inject("$t"), httpHeaders = inject("$httpHeaders"), addGridClickEvent = inject("$addGridClickEvent"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), toggleModalLoading = inject("$toggleModalLoading"), closePreModal = inject("$closePreModal"), rowDbClick = inject("$rowDbClick"), $Modal = inject("$modal"), $qs = inject("$qs"), $vxeMessage = inject("$vxeMessage"), $vxeConfirm = inject("$vxeConfirm"), $vxeOpen = inject("$vxeOpen"), $vxeReadFile = inject("$vxeReadFile"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), evalDefaultValue = inject("$evalDefaultValue"), callGridClickEvents = inject("$callGridClickEvents"), ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $components = inject("$components"), $componentsPath = inject("$componentsPath"), route = useRoute();
8551
+ const props = __props, axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), regionMap = inject("$regionMap"), focusInput = inject("$focusInput"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $T = inject("$t"), httpHeaders = inject("$httpHeaders"), addGridClickEvent = inject("$addGridClickEvent"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), toggleModalLoading = inject("$toggleModalLoading"), closePreModal = inject("$closePreModal"), rowDbClick = inject("$rowDbClick"), $Modal = inject("$modal"), $qs = inject("$qs"), $ElMessage = inject("$ElMessage"), $vxeMessage = inject("$vxeMessage"), $vxeConfirm = inject("$vxeConfirm"), $vxeOpen = inject("$vxeOpen"), $vxeReadFile = inject("$vxeReadFile"), openModal = inject("$openModal"), closeModal = inject("$closeModal"), evalDefaultValue = inject("$evalDefaultValue"), callGridClickEvents = inject("$callGridClickEvents"), ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $components = inject("$components"), $componentsPath = inject("$componentsPath"), $externalFun = inject("$externalFun"), route = useRoute();
8552
8552
  let gridData = useVModel$1(props, "gridData", emit), rowIndex = ref(0), isImport = ref(!1), importUrl = ref(`${(axios == null ? void 0 : axios.baseUrl) || ""}/window/import`), importBtnId = ref(""), uploadConfig = ref({
8553
8553
  show: !1,
8554
8554
  dataId: "",
@@ -8781,7 +8781,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
8781
8781
  }
8782
8782
  }, gridData.value.params.parentRegionId && (gridData.value.proxyConfig.autoLoad = !1);
8783
8783
  }, rowClick = (Q) => {
8784
- if (gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE" || Q.rowIndex !== rowIndex.value ? rowClickCommon(Q.row, Q.rowIndex) : rowIndex.value = Q.rowIndex, gridData.value.rowConfig.keyField == "SYS_WINDOW_REGION_ID" && Q.column.field == "CODE")
8784
+ if (gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE" || Q.rowIndex !== rowIndex.value ? rowClickCommon(Q.row, Q.rowIndex) : (rowIndex.value = Q.rowIndex, gridData.value.type == "EDIT_GRID" && getCurRegion().setEditRow(Q.row)), gridData.value.rowConfig.keyField == "SYS_WINDOW_REGION_ID" && Q.column.field == "CODE")
8785
8785
  try {
8786
8786
  navigator.clipboard.writeText(Q.row[Q.column.field]), $message.success("已复制区域编码到剪贴板");
8787
8787
  } catch (H) {
@@ -8825,11 +8825,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
8825
8825
  let G;
8826
8826
  if (typeof H > "u" && Q.type !== "EXPORT" && (H = getSelectRecord() || getCheckedData(), G = getCheckedData(), gridData.value.type !== "EDIT_GRID" && Q.type !== "NEW" && Q.type !== "IMPORT" && Q.code.toUpperCase() !== "ROLLBACK" && Q.type !== "EVENT")) {
8827
8827
  if (!H || H.length === 0) {
8828
- $vxeMessage({
8829
- content: $T("请选择数据!"),
8830
- status: "info",
8831
- zIndex: 3e3
8832
- });
8828
+ $message.success($T("请选择数据!"), "info");
8833
8829
  return;
8834
8830
  }
8835
8831
  H.length > 0 && (H = H[0]);
@@ -8853,6 +8849,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
8853
8849
  border: "inner",
8854
8850
  size: "small",
8855
8851
  columnConfig: {
8852
+ useKey: !0,
8856
8853
  isCurrent: !0,
8857
8854
  isHover: !0,
8858
8855
  resizable: !0
@@ -8931,7 +8928,15 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
8931
8928
  isHover: !0
8932
8929
  },
8933
8930
  type: "EDIT_GRID",
8934
- addListener: !0
8931
+ addListener: !0,
8932
+ pagerConfig: {
8933
+ currentPage: 1,
8934
+ pageSize: 10,
8935
+ pageSizes: [5, 10, 15, 20, 50, 100, 200, 500, 1e3],
8936
+ background: !0,
8937
+ enabled: !1,
8938
+ layouts: ["PrevJump", "PrevPage", "Number", "NextPage", "NextJump", "Sizes", "FullJump", "Total"]
8939
+ }
8935
8940
  }
8936
8941
  };
8937
8942
  });
@@ -8945,11 +8950,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
8945
8950
  await editGridSetDefaultValue(oe), isEditGridInitData.value || await editGridInitData(oe), ne.setEditRow(oe);
8946
8951
  } else {
8947
8952
  if (gridData.value.params.parentRowId && !gridData.value.params.parentRowIdValue) {
8948
- $vxeMessage({
8949
- content: $T("请选创建父窗口数据!"),
8950
- status: "info",
8951
- zIndex: 3e3
8952
- });
8953
+ $message.success($T("请选创建父窗口数据!"), "info");
8953
8954
  return;
8954
8955
  }
8955
8956
  let ne = Object.assign({}, gridData.value);
@@ -8986,21 +8987,9 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
8986
8987
  let ae = "/window/delete";
8987
8988
  Q.requestPath && (ae = Q.requestPath), $vxeConfirm($T("你确定删除?"), void 0, { zIndex: 3e3 }).then((le) => {
8988
8989
  le === "confirm" && axios.post(ae, re).then((se) => {
8989
- se.status === 200 && se.data.result ? (reload(), $vxeMessage({
8990
- content: se.data.msg,
8991
- status: "info",
8992
- zIndex: 3e3
8993
- })) : $vxeMessage({
8994
- content: se.data.msg,
8995
- status: "error",
8996
- zIndex: 3e3
8997
- });
8990
+ se.status === 200 && se.data.result ? (reload(), $message.success($T(se.data.msg), "info")) : $message.error(se.data.msg);
8998
8991
  }).catch((se) => {
8999
- $vxeMessage({
9000
- content: se.msg,
9001
- status: "error",
9002
- zIndex: 3e3
9003
- });
8992
+ $message.error(se.msg);
9004
8993
  });
9005
8994
  });
9006
8995
  }
@@ -9036,11 +9025,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
9036
9025
  $vxeReadFile({ types: ["xml"] }).then(({ file: ne }) => {
9037
9026
  const oe = new FormData();
9038
9027
  oe.append("file", ne), axios.upload("windowButton/importWindow", oe).then((re) => {
9039
- re.status === 200 && ($vxeMessage({
9040
- content: re.data.msg || $T("导入失败!"),
9041
- status: "info",
9042
- zIndex: 3e3
9043
- }), re.data.result && reload()), Q.loading = !1;
9028
+ re.status === 200 && ($message.success($T(re.data.msg || $T("导入失败!")), "info"), re.data.result && reload()), Q.loading = !1;
9044
9029
  });
9045
9030
  }).catch((ne) => {
9046
9031
  console.error(ne), Q.loading = !1;
@@ -9050,11 +9035,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
9050
9035
  }
9051
9036
  else if (te === "EXPORT" && gridData.value.params.code == "Window") {
9052
9037
  if (!H || H.length === 0) {
9053
- $vxeMessage({
9054
- content: $T("请选择需要导出的窗口!"),
9055
- status: "info",
9056
- zIndex: 3e3
9057
- }), Q.loading = !1;
9038
+ $message.success($T(response.data.msg || $T("请选择需要导出的窗口!")), "info"), Q.loading = !1;
9058
9039
  return;
9059
9040
  }
9060
9041
  H.length > 0 && (H = H[0]), await axios.download("/windowButton/exportWindow", {
@@ -9065,11 +9046,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
9065
9046
  ne === "confirm" && axios.post("windowButton/generateColumn", {
9066
9047
  datasourceId: H.SYS_DATASOURCE_ID
9067
9048
  }).then((oe) => {
9068
- $vxeMessage({
9069
- content: oe.data.msg,
9070
- status: oe.data.result ? "success" : "error",
9071
- zIndex: 3e3
9072
- }), oe.data.result && reload(), Q.loading = !1;
9049
+ oe.data.result ? (reload(), $message.success(oe.data.msg)) : $message.error(oe.data.msg), Q.loading = !1;
9073
9050
  });
9074
9051
  });
9075
9052
  else if (te === "DATA_VIEW")
@@ -9078,7 +9055,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
9078
9055
  width: "800px",
9079
9056
  height: "500px",
9080
9057
  title: $T("预览[") + H.NAME + $T("]的数据"),
9081
- content: ne.data.result ? JSON.stringify(ne.data.data) : ne.data.msg
9058
+ content: ne.data.result ? JSON.stringify(ne.data.data, null, " ") : ne.data.msg
9082
9059
  }), Q.loading = !1;
9083
9060
  });
9084
9061
  else if (te === "GENERATETABLE")
@@ -9086,11 +9063,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
9086
9063
  ne === "confirm" && axios.post("windowButton/generateTableStructure", {
9087
9064
  dataSourceId: H.SYS_DATASOURCE_ID
9088
9065
  }).then((oe) => {
9089
- $vxeMessage({
9090
- content: oe.data.msg,
9091
- status: oe.data.result ? "success" : "error",
9092
- zIndex: 3e3
9093
- }), oe.data.result && reload(), Q.loading = !1;
9066
+ oe.data.result ? (reload(), $message.success(oe.data.msg)) : $message.error(oe.data.msg), Q.loading = !1;
9094
9067
  });
9095
9068
  });
9096
9069
  else if (te === "GENERATE_FIELD")
@@ -9098,11 +9071,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
9098
9071
  ne === "confirm" && axios.post("windowButton/generateField", {
9099
9072
  regionId: H.SYS_WINDOW_REGION_ID
9100
9073
  }).then((oe) => {
9101
- $vxeMessage({
9102
- content: oe.data.msg,
9103
- status: oe.data.result ? "success" : "error",
9104
- zIndex: 3e3
9105
- }), oe.data.result && reload(), Q.loading = !1;
9074
+ oe.data.result ? (reload(), $message.success(oe.data.msg)) : $message.error(oe.data.msg), Q.loading = !1;
9106
9075
  });
9107
9076
  });
9108
9077
  else if (Q.windowId)
@@ -9143,11 +9112,24 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
9143
9112
  height: gridData.value.params.editHeight ? gridData.value.params.editHeight : "",
9144
9113
  tableData: getCanEditData(),
9145
9114
  rowIndex: H
9146
- }, G.params.queryParams !== null && typeof G.params.queryParams < "u" && (G.params.queryParams.unQuery = !0), G.formData._button_id = gridData.value.params.edit_button_id, G._reload = () => reload(), rowDbClick(G);
9115
+ }, G.params.queryParams !== null && typeof G.params.queryParams < "u" && (G.params.queryParams.unQuery = !0), G.formData._button_id = gridData.value.params.edit_button_id, G._reload = (K) => reloadRow(K), rowDbClick(G);
9147
9116
  }, reload = () => {
9148
9117
  var Q;
9149
- (Q = getCurRegion()) == null || Q.commitProxy("reload"), rowIndex.value > 0 && nextTick(() => {
9150
- getCurRegion().scrollToRow(getData()[rowIndex.value]);
9118
+ (Q = getCurRegion()) == null || Q.commitProxy("reload");
9119
+ }, reloadRow = (Q) => {
9120
+ const { formData: H, tableData: X, rowConfig: G } = Q;
9121
+ X.forEach((K) => {
9122
+ if (K[G.keyField] == H[G.keyField]) {
9123
+ getCurRegion().reloadRow(K, H), queryAfterList && queryAfterList.length > 0 && queryAfterList.forEach((Z) => {
9124
+ if (Z && typeof Z == "function")
9125
+ try {
9126
+ Z(X || []);
9127
+ } catch (ee) {
9128
+ console.error(ee, gridData.value.params.windowTitle, "表格查询后方法");
9129
+ }
9130
+ }), rowClickCommon(K, rowIndex.value);
9131
+ return;
9132
+ }
9151
9133
  });
9152
9134
  }, clearGrid = () => {
9153
9135
  for (let Q in queryFormData.value)
@@ -9217,11 +9199,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
9217
9199
  }, removeRow = (Q) => {
9218
9200
  getCurRegion().remove(Q);
9219
9201
  }, exportCurrentData = async () => {
9220
- exportButton.value ? getCurRegion().exportData() : $vxeMessage({
9221
- content: $T("您没有导出数据权限!"),
9222
- status: "error",
9223
- zIndex: 3e3
9224
- });
9202
+ exportButton.value ? getCurRegion().exportData() : $message.error($T("您没有导出数据权限!"));
9225
9203
  }, exportData = async () => {
9226
9204
  if (exportButton.value) {
9227
9205
  const Q = Object.assign(
@@ -9232,11 +9210,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
9232
9210
  );
9233
9211
  gridData.value.params.parentRowId && (Q[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue), await axios.export("/window/export?data=" + base64Encode(JSON.stringify(Q)), {}), exportButton.value.loading = !1;
9234
9212
  } else
9235
- $vxeMessage({
9236
- content: $T("您没有导出数据权限!"),
9237
- status: "error",
9238
- zIndex: 3e3
9239
- });
9213
+ $message.error($T("您没有导出数据权限!"));
9240
9214
  }, search = (Q) => {
9241
9215
  clearTimeout(queryTimeout.value), Q && Object.keys(Q).forEach((H) => {
9242
9216
  const X = H.toLowerCase();
@@ -9246,13 +9220,9 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
9246
9220
  (H = getCurRegion()) == null || H.commitProxy("query");
9247
9221
  }, 500);
9248
9222
  }, importFormatError = (Q) => {
9249
- $vxeMessage({
9250
- content: $T("导入文件格式错误"),
9251
- status: "error",
9252
- zIndex: 3e3
9253
- });
9223
+ $message.error($T("导入文件格式错误!"));
9254
9224
  }, importSuccess = (Q, H) => {
9255
- Q.result && (isImport.value = !1, reload()), $vxeMessage({ content: Q.msg, status: "info", zIndex: 3e3 });
9225
+ Q.result && (isImport.value = !1, reload()), $message.success(Q.msg, "info");
9256
9226
  }, downTemplate = () => {
9257
9227
  let Q = getCurRegion(), H = Q.params.newDownTemplateUrl ? Q.params.newDownTemplateUrl : "/window/downloadTemplate";
9258
9228
  axios.download(H, {
@@ -9325,10 +9295,11 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
9325
9295
  zIndex: 3e3
9326
9296
  });
9327
9297
  }, error = (Q) => {
9328
- $vxeMessage({
9329
- content: Q,
9330
- status: "error",
9331
- zIndex: 3e3
9298
+ $ElMessage({
9299
+ showClose: !0,
9300
+ message: Q,
9301
+ type: "error",
9302
+ duration: 0
9332
9303
  });
9333
9304
  }, visibleMethod = ({ row: Q, type: H }) => {
9334
9305
  let X = getCurRegion();
@@ -9367,11 +9338,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
9367
9338
  const H = getGrid();
9368
9339
  let X = H.getCheckboxRecords();
9369
9340
  if (X.length <= 0) {
9370
- $vxeMessage({
9371
- content: $T("请勾选需要复制的行数据!"),
9372
- status: "warning",
9373
- zIndex: 3e3
9374
- });
9341
+ $message.success($T("请勾选需要复制的行数据!"), "warning");
9375
9342
  return;
9376
9343
  }
9377
9344
  let G = H.getRowSeq(X[X.length - 1]);
@@ -9387,11 +9354,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
9387
9354
  }, handleDeleteChildTableData = async () => {
9388
9355
  const Q = getGrid();
9389
9356
  if (Q.getCheckboxRecords().length <= 0) {
9390
- $vxeMessage({
9391
- content: $T("请勾选需要删除的行数据!"),
9392
- status: "warning",
9393
- zIndex: 3e3
9394
- });
9357
+ $message.success($T("请勾选需要删除的行数据!"), "warning");
9395
9358
  return;
9396
9359
  }
9397
9360
  await $vxeConfirm($T("您确定要删除吗?")) === "confirm" && Q.removeCheckboxRow();
@@ -9638,7 +9601,11 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
9638
9601
  G.find((te) => te[X.rowConfig.keyField] == ee) && (Z.style["background-color"] = H);
9639
9602
  }
9640
9603
  }, 400);
9641
- }, setRowCellColor = (Q, H, X, G = "#e6f7ff") => {
9604
+ }, setRowCellColor = (Q, H, X, G) => {
9605
+ if (!(G instanceof Object)) {
9606
+ console.error(" style 必须是个对象!");
9607
+ return;
9608
+ }
9642
9609
  let K = getCurRegion();
9643
9610
  Q && (K = getRegion(Q)), setTimeout(() => {
9644
9611
  let Z = K.$el.querySelector(".vxe-table--main-wrapper .vxe-table--body-wrapper table tbody");
@@ -9648,11 +9615,15 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
9648
9615
  if (X) {
9649
9616
  for (let te of ee.children)
9650
9617
  if (te.attributes.class.value.includes(X.toUpperCase())) {
9651
- te.style["background-color"] = G;
9618
+ Object.keys(G).forEach((ne) => {
9619
+ te.style.hasOwnProperty(ne) && (te.style[ne] = G[ne]);
9620
+ });
9652
9621
  return;
9653
9622
  }
9654
9623
  } else
9655
- ee.style["background-color"] = G;
9624
+ Object.keys(G).forEach((te) => {
9625
+ ee.style.hasOwnProperty(te) && (ee.style[te] = G[te]);
9626
+ });
9656
9627
  return;
9657
9628
  }
9658
9629
  }
@@ -9709,7 +9680,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
9709
9680
  const G = Q.property, K = Q.data, Z = Q.item.itemRender.options;
9710
9681
  await evalEvent(X, H, G, K, Z, "查询条件字段值改变事件");
9711
9682
  }
9712
- nextTick(() => {
9683
+ gridData.value.params.queryFieldChangeNoQuery || nextTick(() => {
9713
9684
  reload();
9714
9685
  });
9715
9686
  }, setQueryFieldChangeFun = (Q, H) => {
@@ -9826,11 +9797,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
9826
9797
  type: "json",
9827
9798
  data: K
9828
9799
  }).then((Z) => {
9829
- Z.data.result || $vxeMessage({
9830
- content: Z.data.msg,
9831
- status: "error",
9832
- zIndex: 3e3
9833
- });
9800
+ Z.data.result || $message.error(Z.data.msg);
9834
9801
  }).catch((Z) => {
9835
9802
  console.error(Z);
9836
9803
  });
@@ -9853,7 +9820,16 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
9853
9820
  });
9854
9821
  }
9855
9822
  }, setGridSlotsVuePath = async (Q, H) => {
9856
- gridData.value.params.slotsVuePath || (gridData.value.params.slotsVuePath = {}), H == "other_item" ? otherItemComponent.value = (await $components[`${$componentsPath}/${Q}`]()).default : H == "table_top" && (tableTopComponent.value = (await $components[`${$componentsPath}/${Q}`]()).default), (otherItemComponent.value || tableTopComponent.value) && (gridData.value.params.slotsVuePath[H] = Q, await nextTick(), regionMap.value[H + "-" + gridData.value.params.code + "-" + gridData.value.params.preTag] = H == "other_item" ? otherItem.value : tableTop.value, regionMap.value[H + "-" + gridData.value.params.code] = H == "other_item" ? otherItem.value : tableTop.value);
9823
+ gridData.value.params.slotsVuePath || (gridData.value.params.slotsVuePath = {}), H == "other_item" ? otherItemComponent.value = (await $components[`${$componentsPath}/${Q}`]()).default : H == "table_top" && (tableTopComponent.value = (await $components[`${$componentsPath}/${Q}`]()).default), (otherItemComponent.value || tableTopComponent.value) && (gridData.value.params.slotsVuePath[H] = Q, await nextTick(), regionMap.value[H + "-" + gridData.value.params.code + "-" + gridData.value.params.preTag] = H == "other_item" ? otherItem.value : tableTop.value, regionMap.value[H + "-" + gridData.value.params.code] = H == "other_item" ? otherItem.value : tableTop.value, getCurRegion().recalculate(!0));
9824
+ }, setCheckMethod = (Q) => {
9825
+ gridData.value.checkboxConfig.checkMethod = Q;
9826
+ }, setButtonDisplay = (Q, H) => {
9827
+ gridData.value.toolbarConfig.buttons.forEach((X) => {
9828
+ if (X.name == Q) {
9829
+ X.visible = H, X.showInGrid = H;
9830
+ return;
9831
+ }
9832
+ });
9857
9833
  };
9858
9834
  return onMounted(async () => {
9859
9835
  gridData.value.addListener && getCurRegion() && addListener(), gridData.value.type === "TREE_STRUCTURE" && (gridData.value.menuConfig = {
@@ -9906,7 +9882,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
9906
9882
  search(Q);
9907
9883
  }, curRegion.value.getCheckedData = () => getCheckedData(), curRegion.value.getSelectRecord = () => getSelectRecord(), curRegion.value.setChecked = (Q) => {
9908
9884
  setChecked(Q);
9909
- }, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow(Q), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = (Q, H) => setCheckboxRowColor(Q, H), curRegion.value.setFormValue = (Q, H) => setFormValue(Q, H), curRegion.value.setRowCellColor = (Q, H, X, G) => setRowCellColor(Q, H, X, G), curRegion.value.setFormSelectOption = (Q, H, X) => setFormSelectOption(Q, H, X), curRegion.value.getFormSelectOption = (Q, H) => getFormSelectOption(Q, H), curRegion.value.setColumnFixed = (Q, H) => setColumnFixed(Q, H), curRegion.value.getQueryForm = (Q) => getQueryForm(Q), curRegion.value.setCurrentRowByRowIndex = (Q, H) => setCurrentRowByRowIndex(Q, H), curRegion.value.setUploadData = (Q) => setUploadData(Q), curRegion.value.setQueryFieldChangeFun = (Q, H) => setQueryFieldChangeFun(Q, H), curRegion.value.setQueryFormItemDisplay = (Q, H) => setQueryFormItemDisplay(Q, H);
9885
+ }, curRegion.value.getParentRegion = () => getParentRegion(), curRegion.value.exportData = () => exportData(), curRegion.value.removeRow = (Q) => removeRow(Q), curRegion.value.clearGrid = () => clearGrid(), curRegion.value.setCheckboxRowColor = (Q, H) => setCheckboxRowColor(Q, H), curRegion.value.setFormValue = (Q, H) => setFormValue(Q, H), curRegion.value.setRowCellColor = (Q, H, X, G) => setRowCellColor(Q, H, X, G), curRegion.value.setFormSelectOption = (Q, H, X) => setFormSelectOption(Q, H, X), curRegion.value.getFormSelectOption = (Q, H) => getFormSelectOption(Q, H), curRegion.value.setColumnFixed = (Q, H) => setColumnFixed(Q, H), curRegion.value.getQueryForm = (Q) => getQueryForm(Q), curRegion.value.setCurrentRowByRowIndex = (Q, H) => setCurrentRowByRowIndex(Q, H), curRegion.value.setUploadData = (Q) => setUploadData(Q), curRegion.value.setQueryFieldChangeFun = (Q, H) => setQueryFieldChangeFun(Q, H), curRegion.value.setQueryFormItemDisplay = (Q, H) => setQueryFormItemDisplay(Q, H), curRegion.value.setCheckMethod = (Q) => setCheckMethod(Q), curRegion.value.setButtonDisplay = (Q, H) => setButtonDisplay(Q, H);
9910
9886
  }), onUnmounted(() => {
9911
9887
  document.removeEventListener("mousedown", tableOutDestroyAreaBox), document.removeEventListener("mouseup", tbodymouseup), document.removeEventListener("paste", ctrlVPaste), document.removeEventListener("copy", ctrlCopyAndCut), document.removeEventListener("cut", ctrlCopyAndCut);
9912
9888
  }), __expose({ gridReload, reload }), (Q, H) => {
@@ -10195,7 +10171,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_f8c6bf36_lang = "", _withScop
10195
10171
  ]);
10196
10172
  };
10197
10173
  }
10198
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-f8c6bf36"]]);
10174
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-958bb110"]]);
10199
10175
  WindowGrid.name = "slw-window-grid";
10200
10176
  WindowGrid.install = (Q) => {
10201
10177
  Q.component(WindowGrid.name, WindowGrid);
@@ -42507,7 +42483,7 @@ var js = js$1.exports;
42507
42483
  })(Q);
42508
42484
  })(js$1);
42509
42485
  var jsExports = js$1.exports;
42510
- const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_121a9a32_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-121a9a32"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
42486
+ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_8acccf9f_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-8acccf9f"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
42511
42487
  key: 0,
42512
42488
  class: "form-title"
42513
42489
  }, _hoisted_3$hY = ["onClick"], _hoisted_4$ay = ["onClick"], _hoisted_5$4Y = ["onClick"], _hoisted_6$20 = ["onClick"], _hoisted_7$13 = ["onClick"], _hoisted_8$G = ["onClick"], _sfc_main$d = {
@@ -42519,9 +42495,9 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
42519
42495
  },
42520
42496
  emits: ["saveLoadingChange", "gridReload", "update:formConfig"],
42521
42497
  setup(__props, { expose: __expose, emit: emits }) {
42522
- const props = __props, axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), toggleModalLoading = inject("$toggleModalLoading"), $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");
42498
+ const props = __props, axios = inject("$axios"), hiprint = inject("$hiprint"), serverPrint = inject("$serverPrint"), showPreView = inject("$showPreView"), showPreViewClose = inject("$showPreViewClose"), preViewCloseCallback = inject("$preViewCloseCallback"), toggleModalLoading = inject("$toggleModalLoading"), $Modal = inject("$modal"), $qs = inject("$qs"), $ElMessage = inject("$ElMessage"), $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");
42523
42499
  let regionMap = inject("$regionMap");
42524
- const ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), route = useRoute();
42500
+ const ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $externalFun = inject("$externalFun"), route = useRoute();
42525
42501
  let formConfig = useVModel$1(props, "formConfig", emits), gridData = ref(formConfig.value), formData = ref({}), fieldColumnMap = ref({}), formDataClone = ref({}), formLoading = ref(!1), queryTimeout = ref(null);
42526
42502
  const $modal = $Modal;
42527
42503
  let uploadConfig = ref({
@@ -42742,11 +42718,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
42742
42718
  for (let Z in K)
42743
42719
  K[Z] instanceof Array && (K[Z] = K[Z].toString());
42744
42720
  axios.post(G, K).then((Z) => {
42745
- emits("saveLoadingChange"), typeof Q < "u" && Q instanceof Object && (formConfig.value.showEdit = !Z.data.result, showPreViewClose()), $vxeMessage({
42746
- content: Z.data.msg,
42747
- status: Z.data.result ? "success" : "error",
42748
- zIndex: 3e3
42749
- }), Z.data.result && (uploadConfig.value.isHaveImgField && !uploadConfig.value.dataId && updatePictureDataId(Z.data.id), evalEvent(formConfig.value.params.formEvents.afterSubmit, formData.value, Z.data, "表单提交后触发"), typeof Q < "u" && (Q instanceof Object || Q === !0) && emits("gridReload", formData.value._region_id, formConfig.value.openType === "new" ? 0 : null)), nextTick(() => {
42721
+ emits("saveLoadingChange"), typeof Q < "u" && Q instanceof Object && (formConfig.value.showEdit = !Z.data.result, showPreViewClose()), Z.data.result ? ($message.success(Z.data.msg), uploadConfig.value.isHaveImgField && !uploadConfig.value.dataId && updatePictureDataId(Z.data.id), evalEvent(formConfig.value.params.formEvents.afterSubmit, formData.value, Z.data, "表单提交后触发"), typeof Q < "u" && (Q instanceof Object || Q === !0) && emits("gridReload", formData.value._region_id, formConfig.value.openType === "new" ? 0 : null)) : $message.error(Z.data.msg), nextTick(() => {
42750
42722
  formDataClone.value = XEUtils$4.clone(toRaw(formData.value), !0);
42751
42723
  });
42752
42724
  }).catch((Z) => {
@@ -43004,10 +42976,11 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43004
42976
  zIndex: 3e3
43005
42977
  });
43006
42978
  }, error = (Q) => {
43007
- $vxeMessage({
43008
- content: Q,
43009
- status: "error",
43010
- zIndex: 3e3
42979
+ $ElMessage({
42980
+ showClose: !0,
42981
+ message: Q,
42982
+ type: "error",
42983
+ duration: 0
43011
42984
  });
43012
42985
  }, assembleParentData = () => {
43013
42986
  let Q = {}, H = formConfig.value.type === "FORM" ? getParentData() : formConfig.value.params.parentData;
@@ -43286,12 +43259,13 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43286
43259
  } : ae.dataType === "STRING" && ae.canScan === !0 ? {
43287
43260
  name: "default",
43288
43261
  fn: withCtx(() => [
43289
- createVNode(K, {
43262
+ createVNode(K, mergeProps$1({
43290
43263
  modelValue: unref(formData)[ae.field],
43291
- "onUpdate:modelValue": (le) => unref(formData)[ae.field] = le,
43264
+ "onUpdate:modelValue": (le) => unref(formData)[ae.field] = le
43265
+ }, ae.itemRender.props, {
43292
43266
  onKeyup: (le) => onIconInputEnter(ae, le),
43293
43267
  onChange: (le) => onIconInputChange(ae)
43294
- }, {
43268
+ }), {
43295
43269
  suffix: withCtx(() => [
43296
43270
  createElementVNode("i", {
43297
43271
  class: "iconfont icon-scan1",
@@ -43300,19 +43274,20 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43300
43274
  }, null, 8, ["onClick"])
43301
43275
  ]),
43302
43276
  _: 2
43303
- }, 1032, ["modelValue", "onUpdate:modelValue", "onKeyup", "onChange"])
43277
+ }, 1040, ["modelValue", "onUpdate:modelValue", "onKeyup", "onChange"])
43304
43278
  ]),
43305
43279
  key: "1"
43306
43280
  } : ae.itemRender.props.suffixIconfont || ae.itemRender.props.prefixIconfont ? {
43307
43281
  name: "default",
43308
43282
  fn: withCtx(() => [
43309
- createVNode(K, {
43283
+ createVNode(K, mergeProps$1({
43310
43284
  modelValue: unref(formData)[ae.field],
43311
- "onUpdate:modelValue": (le) => unref(formData)[ae.field] = le,
43285
+ "onUpdate:modelValue": (le) => unref(formData)[ae.field] = le
43286
+ }, ae.itemRender.props, {
43312
43287
  clearable: !1,
43313
43288
  onKeyup: (le) => onIconInputEnter(ae, le),
43314
43289
  onChange: (le) => onIconInputChange(ae)
43315
- }, createSlots({ _: 2 }, [
43290
+ }), createSlots({ _: 2 }, [
43316
43291
  ae.itemRender.props.suffixIconfont ? {
43317
43292
  name: "suffix",
43318
43293
  fn: withCtx(() => [
@@ -43334,7 +43309,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43334
43309
  ]),
43335
43310
  key: "1"
43336
43311
  } : void 0
43337
- ]), 1032, ["modelValue", "onUpdate:modelValue", "onKeyup", "onChange"])
43312
+ ]), 1040, ["modelValue", "onUpdate:modelValue", "onKeyup", "onChange"])
43338
43313
  ]),
43339
43314
  key: "2"
43340
43315
  } : ae.dataType === "IMG" ? {
@@ -43434,7 +43409,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43434
43409
  ]);
43435
43410
  };
43436
43411
  }
43437
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-121a9a32"]]);
43412
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-8acccf9f"]]);
43438
43413
  WindowForm.name = "slw-window-form";
43439
43414
  WindowForm.install = (Q) => {
43440
43415
  Q.component(WindowForm.name, WindowForm);
@@ -59211,7 +59186,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
59211
59186
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
59212
59187
  setup(Q, { emit: H }) {
59213
59188
  const X = Q, G = defineAsyncComponent(
59214
- () => import("./index-06dd9601.js")
59189
+ () => import("./index-558310f4.js")
59215
59190
  );
59216
59191
  let K = useVModel(X, "type", H), Z = useVModel(X, "rootLayout", H), ee = useVModel(X, "viewData", H), te = useVModel(X, "rowData", H), ne = ref(0), oe = ref(null);
59217
59192
  oe.value = createDesigner();
@@ -59296,7 +59271,7 @@ WindowDesigner.name = "slw-window-designer";
59296
59271
  WindowDesigner.install = (Q) => {
59297
59272
  Q.component(WindowDesigner.name, WindowDesigner);
59298
59273
  };
59299
- const windowIndex_vue_vue_type_style_index_0_scoped_d0f1b138_lang = "", _withScopeId$1 = (Q) => (pushScopeId("data-v-d0f1b138"), Q = Q(), popScopeId(), Q), _hoisted_1$kS = { class: "slw-config-window-container" }, _hoisted_2$kR = { class: "child-table-p" }, _sfc_main$2 = {
59274
+ const windowIndex_vue_vue_type_style_index_0_scoped_f27378f8_lang = "", _withScopeId$1 = (Q) => (pushScopeId("data-v-f27378f8"), Q = Q(), popScopeId(), Q), _hoisted_1$kS = { class: "slw-config-window-container" }, _hoisted_2$kR = { class: "child-table-p" }, _sfc_main$2 = {
59300
59275
  __name: "window-index",
59301
59276
  props: {
59302
59277
  windowId: {
@@ -59312,11 +59287,11 @@ const windowIndex_vue_vue_type_style_index_0_scoped_d0f1b138_lang = "", _withSco
59312
59287
  },
59313
59288
  emits: ["update:queryParams", "on-load-success", "close", "togglePreViewLoading"],
59314
59289
  setup(__props, { emit }) {
59315
- const props = __props, axios = inject("$axios"), $components = inject("$components"), $componentsPath = inject("$componentsPath"), $Modal = inject("$modal"), $Message = inject("$message"), $qs = inject("$qs"), hiprint = inject("$hiprint", ""), serverPrint = inject("$serverPrint", ""), $vxeMessage = inject("$vxeMessage"), $vxeConfirm = inject("$vxeConfirm"), $crypto = inject("$crypto"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $T = inject("$t"), $VXETableConfig = inject("$VXETableConfig");
59290
+ const props = __props, axios = inject("$axios"), $components = inject("$components"), $componentsPath = inject("$componentsPath"), $Modal = inject("$modal"), $ElMessage = inject("$ElMessage"), $qs = inject("$qs"), hiprint = inject("$hiprint", ""), serverPrint = inject("$serverPrint", ""), $vxeMessage = inject("$vxeMessage"), $vxeConfirm = inject("$vxeConfirm"), $crypto = inject("$crypto"), base64Encode = inject("$base64Encode"), base64Decode = inject("$base64Decode"), $T = inject("$t"), $VXETableConfig = inject("$VXETableConfig"), $externalFun = inject("$externalFun");
59316
59291
  let queryParams = useVModel$1(props, "queryParams", emit);
59317
59292
  const xModal = ref();
59318
59293
  let menuName = ref(""), rootLayout = ref({}), layoutHeight = ref(0), formConfig = ref({}), formRules = ref({}), regionIdRegionMap = ref({}), layoutIdRegionMap = ref({}), parentLayoutIdLayoutMap = ref({}), preViewShow = ref(!1), preViewLoading = ref(!1), preViewFooterShow = ref(!1), editModalLoading = ref(!1), preWindowId = ref(""), preWindowName = ref(""), preQueryParams = ref(null), preViewSubmitFun = ref(null), preViewCloseFun = ref(null), preViewWidth = ref(null), preViewHeight = ref(null), preViewCode = ref(""), componentModalData = ref({}), componentModalTitle = ref(""), isAutoSave = ref(!1), saveDataBtnLoading = ref(!1), preModalData = ref({}), preModalTitle = ref(""), regionMap = ref({}), preRegionMap;
59319
- const gridClickEvents = ref([]), $modal = $Modal, $message = $Message;
59294
+ const gridClickEvents = ref([]), $modal = $Modal;
59320
59295
  let designerShow = ref(!1), designerType = ref(""), designerViewData = ref({
59321
59296
  name: "",
59322
59297
  layout: "V",
@@ -59590,8 +59565,10 @@ const windowIndex_vue_vue_type_style_index_0_scoped_d0f1b138_lang = "", _withSco
59590
59565
  addChildData: ae.addChildData,
59591
59566
  childRegionCode: ae.childRegionCode,
59592
59567
  isHavePicUploadBtn: !1,
59593
- buttonPosition: "BOTTOM_CENTER"
59568
+ buttonPosition: "BOTTOM_CENTER",
59594
59569
  // 表单操作按钮布局位置 TOP_LEFT, TOP_CENTER, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER(默认), BOTTOM_RIGHT
59570
+ queryFieldChangeNoQuery: ae.queryFieldChangeNoQuery
59571
+ // 控制查询条件值更改是否触发表格查询
59595
59572
  }, ae.buttonPosition && ae.buttonPosition != "null" && (G.params.buttonPosition = ae.buttonPosition), ae.linkUrl && $components && $componentsPath) {
59596
59573
  let me = `${$componentsPath}/${ae.linkUrl}`, ve = await $components[me]();
59597
59574
  G.params.linkComponentView = markRaw(ve.default);
@@ -60126,10 +60103,11 @@ const windowIndex_vue_vue_type_style_index_0_scoped_d0f1b138_lang = "", _withSco
60126
60103
  zIndex: 3e3
60127
60104
  });
60128
60105
  }, error = (Q) => {
60129
- $vxeMessage({
60130
- content: Q,
60131
- status: "error",
60132
- zIndex: 3e3
60106
+ $ElMessage({
60107
+ showClose: !0,
60108
+ message: Q,
60109
+ type: "error",
60110
+ duration: 0
60133
60111
  });
60134
60112
  }, getRegion = (Q) => {
60135
60113
  let H = regionMap.value[Q + "-" + preTag.value];
@@ -60195,7 +60173,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_d0f1b138_lang = "", _withSco
60195
60173
  ref: xForm,
60196
60174
  key: unref(formConfig).formData[unref(formConfig).rowConfig.keyField],
60197
60175
  onSaveLoadingChange: saveLoadingChange,
60198
- onGridReload: H[2] || (H[2] = () => unref(formConfig)._reload())
60176
+ onGridReload: H[2] || (H[2] = () => unref(formConfig)._reload(unref(formConfig)))
60199
60177
  }, null, 8, ["form-config"])),
60200
60178
  unref(formConfig).params.addChildData && unref(formConfig).childForm ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
60201
60179
  createElementVNode("p", _hoisted_2$kR, toDisplayString(unref($T)("[新增] 关联子表数据")), 1),
@@ -60425,7 +60403,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_d0f1b138_lang = "", _withSco
60425
60403
  ]);
60426
60404
  };
60427
60405
  }
60428
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-d0f1b138"]]);
60406
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-f27378f8"]]);
60429
60407
  WindowIndex.name = "slw-window-index";
60430
60408
  WindowIndex.install = (Q) => {
60431
60409
  Q.component(WindowIndex.name, WindowIndex);
@@ -165662,7 +165640,8 @@ const loading = LoadingController, modal = ModalController, drawer = DrawerContr
165662
165640
  components: {},
165663
165641
  componentsPath: "/src/view",
165664
165642
  customI18n: !1,
165665
- VXETableConfig: null
165643
+ VXETableConfig: null,
165644
+ externalFun: null
165666
165645
  }) => {
165667
165646
  var K, Z;
165668
165647
  components.forEach((ee) => {
@@ -165682,7 +165661,7 @@ const loading = LoadingController, modal = ModalController, drawer = DrawerContr
165682
165661
  translate(ee, te) {
165683
165662
  return H.customI18n(ee, te);
165684
165663
  }
165685
- })) : (G = (ee) => ee, Q.provide("$t", G)), H.VXETableConfig && VxeTableExport.setConfig(H.VXETableConfig), Q.provide("$VXETableConfig", H.VXETableConfig), Q.use(VxeTableExport), Q.provide("$componentMapping", X), Q.provide("$axios", Q.config.globalProperties.axios), Q.provide("$qs", qs), Q.provide(
165664
+ })) : (G = (ee) => ee, Q.provide("$t", G)), H.VXETableConfig && VxeTableExport.setConfig(H.VXETableConfig), Q.provide("$VXETableConfig", H.VXETableConfig), Q.provide("$externalFun", H.externalFun), Q.use(VxeTableExport), Q.provide("$componentMapping", X), Q.provide("$axios", Q.config.globalProperties.axios), Q.provide("$qs", qs), Q.provide(
165686
165665
  "$crypto",
165687
165666
  (H == null ? void 0 : H.crypto) || {
165688
165667
  encrypt,
@@ -165694,7 +165673,7 @@ const loading = LoadingController, modal = ModalController, drawer = DrawerContr
165694
165673
  TOKEN: localStorage.getItem("login-token"),
165695
165674
  saToken: localStorage.getItem("SATOKEN")
165696
165675
  }))
165697
- ), Q.provide("$components", H == null ? void 0 : H.components), Q.provide("$componentsPath", (H == null ? void 0 : H.componentsPath) || "/src/view"), Q.provide("$message", Q.config.globalProperties.$message || VxeTableExport.modal.message), Q.provide("$modal", VxeTableExport.modal), Q.provide("$vxeMessage", VxeTableExport.modal.message), Q.provide("$vxeConfirm", VxeTableExport.modal.confirm), Q.provide("$vxeOpen", VxeTableExport.modal.open), Q.provide("$vxeReadFile", VxeTableExport.readFile), Q.provide("$ElMessageBox", Q.config.globalProperties.$msgbox), Q.provide("$router", Q.config.globalProperties.$router), initVxeRenderer(VxeTableExport, X, G), initVxeFormater(VxeTableExport), initVxeConfig(VxeTableExport);
165676
+ ), Q.provide("$components", H == null ? void 0 : H.components), Q.provide("$componentsPath", (H == null ? void 0 : H.componentsPath) || "/src/view"), Q.provide("$ElMessage", Q.config.globalProperties.$message), Q.provide("$modal", VxeTableExport.modal), Q.provide("$vxeMessage", VxeTableExport.modal.message), Q.provide("$vxeConfirm", VxeTableExport.modal.confirm), Q.provide("$vxeOpen", VxeTableExport.modal.open), Q.provide("$vxeReadFile", VxeTableExport.readFile), Q.provide("$ElMessageBox", Q.config.globalProperties.$msgbox), Q.provide("$router", Q.config.globalProperties.$router), initVxeRenderer(VxeTableExport, X, G), initVxeFormater(VxeTableExport), initVxeConfig(VxeTableExport);
165698
165677
  };
165699
165678
  function reConsole() {
165700
165679
  if (console !== null) {
@@ -165711,7 +165690,7 @@ function reConsole() {
165711
165690
  }
165712
165691
  }
165713
165692
  console.info(
165714
- `%cSLW %cVer 1.0.0-beta.5%c
165693
+ `%cSLW %cVer 1.0.0-beta.6%c
165715
165694
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
165716
165695
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
165717
165696
  "color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as m } from "./index-c2265d7c.js";
1
+ import { i as m } from "./index-5a8c9d05.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {