@dhccmobile/vue3-lo-form 0.1.12 → 0.1.14

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.
@@ -85945,7 +85945,13 @@ class FormApi_FormApi {
85945
85945
  continue;
85946
85946
  }
85947
85947
 
85948
- if (objectA[key] !== objectB[key]) {
85948
+ const control = this.getControl(key);
85949
+
85950
+ if (!control) {
85951
+ continue;
85952
+ }
85953
+
85954
+ if (control.code !== constants_enum["g" /* FormFieldType */].Custom.code && objectA[key] + "" !== objectB[key] + "") {
85949
85955
  const oldValue = objectA[key]; // 记录新值
85950
85956
 
85951
85957
  const newValue = objectB[key]; // 记录旧值
@@ -85954,12 +85960,6 @@ class FormApi_FormApi {
85954
85960
 
85955
85961
  fieldInfo.field_cd = key; //字段英文
85956
85962
 
85957
- const control = this.getControl(key);
85958
-
85959
- if (!control) {
85960
- continue;
85961
- }
85962
-
85963
85963
  const name = control.controlAttr.formFieldDescribe;
85964
85964
  fieldInfo.field_nm = name; //字段中文
85965
85965
 
@@ -86039,22 +86039,43 @@ class FormApi_FormApi {
86039
86039
 
86040
86040
  case constants_enum["g" /* FormFieldType */].Checkbox.code:
86041
86041
  str = "";
86042
- control.controlAttr.optionConfig.forEach(item => {
86043
- value.split(",").forEach(index => {
86044
- if (item.value === index) {
86045
- str = str + item.title + ",";
86046
- }
86042
+
86043
+ if (control.controlAttr.generalDictionaryOptions) {
86044
+ control.controlAttr.generalDictionaryOptions.forEach(item => {
86045
+ value.split(",").forEach(index => {
86046
+ if (item.value === index) {
86047
+ str = str + item.title + ",";
86048
+ }
86049
+ });
86047
86050
  });
86048
- });
86051
+ } else {
86052
+ control.controlAttr.optionConfig.forEach(item => {
86053
+ value.split(",").forEach(index => {
86054
+ if (item.value === index) {
86055
+ str = str + item.title + ",";
86056
+ }
86057
+ });
86058
+ });
86059
+ }
86060
+
86049
86061
  str = str.substring(0, str.length - 1);
86050
86062
  break;
86051
86063
 
86052
86064
  case constants_enum["g" /* FormFieldType */].Radio.code:
86053
- control.controlAttr.optionConfig.forEach(item => {
86054
- if (item.value === value) {
86055
- str = item.title;
86056
- }
86057
- });
86065
+ if (control.controlAttr.generalDictionaryOptions) {
86066
+ control.controlAttr.generalDictionaryOptions.forEach(item => {
86067
+ if (item.value === value) {
86068
+ str = item.title;
86069
+ }
86070
+ });
86071
+ } else {
86072
+ control.controlAttr.optionConfig.forEach(item => {
86073
+ if (item.value === value) {
86074
+ str = item.title;
86075
+ }
86076
+ });
86077
+ }
86078
+
86058
86079
  break;
86059
86080
 
86060
86081
  case constants_enum["g" /* FormFieldType */].TimePicker.code: