mirror of
https://github.com/jumpserver/lina.git
synced 2025-05-13 18:44:25 +00:00
perf: translate
This commit is contained in:
parent
cdb669eb81
commit
95b703645a
src/views
@ -49,8 +49,8 @@ export default {
|
||||
case 'connectable':
|
||||
this.tableConfig.url += '?connectivity=ok'
|
||||
break
|
||||
case 'valid':
|
||||
this.tableConfig.url += '?valid=1'
|
||||
case 'is_active':
|
||||
this.tableConfig.url += '?is_active=1'
|
||||
break
|
||||
}
|
||||
},
|
||||
|
@ -29,7 +29,7 @@ export default {
|
||||
privileged: 0,
|
||||
resetSecret: 0,
|
||||
connectable: 0,
|
||||
valid: 0
|
||||
is_active: 0
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -57,7 +57,7 @@ export default {
|
||||
this.accountConfig.privileged = data.total_privileged_accounts
|
||||
this.accountConfig.resetSecret = data.total_secret_reset_accounts
|
||||
this.accountConfig.connectable = data.total_connectivity_ok_accounts
|
||||
this.accountConfig.valid = data.total_valid_accounts
|
||||
this.accountConfig.is_active = data.total_valid_accounts
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ export default {
|
||||
},
|
||||
{
|
||||
label: this.$t('Active'),
|
||||
key: 'valid'
|
||||
key: 'is_active'
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -144,7 +144,7 @@ export default {
|
||||
if (this.chart) {
|
||||
this.chart.setOption({
|
||||
series: [{
|
||||
data: [newData.privileged, newData.resetSecret, newData.valid, newData.connectable]
|
||||
data: [newData.privileged, newData.resetSecret, newData.connectable, newData.is_active]
|
||||
}]
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user