| | |
| | | } |
| | | }, |
| | | { |
| | | label: t('pages.manager.taskLog.detail.taskId'), |
| | | key: 'taskId', |
| | | type: 'inputNumber', |
| | | props: { |
| | | clearable: true, |
| | | controlsPosition: 'right', |
| | | placeholder: '请输入任务ID' |
| | | } |
| | | }, |
| | | { |
| | | label: t('pages.manager.taskLog.table.taskCode'), |
| | | key: 'taskCode', |
| | | type: 'input', |
| | | props: { |
| | | clearable: true, |
| | | placeholder: t('pages.manager.taskLog.search.taskCodePlaceholder') |
| | | } |
| | | }, |
| | | { |
| | | label: t('pages.manager.taskLog.table.taskStatus'), |
| | | key: 'taskStatus', |
| | | type: 'inputNumber', |
| | | props: { |
| | | clearable: true, |
| | | controlsPosition: 'right', |
| | | placeholder: '请输入任务状态' |
| | | } |
| | | }, |
| | | { |
| | | label: t('pages.manager.taskLog.table.taskType'), |
| | | key: 'taskType', |
| | | type: 'inputNumber', |
| | | props: { |
| | | clearable: true, |
| | | controlsPosition: 'right', |
| | | placeholder: '请输入任务类型' |
| | | } |
| | | }, |
| | | { |
| | |
| | | } |
| | | }, |
| | | { |
| | | label: t('pages.manager.taskLog.table.orgSite'), |
| | | key: 'orgSite', |
| | | type: 'input', |
| | | props: { |
| | | clearable: true, |
| | | placeholder: '请输入源站点' |
| | | } |
| | | }, |
| | | { |
| | | label: t('pages.manager.taskLog.table.targLoc'), |
| | | key: 'targLoc', |
| | | type: 'input', |
| | | props: { |
| | | clearable: true, |
| | | placeholder: t('pages.manager.taskLog.search.targLocPlaceholder') |
| | | } |
| | | }, |
| | | { |
| | | label: t('pages.manager.taskLog.table.targSite'), |
| | | key: 'targSite', |
| | | type: 'input', |
| | | props: { |
| | | clearable: true, |
| | | placeholder: '请输入目标站点' |
| | | } |
| | | }, |
| | | { |
| | |
| | | } |
| | | }, |
| | | { |
| | | label: t('pages.manager.taskLog.detail.exceStatus'), |
| | | key: 'exceStatus', |
| | | type: 'inputNumber', |
| | | props: { |
| | | clearable: true, |
| | | controlsPosition: 'right', |
| | | placeholder: '请输入执行状态' |
| | | } |
| | | }, |
| | | { |
| | | label: t('pages.manager.taskLog.detail.expDesc'), |
| | | key: 'expDesc', |
| | | type: 'input', |
| | | props: { |
| | | clearable: true, |
| | | placeholder: '请输入异常描述' |
| | | } |
| | | }, |
| | | { |
| | | label: t('pages.manager.taskLog.detail.sort'), |
| | | key: 'sort', |
| | | type: 'inputNumber', |
| | | props: { |
| | | clearable: true, |
| | | controlsPosition: 'right', |
| | | placeholder: '请输入优先级' |
| | | } |
| | | }, |
| | | { |
| | | label: t('pages.manager.taskLog.detail.expCode'), |
| | | key: 'expCode', |
| | | type: 'input', |
| | | props: { |
| | | clearable: true, |
| | | placeholder: '请输入异常编码' |
| | | } |
| | | }, |
| | | { |
| | | label: t('pages.manager.taskLog.search.timeStart'), |
| | | key: 'timeStart', |
| | | type: 'date', |
| | |
| | | clearable: true, |
| | | valueFormat: 'YYYY-MM-DD', |
| | | type: 'date' |
| | | } |
| | | }, |
| | | { |
| | | label: t('pages.manager.taskLog.table.startTime'), |
| | | key: 'startTime', |
| | | type: 'date', |
| | | props: { |
| | | clearable: true, |
| | | valueFormat: 'YYYY-MM-DD', |
| | | type: 'date' |
| | | } |
| | | }, |
| | | { |
| | | label: t('pages.manager.taskLog.table.endTime'), |
| | | key: 'endTime', |
| | | type: 'date', |
| | | props: { |
| | | clearable: true, |
| | | valueFormat: 'YYYY-MM-DD', |
| | | type: 'date' |
| | | } |
| | | }, |
| | | { |
| | | label: t('table.memo'), |
| | | key: 'memo', |
| | | type: 'input', |
| | | props: { |
| | | clearable: true, |
| | | placeholder: '请输入备注' |
| | | } |
| | | }, |
| | | { |
| | | label: t('table.status'), |
| | | key: 'status', |
| | | type: 'select', |
| | | props: { |
| | | clearable: true, |
| | | options: [ |
| | | { label: t('common.status.enabled'), value: 1 }, |
| | | { label: t('common.status.disabled'), value: 0 } |
| | | ] |
| | | } |
| | | } |
| | | ]) |
| | |
| | | columnsFactory: () => createTaskLogTableColumns({ handleView: openDetail }) |
| | | }, |
| | | transform: { |
| | | dataTransformer: (records) => (Array.isArray(records) ? records.map((item) => normalizeTaskLogRow(item)) : []) |
| | | dataTransformer: (records) => |
| | | Array.isArray(records) ? records.map((item) => normalizeTaskLogRow(item)) : [] |
| | | } |
| | | }) |
| | | |
| | |
| | | } |
| | | |
| | | function handleSearch(params) { |
| | | searchForm.value = { ...searchForm.value, ...params } |
| | | replaceSearchParams(buildTaskLogSearchParams(params)) |
| | | getData() |
| | | } |