feat(数据源): 增加api数据源复制功能

This commit is contained in:
taojinlong 2024-07-29 18:06:43 +08:00
parent 9c4b0b71b8
commit 66f1289910

View File

@ -716,6 +716,11 @@ const handleCopy = async data => {
})
datasource.id = ''
datasource.name = '复制数据源'
if (datasource.type === 'API') {
for (let i = 0; i < datasource.apiConfiguration.length; i++) {
datasource.apiConfiguration[i].deTableName = ''
}
}
datasourceEditor.value.init(datasource)
})
}
@ -1003,7 +1008,7 @@ const getMenuList = (val: boolean) => {
@handle-command="
cmd => operation(cmd, data, data.leaf ? 'datasource' : 'folder')
"
:menu-list="getMenuList(!['Excel', 'API'].includes(data.type) && data.leaf)"
:menu-list="getMenuList(!['Excel'].includes(data.type) && data.leaf)"
></handle-more>
</div>
</span>