20260410罗总新需求修改
This commit is contained in:
1 parent
860bd0161b
commit
99684c04f2
21 files changed
+534
-117
No files matched your search
@@ -302,6 +302,9 @@ const columnDefs: ColDef<SummaryRow>[] = [
|
||||
minWidth: 90,
|
||||
maxWidth: 140,
|
||||
colSpan: params => (params.data?.rowType === 'total' ? 2 : 1),
|
||||
cellClassRules: {
|
||||
'ag-summary-label-cell': params => params.data?.rowType === 'total'
|
||||
},
|
||||
valueFormatter: params => {
|
||||
if (params.data?.rowType === 'total') return params.data.name || t('htSummary.total')
|
||||
return typeof params.value === 'string' ? params.value : ''
|
||||
|
||||
@@ -16,10 +16,16 @@ const XM_DB_KEY = computed(() => {
|
||||
})
|
||||
const BASE_INFO_KEY = computed(() => props.projectInfoKey || 'xm-base-info-v1')
|
||||
const { t } = useI18n()
|
||||
const titleText = computed(() => `${t('htInfo.scaleDetailTitle')}:${t('htInfo.scaleDetailHint')}`)
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<CommonAgGrid :title="t('htInfo.scaleDetailTitle')" :dbKey="DB_KEY" :xmInfoKey="XM_DB_KEY" :base-info-key="BASE_INFO_KEY"/>
|
||||
<CommonAgGrid
|
||||
:title="titleText"
|
||||
:dbKey="DB_KEY"
|
||||
:xmInfoKey="XM_DB_KEY"
|
||||
:base-info-key="BASE_INFO_KEY"
|
||||
/>
|
||||
</template>
|
||||
@@ -50,8 +50,8 @@ const SERVICE_SELECTOR_ROWS: string[][] = [
|
||||
['0', '2', '3', '4'],
|
||||
['6', '7', '10', '8', '9', '11', '12', '13'],
|
||||
['37', '38', '39', '40'],
|
||||
['21', '22', '23', '24', '25', '26'],
|
||||
['15', '16', '17', '18', '19', '20'],
|
||||
['21', '22', '23', '24', '25', '26'],
|
||||
['29', '30', '31', '32', '33', '34', '35', '36'],
|
||||
['41', '42', '43', '44']
|
||||
]
|
||||
@@ -627,6 +627,9 @@ const columnDefs: ColDef<DetailRow>[] = [
|
||||
field: 'code',
|
||||
minWidth: 50,
|
||||
maxWidth: 100,
|
||||
cellClassRules: {
|
||||
'ag-summary-label-cell': params => Boolean(params.data && isFixedRow(params.data))
|
||||
},
|
||||
valueGetter: params => {
|
||||
if (!params.data) return ''
|
||||
if (isFixedRow(params.data)) return t('htZxFw.subtotal')
|
||||
|
||||
Reference in new issue
Block a user