style: 移除ID列显示

This commit is contained in:
TsMask
2025-10-14 11:08:58 +08:00
parent 5ea56e779a
commit 26cf7fa560
17 changed files with 151 additions and 119 deletions

View File

@@ -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',

View File

@@ -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',

View File

@@ -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'">

View File

@@ -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;
} }

View File

@@ -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',

View File

@@ -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>

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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'">

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',