Merge branch 'main-v2' into lite-ba
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
# 版本发布日志
|
# 版本发布日志
|
||||||
|
|
||||||
|
## 2.2510.2-20251011
|
||||||
|
|
||||||
|
- 新增 UDM-auth数据导出按钮权限定义
|
||||||
|
- 新增 SMSC-CDR添加结果原因说明
|
||||||
|
- 优化 移除CDR/UE/网元版本/授权列表显示ID列
|
||||||
|
- 修复 MML回车undefined问题,关闭搜索匹配
|
||||||
|
|
||||||
## 2.2509.4-20250926
|
## 2.2509.4-20250926
|
||||||
|
|
||||||
- 优化 UDM数据显示创建时间列
|
- 优化 UDM数据显示创建时间列
|
||||||
|
|||||||
@@ -1361,6 +1361,7 @@ export default {
|
|||||||
deleteTipErr: "Failed to delete file",
|
deleteTipErr: "Failed to delete file",
|
||||||
sysloginLog:'System Login Log',
|
sysloginLog:'System Login Log',
|
||||||
sysOperateLog:'System Operation Log',
|
sysOperateLog:'System Operation Log',
|
||||||
|
neLog:'NE Log',
|
||||||
cdrIMS:'CDR IMS Voice',
|
cdrIMS:'CDR IMS Voice',
|
||||||
cdrSMF:'CDR SMF Data',
|
cdrSMF:'CDR SMF Data',
|
||||||
cdrSMSC:'CDR SMSC SMS',
|
cdrSMSC:'CDR SMSC SMS',
|
||||||
|
|||||||
@@ -1361,6 +1361,7 @@ export default {
|
|||||||
deleteTipErr: "文件删除失败",
|
deleteTipErr: "文件删除失败",
|
||||||
sysloginLog:'系统登录日志',
|
sysloginLog:'系统登录日志',
|
||||||
sysOperateLog:'系统操作日志',
|
sysOperateLog:'系统操作日志',
|
||||||
|
neLog:'网元日志',
|
||||||
cdrIMS:'话单 IMS 语音',
|
cdrIMS:'话单 IMS 语音',
|
||||||
cdrSMF:'话单 SMF 数据',
|
cdrSMF:'话单 SMF 数据',
|
||||||
cdrSMSC:'话单 SMSC 短信',
|
cdrSMSC:'话单 SMSC 短信',
|
||||||
|
|||||||
@@ -88,12 +88,12 @@ let tableState: TabeStateType = reactive({
|
|||||||
|
|
||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns: ColumnsType = [
|
let tableColumns: ColumnsType = [
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'id',
|
// dataIndex: 'id',
|
||||||
align: 'left',
|
// align: 'left',
|
||||||
width: 100,
|
// width: 100,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: t('views.cbc.cbe.eventName'),
|
title: t('views.cbc.cbe.eventName'),
|
||||||
dataIndex: 'messageJson',
|
dataIndex: 'messageJson',
|
||||||
|
|||||||
@@ -30,6 +30,13 @@ let sourceState = reactive({
|
|||||||
label: t('views.logManage.exportFile.sysOperateLog'),
|
label: t('views.logManage.exportFile.sysOperateLog'),
|
||||||
path: '/usr/local/omc/backup',
|
path: '/usr/local/omc/backup',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
value: '/log/ne_log',
|
||||||
|
label: t('views.logManage.exportFile.neLog'),
|
||||||
|
path: '/usr/local/omc/backup',
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
value: '/cdr/ims',
|
value: '/cdr/ims',
|
||||||
label: t('views.logManage.exportFile.cdrIMS'),
|
label: t('views.logManage.exportFile.cdrIMS'),
|
||||||
@@ -284,9 +291,31 @@ function fnRecordDelete(row: Record<string, any>) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**访问路径 */
|
||||||
|
let nePathArr = ref<string[]>([]);
|
||||||
|
/**进入目录 */
|
||||||
|
function fnDirCD(dir: string, index?: number) {
|
||||||
|
if (index === undefined) {
|
||||||
|
nePathArr.value.push(dir);
|
||||||
|
queryParams.path = nePathArr.value.join('/');
|
||||||
|
fnGetList(1);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (index === 0) {
|
||||||
|
nePathArr.value = [nePathArr.value[0]];
|
||||||
|
queryParams.path = nePathArr.value.join('/');
|
||||||
|
fnGetList(1);
|
||||||
|
} else {
|
||||||
|
nePathArr.value = nePathArr.value.slice(0, index + 1);
|
||||||
|
queryParams.path = nePathArr.value.join('/');
|
||||||
|
fnGetList(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**网元类型选择对应修改 */
|
/**网元类型选择对应修改 */
|
||||||
function fnNeChange(_: any, opt: any) {
|
function fnNeChange(_: any, opt: any) {
|
||||||
queryParams.path = `${opt.path}${opt.value}`;
|
nePathArr.value = [`${opt.path}${opt.value}`];
|
||||||
|
queryParams.path = nePathArr.value.join('/');
|
||||||
ftpInfo.path = queryParams.path;
|
ftpInfo.path = queryParams.path;
|
||||||
ftpInfo.tag = opt.value;
|
ftpInfo.tag = opt.value;
|
||||||
fnGetList(1);
|
fnGetList(1);
|
||||||
@@ -388,8 +417,12 @@ onMounted(() => {
|
|||||||
<span>{{ t('views.logManage.neFile.nePath') }}:</span>
|
<span>{{ t('views.logManage.neFile.nePath') }}:</span>
|
||||||
<a-col>
|
<a-col>
|
||||||
<a-breadcrumb>
|
<a-breadcrumb>
|
||||||
<a-breadcrumb-item>
|
<a-breadcrumb-item
|
||||||
{{ queryParams.path }}
|
v-for="(path, index) in nePathArr"
|
||||||
|
:key="path"
|
||||||
|
@click="fnDirCD(path, index)"
|
||||||
|
>
|
||||||
|
{{ path }}
|
||||||
</a-breadcrumb-item>
|
</a-breadcrumb-item>
|
||||||
</a-breadcrumb>
|
</a-breadcrumb>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -463,6 +496,15 @@ onMounted(() => {
|
|||||||
<template #icon><DeleteOutlined /></template>
|
<template #icon><DeleteOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
|
<a-button
|
||||||
|
type="link"
|
||||||
|
:loading="downLoading"
|
||||||
|
@click.prevent="fnDirCD(record.fileName)"
|
||||||
|
v-if="record.fileType === 'dir'"
|
||||||
|
>
|
||||||
|
<template #icon><FolderOutlined /></template>
|
||||||
|
{{ t('views.logManage.neFile.dirCd') }}
|
||||||
|
</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
36
src/views/monitor/cache/index.vue
vendored
36
src/views/monitor/cache/index.vue
vendored
@@ -49,15 +49,15 @@ function fnCacheKeyInfo(cacheKey: string) {
|
|||||||
|
|
||||||
/**键名列表表格字段列 */
|
/**键名列表表格字段列 */
|
||||||
let cacheKeyTableColumns: ColumnsType = [
|
let cacheKeyTableColumns: ColumnsType = [
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'num',
|
// dataIndex: 'num',
|
||||||
width: '50px',
|
// width: '50px',
|
||||||
align: 'center',
|
// align: 'center',
|
||||||
customRender(opt) {
|
// customRender(opt) {
|
||||||
return opt.index + 1;
|
// return opt.index + 1;
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: t('views.monitor.cache.cacheKey'),
|
title: t('views.monitor.cache.cacheKey'),
|
||||||
dataIndex: 'cacheKey',
|
dataIndex: 'cacheKey',
|
||||||
@@ -152,15 +152,15 @@ let cacheNameTable = reactive({
|
|||||||
|
|
||||||
/**缓存列表表格字段列 */
|
/**缓存列表表格字段列 */
|
||||||
let cacheNameTableColumns: ColumnsType = [
|
let cacheNameTableColumns: ColumnsType = [
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'num',
|
// dataIndex: 'num',
|
||||||
width: '50px',
|
// width: '50px',
|
||||||
align: 'center',
|
// align: 'center',
|
||||||
customRender(opt) {
|
// customRender(opt) {
|
||||||
return opt.index + 1;
|
// return opt.index + 1;
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: t('views.monitor.cache.cacheName'),
|
title: t('views.monitor.cache.cacheName'),
|
||||||
dataIndex: 'cacheName',
|
dataIndex: 'cacheName',
|
||||||
|
|||||||
@@ -98,11 +98,11 @@ let tableState: TabeStateType = reactive({
|
|||||||
|
|
||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns: ColumnsType = [
|
let tableColumns: ColumnsType = [
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'jobId',
|
// dataIndex: 'jobId',
|
||||||
align: 'center',
|
// align: 'center',
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: t('views.monitor.job.jobName'),
|
title: t('views.monitor.job.jobName'),
|
||||||
dataIndex: 'jobName',
|
dataIndex: 'jobName',
|
||||||
@@ -680,14 +680,14 @@ onMounted(() => {
|
|||||||
<template #icon><ExportOutlined /></template>
|
<template #icon><ExportOutlined /></template>
|
||||||
{{ t('common.export') }}
|
{{ t('common.export') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button
|
<!-- <a-button
|
||||||
type="default"
|
type="default"
|
||||||
@click.prevent="fnJobLogView()"
|
@click.prevent="fnJobLogView()"
|
||||||
v-perms:has="['monitor:job:query']"
|
v-perms:has="['monitor:job:query']"
|
||||||
>
|
>
|
||||||
<template #icon><ContainerOutlined /></template>
|
<template #icon><ContainerOutlined /></template>
|
||||||
{{ t('views.monitor.job.jobLog') }}
|
{{ t('views.monitor.job.jobLog') }}
|
||||||
</a-button>
|
</a-button> -->
|
||||||
<a-button
|
<a-button
|
||||||
type="dashed"
|
type="dashed"
|
||||||
danger
|
danger
|
||||||
@@ -755,11 +755,13 @@ onMounted(() => {
|
|||||||
:size="tableState.size"
|
:size="tableState.size"
|
||||||
:pagination="tablePagination"
|
:pagination="tablePagination"
|
||||||
:scroll="{ x: tableColumns.length * 120 }"
|
:scroll="{ x: tableColumns.length * 120 }"
|
||||||
:row-selection="{
|
:row-selection="hasPermissions(['monitor:job:remove'])
|
||||||
type: 'checkbox',
|
? {
|
||||||
selectedRowKeys: tableState.selectedRowKeys,
|
type: 'checkbox',
|
||||||
onChange: fnTableSelectedRowKeys,
|
selectedRowKeys: tableState.selectedRowKeys,
|
||||||
}"
|
onChange: fnTableSelectedRowKeys,
|
||||||
|
}
|
||||||
|
: undefined"
|
||||||
>
|
>
|
||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record }">
|
||||||
<template v-if="column.key === 'jobGroup'">
|
<template v-if="column.key === 'jobGroup'">
|
||||||
|
|||||||
@@ -117,12 +117,12 @@ let tableState: TabeStateType = reactive({
|
|||||||
|
|
||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns: ColumnsType = [
|
let tableColumns: ColumnsType = [
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'logId',
|
// dataIndex: 'logId',
|
||||||
align: 'left',
|
// align: 'left',
|
||||||
width: 100,
|
// width: 100,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: t('views.monitor.jobLog.jobName'),
|
title: t('views.monitor.jobLog.jobName'),
|
||||||
dataIndex: 'jobName',
|
dataIndex: 'jobName',
|
||||||
@@ -247,6 +247,13 @@ let modalState: ModalStateType = reactive({
|
|||||||
*/
|
*/
|
||||||
function fnModalVisibleByVive(row: Record<string, string>) {
|
function fnModalVisibleByVive(row: Record<string, string>) {
|
||||||
modalState.from = Object.assign(modalState.from, row);
|
modalState.from = Object.assign(modalState.from, row);
|
||||||
|
try {
|
||||||
|
modalState.from.jobMsg = JSON.stringify(
|
||||||
|
JSON.parse(modalState.from.jobMsg),
|
||||||
|
null,
|
||||||
|
4
|
||||||
|
);
|
||||||
|
} catch (_) {}
|
||||||
modalState.title = t('views.monitor.jobLog.viewLog');
|
modalState.title = t('views.monitor.jobLog.viewLog');
|
||||||
modalState.open = true;
|
modalState.open = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,16 +41,16 @@ let tableState: TabeStateType = reactive({
|
|||||||
|
|
||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns: ColumnsType = [
|
let tableColumns: ColumnsType = [
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'num',
|
// dataIndex: 'num',
|
||||||
width: '50px',
|
// width: '50px',
|
||||||
align: 'left',
|
// align: 'left',
|
||||||
customRender(opt) {
|
// customRender(opt) {
|
||||||
const idxNum = (tablePagination.current - 1) * tablePagination.pageSize;
|
// const idxNum = (tablePagination.current - 1) * tablePagination.pageSize;
|
||||||
return idxNum + opt.index + 1;
|
// return idxNum + opt.index + 1;
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: t('views.monitor.online.mettingId'),
|
title: t('views.monitor.online.mettingId'),
|
||||||
dataIndex: 'tokenId',
|
dataIndex: 'tokenId',
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
|||||||
import useNeListStore from '@/store/modules/ne_list';
|
import useNeListStore from '@/store/modules/ne_list';
|
||||||
import useI18n from '@/hooks/useI18n';
|
import useI18n from '@/hooks/useI18n';
|
||||||
import ViewDrawer from './components/ViewDrawer.vue';
|
import ViewDrawer from './components/ViewDrawer.vue';
|
||||||
|
import BackupModal from '@/views/ne/neConfigBackup/components/BackupModal.vue';
|
||||||
import saveAs from 'file-saver';
|
import saveAs from 'file-saver';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
import { parseSizeFromFile } from '@/utils/parse-utils';
|
import { parseSizeFromFile } from '@/utils/parse-utils';
|
||||||
@@ -282,6 +283,12 @@ function fnDrawerOpen(row: Record<string, any>) {
|
|||||||
viewDrawerState.open = !viewDrawerState.open;
|
viewDrawerState.open = !viewDrawerState.open;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**打开FTP配置窗口 */
|
||||||
|
const openFTPModal = ref<boolean>(false);
|
||||||
|
function fnFTPModalOpen() {
|
||||||
|
openFTPModal.value = !openFTPModal.value;
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (routeParams.neType) {
|
if (routeParams.neType) {
|
||||||
neTypeSelect.value = [routeParams.neType, routeParams.neId];
|
neTypeSelect.value = [routeParams.neType, routeParams.neId];
|
||||||
@@ -327,6 +334,18 @@ onMounted(() => {
|
|||||||
<!-- 插槽-卡片右侧 -->
|
<!-- 插槽-卡片右侧 -->
|
||||||
<template #extra>
|
<template #extra>
|
||||||
<a-space :size="8" align="center">
|
<a-space :size="8" align="center">
|
||||||
|
<a-tooltip placement="topRight">
|
||||||
|
<template #title>
|
||||||
|
{{ t('views.ne.neConfigBackup.backupModal.title') }}
|
||||||
|
</template>
|
||||||
|
<a-button
|
||||||
|
type="text"
|
||||||
|
@click.prevent="fnFTPModalOpen()"
|
||||||
|
v-perms:has="['ne-data:backup-data:ftp']"
|
||||||
|
>
|
||||||
|
<template #icon><DeliveredProcedureOutlined /></template>
|
||||||
|
</a-button>
|
||||||
|
</a-tooltip>
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>{{ t('common.reloadText') }}</template>
|
<template #title>{{ t('common.reloadText') }}</template>
|
||||||
<a-button type="text" @click.prevent="fnGetList()">
|
<a-button type="text" @click.prevent="fnGetList()">
|
||||||
@@ -387,6 +406,9 @@ onMounted(() => {
|
|||||||
:ne-type="viewDrawerState.neType"
|
:ne-type="viewDrawerState.neType"
|
||||||
:ne-id="viewDrawerState.neId"
|
:ne-id="viewDrawerState.neId"
|
||||||
></ViewDrawer>
|
></ViewDrawer>
|
||||||
|
|
||||||
|
<!-- FTP配置窗口 -->
|
||||||
|
<BackupModal v-model:open="openFTPModal"></BackupModal>
|
||||||
</PageContainer>
|
</PageContainer>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -80,12 +80,12 @@ let tableState: TabeStateType = reactive({
|
|||||||
|
|
||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns: ColumnsType = [
|
let tableColumns: ColumnsType = [
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'id',
|
// dataIndex: 'id',
|
||||||
align: 'center',
|
// align: 'center',
|
||||||
width: 50,
|
// width: 50,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: t('views.ne.neHost.hostType'),
|
title: t('views.ne.neHost.hostType'),
|
||||||
dataIndex: 'hostType',
|
dataIndex: 'hostType',
|
||||||
|
|||||||
@@ -78,12 +78,12 @@ let tableState: TabeStateType = reactive({
|
|||||||
|
|
||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns: ColumnsType = [
|
let tableColumns: ColumnsType = [
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'cmdId',
|
// dataIndex: 'cmdId',
|
||||||
align: 'center',
|
// align: 'center',
|
||||||
width: 50,
|
// width: 50,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: t('views.ne.neHostCmd.cmdType'),
|
title: t('views.ne.neHostCmd.cmdType'),
|
||||||
dataIndex: 'cmdType',
|
dataIndex: 'cmdType',
|
||||||
|
|||||||
@@ -83,12 +83,12 @@ let tableState: TabeStateType = reactive({
|
|||||||
|
|
||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns = ref<TableColumnsType>([
|
let tableColumns = ref<TableColumnsType>([
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'id',
|
// dataIndex: 'id',
|
||||||
align: 'left',
|
// align: 'left',
|
||||||
width: 100,
|
// width: 100,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: t('views.ne.common.neType'),
|
title: t('views.ne.common.neType'),
|
||||||
dataIndex: 'neType',
|
dataIndex: 'neType',
|
||||||
|
|||||||
@@ -109,12 +109,12 @@ let tableState: TabeStateType = reactive({
|
|||||||
|
|
||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns = ref<ColumnsType>([
|
let tableColumns = ref<ColumnsType>([
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'id',
|
// dataIndex: 'id',
|
||||||
align: 'left',
|
// align: 'left',
|
||||||
width: 80,
|
// width: 80,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: t('views.neData.baseStation.name'),
|
title: t('views.neData.baseStation.name'),
|
||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
|
|||||||
@@ -80,12 +80,12 @@ let tableState: TabeStateType = reactive({
|
|||||||
|
|
||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns = ref<ColumnsType>([
|
let tableColumns = ref<ColumnsType>([
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'id',
|
// dataIndex: 'id',
|
||||||
align: 'left',
|
// align: 'left',
|
||||||
width: 100,
|
// width: 100,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: 'NE Type',
|
title: 'NE Type',
|
||||||
dataIndex: 'neType',
|
dataIndex: 'neType',
|
||||||
|
|||||||
@@ -77,11 +77,11 @@ let tableState: TabeStateType = reactive({
|
|||||||
|
|
||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns: ColumnsType = [
|
let tableColumns: ColumnsType = [
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'id',
|
// dataIndex: 'id',
|
||||||
align: 'center',
|
// align: 'center',
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: t('views.perfManage.taskManage.neType'),
|
title: t('views.perfManage.taskManage.neType'),
|
||||||
dataIndex: 'neType',
|
dataIndex: 'neType',
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import useDictStore from '@/store/modules/dict';
|
|||||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||||
import useI18n from '@/hooks/useI18n';
|
import useI18n from '@/hooks/useI18n';
|
||||||
import type { Dayjs } from 'dayjs';
|
import type { Dayjs } from 'dayjs';
|
||||||
|
import { hasPermissions } from '@/plugins/auth-user';
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const { getDict } = useDictStore();
|
const { getDict } = useDictStore();
|
||||||
|
|
||||||
@@ -95,12 +96,12 @@ let tableState: TabeStateType = reactive({
|
|||||||
|
|
||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns = ref<ColumnsType>([
|
let tableColumns = ref<ColumnsType>([
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'configId',
|
// dataIndex: 'configId',
|
||||||
align: 'left',
|
// align: 'left',
|
||||||
width: 100,
|
// width: 100,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: t('views.system.config.configName'),
|
title: t('views.system.config.configName'),
|
||||||
dataIndex: 'configName',
|
dataIndex: 'configName',
|
||||||
@@ -665,11 +666,11 @@ onMounted(() => {
|
|||||||
:size="tableState.size"
|
:size="tableState.size"
|
||||||
:pagination="tablePagination"
|
:pagination="tablePagination"
|
||||||
:scroll="{ x: tableColumns.length * 120 }"
|
:scroll="{ x: tableColumns.length * 120 }"
|
||||||
:row-selection="{
|
:row-selection="hasPermissions(['system:config:remove']) ? {
|
||||||
type: 'checkbox',
|
type: 'checkbox',
|
||||||
selectedRowKeys: tableState.selectedRowKeys,
|
selectedRowKeys: tableState.selectedRowKeys,
|
||||||
onChange: fnTableSelectedRowKeys,
|
onChange: fnTableSelectedRowKeys,
|
||||||
}"
|
}: undefined"
|
||||||
>
|
>
|
||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record }">
|
||||||
<template v-if="column.key === 'configType'">
|
<template v-if="column.key === 'configType'">
|
||||||
|
|||||||
@@ -83,12 +83,12 @@ let tableState: TabeStateType = reactive({
|
|||||||
|
|
||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns = ref<ColumnsType>([
|
let tableColumns = ref<ColumnsType>([
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'id',
|
// dataIndex: 'id',
|
||||||
align: 'left',
|
// align: 'left',
|
||||||
width: 100,
|
// width: 100,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: t('views.system.loginSource.uid'),
|
title: t('views.system.loginSource.uid'),
|
||||||
dataIndex: 'uid',
|
dataIndex: 'uid',
|
||||||
|
|||||||
@@ -65,12 +65,12 @@ let tableState: TabeStateType = reactive({
|
|||||||
|
|
||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns: ColumnsType = [
|
let tableColumns: ColumnsType = [
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'id',
|
// dataIndex: 'id',
|
||||||
align: 'center',
|
// align: 'center',
|
||||||
width: 50,
|
// width: 50,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: t('views.ne.neHost.hostType'),
|
title: t('views.ne.neHost.hostType'),
|
||||||
dataIndex: 'hostType',
|
dataIndex: 'hostType',
|
||||||
|
|||||||
@@ -83,12 +83,12 @@ let tableState: TabeStateType = reactive({
|
|||||||
|
|
||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns: ColumnsType = reactive([
|
let tableColumns: ColumnsType = reactive([
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'id',
|
// dataIndex: 'id',
|
||||||
align: 'right',
|
// align: 'right',
|
||||||
width: 50,
|
// width: 50,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: t('views.traceManage.task.imsi'),
|
title: t('views.traceManage.task.imsi'),
|
||||||
dataIndex: 'imsi',
|
dataIndex: 'imsi',
|
||||||
|
|||||||
@@ -95,12 +95,12 @@ let tableState: TabeStateType = reactive({
|
|||||||
|
|
||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns: ColumnsType = [
|
let tableColumns: ColumnsType = [
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'id',
|
// dataIndex: 'id',
|
||||||
align: 'left',
|
// align: 'left',
|
||||||
width: 100,
|
// width: 100,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: t('views.traceManage.task.msgNe'),
|
title: t('views.traceManage.task.msgNe'),
|
||||||
dataIndex: 'msgNe',
|
dataIndex: 'msgNe',
|
||||||
|
|||||||
Reference in New Issue
Block a user