askbot-dragon 0.8.25 → 0.8.26
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
|
@@ -860,6 +860,7 @@ export default {
|
|
|
860
860
|
selectDetail:{},
|
|
861
861
|
refDefaultValue:{},
|
|
862
862
|
selectOptionWidth:null,
|
|
863
|
+
fieldValue:{}
|
|
863
864
|
}
|
|
864
865
|
},
|
|
865
866
|
props: {
|
|
@@ -911,6 +912,9 @@ export default {
|
|
|
911
912
|
}
|
|
912
913
|
})
|
|
913
914
|
arr.forEach(item=>{
|
|
915
|
+
if (item.value && item.value.length){
|
|
916
|
+
this.$set(this.fieldValue,item.fieldId,item.value)
|
|
917
|
+
}
|
|
914
918
|
this.$set(item,'relationDisplay',this.relationSet(item.formField,'dependentFieldId'))
|
|
915
919
|
if(item.formField.type === 'CHECKBOX'){
|
|
916
920
|
if(!item.value){
|
|
@@ -920,6 +924,10 @@ export default {
|
|
|
920
924
|
item.value = item.formField.defaultValue
|
|
921
925
|
}
|
|
922
926
|
}
|
|
927
|
+
if (item.relationDisplay && this.fieldValue[item.fieldId]){
|
|
928
|
+
item.value = this.fieldValue[item.fieldId];
|
|
929
|
+
this.extInfoFieldValue[item.fieldId] = this.fieldValue[item.fieldId];
|
|
930
|
+
}
|
|
923
931
|
if (!item.relationDisplay){
|
|
924
932
|
item.value = []
|
|
925
933
|
this.extInfoFieldValue[item.fieldId] = []
|