slw 0.9.49 → 0.9.51

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-d51bbd94.js";
2
+ import { _ as x, d as S, a as L, u as N } from "./index-b2a43637.js";
3
3
  import "vue-router";
4
4
  const I = {
5
5
  computed: {},
@@ -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_e21742bd_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-e21742bd"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = {
8528
+ const windowGrid_vue_vue_type_style_index_0_scoped_8c23864e_lang = "", _withScopeId$8 = (Q) => (pushScopeId("data-v-8c23864e"), Q = Q(), popScopeId(), Q), _hoisted_1$l1 = {
8529
8529
  class: "slw-window-grid-container",
8530
8530
  style: { height: "100%" }
8531
8531
  }, _hoisted_2$kY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-main-area" }, null, -1)), _hoisted_3$hY = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-active-area" }, null, -1)), _hoisted_4$ay = /* @__PURE__ */ _withScopeId$8(() => /* @__PURE__ */ createElementVNode("span", { class: "vxe-table--cell-copy-area" }, null, -1)), _hoisted_5$4Y = [
@@ -8565,6 +8565,9 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e21742bd_lang = "", _withScop
8565
8565
  const preTag = computed(() => gridData.value.params.preTag || ""), computeExcelUrl = computed(() => {
8566
8566
  let Q = getCurRegion();
8567
8567
  return Q.params.newImportUrl ? Q.params.newImportUrl : importUrl.value;
8568
+ }), computeGridClass = computed(() => {
8569
+ let Q = "";
8570
+ return gridData.value.addListener && (Q = "cell--area"), (gridData.value.type == "TREE" || gridData.value.type == "TREE_STRUCTURE") && (Q += " vxe-grid-tree"), Q;
8568
8571
  }), showButtons = (Q, H) => gridData.value.type === "TREE" || gridData.value.type === "TREE_STRUCTURE" ? gridData.value.toolbarConfig.buttons.filter(
8569
8572
  (G) => G.showInGrid && G.btnShowInGrid[H._INDEX]
8570
8573
  ) : gridData.value.toolbarConfig.buttons.filter(
@@ -9931,12 +9934,25 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e21742bd_lang = "", _withScop
9931
9934
  });
9932
9935
  }, headerCustomClick = ({ type: Q, $event: H }) => {
9933
9936
  if (Q == "confirm" || Q == "reset") {
9934
- let G = getCurRegion().getColumns(), X = G.filter((K) => K.field).map((K) => K.field), Z = {
9937
+ let X = getCurRegion().getColumns().filter((K) => K.field).map((K) => K.field), Z = {
9935
9938
  _region_id: gridData.value.params._region_id,
9936
- cols: G
9939
+ cols: X
9937
9940
  };
9938
- axios.post("", Z).then((K) => {
9939
- K.data.result || console.error(err);
9941
+ axios.request({
9942
+ headers: {
9943
+ "Content-Type": "application/json;charset=utf-8",
9944
+ ...httpHeaders()
9945
+ },
9946
+ method: "post",
9947
+ url: "/window/selfGridColumn",
9948
+ type: "json",
9949
+ data: Z
9950
+ }).then((K) => {
9951
+ K.data.result || $vxeMessage({
9952
+ content: K.data.msg,
9953
+ status: "error",
9954
+ zIndex: 3e3
9955
+ });
9940
9956
  }).catch((K) => {
9941
9957
  console.error(K);
9942
9958
  });
@@ -10027,7 +10043,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e21742bd_lang = "", _withScop
10027
10043
  createVNode(ee, mergeProps$1({
10028
10044
  ref_key: "curRegion",
10029
10045
  ref: curRegion,
10030
- class: { "cell--area": unref(gridData).addListener },
10046
+ class: computeGridClass.value,
10031
10047
  "keep-source": ""
10032
10048
  }, unref(gridData), {
10033
10049
  onEditActived: editActived,
@@ -10185,7 +10201,7 @@ const windowGrid_vue_vue_type_style_index_0_scoped_e21742bd_lang = "", _withScop
10185
10201
  ]);
10186
10202
  };
10187
10203
  }
10188
- }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-e21742bd"]]);
10204
+ }, WindowGrid = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-8c23864e"]]);
10189
10205
  WindowGrid.name = "slw-window-grid";
10190
10206
  WindowGrid.install = (Q) => {
10191
10207
  Q.component(WindowGrid.name, WindowGrid);
@@ -42499,7 +42515,7 @@ var js = js$1.exports;
42499
42515
  })(Q);
42500
42516
  })(js$1);
42501
42517
  var jsExports = js$1.exports;
42502
- const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_d4d8ec11_lang = "", _withScopeId$7 = (Q) => (pushScopeId("data-v-d4d8ec11"), Q = Q(), popScopeId(), Q), _hoisted_1$l0 = { class: "slw-window-form" }, _hoisted_2$kX = {
42518
+ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_vue_vue_type_style_index_0_scoped_5c78fbcc_lang = "", _withScopeId$7 = (Q) => (pushScopeId("data-v-5c78fbcc"), Q = Q(), popScopeId(), Q), _hoisted_1$l0 = { class: "slw-window-form" }, _hoisted_2$kX = {
42503
42519
  key: 0,
42504
42520
  class: "form-header-box"
42505
42521
  }, _hoisted_3$hX = {
@@ -43497,7 +43513,7 @@ const index$o = /* @__PURE__ */ getDefaultExportFromCjs(jsExports), windowForm_v
43497
43513
  ]);
43498
43514
  };
43499
43515
  }
43500
- }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-d4d8ec11"]]);
43516
+ }, WindowForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-5c78fbcc"]]);
43501
43517
  WindowForm.name = "slw-window-form";
43502
43518
  WindowForm.install = (Q) => {
43503
43519
  Q.component(WindowForm.name, WindowForm);
@@ -50483,7 +50499,7 @@ function useCommon() {
50483
50499
  changeSwitchValue
50484
50500
  };
50485
50501
  }
50486
- const index_vue_vue_type_style_index_0_scoped_de8f2c09_lang = "", _sfc_main$7 = {
50502
+ const index_vue_vue_type_style_index_0_scoped_fe9489ce_lang = "", _sfc_main$7 = {
50487
50503
  name: "ToolbarPanel",
50488
50504
  mixins: [],
50489
50505
  inject: ["$getInitData"],
@@ -50562,8 +50578,16 @@ const index_vue_vue_type_style_index_0_scoped_de8f2c09_lang = "", _sfc_main$7 =
50562
50578
  name: this.designer.windowFormData.NAME,
50563
50579
  layouts: Q,
50564
50580
  regions: H
50565
- };
50566
- console.log(G);
50581
+ }, X = await this.axios.postJson(
50582
+ "/windowDesign/save",
50583
+ G
50584
+ );
50585
+ if (X != null && X.data.result && X.data.status == 200) {
50586
+ this.$message.success("保存数据成功!");
50587
+ let Z = await this.$getInitData(G.id);
50588
+ this.designer.reloadInitDesigner(Z);
50589
+ } else
50590
+ this.$message.error("保存数据失败!");
50567
50591
  }).catch((Q) => {
50568
50592
  Q !== "cancel" && console.error(Q);
50569
50593
  });
@@ -50704,7 +50728,7 @@ const index_vue_vue_type_style_index_0_scoped_de8f2c09_lang = "", _sfc_main$7 =
50704
50728
  return Q;
50705
50729
  }
50706
50730
  }
50707
- }, _withScopeId$5 = (Q) => (pushScopeId("data-v-de8f2c09"), Q = Q(), popScopeId(), Q), _hoisted_1$kX = { class: "toolbar-container" }, _hoisted_2$kV = { class: "left-toolbar" }, _hoisted_3$hW = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-weibiaoti545" }, null, -1)), _hoisted_4$aw = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-huifu" }, null, -1)), _hoisted_5$4W = { class: "right-toolbar" }, _hoisted_6$1$ = { class: "right-toolbar-con" }, _hoisted_7$12 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-delete" }, null, -1)), _hoisted_8$F = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-view" }, null, -1)), _hoisted_9$m = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-save" }, null, -1));
50731
+ }, _withScopeId$5 = (Q) => (pushScopeId("data-v-fe9489ce"), Q = Q(), popScopeId(), Q), _hoisted_1$kX = { class: "toolbar-container" }, _hoisted_2$kV = { class: "left-toolbar" }, _hoisted_3$hW = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-weibiaoti545" }, null, -1)), _hoisted_4$aw = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-huifu" }, null, -1)), _hoisted_5$4W = { class: "right-toolbar" }, _hoisted_6$1$ = { class: "right-toolbar-con" }, _hoisted_7$12 = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-delete" }, null, -1)), _hoisted_8$F = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-view" }, null, -1)), _hoisted_9$m = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-save" }, null, -1));
50708
50732
  function _sfc_render$3(Q, H, G, X, Z, K) {
50709
50733
  const ee = resolveComponent("el-button"), te = resolveComponent("el-tooltip"), ne = resolveComponent("PreviewModal");
50710
50734
  return openBlock(), createElementBlock(Fragment, null, [
@@ -50796,7 +50820,7 @@ function _sfc_render$3(Q, H, G, X, Z, K) {
50796
50820
  }, null, 8, ["preViewModal", "designer"])
50797
50821
  ], 64);
50798
50822
  }
50799
- const ToolbarPanel = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$3], ["__scopeId", "data-v-de8f2c09"]]), containers$1 = [
50823
+ const ToolbarPanel = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$3], ["__scopeId", "data-v-fe9489ce"]]), containers$1 = [
50800
50824
  {
50801
50825
  name: "垂直布局",
50802
50826
  layout: "V",
@@ -59265,7 +59289,7 @@ const windowDesigner_vue_vue_type_style_index_0_scoped_a3ebe962_lang = "", _with
59265
59289
  emits: ["update:type", "update:rootLayout", "update:viewData", "update:rowData"],
59266
59290
  setup(Q, { emit: H }) {
59267
59291
  const G = Q, X = defineAsyncComponent(
59268
- () => import("./index-c6ea4a24.js")
59292
+ () => import("./index-385f0b49.js")
59269
59293
  );
59270
59294
  let Z = useVModel(G, "type", H), K = useVModel(G, "rootLayout", H), ee = useVModel(G, "viewData", H), te = useVModel(G, "rowData", H), ne = ref(0), re = ref(null);
59271
59295
  re.value = createDesigner();
@@ -144263,7 +144287,7 @@ function reConsole() {
144263
144287
  }
144264
144288
  }
144265
144289
  console.info(
144266
- `%cSLW %cVer 0.9.49%c
144290
+ `%cSLW %cVer 0.9.51%c
144267
144291
  %c指引文档:%chttp://slwdoc.js.sforcecon.com:5900/%c
144268
144292
  %c启光文档:%chttp://docs.js.sforcecon.com:5900/notepad/view/592`,
144269
144293
  "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-d51bbd94.js";
1
+ import { i as m } from "./index-b2a43637.js";
2
2
  import "vue";
3
3
  import "vue-router";
4
4
  export {