form-custom-test 3.0.57 → 3.0.59
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 +11 -5
- package/dist/designer.umd.js +2 -2
- package/dist/render.es.js +11 -5
- package/dist/render.umd.js +2 -2
- package/package.json +1 -1
package/dist/render.es.js
CHANGED
|
@@ -25884,13 +25884,13 @@ function registerIcon(app) {
|
|
|
25884
25884
|
if (typeof window !== "undefined") {
|
|
25885
25885
|
let loadSvg = function() {
|
|
25886
25886
|
var body = document.body;
|
|
25887
|
-
var svgDom = document.getElementById("
|
|
25887
|
+
var svgDom = document.getElementById("__svg__icons__dom__1773625900513__");
|
|
25888
25888
|
if (!svgDom) {
|
|
25889
25889
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
25890
25890
|
svgDom.style.position = "absolute";
|
|
25891
25891
|
svgDom.style.width = "0";
|
|
25892
25892
|
svgDom.style.height = "0";
|
|
25893
|
-
svgDom.id = "
|
|
25893
|
+
svgDom.id = "__svg__icons__dom__1773625900513__";
|
|
25894
25894
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
25895
25895
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
25896
25896
|
}
|
|
@@ -61330,18 +61330,21 @@ const _sfc_main = {
|
|
|
61330
61330
|
}
|
|
61331
61331
|
},
|
|
61332
61332
|
methods: {
|
|
61333
|
+
hasExistingValue() {
|
|
61334
|
+
var _a;
|
|
61335
|
+
const v = (_a = this.fieldModel) != null ? _a : this.oldFieldValue;
|
|
61336
|
+
return v !== void 0 && v !== null && v !== "";
|
|
61337
|
+
},
|
|
61333
61338
|
async getCurrentUser() {
|
|
61334
61339
|
const { data: data2 } = await service({
|
|
61335
61340
|
method: "get",
|
|
61336
61341
|
url: "unified-system/employee/loginInfo?accessType=0"
|
|
61337
61342
|
});
|
|
61338
|
-
console.log(this.currentUserType, "data");
|
|
61339
61343
|
if (this.currentUserType === "username") {
|
|
61340
61344
|
this.fieldModel = data2.username;
|
|
61341
61345
|
} else if (this.currentUserType === "deptName") {
|
|
61342
61346
|
this.fieldModel = data2.deptName;
|
|
61343
61347
|
}
|
|
61344
|
-
console.log(this.oldFieldValue, this.fieldModel, "this.oldFieldValue");
|
|
61345
61348
|
this.syncUpdateFormModel(this.fieldModel);
|
|
61346
61349
|
this.emitFieldDataChange(this.fieldModel, this.oldFieldValue);
|
|
61347
61350
|
}
|
|
@@ -61358,7 +61361,8 @@ const _sfc_main = {
|
|
|
61358
61361
|
},
|
|
61359
61362
|
"field.options.type": {
|
|
61360
61363
|
handler(newVal, oldVal) {
|
|
61361
|
-
|
|
61364
|
+
if (oldVal === void 0)
|
|
61365
|
+
return;
|
|
61362
61366
|
this.getCurrentUser();
|
|
61363
61367
|
},
|
|
61364
61368
|
immediate: false
|
|
@@ -61372,6 +61376,8 @@ const _sfc_main = {
|
|
|
61372
61376
|
this.handleOnCreated();
|
|
61373
61377
|
},
|
|
61374
61378
|
mounted() {
|
|
61379
|
+
if (this.hasExistingValue())
|
|
61380
|
+
return;
|
|
61375
61381
|
this.getCurrentUser();
|
|
61376
61382
|
}
|
|
61377
61383
|
};
|