fix: 根据配置隐藏多语言选择
This commit is contained in:
@@ -8,6 +8,7 @@ import { useRouter, useRoute } from 'vue-router';
|
||||
import useI18n from '@/hooks/useI18n';
|
||||
import { toRaw } from 'vue';
|
||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||
import { sessionGet } from '@/utils/cache-session-utils';
|
||||
const { t, changeLocale, optionsLocale } = useI18n();
|
||||
const appStore = useAppStore();
|
||||
const router = useRouter();
|
||||
@@ -115,6 +116,9 @@ onMounted(() => {
|
||||
fnGetCaptcha();
|
||||
});
|
||||
|
||||
// 兼容旧前端可改配置文件
|
||||
const i18nDisable = sessionGet('i18nDisable') === 'false';
|
||||
|
||||
/**改变多语言 */
|
||||
function fnChangeLocale(e: any) {
|
||||
changeLocale(e.key);
|
||||
@@ -270,6 +274,7 @@ function fnChangeLocale(e: any) {
|
||||
justify="space-between"
|
||||
align="middle"
|
||||
style="margin-top: 18px"
|
||||
v-if="!i18nDisable"
|
||||
>
|
||||
<a-col :offset="18" :span="6">
|
||||
<a-dropdown :trigger="['click', 'hover']">
|
||||
|
||||
@@ -861,7 +861,7 @@ onMounted(() => {
|
||||
:size="tableState.size"
|
||||
:row-class-name="fnTableStriped"
|
||||
:pagination="tablePagination"
|
||||
:scroll="{ y: 450 }"
|
||||
:scroll="{ y: 'calc(100vh - 480px)' }"
|
||||
@change="fnTableChange"
|
||||
@resizeColumn="(w:number, col:any) => (col.width = w)"
|
||||
>
|
||||
@@ -1293,4 +1293,8 @@ onMounted(() => {
|
||||
.table :deep(.table-striped) td {
|
||||
background-color: #fafafa;
|
||||
}
|
||||
|
||||
.table :deep(.ant-pagination) {
|
||||
padding: 0 24px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -69,26 +69,26 @@ let tableColumns: ColumnsType = [
|
||||
{
|
||||
title: 'NodeB ID',
|
||||
dataIndex: 'id',
|
||||
align: 'center',
|
||||
width: 2,
|
||||
align: 'left',
|
||||
width: 150,
|
||||
},
|
||||
{
|
||||
title: 'NodeB Address',
|
||||
dataIndex: 'address',
|
||||
align: 'center',
|
||||
width: 3,
|
||||
title: 'UE Number',
|
||||
dataIndex: 'ueNum',
|
||||
align: 'left',
|
||||
width: 150,
|
||||
},
|
||||
{
|
||||
title: 'NodeB Name',
|
||||
dataIndex: 'name',
|
||||
align: 'left',
|
||||
width: 2,
|
||||
width: 150,
|
||||
},
|
||||
{
|
||||
title: 'UE Number',
|
||||
dataIndex: 'ueNum',
|
||||
align: 'center',
|
||||
width: 2,
|
||||
title: 'NodeB Address',
|
||||
dataIndex: 'address',
|
||||
align: 'left',
|
||||
minWidth: 150,
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -72,38 +72,38 @@ let tableColumns: ColumnsType = [
|
||||
{
|
||||
title: 'IMSI',
|
||||
dataIndex: 'imsi',
|
||||
align: 'center',
|
||||
width: 3,
|
||||
align: 'left',
|
||||
width: 150,
|
||||
},
|
||||
{
|
||||
title: 'MSISDN',
|
||||
dataIndex: 'msisdn',
|
||||
align: 'center',
|
||||
width: 3,
|
||||
},
|
||||
{
|
||||
title: 'IMPU',
|
||||
dataIndex: 'impu',
|
||||
align: 'center',
|
||||
width: 5,
|
||||
align: 'left',
|
||||
width: 150,
|
||||
},
|
||||
|
||||
{
|
||||
title: 'Barring',
|
||||
dataIndex: 'barring',
|
||||
align: 'center',
|
||||
width: 2,
|
||||
align: 'left',
|
||||
width: 150,
|
||||
},
|
||||
{
|
||||
title: 'Registration State',
|
||||
dataIndex: 'regState',
|
||||
align: 'center',
|
||||
width: 2,
|
||||
align: 'left',
|
||||
width: 150,
|
||||
},
|
||||
{
|
||||
title: 'Active Time',
|
||||
dataIndex: 'activeTime',
|
||||
align: 'center',
|
||||
width: 3,
|
||||
align: 'left',
|
||||
width: 150,
|
||||
},
|
||||
{
|
||||
title: 'IMPU',
|
||||
dataIndex: 'impu',
|
||||
align: 'left',
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -1100,7 +1100,7 @@ onMounted(() => {
|
||||
:size="tableState.size"
|
||||
:row-class-name="fnTableStriped"
|
||||
:pagination="tablePagination"
|
||||
:scroll="{ x: tableColumnsDnd.length * 200, y: 450 }"
|
||||
:scroll="{ x: tableColumnsDnd.length * 200, y: 'calc(100vh - 480px)' }"
|
||||
@change="fnTableChange"
|
||||
@resizeColumn="(w:number, col:any) => (col.width = w)"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user