mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-31 22:48:27 +00:00
perf: Delete gather_account
This commit is contained in:
@@ -20,9 +20,15 @@
|
|||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
<ul>
|
<ul>
|
||||||
<li v-for="item in assetAccounts" :key="item.id">
|
<li v-for="item in assetAccounts" :key="item.id">
|
||||||
<a href="">
|
<router-link
|
||||||
|
:to="{
|
||||||
|
name: 'AssetAccountDetail',
|
||||||
|
params: { id: item.id }
|
||||||
|
}"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
{{ item.name }}({{ item.username }}) - {{ account.asset.name }}
|
{{ item.name }}({{ item.username }}) - {{ account.asset.name }}
|
||||||
</a>
|
</router-link>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@@ -119,10 +125,13 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleConfirm() {
|
handleConfirm() {
|
||||||
this.$axios.delete('/api/v1/accounts/gathered-accounts/', {
|
const url = '/api/v1/accounts/gathered-accounts/'
|
||||||
|
this.$axios.delete(url, {
|
||||||
params: {
|
params: {
|
||||||
username: this.account.username,
|
username: this.account.username,
|
||||||
asset: this.account.asset.id
|
asset: this.account.asset.id,
|
||||||
|
is_delete_account: this.iDeleteAccount,
|
||||||
|
is_delete_remote: this.iDeleteRemote
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.$message.success('删除成功')
|
this.$message.success('删除成功')
|
||||||
|
Reference in New Issue
Block a user