form-custom-test 3.0.64 → 3.0.65

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.
@@ -68056,13 +68056,13 @@ function registerIcon(app) {
68056
68056
  if (typeof window !== "undefined") {
68057
68057
  let loadSvg = function() {
68058
68058
  var body = document.body;
68059
- var svgDom = document.getElementById("__svg__icons__dom__1773831778945__");
68059
+ var svgDom = document.getElementById("__svg__icons__dom__1773917611073__");
68060
68060
  if (!svgDom) {
68061
68061
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
68062
68062
  svgDom.style.position = "absolute";
68063
68063
  svgDom.style.width = "0";
68064
68064
  svgDom.style.height = "0";
68065
- svgDom.id = "__svg__icons__dom__1773831778945__";
68065
+ svgDom.id = "__svg__icons__dom__1773917611073__";
68066
68066
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
68067
68067
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
68068
68068
  }
@@ -77945,6 +77945,15 @@ const _sfc_main = {
77945
77945
  };
77946
77946
  },
77947
77947
  computed: {
77948
+ displayModel() {
77949
+ if (this.currentUserType === "username") {
77950
+ return this.fieldModel ? this.fieldModel.username : "";
77951
+ } else if (this.currentUserType === "deptName") {
77952
+ return this.fieldModel ? this.fieldModel.deptName : "";
77953
+ } else {
77954
+ return JSON.stringify(this.fieldModel);
77955
+ }
77956
+ },
77948
77957
  widgetStyle() {
77949
77958
  return {
77950
77959
  width: this.field.options.columnWidth || "auto"
@@ -77967,9 +77976,9 @@ const _sfc_main = {
77967
77976
  url: "unified-system/employee/loginInfo?accessType=0"
77968
77977
  });
77969
77978
  if (this.currentUserType === "username") {
77970
- this.fieldModel = data2.username;
77979
+ this.fieldModel = data2;
77971
77980
  } else if (this.currentUserType === "deptName") {
77972
- this.fieldModel = data2.deptName;
77981
+ this.fieldModel = data2;
77973
77982
  }
77974
77983
  this.syncUpdateFormModel(this.fieldModel);
77975
77984
  this.emitFieldDataChange(this.fieldModel, this.oldFieldValue);
@@ -78024,8 +78033,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
78024
78033
  }, {
78025
78034
  default: withCtx(() => [
78026
78035
  createVNode(_component_el_input, {
78027
- modelValue: $data.fieldModel,
78028
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.fieldModel = $event),
78036
+ modelValue: $options.displayModel,
78037
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.displayModel = $event),
78029
78038
  disabled: true
78030
78039
  }, null, 8, ["modelValue"])
78031
78040
  ]),