form-custom-test 3.0.242 → 3.0.244

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.
@@ -11060,9 +11060,7 @@ var fieldMixin = {
11060
11060
  if (Array.isArray(colName)) {
11061
11061
  let anySet = false;
11062
11062
  colName.forEach((cName) => {
11063
- const col2 = this.findColByName(cName);
11064
- if (col2 && col2.options) {
11065
- col2.options.hidden = hiddenVal;
11063
+ if (this.setColHidden(cName, hiddenVal)) {
11066
11064
  anySet = true;
11067
11065
  }
11068
11066
  });
@@ -11072,8 +11070,41 @@ var fieldMixin = {
11072
11070
  if (!col || !col.options)
11073
11071
  return false;
11074
11072
  col.options.hidden = hiddenVal;
11073
+ this.syncColFieldsHidden(col, hiddenVal);
11075
11074
  return true;
11076
11075
  },
11076
+ syncColFieldsHidden(col, hidden) {
11077
+ if (!col)
11078
+ return;
11079
+ const hiddenVal = !!hidden;
11080
+ const walk = (list) => {
11081
+ if (!Array.isArray(list))
11082
+ return;
11083
+ list.forEach((w) => {
11084
+ if (!w)
11085
+ return;
11086
+ if (w.formItemFlag && w.options && w.options.name) {
11087
+ w.options.hidden = hiddenVal;
11088
+ const fieldRef = this.getWidgetRef(w.options.name, false);
11089
+ if (fieldRef && typeof fieldRef.setHidden === "function") {
11090
+ fieldRef.setHidden(hiddenVal);
11091
+ } else if (fieldRef) {
11092
+ if (hiddenVal && typeof fieldRef.clearFieldRules === "function") {
11093
+ fieldRef.clearFieldRules();
11094
+ } else if (!hiddenVal && typeof fieldRef.buildFieldRules === "function") {
11095
+ fieldRef.buildFieldRules();
11096
+ }
11097
+ }
11098
+ }
11099
+ if (Array.isArray(w.widgetList))
11100
+ walk(w.widgetList);
11101
+ if (Array.isArray(w.cols)) {
11102
+ w.cols.forEach((c) => walk(c && c.widgetList));
11103
+ }
11104
+ });
11105
+ };
11106
+ walk(col.widgetList);
11107
+ },
11077
11108
  getWidgetRef(widgetName, showError, rowId) {
11078
11109
  let foundRef = null;
11079
11110
  if (this.subFormItemFlag && !this.designState) {
@@ -26689,10 +26720,13 @@ const _sfc_main$3f = {
26689
26720
  if (!fieldWidget2.formItemFlag || !fieldWidget2.options || !fieldWidget2.options.name) {
26690
26721
  return;
26691
26722
  }
26723
+ fieldWidget2.options.hidden = hiddenFlag;
26692
26724
  const fieldRef = this.getWidgetRef(fieldWidget2.options.name);
26693
26725
  if (!fieldRef)
26694
26726
  return;
26695
- if (hiddenFlag) {
26727
+ if (typeof fieldRef.setHidden === "function") {
26728
+ fieldRef.setHidden(hiddenFlag);
26729
+ } else if (hiddenFlag) {
26696
26730
  if (typeof fieldRef.clearFieldRules === "function") {
26697
26731
  fieldRef.clearFieldRules();
26698
26732
  }
@@ -26806,7 +26840,7 @@ function _sfc_render$3f(_ctx, _cache, $props, $setup, $data, $options) {
26806
26840
  [vShow, $options.colVisible]
26807
26841
  ]) : createCommentVNode("", true);
26808
26842
  }
26809
- var GridColItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$3f, [["render", _sfc_render$3f], ["__scopeId", "data-v-20705201"]]);
26843
+ var GridColItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$3f, [["render", _sfc_render$3f], ["__scopeId", "data-v-535c3a84"]]);
26810
26844
  var __glob_0_1$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26811
26845
  __proto__: null,
26812
26846
  "default": GridColItem
@@ -28573,16 +28607,7 @@ const _sfc_main$39 = {
28573
28607
  if (!fieldWidget2.formItemFlag || !fieldWidget2.options || !fieldWidget2.options.name) {
28574
28608
  return;
28575
28609
  }
28576
- const fieldRef = this.getWidgetRef(fieldWidget2.options.name);
28577
- if (!fieldRef)
28578
- return;
28579
- if (hiddenFlag) {
28580
- if (typeof fieldRef.clearFieldRules === "function") {
28581
- fieldRef.clearFieldRules();
28582
- }
28583
- } else if (typeof fieldRef.buildFieldRules === "function") {
28584
- fieldRef.buildFieldRules();
28585
- }
28610
+ this.findWidgetAndSetHidden(fieldWidget2.options.name, hiddenFlag);
28586
28611
  });
28587
28612
  },
28588
28613
  setColHidden(colName, hidden) {
@@ -28662,7 +28687,7 @@ function _sfc_render$39(_ctx, _cache, $props, $setup, $data, $options) {
28662
28687
  _: 3
28663
28688
  }, 8, ["label-position", "size", "class", "label-width", "model"]);
28664
28689
  }
28665
- var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$39, [["render", _sfc_render$39], ["__scopeId", "data-v-7ef95586"]]);
28690
+ var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$39, [["render", _sfc_render$39], ["__scopeId", "data-v-289ea27b"]]);
28666
28691
  var ace$2 = { exports: {} };
28667
28692
  (function(module, exports) {
28668
28693
  (function() {
@@ -69419,13 +69444,13 @@ function registerIcon(app) {
69419
69444
  if (typeof window !== "undefined") {
69420
69445
  let loadSvg = function() {
69421
69446
  var body = document.body;
69422
- var svgDom = document.getElementById("__svg__icons__dom__1786063347658__");
69447
+ var svgDom = document.getElementById("__svg__icons__dom__1789605616296__");
69423
69448
  if (!svgDom) {
69424
69449
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
69425
69450
  svgDom.style.position = "absolute";
69426
69451
  svgDom.style.width = "0";
69427
69452
  svgDom.style.height = "0";
69428
- svgDom.id = "__svg__icons__dom__1786063347658__";
69453
+ svgDom.id = "__svg__icons__dom__1789605616296__";
69429
69454
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
69430
69455
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
69431
69456
  }
@@ -83066,6 +83091,15 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
83066
83091
  createTextVNode(toDisplayString(row.printTime), 1)
83067
83092
  ]),
83068
83093
  _: 1
83094
+ }),
83095
+ createVNode(_component_el_table_column, {
83096
+ prop: "acceptDepartment",
83097
+ label: "\u5907\u6848\u63A5\u53D7\u90E8\u95E8"
83098
+ }, {
83099
+ default: withCtx(({ row }) => [
83100
+ createTextVNode(toDisplayString(row.nextDeptName), 1)
83101
+ ]),
83102
+ _: 1
83069
83103
  })
83070
83104
  ]),
83071
83105
  _: 1