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

7
src/components/CaseTable/CaseTable.vue

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

11
src/views/PatientInfo/PatientInfo.vue

@ -1319,7 +1319,7 @@
</a-collapse> </a-collapse>
</a-spin> </a-spin>
</a-form> </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 <!-- <a-date-picker
v-if="list.length > 0" v-if="list.length > 0"
:default-value="$moment(dateChoose, dateFormat)" :default-value="$moment(dateChoose, dateFormat)"
@ -1405,11 +1405,12 @@ export default {
confirmLoading: false, confirmLoading: false,
recordTypeList: [], recordTypeList: [],
spinning: false, spinning: false,
rzlbSrc: '',
}; };
}, },
computed: { computed: {
...mapState('home', ['patientId', 'hospitalization', 'hospitalId', 'recordCode']), ...mapState('home', ['patientId', 'hospitalization', 'hospitalId', 'recordCode', 'user', 'ptProps']),
// //
headers() { headers() {
const token = sessionStorage.getItem('anyringToken'); 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() { async created() {
console.log(this.patientId); console.log(this.patientId);
this.spinning = true; this.spinning = true;
this.getCode = ''; this.getCode = '';
this.tabNums = 0; 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) { if (this.$route.query && this.$route.query.code) {
// vue code // vue code
this.getCode = this.$route.query.code; this.getCode = this.$route.query.code;

Loading…
Cancel
Save