zhou zhou
10 小时以前 50e95b985a72fcec4a93a2470e9efdfb2620148a
rsf-design/src/views/basic-info/bas-station-area/index.vue
@@ -103,7 +103,6 @@
  import { createBasStationAreaTableColumns } from './basStationAreaTable.columns'
  import {
    BAS_STATION_AREA_REPORT_STYLE,
    BAS_STATION_AREA_REPORT_TITLE,
    buildBasStationAreaDialogModel,
    buildBasStationAreaPageQueryParams,
    buildBasStationAreaPrintRows,
@@ -113,6 +112,7 @@
    createBasStationAreaSearchState,
    getBasStationAreaBinaryOptions,
    getBasStationAreaPaginationKey,
    getBasStationAreaReportTitle,
    getBasStationAreaStatusOptions,
    getBasStationAreaTypeOptions,
    normalizeBasStationAreaDetailRecord,
@@ -161,7 +161,7 @@
  const typeLabelMap = computed(
    () =>
      new Map(
        getBasStationAreaTypeOptions()
        getBasStationAreaTypeOptions(t)
          .map((item) => [String(item.value), item.label])
          .filter(([value, label]) => value && label)
      )
@@ -189,7 +189,7 @@
  const resolveTypeLabel = (value) => typeLabelMap.value.get(String(value)) || ''
  const resolveStationAliasLabel = (id) => stationLabelMap.value.get(String(id)) || ''
  const resolveUseStatusLabel = (value) => useStatusLabelMap.value.get(String(value)) || ''
  const reportTitle = BAS_STATION_AREA_REPORT_TITLE
  const reportTitle = computed(() => getBasStationAreaReportTitle(t))
  const reportQueryParams = computed(() => buildBasStationAreaSearchParams(searchForm.value))
  const searchItems = computed(() => [
@@ -248,7 +248,7 @@
      type: 'select',
      props: {
        clearable: true,
        options: getBasStationAreaTypeOptions()
        options: getBasStationAreaTypeOptions(t)
      }
    },
    {
@@ -367,7 +367,7 @@
      type: 'select',
      props: {
        clearable: true,
        options: getBasStationAreaStatusOptions()
        options: getBasStationAreaStatusOptions(t)
      }
    },
    {
@@ -393,6 +393,7 @@
        }
      )
      detailData.value = normalizeBasStationAreaDetailRecord(detail, {
        t,
        resolveAreaLabel,
        resolveCrossZoneAreaLabel,
        resolveContainerTypeLabel,
@@ -490,6 +491,7 @@
      paginationKey: getBasStationAreaPaginationKey(),
      columnsFactory: () =>
        createBasStationAreaTableColumns({
          t,
          handleView: openDetail,
          handleEdit: hasAuth('update') ? openEditDialog : null,
          handleDelete: hasAuth('delete') ? (row) => handleDeleteAction?.(row) : null,
@@ -504,6 +506,7 @@
        }
        return records.map((item) =>
          normalizeBasStationAreaListRow(item, {
            t,
            resolveAreaLabel,
            resolveCrossZoneAreaLabel,
            resolveContainerTypeLabel,
@@ -577,6 +580,7 @@
      resolvePrintRecords,
      buildPreviewRows: (records) =>
        buildBasStationAreaPrintRows(records, {
          t,
          resolveAreaLabel,
          resolveCrossZoneAreaLabel,
          resolveContainerTypeLabel,
@@ -591,7 +595,8 @@
    buildBasStationAreaReportMeta({
      previewMeta: previewMeta.value,
      count: previewRows.value.length,
      orientation: previewMeta.value?.reportStyle?.orientation || BAS_STATION_AREA_REPORT_STYLE.orientation
      orientation: previewMeta.value?.reportStyle?.orientation || BAS_STATION_AREA_REPORT_STYLE.orientation,
      t
    })
  )