mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-31 14:38:02 +00:00
perf: translate
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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]
|
||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user