Browse Source

bug修改

master
aBin 4 years ago
parent
commit
4bee1aa0a2
  1. 2
      src/App.vue
  2. 7
      src/components/CaseTable/CaseTable.vue
  3. 11
      src/views/PatientInfo/PatientInfo.vue

2
src/App.vue

@ -3,7 +3,7 @@
* @email: 18603454788@163.com
* @Date: 2021-02-22 09:20:03
* @LastEditors: wally
* @LastEditTime: 2021-04-26 18:12:14
* @LastEditTime: 2021-04-28 09:57:13
-->
<template>

7
src/components/CaseTable/CaseTable.vue

@ -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) {

11
src/views/PatientInfo/PatientInfo.vue

@ -1319,7 +1319,7 @@
</a-collapse>
</a-spin>
</a-form>
<iframe frameborder="0" height="100%" src="http://www.sxwikionline.com/ht-common/home/reportHistory?code=LSBGD" v-else></iframe>
<iframe frameborder="0" height="100%" :src="rzlbSrc" v-else></iframe>
<!-- <a-date-picker
v-if="list.length > 0"
:default-value="$moment(dateChoose, dateFormat)"
@ -1405,11 +1405,12 @@ export default {
confirmLoading: false,
recordTypeList: [],
spinning: false,
rzlbSrc: '',
};
},
computed: {
...mapState('home', ['patientId', 'hospitalization', 'hospitalId', 'recordCode']),
...mapState('home', ['patientId', 'hospitalization', 'hospitalId', 'recordCode', 'user', 'ptProps']),
//
headers() {
const token = sessionStorage.getItem('anyringToken');
@ -1424,11 +1425,17 @@ export default {
}
},
},
mounted() {
this.rzlbSrc = `http://sxzxyzzlm.tall.wiki/ht-common/home/reportHistory?code=LSBGD&userId=${this.ptProps.userId}`;
},
async created() {
console.log(this.patientId);
this.spinning = true;
this.getCode = '';
this.tabNums = 0;
this.rzlbSrc = `http://sxzxyzzlm.tall.wiki/ht-common/home/reportHistory?code=LSBGD&userId=${this.user.id}`;
if (this.$route.query && this.$route.query.code) {
// vue code
this.getCode = this.$route.query.code;

Loading…
Cancel
Save