form-custom-test 3.0.156 → 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/designer.es.js +24 -7
- package/dist/designer.umd.js +2 -2
- package/dist/render.es.js +24 -7
- package/dist/render.umd.js +2 -2
- package/package.json +1 -1
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("
|
|
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 = "
|
|
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
|
}
|
|
@@ -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
|
-
|
|
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
|
-
|
|
63527
|
-
|
|
63528
|
-
|
|
63544
|
+
this.$nextTick(() => {
|
|
63545
|
+
this.tryLoadCurrentUserSecondCompany();
|
|
63546
|
+
});
|
|
63529
63547
|
}
|
|
63530
63548
|
};
|
|
63531
63549
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -63544,7 +63562,6 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
63544
63562
|
"sub-form-row-id": $props.subFormRowId
|
|
63545
63563
|
}, {
|
|
63546
63564
|
default: withCtx(() => [
|
|
63547
|
-
createTextVNode(toDisplayString($options.hasExistingValue()) + " ", 1),
|
|
63548
63565
|
createVNode(_component_el_input, {
|
|
63549
63566
|
modelValue: $options.displayModel,
|
|
63550
63567
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.displayModel = $event),
|