zhou zhou
2 天以前 1d95b134d85c3c60cf0e72739888c9741a0bb1ee
rsf-design/src/views/basic-info/bas-station-area/basStationAreaTable.columns.js
@@ -19,7 +19,12 @@
  }
  if (canDelete && handleDelete) {
    operations.push({ key: 'delete', label: t('common.actions.delete'), icon: 'ri:delete-bin-5-line', color: 'var(--art-error)' })
    operations.push({
      key: 'delete',
      label: t('common.actions.delete'),
      icon: 'ri:delete-bin-5-line',
      color: 'var(--art-error)'
    })
  }
  return [
@@ -33,6 +38,13 @@
      label: t('table.index'),
      width: 72,
      align: 'center'
    },
    {
      prop: 'id',
      label: t('table.id'),
      width: 90,
      align: 'center',
      formatter: (row) => row.id ?? '--'
    },
    {
      prop: 'stationAreaId',
@@ -138,11 +150,21 @@
      width: 96,
      align: 'center',
      formatter: (row) => {
        const status = getBasStationAreaStatusOptions(t).find((item) => Number(item.value) === Number(row.status))
        const status = getBasStationAreaStatusOptions(t).find(
          (item) => Number(item.value) === Number(row.status)
        )
        const text = status?.label || row.statusText || '--'
        const type = Number(row.status) === 1 ? 'success' : Number(row.status) === 0 ? 'danger' : 'info'
        const type =
          Number(row.status) === 1 ? 'success' : Number(row.status) === 0 ? 'danger' : 'info'
        return h(ElTag, { type, effect: 'light' }, () => text)
      }
    },
    {
      prop: 'updateByText',
      label: t('table.updateBy'),
      minWidth: 120,
      showOverflowTooltip: true,
      formatter: (row) => row.updateByText || '--'
    },
    {
      prop: 'updateTimeText',
@@ -152,6 +174,20 @@
      formatter: (row) => row.updateTimeText || '--'
    },
    {
      prop: 'createByText',
      label: t('table.createBy'),
      minWidth: 120,
      showOverflowTooltip: true,
      formatter: (row) => row.createByText || '--'
    },
    {
      prop: 'createTimeText',
      label: t('table.createTime'),
      minWidth: 170,
      showOverflowTooltip: true,
      formatter: (row) => row.createTimeText || '--'
    },
    {
      prop: 'memo',
      label: t('pages.basicInfo.basStationArea.search.memo'),
      minWidth: 180,