refactor: refs #6683 update PropertySummary component to improve code readability and add copy functionality
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
105e95e68a
commit
c4b76b465e
|
@ -147,7 +147,11 @@ onMounted(async () => {
|
|||
:label="t('property.owner')"
|
||||
:value="dashIfEmpty(entity.company.code)"
|
||||
/>
|
||||
<VnLv :label="t('property.map')" :value="dashIfEmpty(entity.url)">
|
||||
<VnLv
|
||||
:label="t('property.map')"
|
||||
:value="dashIfEmpty(entity.url)"
|
||||
copy
|
||||
>
|
||||
<template #value>
|
||||
<a
|
||||
v-if="entity?.url"
|
||||
|
@ -166,6 +170,7 @@ onMounted(async () => {
|
|||
<VnLv
|
||||
:label="t('property.protocol')"
|
||||
:value="dashIfEmpty(entity.protocol)"
|
||||
copy
|
||||
/>
|
||||
<VnLv
|
||||
:label="t('property.purchased')"
|
||||
|
@ -187,6 +192,7 @@ onMounted(async () => {
|
|||
<VnLv
|
||||
:label="t('property.cadaster')"
|
||||
:value="dashIfEmpty(entity.cadaster)"
|
||||
copy
|
||||
/>
|
||||
<VnLv
|
||||
:label="t('property.smallHolding')"
|
||||
|
@ -225,30 +231,60 @@ onMounted(async () => {
|
|||
</div>
|
||||
</QCard>
|
||||
<QCard v-if="entity?.propertyDms.length > 0" class="vn-max">
|
||||
<VnTitle :url="toPropertyUrl('dms')" :text="t('globals.pageTitles.dms')" />
|
||||
<VnTitle
|
||||
:url="toPropertyUrl('dms')"
|
||||
:text="t('globals.pageTitles.dms')"
|
||||
/>
|
||||
<QTable :columns="dmsColumns" :rows="entity?.propertyDms" flat>
|
||||
<template #header="props">
|
||||
<QTr :props="props">
|
||||
<QTh auto-width class="text-left">{{ t('globals.id') }}</QTh>
|
||||
<QTh auto-width class="text-left">{{ t('globals.type') }}</QTh>
|
||||
<QTh auto-width class="text-left">{{ t('globals.order') }}</QTh>
|
||||
<QTh auto-width class="text-left">{{ t('globals.reference') }}</QTh>
|
||||
<QTh auto-width class="text-left">{{ t('globals.description') }}</QTh>
|
||||
<QTh auto-width class="text-center">{{ t('globals.original') }}</QTh>
|
||||
<QTh auto-width class="text-left">{{ t('globals.worker') }}</QTh>
|
||||
<QTh auto-width class="text-center">{{ t('globals.created') }}</QTh>
|
||||
<QTh auto-width class="text-left">{{
|
||||
t('globals.type')
|
||||
}}</QTh>
|
||||
<QTh auto-width class="text-left">{{
|
||||
t('globals.order')
|
||||
}}</QTh>
|
||||
<QTh auto-width class="text-left">{{
|
||||
t('globals.reference')
|
||||
}}</QTh>
|
||||
<QTh auto-width class="text-left">{{
|
||||
t('globals.description')
|
||||
}}</QTh>
|
||||
<QTh auto-width class="text-center">{{
|
||||
t('globals.original')
|
||||
}}</QTh>
|
||||
<QTh auto-width class="text-left">{{
|
||||
t('globals.worker')
|
||||
}}</QTh>
|
||||
<QTh auto-width class="text-center">{{
|
||||
t('globals.created')
|
||||
}}</QTh>
|
||||
</QTr>
|
||||
</template>
|
||||
<template #body="props">
|
||||
<QTr :props="props">
|
||||
<QTd class="text-left">{{ props.row.dms.id }}</QTd>
|
||||
<QTd class="text-left">{{ props.row.dms.dmsType.name }}</QTd>
|
||||
<QTd class="text-left">{{ props.row.dms.hardCopyNumber }}</QTd>
|
||||
<QTd class="text-left">{{
|
||||
props.row.dms.hardCopyNumber
|
||||
}}</QTd>
|
||||
<QTd class="text-left">{{ props.row.dms.reference }}</QTd>
|
||||
<QTd class="text-left">{{ props.row.dms.description }}</QTd>
|
||||
<QTd class="text-center"><VnCheckbox :disable="true" v-model="props.row.dms.hasFile"/></QTd>
|
||||
<QTd class="text-left"><span class="link" @click.stop>{{ props.row.dms.worker.firstName }}<WorkerDescriptorProxy :id="props.row.dms.worker.id" /></span></QTd>
|
||||
<QTd class="text-center">{{ toDate(props.row.dms.created) }}</QTd>
|
||||
<QTd class="text-center"
|
||||
><VnCheckbox
|
||||
:disable="true"
|
||||
v-model="props.row.dms.hasFile"
|
||||
/></QTd>
|
||||
<QTd class="text-left"
|
||||
><span class="link" @click.stop
|
||||
>{{ props.row.dms.worker.firstName
|
||||
}}<WorkerDescriptorProxy
|
||||
:id="props.row.dms.worker.id" /></span
|
||||
></QTd>
|
||||
<QTd class="text-center">{{
|
||||
toDate(props.row.dms.created)
|
||||
}}</QTd>
|
||||
</QTr>
|
||||
</template>
|
||||
</QTable>
|
||||
|
|
Loading…
Reference in New Issue