perf: translate

This commit is contained in:
feng
2025-03-11 17:38:01 +08:00
parent cdb669eb81
commit 95b703645a
3 changed files with 6 additions and 6 deletions

View File

@@ -49,8 +49,8 @@ export default {
case 'connectable': case 'connectable':
this.tableConfig.url += '?connectivity=ok' this.tableConfig.url += '?connectivity=ok'
break break
case 'valid': case 'is_active':
this.tableConfig.url += '?valid=1' this.tableConfig.url += '?is_active=1'
break break
} }
}, },

View File

@@ -29,7 +29,7 @@ export default {
privileged: 0, privileged: 0,
resetSecret: 0, resetSecret: 0,
connectable: 0, connectable: 0,
valid: 0 is_active: 0
} }
} }
}, },
@@ -57,7 +57,7 @@ export default {
this.accountConfig.privileged = data.total_privileged_accounts this.accountConfig.privileged = data.total_privileged_accounts
this.accountConfig.resetSecret = data.total_secret_reset_accounts this.accountConfig.resetSecret = data.total_secret_reset_accounts
this.accountConfig.connectable = data.total_connectivity_ok_accounts this.accountConfig.connectable = data.total_connectivity_ok_accounts
this.accountConfig.valid = data.total_valid_accounts this.accountConfig.is_active = data.total_valid_accounts
} }
} }
} }

View File

@@ -68,7 +68,7 @@ export default {
}, },
{ {
label: this.$t('Active'), label: this.$t('Active'),
key: 'valid' key: 'is_active'
} }
] ]
} }
@@ -144,7 +144,7 @@ export default {
if (this.chart) { if (this.chart) {
this.chart.setOption({ this.chart.setOption({
series: [{ series: [{
data: [newData.privileged, newData.resetSecret, newData.valid, newData.connectable] data: [newData.privileged, newData.resetSecret, newData.connectable, newData.is_active]
}] }]
}) })
} }