首页table中的网元异常正常中英文
This commit is contained in:
@@ -41,6 +41,10 @@ let tableColumns: ColumnsType = [
|
||||
title: t('views.index.realNeStatus'),
|
||||
dataIndex: 'status',
|
||||
align: 'center',
|
||||
customRender(opt) {
|
||||
if (opt.value == 'Normal') return t('views.index.normal');
|
||||
return t('views.index.abnormal');
|
||||
},
|
||||
},
|
||||
{
|
||||
title: t('views.index.reloadTime'),
|
||||
@@ -172,7 +176,7 @@ function fnGetList() {
|
||||
},
|
||||
series: [
|
||||
{
|
||||
name: t('views.index.realNeStatus') ,
|
||||
name: t('views.index.realNeStatus'),
|
||||
type: 'pie',
|
||||
radius: '70%',
|
||||
center: ['50%', '50%'],
|
||||
@@ -379,7 +383,7 @@ let timer: any;
|
||||
/**
|
||||
* 国际化翻译转换
|
||||
*/
|
||||
function fnLocale( ) {
|
||||
function fnLocale() {
|
||||
let title = route.meta.title as string;
|
||||
if (title.indexOf('router.') !== -1) {
|
||||
title = t(title);
|
||||
@@ -388,7 +392,7 @@ let timer: any;
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
fnLocale()
|
||||
fnLocale();
|
||||
fnGetList();
|
||||
timer = setInterval(fnGetList, 10000); // 每隔10秒执行一次
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user