askbot-dragon 0.8.28 → 0.8.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "0.8.28",
3
+ "version": "0.8.29",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -916,6 +916,7 @@ export default {
916
916
  if (item.value && item.value.length){
917
917
  this.$set(this.fieldValue,item.fieldId,item.value)
918
918
  }
919
+ let itemType = item.relationDisplay
919
920
  this.$set(item,'relationDisplay',this.relationSet(item.formField,'dependentFieldId'))
920
921
  if(item.formField.type === 'CHECKBOX'){
921
922
  if(!item.value){
@@ -925,9 +926,14 @@ export default {
925
926
  item.value = item.formField.defaultValue
926
927
  }
927
928
  }
928
- if (item.relationDisplay && this.fieldValue[item.fieldId]){
929
- item.value = this.fieldValue[item.fieldId];
930
- this.extInfoFieldValue[item.fieldId] = this.fieldValue[item.fieldId];
929
+ if (item.relationDisplay && this.fieldValue[item.fieldId] && itemType !== item.relationDisplay){
930
+ item.value = JSON.parse(JSON.stringify(this.fieldValue[item.fieldId]));
931
+ if (item.formField.type === 'CASCADER'){
932
+ this.extInfoFieldValue[item.fieldId] = item.formField.extInfo.fieldValue?item.formField.extInfo.fieldValue:null
933
+ }
934
+ else {
935
+ this.extInfoFieldValue[item.fieldId] = this.extInfoFieldValue[item.fieldId];
936
+ }
931
937
  }
932
938
  if (!item.relationDisplay){
933
939
  item.value = []