|
|
@ -24,7 +24,7 @@ |
|
|
|
</template> |
|
|
|
<template slot="id" slot-scope="text, record"> |
|
|
|
<a-icon @click="showEditModal(record.id, record.inputStatus)" class="pointer pointerEdit" theme="twoTone" type="edit" /> |
|
|
|
<a-button type="primary" @click="details(record.id, record.hospitalization)">查看详情</a-button> |
|
|
|
<a-button type="primary" @click="details(record.id, record.hospitalization, record.code)">查看详情</a-button> |
|
|
|
</template> |
|
|
|
</a-table> |
|
|
|
</div> |
|
|
@ -120,7 +120,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
...mapMutations('home', ['setPatientId', 'setHospitalization']), |
|
|
|
...mapMutations('home', ['setPatientId', 'setHospitalization', 'setRecordCode']), |
|
|
|
|
|
|
|
// 选择病患 |
|
|
|
chooseItem(id) { |
|
|
@ -130,9 +130,10 @@ export default { |
|
|
|
const { current } = pagination; |
|
|
|
this.$emit('setData', current); |
|
|
|
}, |
|
|
|
details(Id, hospitalization) { |
|
|
|
details(Id, hospitalization, code) { |
|
|
|
this.setPatientId(Id); |
|
|
|
this.setHospitalization(hospitalization); |
|
|
|
this.setRecordCode(code); |
|
|
|
this.$router.push('/patientInfo'); |
|
|
|
}, |
|
|
|
showEditModal(id, inputStatus) { |
|
|
|