form-custom-test 3.0.22 → 3.0.23

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__1767594454110__");
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__1767594454110__";
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,7 @@ const _sfc_main$9 = {
62433
62425
  this.initEventHandler();
62434
62426
  this.buildFieldRules();
62435
62427
  this.handleOnCreated();
62436
- console.log(cookies$3, "cookies");
62428
+ console.log(cookies, "cookies");
62437
62429
  },
62438
62430
  mounted() {
62439
62431
  this.handleOnMounted();
@@ -62455,7 +62447,12 @@ const _sfc_main$9 = {
62455
62447
  });
62456
62448
  },
62457
62449
  getTreeData() {
62458
- service.get("/oa-business/oaCompany/fullTree?companyId=1969231284703105025").then(({ data: data2 }) => {
62450
+ const { cookies: cookies2 } = useCookies();
62451
+ service({
62452
+ method: "post",
62453
+ url: "/unified-system/sysCompany/fullTree",
62454
+ data: { companyId: JSON.parse(cookies2.get("companyId") || "") }
62455
+ }).then(({ data: data2 }) => {
62459
62456
  this.treeData = renderData(data2);
62460
62457
  function renderData(data3) {
62461
62458
  var _a2;
@@ -62648,7 +62645,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
62648
62645
  _: 1
62649
62646
  }, 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
62647
  }
62651
- var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-be57f04a"]]);
62648
+ var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-24f50670"]]);
62652
62649
  const _sfc_main$8 = {
62653
62650
  name: "radio-other-widget",
62654
62651
  componentName: "FieldWidget",
@@ -63693,7 +63690,7 @@ const _sfc_main$4 = {
63693
63690
  this.handleSubFormRowChange(oldSubFormData);
63694
63691
  },
63695
63692
  deleteSubFormRow(formRowIndex) {
63696
- this.$confirm("\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E00\u884C\u5417\uFF1F", "\u63D0\u793A", {
63693
+ this.$confirm("\u786E\u5B9A\u8981\u5220\u9664\u5417\uFF1F", "\u63D0\u793A", {
63697
63694
  confirmButtonText: "\u786E\u5B9A",
63698
63695
  cancelButtonText: "\u53D6\u6D88",
63699
63696
  type: "warning"
@@ -63787,8 +63784,8 @@ const _hoisted_14 = {
63787
63784
  class: "empty-hint"
63788
63785
  };
63789
63786
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
63790
- const _component_svg_icon = resolveComponent("svg-icon");
63791
63787
  const _component_el_button = resolveComponent("el-button");
63788
+ const _component_svg_icon = resolveComponent("svg-icon");
63792
63789
  const _component_container_item_wrapper = resolveComponent("container-item-wrapper");
63793
63790
  return openBlock(), createBlock(_component_container_item_wrapper, { widget: $props.widget }, {
63794
63791
  default: withCtx(() => [
@@ -63797,21 +63794,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
63797
63794
  class: normalizeClass(["custom-sub-form-container", $options.customClass])
63798
63795
  }, [
63799
63796
  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"])
63797
+ createElementVNode("span", _hoisted_2$1, toDisplayString($props.widget.options.label || "\u81EA\u5B9A\u4E49\u5B50\u8868\u5355"), 1)
63815
63798
  ]),
63816
63799
  (openBlock(true), createElementBlock(Fragment, null, renderList($data.rowIdData, (subFormRowId, sfrIdx) => {
63817
63800
  return openBlock(), createElementBlock("div", {
@@ -63827,13 +63810,13 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
63827
63810
  key: 0,
63828
63811
  size: "small",
63829
63812
  type: "danger",
63813
+ plain: "",
63830
63814
  onClick: ($event) => $options.deleteSubFormRow(sfrIdx),
63831
63815
  title: "\u5220\u9664\u7EC4"
63832
63816
  }, {
63833
- default: withCtx(() => [
63834
- createVNode(_component_svg_icon, { "icon-class": "el-delete" }),
63835
- _cache[1] || (_cache[1] = createTextVNode(" \u5220\u9664 ", -1))
63836
- ]),
63817
+ default: withCtx(() => [..._cache[0] || (_cache[0] = [
63818
+ createTextVNode(" \u5220\u9664 ", -1)
63819
+ ])]),
63837
63820
  _: 1
63838
63821
  }, 8, ["onClick"])) : createCommentVNode("", true)
63839
63822
  ])
@@ -63871,7 +63854,20 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
63871
63854
  ])
63872
63855
  ]);
63873
63856
  }), 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)
63857
+ !$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),
63858
+ createVNode(_component_el_button, {
63859
+ disabled: $data.actionDisabled,
63860
+ type: "primary",
63861
+ plain: "",
63862
+ class: "action-button",
63863
+ onClick: $options.addSubFormRow
63864
+ }, {
63865
+ default: withCtx(() => [
63866
+ createVNode(_component_svg_icon, { "icon-class": "el-plus" }),
63867
+ _cache[1] || (_cache[1] = createTextVNode(" \u6DFB\u52A0 ", -1))
63868
+ ]),
63869
+ _: 1
63870
+ }, 8, ["disabled", "onClick"])
63875
63871
  ], 2)), [
63876
63872
  [vShow, $props.widget && $props.widget.options && !$props.widget.options.hidden]
63877
63873
  ]) : createCommentVNode("", true)
@@ -63879,7 +63875,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
63879
63875
  _: 1
63880
63876
  }, 8, ["widget"]);
63881
63877
  }
63882
- var CustomSubFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-3b218558"]]);
63878
+ var CustomSubFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-16f3833e"]]);
63883
63879
  const customTableCellSchema = {
63884
63880
  type: "custom-table-cell",
63885
63881
  category: "container",