style: 调度任务日志多语言
This commit is contained in:
@@ -691,40 +691,40 @@ export default {
|
|||||||
spaceUsage:'Space usage (%)'
|
spaceUsage:'Space usage (%)'
|
||||||
},
|
},
|
||||||
job: {
|
job: {
|
||||||
jobName: "JobName",
|
jobName: "Job Name",
|
||||||
jobNamePlease: 'Please enter the task name correctly, limited to 2-20 characters',
|
jobNamePlease: 'Please enter the task name correctly, limited to 2-50 characters',
|
||||||
jobGroup: "JobGroup",
|
jobGroup: "Job Group",
|
||||||
invokeTarget: "invoke target",
|
invokeTarget: "Invoke target",
|
||||||
invokeTargetPlease: 'Please enter the call target correctly, limited to 2-20 characters.',
|
invokeTargetPlease: 'Please enter the call target correctly, limited to 2-50 characters.',
|
||||||
invokeTargetTip: "Parameter description: support for preset incoming parameters, serialized processing parameters in the processor",
|
invokeTargetTip: "Parameter description: support for preset incoming parameters, serialized processing parameters in the processor",
|
||||||
cronExpression: "cron expressions",
|
cronExpression: "cron expressions",
|
||||||
cronExpressionPlease: 'Please enter or generate a cron execution expression',
|
cronExpressionPlease: 'Please enter or generate a cron execution expression',
|
||||||
cronExpressionTip: "Example of an expression:0/20 * * * * ?",
|
cronExpressionTip: "Example of an expression:0/20 * * * * ?",
|
||||||
cronExpressionTip1: "Illustrative example: Execute tasks every 20 seconds",
|
cronExpressionTip1: "Illustrative example: Execute tasks every 20 seconds",
|
||||||
cronExpressionNew: "Generating Expressions",
|
cronExpressionNew: "Generating Expressions",
|
||||||
status: "statuses",
|
status: "Status",
|
||||||
status0: "disable",
|
status0: "disable",
|
||||||
status1: "opens",
|
status1: "opens",
|
||||||
status00: "pause",
|
status00: "pause",
|
||||||
status01: "normalcy",
|
status01: "normalcy",
|
||||||
statusChange: "Are you sure you want the {text} {num} task?",
|
statusChange: "Are you sure you want the {text} {num} job?",
|
||||||
saveLog: "Recording log",
|
saveLog: "Recording log",
|
||||||
tipRowErr: "Errors in the recording of tasks",
|
tipRowErr: "Errors in the recording of jobs",
|
||||||
viewInfoErr: "Failed to get task information",
|
viewInfoErr: "Failed to get job information",
|
||||||
viewJob: "Task information",
|
viewJob: "Job Info",
|
||||||
addJob: "Add Tasks",
|
addJob: "Add Job",
|
||||||
editJob: "Modify tasks",
|
editJob: "Modify Job",
|
||||||
runOne: "execute once",
|
runOne: "execute once",
|
||||||
runOneTip: "Are you sure you want to perform a [{num}] task right away?",
|
runOneTip: "Are you sure you want to perform a [{num}] job right away?",
|
||||||
runOneOk: "{num} Executed successfully",
|
runOneOk: "{num} Executed successfully",
|
||||||
delTip: "Are you sure you want to delete task number [{num}]?",
|
delTip: "Are you sure you want to delete job number [{num}]?",
|
||||||
delOk: "Deleted successfully",
|
delOk: "Deleted successfully",
|
||||||
resetTip: "Sure you want to reset and refresh the scheduling task?",
|
resetTip: "Sure you want to reset and refresh the scheduling job?",
|
||||||
resetOk: "Reset Successful",
|
resetOk: "Reset Successful",
|
||||||
exportTip: "Confirm exporting xlsx table files based on search criteria?",
|
exportTip: "Confirm exporting xlsx table files based on search criteria?",
|
||||||
exportOk: "Completed export",
|
exportOk: "Completed export",
|
||||||
resetQueue: "Reset Queue",
|
resetQueue: "Reset Queue",
|
||||||
jobLog: "Task log",
|
jobLog: "Job log",
|
||||||
createTime: "CreateTime",
|
createTime: "CreateTime",
|
||||||
targetParams: "TargetParams",
|
targetParams: "TargetParams",
|
||||||
targetParamsPlease: 'Call target incoming parameters, only support json strings',
|
targetParamsPlease: 'Call target incoming parameters, only support json strings',
|
||||||
@@ -737,6 +737,26 @@ export default {
|
|||||||
concurrent1: "allowed",
|
concurrent1: "allowed",
|
||||||
remark: "Remarks",
|
remark: "Remarks",
|
||||||
},
|
},
|
||||||
|
jobLog: {
|
||||||
|
jobName: "Job Name",
|
||||||
|
jobGroup: "Job Group",
|
||||||
|
invokeTarget: "Invoke target",
|
||||||
|
status: "Status",
|
||||||
|
status0: "failures",
|
||||||
|
status1: "normalcy",
|
||||||
|
createTime: "CreateTime",
|
||||||
|
costTime: "CostTime",
|
||||||
|
viewLog: "Scheduling log Info",
|
||||||
|
delTip: "Are you sure you want to delete the scheduling log entry with the number [{num}]?",
|
||||||
|
delOk: "Deleted successfully",
|
||||||
|
clearText: "Clear",
|
||||||
|
clearTip: "Confirm that all dispatch log data items are cleared?",
|
||||||
|
clearOk: "Cleared successfully",
|
||||||
|
exportTip: "Confirm exporting xlsx table files based on search criteria?",
|
||||||
|
exportOk: "Export completed",
|
||||||
|
jobMsg: "Job Messages",
|
||||||
|
targetParams: "TargetParams",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
system:{
|
system:{
|
||||||
user: {
|
user: {
|
||||||
|
|||||||
@@ -692,10 +692,10 @@ export default {
|
|||||||
},
|
},
|
||||||
job: {
|
job: {
|
||||||
jobName: "任务名称",
|
jobName: "任务名称",
|
||||||
jobNamePlease: '请正确输入任务名称,限2-20个字符',
|
jobNamePlease: '请正确输入任务名称,限2-50个字符',
|
||||||
jobGroup: "任务组名",
|
jobGroup: "任务组名",
|
||||||
invokeTarget: "调用目标",
|
invokeTarget: "调用目标",
|
||||||
invokeTargetPlease: '请正确输入调用目标,限2-20个字符',
|
invokeTargetPlease: '请正确输入调用目标,限2-50个字符',
|
||||||
invokeTargetTip: "参数说明:支持预设传入参数,在处理器中进行序列化处理参数",
|
invokeTargetTip: "参数说明:支持预设传入参数,在处理器中进行序列化处理参数",
|
||||||
cronExpression: "cron表达式",
|
cronExpression: "cron表达式",
|
||||||
cronExpressionPlease: '请输入或生成cron执行表达式',
|
cronExpressionPlease: '请输入或生成cron执行表达式',
|
||||||
@@ -737,6 +737,26 @@ export default {
|
|||||||
concurrent1: "允许",
|
concurrent1: "允许",
|
||||||
remark: "备注说明",
|
remark: "备注说明",
|
||||||
},
|
},
|
||||||
|
jobLog: {
|
||||||
|
jobName: "任务名称",
|
||||||
|
jobGroup: "任务组名",
|
||||||
|
invokeTarget: "调用目标",
|
||||||
|
status: "执行状态",
|
||||||
|
status0: "失败",
|
||||||
|
status1: "正常",
|
||||||
|
createTime: "记录时间",
|
||||||
|
costTime: "消耗时间",
|
||||||
|
viewLog: "调度日志信息",
|
||||||
|
delTip: "确认删除调度日志编号为 【{num}】 的数据项吗?",
|
||||||
|
delOk: "删除成功",
|
||||||
|
clearText: "清空",
|
||||||
|
clearTip: "确认清空所有调度日志数据项吗?",
|
||||||
|
clearOk: "清空成功",
|
||||||
|
exportTip: "确认根据搜索条件导出xlsx表格文件吗?",
|
||||||
|
exportOk: "已完成导出",
|
||||||
|
jobMsg: "日志信息",
|
||||||
|
targetParams: "传入参数",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
system:{
|
system:{
|
||||||
user:{
|
user:{
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ const modalStateFrom = Form.useForm(
|
|||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
min: 2,
|
min: 2,
|
||||||
max: 20,
|
max: 50,
|
||||||
message: t('views.monitor.job.jobNamePlease'),
|
message: t('views.monitor.job.jobNamePlease'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -243,7 +243,7 @@ const modalStateFrom = Form.useForm(
|
|||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
min: 2,
|
min: 2,
|
||||||
max: 20,
|
max: 50,
|
||||||
message: t('views.monitor.job.invokeTargetPlease'),
|
message: t('views.monitor.job.invokeTargetPlease'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -116,34 +116,34 @@ let tableState: TabeStateType = reactive({
|
|||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns: ColumnsType = [
|
let tableColumns: ColumnsType = [
|
||||||
{
|
{
|
||||||
title: '日志编号',
|
title: t('common.rowId'),
|
||||||
dataIndex: 'jobLogId',
|
dataIndex: 'jobLogId',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '任务名称',
|
title: t('views.monitor.jobLog.jobName'),
|
||||||
dataIndex: 'jobName',
|
dataIndex: 'jobName',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '任务组名',
|
title: t('views.monitor.jobLog.jobGroup'),
|
||||||
dataIndex: 'jobGroup',
|
dataIndex: 'jobGroup',
|
||||||
key: 'jobGroup',
|
key: 'jobGroup',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '调用目标',
|
title: t('views.monitor.jobLog.invokeTarget'),
|
||||||
dataIndex: 'invokeTarget',
|
dataIndex: 'invokeTarget',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '执行状态',
|
title: t('views.monitor.jobLog.status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
key: 'status',
|
key: 'status',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '记录时间',
|
title: t('views.monitor.jobLog.createTime'),
|
||||||
dataIndex: 'createTime',
|
dataIndex: 'createTime',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
customRender(opt) {
|
customRender(opt) {
|
||||||
@@ -152,7 +152,7 @@ let tableColumns: ColumnsType = [
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '消耗时间',
|
title: t('views.monitor.jobLog.costTime'),
|
||||||
dataIndex: 'costTime',
|
dataIndex: 'costTime',
|
||||||
key: 'costTime',
|
key: 'costTime',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
@@ -161,7 +161,7 @@ let tableColumns: ColumnsType = [
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: t('common.operate'),
|
||||||
key: 'jobLogId',
|
key: 'jobLogId',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
@@ -185,7 +185,8 @@ let tablePagination = reactive({
|
|||||||
showSizeChanger: true,
|
showSizeChanger: true,
|
||||||
/**数据总数 */
|
/**数据总数 */
|
||||||
total: 0,
|
total: 0,
|
||||||
showTotal: (total: number) => `总共 ${total} 条`,
|
showTotal: (total: number) =>
|
||||||
|
t('common.tablePaginationTotal', { total: total }),
|
||||||
onChange: (page: number, pageSize: number) => {
|
onChange: (page: number, pageSize: number) => {
|
||||||
tablePagination.current = page;
|
tablePagination.current = page;
|
||||||
tablePagination.pageSize = pageSize;
|
tablePagination.pageSize = pageSize;
|
||||||
@@ -242,7 +243,7 @@ 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);
|
||||||
modalState.title = '调度日志信息';
|
modalState.title = t('views.monitor.jobLog.viewLog');
|
||||||
modalState.visibleByView = true;
|
modalState.visibleByView = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -260,14 +261,14 @@ function fnRecordDelete() {
|
|||||||
const ids = tableState.selectedRowKeys.join(',');
|
const ids = tableState.selectedRowKeys.join(',');
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: t('common.tipTitle'),
|
title: t('common.tipTitle'),
|
||||||
content: `确认删除调度日志编号为 【${ids}】 的数据项吗?`,
|
content: t('views.monitor.jobLog.delTip', { num: ids }),
|
||||||
onOk() {
|
onOk() {
|
||||||
const key = 'delJobLog';
|
const key = 'delJobLog';
|
||||||
message.loading({ content: t('common.loading'), key });
|
message.loading({ content: t('common.loading'), key });
|
||||||
delJobLog(ids).then(res => {
|
delJobLog(ids).then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: `删除成功`,
|
content: t('views.monitor.jobLog.delOk'),
|
||||||
key,
|
key,
|
||||||
duration: 2,
|
duration: 2,
|
||||||
});
|
});
|
||||||
@@ -288,14 +289,14 @@ function fnRecordDelete() {
|
|||||||
function fnCleanList() {
|
function fnCleanList() {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: t('common.tipTitle'),
|
title: t('common.tipTitle'),
|
||||||
content: `确认清空所有调度日志数据项吗?`,
|
content: t('views.monitor.jobLog.clearTip'),
|
||||||
onOk() {
|
onOk() {
|
||||||
const key = 'cleanJobLog';
|
const key = 'cleanJobLog';
|
||||||
message.loading({ content: t('common.loading'), key });
|
message.loading({ content: t('common.loading'), key });
|
||||||
cleanJobLog().then(res => {
|
cleanJobLog().then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: `清空成功`,
|
content: t('views.monitor.jobLog.clearOk'),
|
||||||
key,
|
key,
|
||||||
duration: 2,
|
duration: 2,
|
||||||
});
|
});
|
||||||
@@ -316,14 +317,14 @@ function fnCleanList() {
|
|||||||
function fnExportList() {
|
function fnExportList() {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: t('common.tipTitle'),
|
title: t('common.tipTitle'),
|
||||||
content: `确认根据搜索条件导出xlsx表格文件吗?`,
|
content: t('views.monitor.jobLog.exportTip'),
|
||||||
onOk() {
|
onOk() {
|
||||||
const key = 'exportJobLog';
|
const key = 'exportJobLog';
|
||||||
message.loading({ content: t('common.loading'), key });
|
message.loading({ content: t('common.loading'), key });
|
||||||
exportJobLog(toRaw(queryParams)).then(res => {
|
exportJobLog(toRaw(queryParams)).then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: `已完成导出`,
|
content: t('views.monitor.jobLog.exportOk'),
|
||||||
key,
|
key,
|
||||||
duration: 2,
|
duration: 2,
|
||||||
});
|
});
|
||||||
@@ -415,45 +416,56 @@ onMounted(() => {
|
|||||||
<a-form :model="queryParams" name="queryParams" layout="horizontal">
|
<a-form :model="queryParams" name="queryParams" layout="horizontal">
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item label="任务名称" name="jobName">
|
<a-form-item
|
||||||
|
:label="t('views.monitor.jobLog.jobName')"
|
||||||
|
name="jobName"
|
||||||
|
>
|
||||||
<a-input
|
<a-input
|
||||||
v-model:value="queryParams.jobName"
|
v-model:value="queryParams.jobName"
|
||||||
:allow-clear="jobId === '0'"
|
:allow-clear="jobId === '0'"
|
||||||
:disabled="jobId !== '0'"
|
:disabled="jobId !== '0'"
|
||||||
placeholder="请输入任务名称"
|
:placeholder="t('common.ipnutPlease')"
|
||||||
></a-input>
|
></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item label="任务组名" name="jobGroup">
|
<a-form-item
|
||||||
|
:label="t('views.monitor.jobLog.jobGroup')"
|
||||||
|
name="jobGroup"
|
||||||
|
>
|
||||||
<a-select
|
<a-select
|
||||||
v-model:value="queryParams.jobGroup"
|
v-model:value="queryParams.jobGroup"
|
||||||
allow-clear
|
allow-clear
|
||||||
placeholder="请选择菜单状态"
|
:placeholder="t('common.selectPlease')"
|
||||||
:options="dict.sysJobGroup"
|
:options="dict.sysJobGroup"
|
||||||
>
|
>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item label="执行状态" name="status">
|
<a-form-item
|
||||||
|
:label="t('views.monitor.jobLog.status')"
|
||||||
|
name="status"
|
||||||
|
>
|
||||||
<a-select
|
<a-select
|
||||||
v-model:value="queryParams.status"
|
v-model:value="queryParams.status"
|
||||||
allow-clear
|
allow-clear
|
||||||
placeholder="请选择执行状态"
|
:placeholder="t('common.selectPlease')"
|
||||||
:options="dict.sysCommonStatus"
|
:options="dict.sysCommonStatus"
|
||||||
>
|
>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item label="记录时间" name="queryRangePicker">
|
<a-form-item
|
||||||
|
:label="t('views.monitor.jobLog.createTime')"
|
||||||
|
name="queryRangePicker"
|
||||||
|
>
|
||||||
<a-range-picker
|
<a-range-picker
|
||||||
v-model:value="queryRangePicker"
|
v-model:value="queryRangePicker"
|
||||||
allow-clear
|
allow-clear
|
||||||
bordered
|
bordered
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD"
|
||||||
:placeholder="['记录开始', '记录结束']"
|
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
></a-range-picker>
|
></a-range-picker>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -463,11 +475,11 @@ onMounted(() => {
|
|||||||
<a-space :size="8">
|
<a-space :size="8">
|
||||||
<a-button type="primary" @click.prevent="fnGetList(1)">
|
<a-button type="primary" @click.prevent="fnGetList(1)">
|
||||||
<template #icon><SearchOutlined /></template>
|
<template #icon><SearchOutlined /></template>
|
||||||
搜索
|
{{ t('common.search') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button type="default" @click.prevent="fnQueryReset">
|
<a-button type="default" @click.prevent="fnQueryReset">
|
||||||
<template #icon><ClearOutlined /></template>
|
<template #icon><ClearOutlined /></template>
|
||||||
重置
|
{{ t('common.reset') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -482,7 +494,7 @@ onMounted(() => {
|
|||||||
<a-space :size="8" align="center">
|
<a-space :size="8" align="center">
|
||||||
<a-button type="default" @click.prevent="fnClose()">
|
<a-button type="default" @click.prevent="fnClose()">
|
||||||
<template #icon><CloseOutlined /></template>
|
<template #icon><CloseOutlined /></template>
|
||||||
关闭
|
{{ t('common.close') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button
|
<a-button
|
||||||
type="default"
|
type="default"
|
||||||
@@ -492,7 +504,7 @@ onMounted(() => {
|
|||||||
v-perms:has="['monitor:job:remove']"
|
v-perms:has="['monitor:job:remove']"
|
||||||
>
|
>
|
||||||
<template #icon><DeleteOutlined /></template>
|
<template #icon><DeleteOutlined /></template>
|
||||||
删除
|
{{ t('common.deleteText') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button
|
<a-button
|
||||||
type="dashed"
|
type="dashed"
|
||||||
@@ -501,7 +513,7 @@ onMounted(() => {
|
|||||||
v-perms:has="['monitor:job:remove']"
|
v-perms:has="['monitor:job:remove']"
|
||||||
>
|
>
|
||||||
<template #icon><DeleteOutlined /></template>
|
<template #icon><DeleteOutlined /></template>
|
||||||
清空
|
{{ t('views.monitor.jobLog.clearText') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button
|
<a-button
|
||||||
type="dashed"
|
type="dashed"
|
||||||
@@ -509,7 +521,7 @@ onMounted(() => {
|
|||||||
v-perms:has="['monitor:job:export']"
|
v-perms:has="['monitor:job:export']"
|
||||||
>
|
>
|
||||||
<template #icon><ExportOutlined /></template>
|
<template #icon><ExportOutlined /></template>
|
||||||
导出
|
{{ t('common.export') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
@@ -518,31 +530,31 @@ onMounted(() => {
|
|||||||
<template #extra>
|
<template #extra>
|
||||||
<a-space :size="8" align="center">
|
<a-space :size="8" align="center">
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>搜索栏</template>
|
<template #title>{{ t('common.searchBarText') }}</template>
|
||||||
<a-switch
|
<a-switch
|
||||||
v-model:checked="tableState.seached"
|
v-model:checked="tableState.seached"
|
||||||
checked-children="显"
|
:checked-children="t('common.switch.show')"
|
||||||
un-checked-children="隐"
|
:un-checked-children="t('common.switch.hide')"
|
||||||
size="small"
|
size="small"
|
||||||
/>
|
/>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>表格斑马纹</template>
|
<template #title>{{ t('common.tableStripedText') }}</template>
|
||||||
<a-switch
|
<a-switch
|
||||||
v-model:checked="tableState.striped"
|
v-model:checked="tableState.striped"
|
||||||
checked-children="开"
|
:checked-children="t('common.switch.open')"
|
||||||
un-checked-children="关"
|
:un-checked-children="t('common.switch.shut')"
|
||||||
size="small"
|
size="small"
|
||||||
/>
|
/>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>刷新</template>
|
<template #title>{{ t('common.reloadText') }}</template>
|
||||||
<a-button type="text" @click.prevent="fnGetList()">
|
<a-button type="text" @click.prevent="fnGetList()">
|
||||||
<template #icon><ReloadOutlined /></template>
|
<template #icon><ReloadOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<a-tooltip placement="topRight">
|
<a-tooltip placement="topRight">
|
||||||
<template #title>密度</template>
|
<template #title>{{ t('common.sizeText') }}</template>
|
||||||
<a-dropdown placement="bottomRight" trigger="click">
|
<a-dropdown placement="bottomRight" trigger="click">
|
||||||
<a-button type="text">
|
<a-button type="text">
|
||||||
<template #icon><ColumnHeightOutlined /></template>
|
<template #icon><ColumnHeightOutlined /></template>
|
||||||
@@ -552,9 +564,15 @@ onMounted(() => {
|
|||||||
:selected-keys="[tableState.size as string]"
|
:selected-keys="[tableState.size as string]"
|
||||||
@click="fnTableSize"
|
@click="fnTableSize"
|
||||||
>
|
>
|
||||||
<a-menu-item key="default">默认</a-menu-item>
|
<a-menu-item key="default">
|
||||||
<a-menu-item key="middle">中等</a-menu-item>
|
{{ t('common.size.default') }}
|
||||||
<a-menu-item key="small">紧凑</a-menu-item>
|
</a-menu-item>
|
||||||
|
<a-menu-item key="middle">
|
||||||
|
{{ t('common.size.middle') }}
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item key="small">
|
||||||
|
{{ t('common.size.small') }}
|
||||||
|
</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
</template>
|
</template>
|
||||||
</a-dropdown>
|
</a-dropdown>
|
||||||
@@ -585,20 +603,24 @@ onMounted(() => {
|
|||||||
</template>
|
</template>
|
||||||
<template v-if="column.key === 'status'">
|
<template v-if="column.key === 'status'">
|
||||||
<a-tag :color="+record.status ? 'success' : 'error'">
|
<a-tag :color="+record.status ? 'success' : 'error'">
|
||||||
{{ ['失败', '正常'][+record.status] }}
|
{{
|
||||||
|
[
|
||||||
|
t('views.monitor.jobLog.status0'),
|
||||||
|
t('views.monitor.jobLog.status1'),
|
||||||
|
][+record.status]
|
||||||
|
}}
|
||||||
</a-tag>
|
</a-tag>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.key === 'jobLogId'">
|
<template v-if="column.key === 'jobLogId'">
|
||||||
<a-space :size="8" align="center">
|
<a-space :size="8" align="center">
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>查看详情</template>
|
<template #title>{{ t('common.viewText') }}</template>
|
||||||
<a-button
|
<a-button
|
||||||
type="link"
|
type="link"
|
||||||
@click.prevent="fnModalVisibleByVive(record)"
|
@click.prevent="fnModalVisibleByVive(record)"
|
||||||
v-perms:has="['monitor:job:query']"
|
v-perms:has="['monitor:job:query']"
|
||||||
>
|
>
|
||||||
<template #icon><ProfileOutlined /></template>
|
<template #icon><ProfileOutlined /></template>
|
||||||
详情
|
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</a-space>
|
</a-space>
|
||||||
@@ -617,26 +639,40 @@ onMounted(() => {
|
|||||||
<a-form layout="horizontal">
|
<a-form layout="horizontal">
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :lg="12" :md="12" :xs="24">
|
<a-col :lg="12" :md="12" :xs="24">
|
||||||
<a-form-item label="日志编号" name="jobLogId">
|
<a-form-item :label="t('common.rowId')" name="jobLogId">
|
||||||
{{ modalState.from.jobLogId }}
|
{{ modalState.from.jobLogId }}
|
||||||
</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">
|
||||||
<a-form-item label="执行状态" name="status">
|
<a-form-item
|
||||||
|
:label="t('views.monitor.jobLog.status')"
|
||||||
|
name="status"
|
||||||
|
>
|
||||||
<a-tag :color="+modalState.from.status ? 'success' : 'error'">
|
<a-tag :color="+modalState.from.status ? 'success' : 'error'">
|
||||||
{{ ['失败', '正常'][+modalState.from.status] }}
|
{{
|
||||||
|
[
|
||||||
|
t('views.monitor.jobLog.status0'),
|
||||||
|
t('views.monitor.jobLog.status1'),
|
||||||
|
][+modalState.from.status]
|
||||||
|
}}
|
||||||
</a-tag>
|
</a-tag>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :lg="12" :md="12" :xs="24">
|
<a-col :lg="12" :md="12" :xs="24">
|
||||||
<a-form-item label="任务名称" name="jobName">
|
<a-form-item
|
||||||
|
:label="t('views.monitor.jobLog.jobName')"
|
||||||
|
name="jobName"
|
||||||
|
>
|
||||||
{{ modalState.from.jobName }}
|
{{ modalState.from.jobName }}
|
||||||
</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">
|
||||||
<a-form-item label="任务组名" name="jobGroup">
|
<a-form-item
|
||||||
|
:label="t('views.monitor.jobLog.jobGroup')"
|
||||||
|
name="jobGroup"
|
||||||
|
>
|
||||||
<DictTag
|
<DictTag
|
||||||
:options="dict.sysJobGroup"
|
:options="dict.sysJobGroup"
|
||||||
:value="modalState.from.jobGroup"
|
:value="modalState.from.jobGroup"
|
||||||
@@ -646,37 +682,46 @@ onMounted(() => {
|
|||||||
</a-row>
|
</a-row>
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :lg="12" :md="12" :xs="24">
|
<a-col :lg="12" :md="12" :xs="24">
|
||||||
<a-form-item label="调用目标" name="invokeTarget">
|
<a-form-item
|
||||||
|
:label="t('views.monitor.jobLog.invokeTarget')"
|
||||||
|
name="invokeTarget"
|
||||||
|
>
|
||||||
{{ modalState.from.invokeTarget }}
|
{{ modalState.from.invokeTarget }}
|
||||||
</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">
|
||||||
<a-form-item label="记录时间" name="createTime">
|
<a-form-item
|
||||||
|
:label="t('views.monitor.jobLog.createTime')"
|
||||||
|
name="createTime"
|
||||||
|
>
|
||||||
<span v-if="+modalState.from.createTime > 0">
|
<span v-if="+modalState.from.createTime > 0">
|
||||||
{{ parseDateToStr(+modalState.from.createTime) }}
|
{{ parseDateToStr(+modalState.from.createTime) }}
|
||||||
</span>
|
</span>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-form-item label="传入参数" name="targetParams">
|
<a-form-item
|
||||||
|
:label="t('views.monitor.jobLog.targetParams')"
|
||||||
|
name="targetParams"
|
||||||
|
>
|
||||||
<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 }"
|
||||||
placeholder="传入参数"
|
|
||||||
:disabled="true"
|
:disabled="true"
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item label="日志信息" name="jobMsg">
|
<a-form-item :label="t('views.monitor.jobLog.jobMsg')" name="jobMsg">
|
||||||
<a-textarea
|
<a-textarea
|
||||||
v-model:value="modalState.from.jobMsg"
|
v-model:value="modalState.from.jobMsg"
|
||||||
:auto-size="{ minRows: 2, maxRows: 6 }"
|
:auto-size="{ minRows: 2, maxRows: 6 }"
|
||||||
placeholder="日志信息"
|
|
||||||
:disabled="true"
|
:disabled="true"
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<a-button key="cancel" @click="fnModalCancel">关闭</a-button>
|
<a-button key="cancel" @click="fnModalCancel">
|
||||||
|
{{ t('common.close') }}
|
||||||
|
</a-button>
|
||||||
</template>
|
</template>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</PageContainer>
|
</PageContainer>
|
||||||
|
|||||||
Reference in New Issue
Block a user