form-custom-test 3.0.155 → 3.0.157

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.
package/dist/render.es.js CHANGED
@@ -26300,13 +26300,13 @@ function registerIcon(app) {
26300
26300
  if (typeof window !== "undefined") {
26301
26301
  let loadSvg = function() {
26302
26302
  var body = document.body;
26303
- var svgDom = document.getElementById("__svg__icons__dom__1779169505069__");
26303
+ var svgDom = document.getElementById("__svg__icons__dom__1779189779562__");
26304
26304
  if (!svgDom) {
26305
26305
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
26306
26306
  svgDom.style.position = "absolute";
26307
26307
  svgDom.style.width = "0";
26308
26308
  svgDom.style.height = "0";
26309
- svgDom.id = "__svg__icons__dom__1779169505069__";
26309
+ svgDom.id = "__svg__icons__dom__1779189779562__";
26310
26310
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
26311
26311
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
26312
26312
  }
@@ -62451,7 +62451,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
62451
62451
  _: 1
62452
62452
  }, 8, ["modelValue", "onClose"]);
62453
62453
  }
62454
- var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-0de00117"]]);
62454
+ var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-0c6d23e8"]]);
62455
62455
  var index_vue_vue_type_style_index_0_lang$1 = "";
62456
62456
  const _sfc_main$5 = {
62457
62457
  name: "asset-select-widget",
@@ -63489,9 +63489,24 @@ const _sfc_main$1 = {
63489
63489
  hasExistingValue() {
63490
63490
  var _a;
63491
63491
  const v = (_a = this.fieldModel) != null ? _a : this.oldFieldValue;
63492
- return v !== void 0 && v !== null && v !== "";
63492
+ if (v === void 0 || v === null || v === "") {
63493
+ return false;
63494
+ }
63495
+ if (typeof v === "object") {
63496
+ return !!(v.companyName || v.id || v.companyId);
63497
+ }
63498
+ return true;
63499
+ },
63500
+ tryLoadCurrentUserSecondCompany() {
63501
+ if (this.designState || this.hasExistingValue()) {
63502
+ return;
63503
+ }
63504
+ this.getCurrentUserSecondCompany();
63493
63505
  },
63494
63506
  async getCurrentUserSecondCompany() {
63507
+ if (this.hasExistingValue()) {
63508
+ return;
63509
+ }
63495
63510
  const { data: data2 } = await service$1({
63496
63511
  method: "get",
63497
63512
  url: "unified-system/sysCompany/targetCompany",
@@ -63499,6 +63514,9 @@ const _sfc_main$1 = {
63499
63514
  id: sessionStorage.getItem("companyId")
63500
63515
  }
63501
63516
  });
63517
+ if (this.hasExistingValue()) {
63518
+ return;
63519
+ }
63502
63520
  this.fieldModel = data2;
63503
63521
  this.syncUpdateFormModel(this.fieldModel);
63504
63522
  this.emitFieldDataChange(this.fieldModel, this.oldFieldValue);
@@ -63523,9 +63541,9 @@ const _sfc_main$1 = {
63523
63541
  this.handleOnCreated();
63524
63542
  },
63525
63543
  mounted() {
63526
- if (this.hasExistingValue())
63527
- return;
63528
- this.getCurrentUserSecondCompany();
63544
+ this.$nextTick(() => {
63545
+ this.tryLoadCurrentUserSecondCompany();
63546
+ });
63529
63547
  }
63530
63548
  };
63531
63549
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {