zhou zhou
昨天 d4e039545c9e97347223eb415fbba85ee01bc263
rsf-design/src/views/manager/task-log/index.vue
@@ -94,12 +94,42 @@
      }
    },
    {
      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: '请输入任务类型'
      }
    },
    {
@@ -112,12 +142,30 @@
      }
    },
    {
      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: '请输入目标站点'
      }
    },
    {
@@ -139,6 +187,44 @@
      }
    },
    {
      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',
@@ -156,6 +242,47 @@
        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 }
        ]
      }
    }
  ])
@@ -185,7 +312,8 @@
      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)) : []
    }
  })
@@ -241,6 +369,7 @@
  }
  function handleSearch(params) {
    searchForm.value = { ...searchForm.value, ...params }
    replaceSearchParams(buildTaskLogSearchParams(params))
    getData()
  }