mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-25 18:09:42 +00:00
fix: 修复创建工单时必填字段校验不生效问题
This commit is contained in:
parent
df088cc1b6
commit
e9bab6a623
@ -199,6 +199,17 @@ export default {
|
||||
url: '/api/v1/tickets/tickets/?type=apply_application&action=open',
|
||||
createSuccessNextRoute: {
|
||||
name: 'TicketList'
|
||||
},
|
||||
cleanFormValue(value) {
|
||||
const applications = value.meta.apply_applications
|
||||
const systemUsers = value.meta.apply_system_users
|
||||
if (applications && Array.isArray(applications) && applications.length < 1) {
|
||||
delete value.meta.apply_applications
|
||||
}
|
||||
if (systemUsers && Array.isArray(systemUsers) && systemUsers.length < 1) {
|
||||
delete value.meta.apply_system_users
|
||||
}
|
||||
return value
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user