---用户管理,网元管理等中英文

This commit is contained in:
lai
2023-11-08 11:21:39 +08:00
parent 8e467b95a2
commit 1bc9358d30
37 changed files with 582 additions and 404 deletions

View File

@@ -84,7 +84,7 @@ let tableState: TabeStateType = reactive({
let nfInfo: any = reactive({
obj: 'OMC',
version: '2.2311.7',
status: '正常',
status: t('views.index.normal'),
number: '',
outTimeDate: '',
});
@@ -142,7 +142,7 @@ function fnGetList() {
var errorNum = 0;
for (let i = 0; i < res.length; i++) {
if (res[i].status == '正常') {
if (res[i].status == '正常'||res[i].status=='Normal') {
rightNum++;
} else {
errorNum++;
@@ -326,7 +326,7 @@ const closeDrawer = () => {
function rowClick(record: any, index: any) {
return {
onClick: (event: any) => {
if (toRaw(record).status == '异常') {
if (toRaw(record).status == '异常'||toRaw(record).status == 'Abnormal') {
message.error(`网元状态异常`, 2);
return false;
} else {
@@ -436,7 +436,7 @@ onBeforeUnmount(() => {
>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'status'">
<div v-if="record.status == '正常'">
<div v-if="record.status == '正常'||record.status == 'Normal'">
<a-tag color="blue" @click="init(record)">{{
record.name
}}</a-tag>