Skip to content
Permalink
Browse files
fix #686 (#687)
  • Loading branch information
KeRan213539 committed Jan 29, 2021
1 parent 382f414 commit 6722890f12f9977d3a5200d4ee1e9fab185775e6
Showing 2 changed files with 17 additions and 13 deletions.
@@ -376,20 +376,23 @@ export default {
var postDataItem = {}
postData[key.split('@@')[1]] = postDataItem
postDataItem.paramType = key.split('@@')[0]
var postDataItemValue = {}
postDataItem.paramValue = postDataItemValue
value.forEach(element => {
var elementKeySplited = element.key.split('@@')
var elementName = elementKeySplited[3]
if (elementKeySplited[4] === 'TEXT_AREA') {
if (element.value !== '') {
if (value.length === 1) {
postDataItem.paramValue = value[0].value
} else {
var postDataItemValue = {}
postDataItem.paramValue = postDataItemValue
value.forEach(element => {
var elementKeySplited = element.key.split('@@')
var elementName = elementKeySplited[3]
if (elementKeySplited[4] === 'TEXT_AREA') {
if (element.value !== '') {
postDataItemValue[elementName] = element.value
}
} else {
postDataItemValue[elementName] = element.value
}
} else {
var elementValue = element.value
postDataItemValue[elementName] = elementValue
}
})
})
}
})
if (this.formItemRegistryCenterUrl === '') {
this.formItemRegistryCenterUrl = 'dubbo://' + this.formInfo.dubboIp + ':' + this.formInfo.dubboPort
@@ -147,11 +147,12 @@ export default {
},
methods: {
buildItemId () {
return this.formItemInfo.get('paramType') + '@@' +
const result = this.formItemInfo.get('paramType') + '@@' +
this.formItemInfo.get('paramIndex') + '@@' +
this.formItemInfo.get('javaType') + '@@' +
this.formItemInfo.get('name') + '@@' +
this.formItemInfo.get('htmlType')
return result
},
requiredCheck (value) {
if (this.formItemInfo.get('required')) {

0 comments on commit 6722890

Please sign in to comment.