slw 0.10.12 → 0.10.14

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-2e577275.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-d7ca5eff.js";
3
3
  import "vue-router";
4
4
  const I = {
5
5
  computed: {},
@@ -8533,7 +8533,7 @@ PictureUpload.name = "slw-picture-upload";
8533
8533
  PictureUpload.install = (H) => {
8534
8534
  H.component(PictureUpload.name, PictureUpload);
8535
8535
  };
8536
- const windowGrid_vue_vue_type_style_index_0_scoped_017a6064_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-017a6064"), H = H(), popScopeId(), H), _hoisted_1$l1 = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_2$kY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_4$ay = [
8536
+ const windowGrid_vue_vue_type_style_index_0_scoped_e916250e_lang = "", _withScopeId$8 = (H) => (pushScopeId("data-v-e916250e"), H = H(), popScopeId(), H), _hoisted_1$l1 = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_2$kY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_4$ay = [
8537
8537
  _hoisted_1$l1,
8538
8538
  _hoisted_2$kY,
8539
8539
  _hoisted_3$hY
@@ -9131,7 +9131,25 @@ const windowGrid_vue_vue_type_style_index_0_scoped_017a6064_lang = "", _withScop
9131
9131
  }, gridData.value.rowId && getSelectRecord() && (uploadData.value[gridData.value.rowId] = getSelectRecord()[gridData.value.rowId]), gridData.value.params.parentRowId && (uploadData.value[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue);
9132
9132
  break;
9133
9133
  case "EXPORT":
9134
- exportData();
9134
+ await exportData();
9135
+ break;
9136
+ case "SUBMIT":
9137
+ gridData.value.type === "EDIT_GRID" ? $vxeConfirm($T("确定批量保存?"), void 0, { zIndex: 3e3 }).then((ne) => {
9138
+ if (ne === "confirm") {
9139
+ let { insertRecords: re, updateRecords: oe } = getGrid().getRecordset();
9140
+ re = re.map((le) => (le[gridData.value.rowId] = "", le));
9141
+ let ae = {
9142
+ _region_id: gridData.value.params._region_id,
9143
+ _button_id: H._button_id,
9144
+ datas: re.concat(oe)
9145
+ };
9146
+ axios.post("window/batchSave", ae, "json").then((le) => {
9147
+ le.status === 200 && le.data.result ? (reload(), $message.success($T(le.data.msg), "info")) : $message.error(le.data.msg);
9148
+ }).catch((le) => {
9149
+ $message.error(le.msg);
9150
+ });
9151
+ }
9152
+ }) : $message.error("仅支持可编辑表格批量新增!");
9135
9153
  break;
9136
9154
  case "EVENT":
9137
9155
  const te = H.code.toUpperCase();
@@ -9337,10 +9355,15 @@ const windowGrid_vue_vue_type_style_index_0_scoped_017a6064_lang = "", _withScop
9337
9355
  },
9338
9356
  gridData.value.params.queryForm
9339
9357
  );
9340
- gridData.value.params.parentRowId && (Q[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue), H && (Q._file_name = H), await axios.export(
9341
- "/window/export?data=" + base64Encode(JSON.stringify(Q)),
9342
- {}
9343
- ), exportButton.value.loading = !1;
9358
+ gridData.value.params.parentRowId && (Q[gridData.value.params.parentRowId] = gridData.value.params.parentRowIdValue), H && (Q._file_name = H);
9359
+ try {
9360
+ await axios.export(
9361
+ "/window/export?data=" + base64Encode(JSON.stringify(Q)),
9362
+ {}
9363
+ );
9364
+ } catch (Z) {
9365
+ console.error(Z);
9366
+ }
9344
9367
  } else
9345
9368
  $message.error($T("您没有导出数据权限!"));
9346
9369
  }, search = (H) => {
@@ -10525,7 +10548,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_017a6064_lang = "", _withScop
10525
10548
  ]);
10526
10549
  };
10527
10550
  }
10528
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-017a6064"]]);
10551
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-e916250e"]]);
10529
10552
  WindowGrid.name = "slw-window-grid";
10530
10553
  WindowGrid.install = (H) => {
10531
10554
  H.component(WindowGrid.name, WindowGrid);
@@ -62691,7 +62714,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
62691
62714
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
62692
62715
  setup(H, { emit: Q }) {
62693
62716
  const Z = H, X = defineAsyncComponent(
62694
- () => import("./index-ca5cfca5.js")
62717
+ () => import("./index-a38a2db2.js")
62695
62718
  );
62696
62719
  let G = useVModel(Z, "type", Q), K = useVModel(Z, "rootLayout", Q), ee = useVModel(Z, "viewData", Q), te = useVModel(Z, "rowData", Q), ne = ref(0), re = ref(null);
62697
62720
  re.value = createDesigner();
@@ -147831,7 +147854,7 @@ function reConsole() {
147831
147854
  }
147832
147855
  }
147833
147856
  console.info(
147834
- `%cSLW %cVer 0.10.12%c
147857
+ `%cSLW %cVer 0.10.14%c
147835
147858
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
147836
147859
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
147837
147860
  "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-2e577275.js";
1
+ import { i as m } from "./index-d7ca5eff.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {