Fixed: Plateform Automation Update

This commit is contained in:
zhaojisen 2025-03-18 16:19:21 +08:00 committed by ZhaoJiSen
parent 84bbe4de8b
commit 61e5b061e9
4 changed files with 4 additions and 6 deletions

View File

@ -113,6 +113,7 @@ export default {
} }
}, },
username: { username: {
label: this.$t('Account'),
width: '120px' width: '120px'
}, },
risk: { risk: {

View File

@ -37,6 +37,7 @@ export const gatherAccountTableConfig = (vm, url) => {
} }
}, },
username: { username: {
label: vm.$t('Account'),
formatter: DetailFormatter, formatter: DetailFormatter,
formatterArgs: { formatterArgs: {
can: true, can: true,

View File

@ -67,7 +67,7 @@ export default {
if (!this.canSubmit || !this.isSystemAdmin) { if (!this.canSubmit || !this.isSystemAdmin) {
return this.$message.error(this.$tc('NoPermission')) return this.$message.error(this.$tc('NoPermission'))
} }
this.$axios.patch(`${this.url}${this.object.id}/`, validValues).then(() => { this.$axios.patch(`${this.url}`, validValues).then(() => {
this.$message.success(this.$tc('UpdateSuccessMsg')) this.$message.success(this.$tc('UpdateSuccessMsg'))
}) })
} }

View File

@ -38,7 +38,7 @@ export default {
name: 'Assets' name: 'Assets'
}, },
{ {
title: this.$t('Automations'), title: this.$t('Automation'),
name: 'Automation' name: 'Automation'
} }
], ],
@ -72,7 +72,3 @@ export default {
} }
} }
</script> </script>
<style scoped>
</style>