style: 移除ID列显示
This commit is contained in:
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',
|
||||||
@@ -679,14 +679,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
|
||||||
@@ -754,11 +754,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',
|
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 === 'jobGroup'">
|
<template v-if="column.key === 'jobGroup'">
|
||||||
|
|||||||
@@ -116,12 +116,12 @@ let tableState: TabeStateType = reactive({
|
|||||||
|
|
||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns: ColumnsType = [
|
let tableColumns: ColumnsType = [
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'jobLogId',
|
// dataIndex: 'jobLogId',
|
||||||
align: 'center',
|
// align: 'center',
|
||||||
width: 100,
|
// width: 100,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: t('views.monitor.jobLog.jobName'),
|
title: t('views.monitor.jobLog.jobName'),
|
||||||
dataIndex: 'jobName',
|
dataIndex: 'jobName',
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
@@ -80,12 +80,12 @@ let tableState: TabeStateType = reactive({
|
|||||||
|
|
||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns: ColumnsType = [
|
let tableColumns: ColumnsType = [
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'hostId',
|
// dataIndex: 'hostId',
|
||||||
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',
|
||||||
|
|||||||
@@ -18,12 +18,12 @@ const EditModal = defineAsyncComponent(
|
|||||||
|
|
||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns: ColumnsType = [
|
let tableColumns: ColumnsType = [
|
||||||
{
|
// {
|
||||||
title: t('common.rowId'),
|
// title: t('common.rowId'),
|
||||||
dataIndex: 'id',
|
// dataIndex: 'id',
|
||||||
align: 'left',
|
// align: 'left',
|
||||||
width: 50,
|
// width: 50,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: t('views.ne.common.neType'),
|
title: t('views.ne.common.neType'),
|
||||||
dataIndex: 'neType',
|
dataIndex: 'neType',
|
||||||
|
|||||||
@@ -82,12 +82,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',
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import { parseDateToStr } from '@/utils/date-utils';
|
|||||||
import useDictStore from '@/store/modules/dict';
|
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 { hasPermissions } from '@/plugins/auth-user';
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const { getDict } = useDictStore();
|
const { getDict } = useDictStore();
|
||||||
|
|
||||||
@@ -94,12 +95,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',
|
||||||
@@ -656,11 +657,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: 'hostId',
|
// dataIndex: 'hostId',
|
||||||
align: 'center',
|
// align: 'center',
|
||||||
width: 50,
|
// width: 50,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: t('views.ne.neHost.hostType'),
|
title: t('views.ne.neHost.hostType'),
|
||||||
dataIndex: 'hostType',
|
dataIndex: 'hostType',
|
||||||
|
|||||||
Reference in New Issue
Block a user