form-custom-test 3.0.135 → 3.0.137

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.
@@ -3947,6 +3947,15 @@ const customInputSchema = {
3947
3947
  placeholder: "",
3948
3948
  clearable: true,
3949
3949
  filterable: false,
3950
+ disabled: false,
3951
+ readonly: false,
3952
+ maxlength: 0,
3953
+ minlength: 0,
3954
+ pattern: "",
3955
+ title: "",
3956
+ titlePosition: "top",
3957
+ titleWidth: 0,
3958
+ titleAlign: "left",
3950
3959
  required: false,
3951
3960
  requiredHint: "",
3952
3961
  validation: "",
@@ -27628,6 +27637,69 @@ const _sfc_main$2S = {
27628
27637
  getStaticTextRefs() {
27629
27638
  return Object.values(this.widgetRefList).filter((ref2) => ref2 && ref2.field && ref2.field.type === "static-text");
27630
27639
  },
27640
+ updateFieldLabel(fieldName, newLabel) {
27641
+ if (!fieldName)
27642
+ return false;
27643
+ const labelText = newLabel == null ? "" : String(newLabel);
27644
+ const seen = new Set();
27645
+ const refsToUpdate = [];
27646
+ const pushRef = (r) => {
27647
+ if (!r || !r.field || !r.field.options || seen.has(r))
27648
+ return;
27649
+ if (r.field.options.name !== fieldName)
27650
+ return;
27651
+ seen.add(r);
27652
+ refsToUpdate.push(r);
27653
+ };
27654
+ Object.keys(this.widgetRefList).forEach((k) => {
27655
+ if (k === "v_form_ref")
27656
+ return;
27657
+ if (k === fieldName || k.startsWith(fieldName + "@row")) {
27658
+ pushRef(this.widgetRefList[k]);
27659
+ }
27660
+ });
27661
+ if (refsToUpdate.length > 0) {
27662
+ refsToUpdate.forEach((r) => {
27663
+ r.field.options.label = labelText;
27664
+ });
27665
+ this.$forceUpdate();
27666
+ return true;
27667
+ }
27668
+ const formJson = this.getFormJson();
27669
+ let updated = false;
27670
+ const walk = (list) => {
27671
+ if (!Array.isArray(list) || updated)
27672
+ return;
27673
+ list.forEach((w) => {
27674
+ if (updated || !w)
27675
+ return;
27676
+ if (w.options && w.options.name === fieldName) {
27677
+ w.options.label = labelText;
27678
+ updated = true;
27679
+ return;
27680
+ }
27681
+ if (Array.isArray(w.widgetList))
27682
+ walk(w.widgetList);
27683
+ if (Array.isArray(w.cols)) {
27684
+ w.cols.forEach((c) => walk(c && c.widgetList));
27685
+ }
27686
+ if (Array.isArray(w.rows)) {
27687
+ w.rows.forEach((r) => Array.isArray(r && r.cols) && r.cols.forEach((c) => walk(c && c.widgetList)));
27688
+ }
27689
+ if (Array.isArray(w.tabs)) {
27690
+ w.tabs.forEach((t) => walk(t && t.widgetList));
27691
+ }
27692
+ });
27693
+ };
27694
+ walk(formJson && formJson.widgetList);
27695
+ if (!updated)
27696
+ return false;
27697
+ this.setFormJson(formJson);
27698
+ return true;
27699
+ },
27700
+ setFieldLabel(fieldName, newLabel) {
27701
+ return this.updateFieldLabel(fieldName, newLabel);
27702
+ },
27631
27703
  clearFormDataModel() {
27632
27704
  for (let pkey in this.formDataModel) {
27633
27705
  delete this.formDataModel[pkey];
@@ -27974,7 +28046,7 @@ function _sfc_render$2S(_ctx, _cache, $props, $setup, $data, $options) {
27974
28046
  _: 3
27975
28047
  }, 8, ["label-position", "size", "class", "label-width", "model"]);
27976
28048
  }
27977
- var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$2S, [["render", _sfc_render$2S], ["__scopeId", "data-v-6b16d674"]]);
28049
+ var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$2S, [["render", _sfc_render$2S], ["__scopeId", "data-v-4626d18a"]]);
27978
28050
  var ace$2 = { exports: {} };
27979
28051
  (function(module, exports) {
27980
28052
  (function() {
@@ -68540,13 +68612,13 @@ function registerIcon(app) {
68540
68612
  if (typeof window !== "undefined") {
68541
68613
  let loadSvg = function() {
68542
68614
  var body = document.body;
68543
- var svgDom = document.getElementById("__svg__icons__dom__1778657716715__");
68615
+ var svgDom = document.getElementById("__svg__icons__dom__1778740533767__");
68544
68616
  if (!svgDom) {
68545
68617
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
68546
68618
  svgDom.style.position = "absolute";
68547
68619
  svgDom.style.width = "0";
68548
68620
  svgDom.style.height = "0";
68549
- svgDom.id = "__svg__icons__dom__1778657716715__";
68621
+ svgDom.id = "__svg__icons__dom__1778740533767__";
68550
68622
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
68551
68623
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
68552
68624
  }
@@ -78690,6 +78762,7 @@ const _sfc_main$6 = {
78690
78762
  assetOwnerUnit: "",
78691
78763
  labelName: ""
78692
78764
  };
78765
+ this.searchValue = "";
78693
78766
  this.$emit("close");
78694
78767
  },
78695
78768
  handleConfirm() {
@@ -78729,7 +78802,7 @@ const _sfc_main$6 = {
78729
78802
  service$1({
78730
78803
  method: "post",
78731
78804
  url: "/asset-business/overview/pageList",
78732
- data: __spreadProps(__spreadValues({ size: this.pageSize, current: this.currentPage, reqType: "disposal" }, this.form), { assetType: this.form.assetType === "all" ? "" : this.form.assetType })
78805
+ data: __spreadProps(__spreadValues({ size: this.pageSize, current: this.currentPage, reqType: "disposal" }, this.form), { assetType: this.form.assetType === "all" ? "" : this.form.assetType, systemStatusList: ["2"] })
78733
78806
  }).then(({ data: data2 }) => {
78734
78807
  const { records, total, current } = data2;
78735
78808
  this.tableData = records.map((item) => {
@@ -79137,7 +79210,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
79137
79210
  _: 1
79138
79211
  }, 8, ["modelValue", "onClose"]);
79139
79212
  }
79140
- var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-f25f357a"]]);
79213
+ var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-d9c3eebc"]]);
79141
79214
  var index_vue_vue_type_style_index_0_lang$1 = "";
79142
79215
  const _sfc_main$5 = {
79143
79216
  name: "asset-select-widget",