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/designer.es.js +25 -7
- package/dist/designer.style.css +1 -1
- package/dist/designer.umd.js +2 -2
- package/dist/render.es.js +25 -7
- package/dist/render.style.css +1 -1
- 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__1779189770618__");
|
|
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__1779189770618__";
|
|
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
|
}
|
|
@@ -79226,7 +79226,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
79226
79226
|
_: 1
|
|
79227
79227
|
}, 8, ["modelValue", "onClose"]);
|
|
79228
79228
|
}
|
|
79229
|
-
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-
|
|
79229
|
+
var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-0c6d23e8"]]);
|
|
79230
79230
|
var index_vue_vue_type_style_index_0_lang$1 = "";
|
|
79231
79231
|
const _sfc_main$5 = {
|
|
79232
79232
|
name: "asset-select-widget",
|
|
@@ -80264,9 +80264,24 @@ 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
|
+
if (this.designState || this.hasExistingValue()) {
|
|
80277
|
+
return;
|
|
80278
|
+
}
|
|
80279
|
+
this.getCurrentUserSecondCompany();
|
|
80268
80280
|
},
|
|
80269
80281
|
async getCurrentUserSecondCompany() {
|
|
80282
|
+
if (this.hasExistingValue()) {
|
|
80283
|
+
return;
|
|
80284
|
+
}
|
|
80270
80285
|
const { data: data2 } = await service$1({
|
|
80271
80286
|
method: "get",
|
|
80272
80287
|
url: "unified-system/sysCompany/targetCompany",
|
|
@@ -80274,6 +80289,9 @@ const _sfc_main$1 = {
|
|
|
80274
80289
|
id: sessionStorage.getItem("companyId")
|
|
80275
80290
|
}
|
|
80276
80291
|
});
|
|
80292
|
+
if (this.hasExistingValue()) {
|
|
80293
|
+
return;
|
|
80294
|
+
}
|
|
80277
80295
|
this.fieldModel = data2;
|
|
80278
80296
|
this.syncUpdateFormModel(this.fieldModel);
|
|
80279
80297
|
this.emitFieldDataChange(this.fieldModel, this.oldFieldValue);
|
|
@@ -80298,9 +80316,9 @@ const _sfc_main$1 = {
|
|
|
80298
80316
|
this.handleOnCreated();
|
|
80299
80317
|
},
|
|
80300
80318
|
mounted() {
|
|
80301
|
-
|
|
80302
|
-
|
|
80303
|
-
|
|
80319
|
+
this.$nextTick(() => {
|
|
80320
|
+
this.tryLoadCurrentUserSecondCompany();
|
|
80321
|
+
});
|
|
80304
80322
|
}
|
|
80305
80323
|
};
|
|
80306
80324
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|