fix: 修复创建应用授权工单报错问题

This commit is contained in:
“怀磊”
2021-10-28 17:20:32 +08:00
committed by 老广
parent 79068f44bf
commit dcbb73e59d

View File

@@ -34,7 +34,8 @@ export default {
meta: {
apply_date_expired: date_expired,
apply_date_start: date_start,
apply_actions: ['all', 'connect', 'updownload', 'upload_file', 'download_file']
apply_actions: ['all', 'connect', 'updownload', 'upload_file', 'download_file'],
apply_category_type: ['db', 'mysql']
},
org_id: '',
type: 'apply_application'
@@ -206,8 +207,9 @@ export default {
},
methods: {
performSubmit(validValues) {
validValues.meta.apply_category = validValues.meta.apply_category_type[0]
validValues.meta.apply_type = validValues.meta.apply_category_type[1]
const applyCategoryType = validValues.meta.apply_category_type
validValues.meta.apply_category = applyCategoryType && applyCategoryType.length > 0 ? applyCategoryType[0] : ''
validValues.meta.apply_type = applyCategoryType && applyCategoryType.length > 0 ? applyCategoryType[1] : ''
delete validValues.meta['apply_category_type']
return this.$axios['post'](`/api/v1/tickets/tickets/open/?type=apply_application`, validValues)
}