fix: 调度任务参数最大输入2000字符。日志查看id错误修复

This commit is contained in:
TsMask
2025-04-25 16:18:40 +08:00
parent 204d198819
commit 032d0578bb
2 changed files with 14 additions and 14 deletions

View File

@@ -1100,7 +1100,7 @@ onMounted(() => {
<a-textarea <a-textarea
v-model:value="modalState.from.targetParams" v-model:value="modalState.from.targetParams"
:auto-size="{ minRows: 2, maxRows: 6 }" :auto-size="{ minRows: 2, maxRows: 6 }"
:maxlength="400" :maxlength="2000"
:placeholder="t('views.monitor.job.targetParamsPlease')" :placeholder="t('views.monitor.job.targetParamsPlease')"
/> />
</a-form-item> </a-form-item>

View File

@@ -118,8 +118,8 @@ let tableState: TabeStateType = reactive({
let tableColumns: ColumnsType = [ let tableColumns: ColumnsType = [
{ {
title: t('common.rowId'), title: t('common.rowId'),
dataIndex: 'jobLogId', dataIndex: 'logId',
align: 'center', align: 'left',
width: 100, width: 100,
}, },
{ {
@@ -132,7 +132,7 @@ let tableColumns: ColumnsType = [
title: t('views.monitor.jobLog.jobGroup'), title: t('views.monitor.jobLog.jobGroup'),
dataIndex: 'jobGroup', dataIndex: 'jobGroup',
key: 'jobGroup', key: 'jobGroup',
align: 'center', align: 'left',
width: 100, width: 100,
}, },
{ {
@@ -142,17 +142,17 @@ let tableColumns: ColumnsType = [
width: 100, width: 100,
}, },
{ {
title: t('views.monitor.jobLog.statusFlag'), title: t('views.monitor.jobLog.status'),
dataIndex: 'statusFlag', dataIndex: 'statusFlag',
key: 'statusFlag', key: 'statusFlag',
align: 'center', align: 'left',
width: 100, width: 100,
}, },
{ {
title: t('views.monitor.jobLog.createTime'), title: t('views.monitor.jobLog.createTime'),
dataIndex: 'createTime', dataIndex: 'createTime',
align: 'center', align: 'left',
width: 150, width: 200,
customRender(opt) { customRender(opt) {
if (+opt.value <= 0) return ''; if (+opt.value <= 0) return '';
return parseDateToStr(+opt.value); return parseDateToStr(+opt.value);
@@ -170,7 +170,7 @@ let tableColumns: ColumnsType = [
}, },
{ {
title: t('common.operate'), title: t('common.operate'),
key: 'jobLogId', key: 'logId',
align: 'left', align: 'left',
}, },
]; ];
@@ -229,7 +229,7 @@ let modalState: ModalStateType = reactive({
open: false, open: false,
title: '任务日志', title: '任务日志',
from: { from: {
jobLogId: undefined, logId: undefined,
jobName: '', jobName: '',
jobGroup: 'DEFAULT', jobGroup: 'DEFAULT',
invokeTarget: '', invokeTarget: '',
@@ -588,7 +588,7 @@ onMounted(() => {
<!-- 表格列表 --> <!-- 表格列表 -->
<a-table <a-table
class="table" class="table"
row-key="jobLogId" row-key="logId"
:columns="tableColumns" :columns="tableColumns"
:loading="tableState.loading" :loading="tableState.loading"
:data-source="tableState.data" :data-source="tableState.data"
@@ -615,7 +615,7 @@ onMounted(() => {
}} }}
</a-tag> </a-tag>
</template> </template>
<template v-if="column.key === 'jobLogId'"> <template v-if="column.key === 'logId'">
<a-space :size="8" align="center"> <a-space :size="8" align="center">
<a-tooltip> <a-tooltip>
<template #title>{{ t('common.viewText') }}</template> <template #title>{{ t('common.viewText') }}</template>
@@ -644,8 +644,8 @@ onMounted(() => {
<a-form layout="horizontal" :label-col="{ span: 6 }" :label-wrap="true"> <a-form layout="horizontal" :label-col="{ span: 6 }" :label-wrap="true">
<a-row> <a-row>
<a-col :lg="12" :md="12" :xs="24"> <a-col :lg="12" :md="12" :xs="24">
<a-form-item :label="t('common.rowId')" name="jobLogId"> <a-form-item :label="t('common.rowId')" name="logId">
{{ modalState.from.jobLogId }} {{ modalState.from.logId }}
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :lg="12" :md="12" :xs="24"> <a-col :lg="12" :md="12" :xs="24">