mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-01 15:11:16 +00:00
perf: 网关系统平台不能选择
This commit is contained in:
parent
10c9a54896
commit
b40e6bb412
@ -11,6 +11,7 @@ export default {
|
||||
BaseAssetCreateUpdate
|
||||
},
|
||||
data() {
|
||||
const platformType = this.$route.query.type
|
||||
return {
|
||||
url: '/api/v1/assets/gateways/',
|
||||
updateInitial: async(initial) => {
|
||||
@ -23,6 +24,18 @@ export default {
|
||||
addFieldsMeta: {
|
||||
domain: {
|
||||
disabled: true
|
||||
},
|
||||
platform: {
|
||||
disabled: true,
|
||||
el: {
|
||||
multiple: false,
|
||||
ajax: {
|
||||
url: `/api/v1/assets/platforms/?type=${platformType}`,
|
||||
transformOption: (item) => {
|
||||
return { label: item.name, value: item.id }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
createSuccessNextRoute: {
|
||||
|
Loading…
Reference in New Issue
Block a user