slw 1.0.0-beta.18.2 → 1.0.0-beta.18.4

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.
@@ -53258,7 +53258,7 @@ WindowCharts.name = "slw-window-charts";
53258
53258
  WindowCharts.install = (G) => {
53259
53259
  G.component(WindowCharts.name, WindowCharts);
53260
53260
  };
53261
- const windowGrid_vue_vue_type_style_index_0_scoped_af5fe60a_lang = "", _withScopeId$9 = (G) => (pushScopeId("data-v-af5fe60a"), G = G(), popScopeId(), G), _hoisted_1$l3 = {
53261
+ const windowGrid_vue_vue_type_style_index_0_scoped_60341374_lang = "", _withScopeId$9 = (G) => (pushScopeId("data-v-60341374"), G = G(), popScopeId(), G), _hoisted_1$l3 = {
53262
53262
  class: "slw-window-grid-container",
53263
53263
  style: { height: "100%" }
53264
53264
  }, _hoisted_2$k_ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$h_ = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$aA = /* @__PURE__ */ _withScopeId$9(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4_ = [
@@ -53588,7 +53588,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_af5fe60a_lang = "", _withScop
53588
53588
  getCurRegion().setCheckboxRow(fe, !0);
53589
53589
  }), pagerToolChecked.value && ce.data.data.forEach((fe) => {
53590
53590
  getCurRegion().setCheckboxRow(fe, !0);
53591
- }), rowClickCommon(ue, rowIndex.value), queryAfterList && queryAfterList.length > 0 && queryAfterList.forEach((fe) => {
53591
+ }), gridData.value.params.rowNotSelect || rowClickCommon(ue, rowIndex.value), queryAfterList && queryAfterList.length > 0 && queryAfterList.forEach((fe) => {
53592
53592
  if (fe && typeof fe == "function")
53593
53593
  try {
53594
53594
  ae = fe(se, "GRID");
@@ -53838,6 +53838,22 @@ const windowGrid_vue_vue_type_style_index_0_scoped_af5fe60a_lang = "", _withScop
53838
53838
  case "EXPORT":
53839
53839
  exportData();
53840
53840
  break;
53841
+ case "SUBMIT":
53842
+ gridData.value.type === "EDIT_GRID" ? $vxeConfirm($T("确定批量保存?"), void 0, { zIndex: 3e3 }).then((ne) => {
53843
+ if (ne === "confirm") {
53844
+ let re = {
53845
+ _region_id: gridData.value.params._region_id,
53846
+ _button_id: G._button_id,
53847
+ datas: getGrid().getInsertRecords()
53848
+ };
53849
+ axios.post("window/batchSave", re, "json").then((oe) => {
53850
+ oe.status === 200 && oe.data.result ? (reload(), $message.success($T(oe.data.msg), "info")) : $message.error(oe.data.msg);
53851
+ }).catch((oe) => {
53852
+ $message.error(oe.msg);
53853
+ });
53854
+ }
53855
+ }) : $message.error("仅支持可编辑表格批量新增!");
53856
+ break;
53841
53857
  case "EVENT":
53842
53858
  const te = G.code.toUpperCase();
53843
53859
  if (te == "NEW_DESIGNER")
@@ -54914,7 +54930,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_af5fe60a_lang = "", _withScop
54914
54930
  queryFormData.value.hasOwnProperty(H) && !queryFormData.value[H] && (queryFormData.value[H] = gridData.value.params.queryParams[G]);
54915
54931
  }), gridData.value.columns.forEach((G) => {
54916
54932
  G.hasOwnProperty("field") && !G.hasOwnProperty("treeNode") && (G.events.change = onFieldChange, G.events["on-change"] = onFieldChange, G.events.keyup = onFieldEnter, G.editRender.events = G.events, G.itemRender.events = G.events), G.itemRender && G.itemRender.props._select_id && (formSelectMap.value[G.id] = G);
54917
- }), searchData(), regionMap.value[gridData.value.params.code + "-" + preTag.value] = curRegion.value, regionMap.value[gridData.value.params.code] = curRegion.value, evalEvent(gridData.value.params.formEvents.regionInit, "GRID", "表格页面初始化事件"), gridData.value.params.parentRegionId && addGridClickEvent(rowClickEmitFun), setTimeout(() => {
54933
+ }), gridData.value.params.rowNotSelect && (rowIndex.value = -1), searchData(), regionMap.value[gridData.value.params.code + "-" + preTag.value] = curRegion.value, regionMap.value[gridData.value.params.code] = curRegion.value, evalEvent(gridData.value.params.formEvents.regionInit, "GRID", "表格页面初始化事件"), gridData.value.params.parentRegionId && addGridClickEvent(rowClickEmitFun), setTimeout(() => {
54918
54934
  let G = getCurRegion().$el.querySelector(".vxe-table--header-wrapper .vxe-cell--checkbox");
54919
54935
  G && (G.title = "当页全选/取消");
54920
54936
  }, 1500), curRegion.value.closeModal = () => {
@@ -55125,7 +55141,8 @@ const windowGrid_vue_vue_type_style_index_0_scoped_af5fe60a_lang = "", _withScop
55125
55141
  ]),
55126
55142
  _: 1
55127
55143
  }, 8, ["size"]),
55128
- createElementVNode("div", {
55144
+ unref(gridData).formConfig.items.length > 3 ? (openBlock(), createElementBlock("div", {
55145
+ key: 0,
55129
55146
  class: "vxe-form--item-trigger-node",
55130
55147
  onClick: headerFormCollapse
55131
55148
  }, [
@@ -55133,7 +55150,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_af5fe60a_lang = "", _withScop
55133
55150
  createElementVNode("i", {
55134
55151
  class: normalizeClass(["vxe-form--item-trigger-icon vxe-icon-arrow-up", { " rotate180": !unref(gridData).params.expandQueryTool }])
55135
55152
  }, null, 2)
55136
- ])
55153
+ ])) : createCommentVNode("", !0)
55137
55154
  ]),
55138
55155
  _: 1
55139
55156
  })) : createCommentVNode("", !0),
@@ -55334,7 +55351,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_af5fe60a_lang = "", _withScop
55334
55351
  ]);
55335
55352
  };
55336
55353
  }
55337
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-af5fe60a"]]);
55354
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-60341374"]]);
55338
55355
  WindowGrid.name = "slw-window-grid";
55339
55356
  WindowGrid.install = (G) => {
55340
55357
  G.component(WindowGrid.name, WindowGrid);
@@ -77764,7 +77781,7 @@ var js = js$1.exports;
77764
77781
  })(G);
77765
77782
  })(js$1);
77766
77783
  var jsExports = js$1.exports;
77767
- const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_167aa5e7_lang = "", _withScopeId$7 = (G) => (pushScopeId("data-v-167aa5e7"), G = G(), popScopeId(), G), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
77784
+ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_65270f07_lang = "", _withScopeId$7 = (G) => (pushScopeId("data-v-65270f07"), G = G(), popScopeId(), G), _hoisted_1$l1 = { class: "slw-window-form" }, _hoisted_2$kY = {
77768
77785
  key: 0,
77769
77786
  class: "form-title"
77770
77787
  }, _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$e = {
@@ -77780,7 +77797,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
77780
77797
  let regionMap = inject("$regionMap");
77781
77798
  const ElMessageBox = inject("$ElMessageBox"), addOnActivatedFun = inject("$addOnActivatedFun"), debounce = inject("$debounce"), router = inject("$router"), $externalFun = inject("$externalFun"), endEdit = inject("$endEdit"), route = useRoute();
77782
77799
  let success = inject("$success", null), error = inject("$error", null);
77783
- const $components = inject("$components"), $componentsPath = inject("$componentsPath"), executeFun = inject("$executeFun");
77800
+ const $components = inject("$components"), $componentsPath = inject("$componentsPath"), executeFun = inject("$executeFun"), addGridClickEvent = inject("$addGridClickEvent");
77784
77801
  let formConfig = useVModel$1(props, "formConfig", emits), gridData = ref$2(formConfig.value), formData = ref$2({}), fieldColumnMap = ref$2({}), formDataClone = ref$2({}), formLoading = ref$2(!1), queryTimeout = ref$2(null);
77785
77802
  const $modal = $Modal;
77786
77803
  let uploadConfig = ref$2({
@@ -77939,7 +77956,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
77939
77956
  }
77940
77957
  ], formConfig.value.columns.forEach((ee, te, ne) => {
77941
77958
  ee.hasOwnProperty("field") && !ee.hasOwnProperty("treeNode") && (ee.events.change = onFieldChange, ee.events.keyup = onFieldEnter, ee.events.click = onFieldClick), (ee == null ? void 0 : ee.dataType) === "IMG" && (uploadConfig.value.isHaveImgField = !0, fieldPreviewMap.value[ee.field] = []), (ee == null ? void 0 : ee.dataType) === "FILE" && (uploadConfig.value.isHaveFileField = !0, fieldPreviewMap.value[ee.field] = []);
77942
- }), await evalEvent(formConfig.value.params.formEvents.dataInit, "FORM", "表单数据初始化前");
77959
+ }), await evalEvent(formConfig.value.params.formEvents.dataInit, "FORM", "表单数据初始化前"), formConfig.value.params.parentRegionId && addGridClickEvent(rowClickEmitFun);
77943
77960
  let G = !0;
77944
77961
  if (formConfig.value.formData) {
77945
77962
  formData.value = formConfig.value.formData, G = formConfig.value.openType === "new", formConfig.value.openType === "view" && (formConfig.value.columns = XEUtils$4.clone(formConfig.value.columns, !0));
@@ -77980,7 +77997,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
77980
77997
  }, Object.keys(formSelectMap.value).length > 0)
77981
77998
  for (const Z of Object.keys(formSelectMap.value)) {
77982
77999
  let ee = formSelectMap.value[Z];
77983
- ee.itemRender.props.multiple && (formData.value[ee.field] = formData.value[ee.field].split(","));
78000
+ ee.itemRender.props.multiple && formData.value[ee.field] && (formData.value[ee.field] = formData.value[ee.field].split(","));
77984
78001
  }
77985
78002
  queryAfterList && queryAfterList.length > 0 && queryAfterList.forEach((Z) => {
77986
78003
  if (Z && typeof Z == "function")
@@ -78830,7 +78847,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
78830
78847
  ]);
78831
78848
  };
78832
78849
  }
78833
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-167aa5e7"]]);
78850
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-65270f07"]]);
78834
78851
  WindowForm.name = "slw-window-form";
78835
78852
  WindowForm.install = (G) => {
78836
78853
  G.component(WindowForm.name, WindowForm);
@@ -91901,7 +91918,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
91901
91918
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
91902
91919
  setup(G, { emit: H }) {
91903
91920
  const X = G, Q = defineAsyncComponent(
91904
- () => import("./index-0971845f.js")
91921
+ () => import("./index-b1bacc00.js")
91905
91922
  );
91906
91923
  let K = useVModel(X, "type", H), Z = useVModel(X, "rootLayout", H), ee = useVModel(X, "viewData", H), te = useVModel(X, "rowData", H), ne = ref$2(0), re = ref$2(null);
91907
91924
  re.value = createDesigner();
@@ -91986,7 +92003,7 @@ WindowDesigner.name = "slw-window-designer";
91986
92003
  WindowDesigner.install = (G) => {
91987
92004
  G.component(WindowDesigner.name, WindowDesigner);
91988
92005
  };
91989
- const windowIndex_vue_vue_type_style_index_0_scoped_e14b1032_lang = "", _withScopeId$1 = (G) => (pushScopeId("data-v-e14b1032"), G = G(), popScopeId(), G), _hoisted_1$kS = { class: "slw-config-window-container" }, _hoisted_2$kR = { class: "child-table-p" }, _sfc_main$2 = {
92006
+ const windowIndex_vue_vue_type_style_index_0_scoped_b9dc67e1_lang = "", _withScopeId$1 = (G) => (pushScopeId("data-v-b9dc67e1"), G = G(), popScopeId(), G), _hoisted_1$kS = { class: "slw-config-window-container" }, _hoisted_2$kR = { class: "child-table-p" }, _sfc_main$2 = {
91990
92007
  __name: "window-index",
91991
92008
  props: {
91992
92009
  windowId: {
@@ -92005,7 +92022,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_e14b1032_lang = "", _withSco
92005
92022
  },
92006
92023
  emits: ["update:queryParams", "on-load-success", "close", "togglePreViewLoading"],
92007
92024
  setup(__props, { emit }) {
92008
- 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"), endEdit = inject("$endEdit");
92025
+ const props = __props, axios = inject("$axios"), $components = inject("$components"), $componentsPath = inject("$componentsPath"), $otherComponents = inject("$otherComponents"), $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"), endEdit = inject("$endEdit");
92009
92026
  let queryParams = useVModel$1(props, "queryParams", emit);
92010
92027
  const xModal = ref$2();
92011
92028
  let menuName = ref$2(""), rootLayout = ref$2({}), layoutHeight = ref$2(0), formConfig = ref$2({}), formRules = ref$2({}), regionIdRegionMap = ref$2({}), layoutIdRegionMap = ref$2({}), parentLayoutIdLayoutMap = ref$2({}), preViewShow = ref$2(!1), preViewLoading = ref$2(!1), preViewFooterShow = ref$2(!1), editModalLoading = ref$2(!1), preWindowId = ref$2(""), preWindowName = ref$2(""), preQueryParams = ref$2(null), preViewSubmitFun = ref$2(null), preViewCloseFun = ref$2(null), preViewWidth = ref$2(null), preViewHeight = ref$2(null), preViewCode = ref$2(""), componentModalData = ref$2({}), componentModalTitle = ref$2(""), componentDrawerData = ref$2({}), componentDrawerTitle = ref$2(""), isAutoSave = ref$2(!1), saveDataBtnLoading = ref$2(!1), preModalData = ref$2({}), preModalTitle = ref$2(""), regionMap = ref$2({}), preRegionMap;
@@ -92293,8 +92310,10 @@ const windowIndex_vue_vue_type_style_index_0_scoped_e14b1032_lang = "", _withSco
92293
92310
  // 控制查询条件值更改是否触发表格查询
92294
92311
  fullCheckboxLinkage: ((oe = $VXETableConfig == null ? void 0 : $VXETableConfig.grid) == null ? void 0 : oe.fullCheckboxLinkage) || !1,
92295
92312
  // 表格全量复选框联动
92296
- expandQueryTool: ue.expandQueryTool
92313
+ expandQueryTool: ue.expandQueryTool,
92297
92314
  // 展开所有查询条件
92315
+ rowNotSelect: ue.rowNotSelect
92316
+ // 默认不选中行
92298
92317
  }, ue.buttonPosition && ue.buttonPosition != "null" && (Q.params.buttonPosition = ue.buttonPosition), ue.linkUrl && $components && $componentsPath) {
92299
92318
  let xe = `${$componentsPath}/${ue.linkUrl}`, Se = await $components[xe]();
92300
92319
  Q.params.linkComponentView = markRaw(Se.default);
@@ -92796,9 +92815,9 @@ const windowIndex_vue_vue_type_style_index_0_scoped_e14b1032_lang = "", _withSco
92796
92815
  curHeight: X,
92797
92816
  linkUrl: K.component.vuePath
92798
92817
  }, Q.componentType == "VUE" && Q.params.linkUrl && $components && $componentsPath)
92799
- if (Q.params.linkUrl.includes("layout")) {
92800
- let ee = await (/* @__PURE__ */ Object.assign({}))[Q.params.linkUrl]();
92801
- Q.params.linkComponentView = markRaw(ee.default);
92818
+ if (Q.params.linkUrl.includes("src")) {
92819
+ let Z = await $otherComponents[Q.params.linkUrl]();
92820
+ Q.params.linkComponentView = markRaw(Z.default);
92802
92821
  } else {
92803
92822
  let Z = `${$componentsPath}/${Q.params.linkUrl}`;
92804
92823
  if ($components[Z]) {
@@ -93210,7 +93229,7 @@ const windowIndex_vue_vue_type_style_index_0_scoped_e14b1032_lang = "", _withSco
93210
93229
  ]);
93211
93230
  };
93212
93231
  }
93213
- }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-e14b1032"]]);
93232
+ }, WindowIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-b9dc67e1"]]);
93214
93233
  WindowIndex.name = "slw-window-index";
93215
93234
  WindowIndex.install = (G) => {
93216
93235
  G.component(WindowIndex.name, WindowIndex);
@@ -224520,6 +224539,7 @@ const loading = LoadingController, modal = ModalController, drawer = DrawerContr
224520
224539
  crypto: { encrypt, decrypt },
224521
224540
  components: {},
224522
224541
  componentsPath: "/src/view",
224542
+ otherComponents: {},
224523
224543
  customI18n: !1,
224524
224544
  VXETableConfig: null,
224525
224545
  externalFun: null,
@@ -224558,7 +224578,7 @@ const loading = LoadingController, modal = ModalController, drawer = DrawerContr
224558
224578
  TOKEN: localStorage.getItem("login-token"),
224559
224579
  saToken: localStorage.getItem("SATOKEN")
224560
224580
  }))
224561
- ), G.provide("$components", H == null ? void 0 : H.components), G.provide("$componentsPath", (H == null ? void 0 : H.componentsPath) || "/src/view"), G.provide("$ElMessage", G.config.globalProperties.$message), G.provide("$modal", VxeTableExport.modal), G.provide("$vxeMessage", VxeTableExport.modal.message), G.provide("$vxeConfirm", VxeTableExport.modal.confirm), G.provide("$vxeOpen", VxeTableExport.modal.open), G.provide("$vxeReadFile", VxeTableExport.readFile), G.provide("$ElMessageBox", G.config.globalProperties.$msgbox), G.provide("$router", G.config.globalProperties.$router), initVxeRenderer(VxeTableExport, X, Q), initVxeFormater(VxeTableExport), initVxeConfig(VxeTableExport);
224581
+ ), G.provide("$components", H == null ? void 0 : H.components), G.provide("$otherComponents", H == null ? void 0 : H.otherComponents), G.provide("$componentsPath", (H == null ? void 0 : H.componentsPath) || "/src/view"), G.provide("$ElMessage", G.config.globalProperties.$message), G.provide("$modal", VxeTableExport.modal), G.provide("$vxeMessage", VxeTableExport.modal.message), G.provide("$vxeConfirm", VxeTableExport.modal.confirm), G.provide("$vxeOpen", VxeTableExport.modal.open), G.provide("$vxeReadFile", VxeTableExport.readFile), G.provide("$ElMessageBox", G.config.globalProperties.$msgbox), G.provide("$router", G.config.globalProperties.$router), initVxeRenderer(VxeTableExport, X, Q), initVxeFormater(VxeTableExport), initVxeConfig(VxeTableExport);
224562
224582
  };
224563
224583
  function reConsole() {
224564
224584
  if (console !== null) {
@@ -224575,7 +224595,7 @@ function reConsole() {
224575
224595
  }
224576
224596
  }
224577
224597
  console.info(
224578
- `%cSLW %cVer 1.0.0-beta.18.2%c
224598
+ `%cSLW %cVer 1.0.0-beta.18.4%c
224579
224599
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
224580
224600
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
224581
224601
  "color:#409EFF;font-size: 22px;font-weight:bolder;text-shadow: 2px 2px 4px #84c1ff;",
@@ -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-2fc01d5a.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-4617cfd7.js";
3
3
  import "vue-router";
4
4
  const I = {
5
5
  computed: {},
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as m } from "./index-2fc01d5a.js";
1
+ import { i as m } from "./index-4617cfd7.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {