form-custom-test 3.0.22 → 3.0.24

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.
@@ -304,7 +304,7 @@ var settle$1 = function settle2(resolve, reject, response) {
304
304
  }
305
305
  };
306
306
  var utils$9 = utils$d;
307
- var cookies$5 = utils$9.isStandardBrowserEnv() ? function standardBrowserEnv() {
307
+ var cookies$4 = utils$9.isStandardBrowserEnv() ? function standardBrowserEnv() {
308
308
  return {
309
309
  write: function write(name, value2, expires, path, domain, secure) {
310
310
  var cookie = [];
@@ -444,7 +444,7 @@ Cancel$3.prototype.__CANCEL__ = true;
444
444
  var Cancel_1 = Cancel$3;
445
445
  var utils$6 = utils$d;
446
446
  var settle = settle$1;
447
- var cookies$4 = cookies$5;
447
+ var cookies$3 = cookies$4;
448
448
  var buildURL$1 = buildURL$2;
449
449
  var buildFullPath = buildFullPath$1;
450
450
  var parseHeaders = parseHeaders$1;
@@ -535,7 +535,7 @@ var xhr = function xhrAdapter(config) {
535
535
  request2 = null;
536
536
  };
537
537
  if (utils$6.isStandardBrowserEnv()) {
538
- var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies$4.read(config.xsrfCookieName) : void 0;
538
+ var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies$3.read(config.xsrfCookieName) : void 0;
539
539
  if (xsrfValue) {
540
540
  requestHeaders[config.xsrfHeaderName] = xsrfValue;
541
541
  }
@@ -6410,14 +6410,6 @@ var VueCookiesManager = function() {
6410
6410
  };
6411
6411
  return VueCookiesManager2;
6412
6412
  }();
6413
- var cookies$3 = {
6414
- install: function(app, options) {
6415
- app.config.globalProperties.$cookies = new VueCookiesManager();
6416
- if (options) {
6417
- app.config.globalProperties.$cookies.config(options);
6418
- }
6419
- }
6420
- };
6421
6413
  var GLOBAL_COOKIES_MANAGER = null;
6422
6414
  function useCookies() {
6423
6415
  if (GLOBAL_COOKIES_MANAGER == null) {
@@ -61698,13 +61690,13 @@ function registerIcon(app) {
61698
61690
  if (typeof window !== "undefined") {
61699
61691
  let loadSvg = function() {
61700
61692
  var body = document.body;
61701
- var svgDom = document.getElementById("__svg__icons__dom__1767168261439__");
61693
+ var svgDom = document.getElementById("__svg__icons__dom__1767602550429__");
61702
61694
  if (!svgDom) {
61703
61695
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
61704
61696
  svgDom.style.position = "absolute";
61705
61697
  svgDom.style.width = "0";
61706
61698
  svgDom.style.height = "0";
61707
- svgDom.id = "__svg__icons__dom__1767168261439__";
61699
+ svgDom.id = "__svg__icons__dom__1767602550429__";
61708
61700
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
61709
61701
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
61710
61702
  }
@@ -62433,7 +62425,6 @@ const _sfc_main$9 = {
62433
62425
  this.initEventHandler();
62434
62426
  this.buildFieldRules();
62435
62427
  this.handleOnCreated();
62436
- console.log(cookies$3, "cookies");
62437
62428
  },
62438
62429
  mounted() {
62439
62430
  this.handleOnMounted();
@@ -62455,7 +62446,12 @@ const _sfc_main$9 = {
62455
62446
  });
62456
62447
  },
62457
62448
  getTreeData() {
62458
- service.get("/oa-business/oaCompany/fullTree?companyId=1969231284703105025").then(({ data: data2 }) => {
62449
+ const { cookies: cookies2 } = useCookies();
62450
+ service({
62451
+ method: "post",
62452
+ url: "/unified-system/sysCompany/fullTree",
62453
+ data: { companyId: JSON.parse(cookies2.get("companyId") || "") }
62454
+ }).then(({ data: data2 }) => {
62459
62455
  this.treeData = renderData(data2);
62460
62456
  function renderData(data3) {
62461
62457
  var _a2;
@@ -62648,7 +62644,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
62648
62644
  _: 1
62649
62645
  }, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
62650
62646
  }
62651
- var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-be57f04a"]]);
62647
+ var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-487df9ec"]]);
62652
62648
  const _sfc_main$8 = {
62653
62649
  name: "radio-other-widget",
62654
62650
  componentName: "FieldWidget",
@@ -63693,7 +63689,7 @@ const _sfc_main$4 = {
63693
63689
  this.handleSubFormRowChange(oldSubFormData);
63694
63690
  },
63695
63691
  deleteSubFormRow(formRowIndex) {
63696
- this.$confirm("\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E00\u884C\u5417\uFF1F", "\u63D0\u793A", {
63692
+ this.$confirm("\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F", "\u63D0\u793A", {
63697
63693
  confirmButtonText: "\u786E\u5B9A",
63698
63694
  cancelButtonText: "\u53D6\u6D88",
63699
63695
  type: "warning"
@@ -63787,8 +63783,8 @@ const _hoisted_14 = {
63787
63783
  class: "empty-hint"
63788
63784
  };
63789
63785
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
63790
- const _component_svg_icon = resolveComponent("svg-icon");
63791
63786
  const _component_el_button = resolveComponent("el-button");
63787
+ const _component_svg_icon = resolveComponent("svg-icon");
63792
63788
  const _component_container_item_wrapper = resolveComponent("container-item-wrapper");
63793
63789
  return openBlock(), createBlock(_component_container_item_wrapper, { widget: $props.widget }, {
63794
63790
  default: withCtx(() => [
@@ -63797,21 +63793,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
63797
63793
  class: normalizeClass(["custom-sub-form-container", $options.customClass])
63798
63794
  }, [
63799
63795
  createElementVNode("div", _hoisted_1$4, [
63800
- createElementVNode("span", _hoisted_2$1, toDisplayString($props.widget.options.label || "\u81EA\u5B9A\u4E49\u5B50\u8868\u5355"), 1),
63801
- createVNode(_component_el_button, {
63802
- disabled: $data.actionDisabled,
63803
- round: "",
63804
- type: "primary",
63805
- size: "small",
63806
- class: "action-button",
63807
- onClick: $options.addSubFormRow
63808
- }, {
63809
- default: withCtx(() => [
63810
- createVNode(_component_svg_icon, { "icon-class": "el-plus" }),
63811
- _cache[0] || (_cache[0] = createTextVNode(" \u6DFB\u52A0 ", -1))
63812
- ]),
63813
- _: 1
63814
- }, 8, ["disabled", "onClick"])
63796
+ createElementVNode("span", _hoisted_2$1, toDisplayString($props.widget.options.label || "\u81EA\u5B9A\u4E49\u5B50\u8868\u5355"), 1)
63815
63797
  ]),
63816
63798
  (openBlock(true), createElementBlock(Fragment, null, renderList($data.rowIdData, (subFormRowId, sfrIdx) => {
63817
63799
  return openBlock(), createElementBlock("div", {
@@ -63827,13 +63809,13 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
63827
63809
  key: 0,
63828
63810
  size: "small",
63829
63811
  type: "danger",
63812
+ plain: "",
63830
63813
  onClick: ($event) => $options.deleteSubFormRow(sfrIdx),
63831
63814
  title: "\u5220\u9664\u7EC4"
63832
63815
  }, {
63833
- default: withCtx(() => [
63834
- createVNode(_component_svg_icon, { "icon-class": "el-delete" }),
63835
- _cache[1] || (_cache[1] = createTextVNode(" \u5220\u9664 ", -1))
63836
- ]),
63816
+ default: withCtx(() => [..._cache[0] || (_cache[0] = [
63817
+ createTextVNode(" \u5220\u9664 ", -1)
63818
+ ])]),
63837
63819
  _: 1
63838
63820
  }, 8, ["onClick"])) : createCommentVNode("", true)
63839
63821
  ])
@@ -63871,7 +63853,20 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
63871
63853
  ])
63872
63854
  ]);
63873
63855
  }), 128)),
63874
- !$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_13, " \u8BF7\u5148\u5728\u8BBE\u8BA1\u5668\u4E2D\u62D6\u62FD\u7EC4\u4EF6\u5230\u5B50\u8868\u5355\u4E2D ")) : $data.rowIdData.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_14, ' \u70B9\u51FB"\u6DFB\u52A0"\u6309\u94AE\u6DFB\u52A0\u6570\u636E\u884C ')) : createCommentVNode("", true)
63856
+ !$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_13, " \u8BF7\u5148\u5728\u8BBE\u8BA1\u5668\u4E2D\u62D6\u62FD\u7EC4\u4EF6\u5230\u5B50\u8868\u5355\u4E2D ")) : $data.rowIdData.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_14, ' \u70B9\u51FB"\u6DFB\u52A0"\u6309\u94AE\u6DFB\u52A0\u6570\u636E\u884C ')) : createCommentVNode("", true),
63857
+ createVNode(_component_el_button, {
63858
+ disabled: $data.actionDisabled,
63859
+ type: "primary",
63860
+ plain: "",
63861
+ class: "action-button",
63862
+ onClick: $options.addSubFormRow
63863
+ }, {
63864
+ default: withCtx(() => [
63865
+ createVNode(_component_svg_icon, { "icon-class": "el-plus" }),
63866
+ _cache[1] || (_cache[1] = createTextVNode(" \u6DFB\u52A0 ", -1))
63867
+ ]),
63868
+ _: 1
63869
+ }, 8, ["disabled", "onClick"])
63875
63870
  ], 2)), [
63876
63871
  [vShow, $props.widget && $props.widget.options && !$props.widget.options.hidden]
63877
63872
  ]) : createCommentVNode("", true)
@@ -63879,7 +63874,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
63879
63874
  _: 1
63880
63875
  }, 8, ["widget"]);
63881
63876
  }
63882
- var CustomSubFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-3b218558"]]);
63877
+ var CustomSubFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-16f3833e"]]);
63883
63878
  const customTableCellSchema = {
63884
63879
  type: "custom-table-cell",
63885
63880
  category: "container",