fix: 更新组件批量更新去掉sftp选项

This commit is contained in:
wangruidong
2023-11-14 14:38:08 +08:00
committed by Bryan
parent 5bc273d057
commit b0b3e0d1c9

View File

@@ -53,7 +53,16 @@ export default {
component: Select2,
el: {
ajax: {
url: `/api/v1/terminal/replay-storages/`
url: `/api/v1/terminal/replay-storages/`,
processResults(data) {
const options = []
data?.results.forEach(item => {
if (item.type.value === 'sftp') return
options.push({ label: item.name, value: item.id })
})
data.results = options
return { results: options, pagination: data.next, total: data.count }
}
},
multiple: false
}