版本更新

This commit is contained in:
Zhang.WH
2025-09-03 15:54:41 +08:00
parent 0b93d16b64
commit 8f82322d10
3290 changed files with 154339 additions and 23829 deletions

View File

@@ -0,0 +1,66 @@
<template>
<div class="pf-card-group">
<PfPatientCard
v-for="item in cardList"
:key="item.bedId"
:data="item"
:bed-config="bedConfig"
@click="clickAct"
@moreClick="moreClickAct"
/>
</div>
</template>
<script>
import PfPatientCard from './PfPatientCard'
export default {
name: 'PfPatientCardB',
components: { PfPatientCard },
provide() {
return {
PfPatientCards: this
}
},
props: {
cardList: {
type: Array,
default() {
return []
}
},
bedConfig: {
type: Object,
default() {
return {}
}
}
},
data() {
return {
activePatient: { noCode: '' }
}
},
mounted() {
if (this.cardList.length > 0) {
this.$nextTick(() => {
this.activePatient.noCode = this.cardList[0].noCode
})
}
},
methods: {
clickAct(data) {
this.$emit('itemClick', data)
},
moreClickAct(data) {
this.$emit('itemMoreClick', data)
}
}
}
</script>
<style scoped>
.pf-card-group {
display: grid;
grid-template-columns: repeat(auto-fill, 264px);
margin: 12px;
grid-gap: 12px;
}
</style>