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/designer.es.js
CHANGED
|
@@ -68033,13 +68033,13 @@ function registerIcon(app) {
|
|
|
68033
68033
|
if (typeof window !== "undefined") {
|
|
68034
68034
|
let loadSvg = function() {
|
|
68035
68035
|
var body = document.body;
|
|
68036
|
-
var svgDom = document.getElementById("
|
|
68036
|
+
var svgDom = document.getElementById("__svg__icons__dom__1773625889135__");
|
|
68037
68037
|
if (!svgDom) {
|
|
68038
68038
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
68039
68039
|
svgDom.style.position = "absolute";
|
|
68040
68040
|
svgDom.style.width = "0";
|
|
68041
68041
|
svgDom.style.height = "0";
|
|
68042
|
-
svgDom.id = "
|
|
68042
|
+
svgDom.id = "__svg__icons__dom__1773625889135__";
|
|
68043
68043
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
68044
68044
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
68045
68045
|
}
|
|
@@ -77932,18 +77932,21 @@ const _sfc_main = {
|
|
|
77932
77932
|
}
|
|
77933
77933
|
},
|
|
77934
77934
|
methods: {
|
|
77935
|
+
hasExistingValue() {
|
|
77936
|
+
var _a2;
|
|
77937
|
+
const v = (_a2 = this.fieldModel) != null ? _a2 : this.oldFieldValue;
|
|
77938
|
+
return v !== void 0 && v !== null && v !== "";
|
|
77939
|
+
},
|
|
77935
77940
|
async getCurrentUser() {
|
|
77936
77941
|
const { data: data2 } = await service({
|
|
77937
77942
|
method: "get",
|
|
77938
77943
|
url: "unified-system/employee/loginInfo?accessType=0"
|
|
77939
77944
|
});
|
|
77940
|
-
console.log(this.currentUserType, "data");
|
|
77941
77945
|
if (this.currentUserType === "username") {
|
|
77942
77946
|
this.fieldModel = data2.username;
|
|
77943
77947
|
} else if (this.currentUserType === "deptName") {
|
|
77944
77948
|
this.fieldModel = data2.deptName;
|
|
77945
77949
|
}
|
|
77946
|
-
console.log(this.oldFieldValue, this.fieldModel, "this.oldFieldValue");
|
|
77947
77950
|
this.syncUpdateFormModel(this.fieldModel);
|
|
77948
77951
|
this.emitFieldDataChange(this.fieldModel, this.oldFieldValue);
|
|
77949
77952
|
}
|
|
@@ -77960,7 +77963,8 @@ const _sfc_main = {
|
|
|
77960
77963
|
},
|
|
77961
77964
|
"field.options.type": {
|
|
77962
77965
|
handler(newVal, oldVal) {
|
|
77963
|
-
|
|
77966
|
+
if (oldVal === void 0)
|
|
77967
|
+
return;
|
|
77964
77968
|
this.getCurrentUser();
|
|
77965
77969
|
},
|
|
77966
77970
|
immediate: false
|
|
@@ -77974,6 +77978,8 @@ const _sfc_main = {
|
|
|
77974
77978
|
this.handleOnCreated();
|
|
77975
77979
|
},
|
|
77976
77980
|
mounted() {
|
|
77981
|
+
if (this.hasExistingValue())
|
|
77982
|
+
return;
|
|
77977
77983
|
this.getCurrentUser();
|
|
77978
77984
|
}
|
|
77979
77985
|
};
|