form-custom-test 3.0.156 → 3.0.158
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 +25 -7
- package/dist/designer.umd.js +2 -2
- package/dist/render.es.js +25 -7
- package/dist/render.umd.js +2 -2
- package/package.json +1 -1
package/dist/designer.es.js
CHANGED
|
@@ -68622,13 +68622,13 @@ function registerIcon(app) {
|
|
|
68622
68622
|
if (typeof window !== "undefined") {
|
|
68623
68623
|
let loadSvg = function() {
|
|
68624
68624
|
var body = document.body;
|
|
68625
|
-
var svgDom = document.getElementById("
|
|
68625
|
+
var svgDom = document.getElementById("__svg__icons__dom__1779189997705__");
|
|
68626
68626
|
if (!svgDom) {
|
|
68627
68627
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
68628
68628
|
svgDom.style.position = "absolute";
|
|
68629
68629
|
svgDom.style.width = "0";
|
|
68630
68630
|
svgDom.style.height = "0";
|
|
68631
|
-
svgDom.id = "
|
|
68631
|
+
svgDom.id = "__svg__icons__dom__1779189997705__";
|
|
68632
68632
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
68633
68633
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
68634
68634
|
}
|
|
@@ -80264,9 +80264,25 @@ const _sfc_main$1 = {
|
|
|
80264
80264
|
hasExistingValue() {
|
|
80265
80265
|
var _a2;
|
|
80266
80266
|
const v = (_a2 = this.fieldModel) != null ? _a2 : this.oldFieldValue;
|
|
80267
|
-
|
|
80267
|
+
if (v === void 0 || v === null || v === "") {
|
|
80268
|
+
return false;
|
|
80269
|
+
}
|
|
80270
|
+
if (typeof v === "object") {
|
|
80271
|
+
return !!(v.companyName || v.id || v.companyId);
|
|
80272
|
+
}
|
|
80273
|
+
return true;
|
|
80274
|
+
},
|
|
80275
|
+
tryLoadCurrentUserSecondCompany() {
|
|
80276
|
+
console.log(this.designState, this.hasExistingValue(), "222222222");
|
|
80277
|
+
if (this.designState || this.hasExistingValue()) {
|
|
80278
|
+
return;
|
|
80279
|
+
}
|
|
80280
|
+
this.getCurrentUserSecondCompany();
|
|
80268
80281
|
},
|
|
80269
80282
|
async getCurrentUserSecondCompany() {
|
|
80283
|
+
if (this.hasExistingValue()) {
|
|
80284
|
+
return;
|
|
80285
|
+
}
|
|
80270
80286
|
const { data: data2 } = await service$1({
|
|
80271
80287
|
method: "get",
|
|
80272
80288
|
url: "unified-system/sysCompany/targetCompany",
|
|
@@ -80274,6 +80290,9 @@ const _sfc_main$1 = {
|
|
|
80274
80290
|
id: sessionStorage.getItem("companyId")
|
|
80275
80291
|
}
|
|
80276
80292
|
});
|
|
80293
|
+
if (this.hasExistingValue()) {
|
|
80294
|
+
return;
|
|
80295
|
+
}
|
|
80277
80296
|
this.fieldModel = data2;
|
|
80278
80297
|
this.syncUpdateFormModel(this.fieldModel);
|
|
80279
80298
|
this.emitFieldDataChange(this.fieldModel, this.oldFieldValue);
|
|
@@ -80298,9 +80317,9 @@ const _sfc_main$1 = {
|
|
|
80298
80317
|
this.handleOnCreated();
|
|
80299
80318
|
},
|
|
80300
80319
|
mounted() {
|
|
80301
|
-
|
|
80302
|
-
|
|
80303
|
-
|
|
80320
|
+
this.$nextTick(() => {
|
|
80321
|
+
this.tryLoadCurrentUserSecondCompany();
|
|
80322
|
+
});
|
|
80304
80323
|
}
|
|
80305
80324
|
};
|
|
80306
80325
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -80319,7 +80338,6 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
80319
80338
|
"sub-form-row-id": $props.subFormRowId
|
|
80320
80339
|
}, {
|
|
80321
80340
|
default: withCtx(() => [
|
|
80322
|
-
createTextVNode(toDisplayString($options.hasExistingValue()) + " ", 1),
|
|
80323
80341
|
createVNode(_component_el_input, {
|
|
80324
80342
|
modelValue: $options.displayModel,
|
|
80325
80343
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.displayModel = $event),
|