Files
calculator2026/src/components/ht/htInfo.vue
T
2026-03-17 12:05:22 +08:00

24 lines
673 B
Vue

<script setup lang="ts">
import { computed } from 'vue'
import CommonAgGrid from '@/components/shared/xmCommonAgGrid.vue'
const props = defineProps<{
contractId: string
projectScaleKey?: string | null
projectInfoKey?: string
}>()
const DB_KEY = computed(() => `ht-info-v3-${props.contractId}`)
const XM_DB_KEY = computed(() => {
if (props.projectScaleKey === null) return undefined
return props.projectScaleKey || 'xm-info-v3'
})
const BASE_INFO_KEY = computed(() => props.projectInfoKey || 'xm-base-info-v1')
</script>
<template>
<CommonAgGrid title="合同规模明细" :dbKey="DB_KEY" :xmInfoKey="XM_DB_KEY" :base-info-key="BASE_INFO_KEY"/>
</template>