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

View File

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