Browse Source

0225

master
领悟 5 months ago
parent
commit
81018addf6
  1. 65
      src/layouts/BasicLayout.vue
  2. 2
      src/views/thrombolysis/index.vue

65
src/layouts/BasicLayout.vue

@ -57,21 +57,25 @@
<a-layout-content ref="layoutContent" id="layoutContent"> <a-layout-content ref="layoutContent" id="layoutContent">
<div class="global-layout-content" id="globalLayoutContent"> <div class="global-layout-content" id="globalLayoutContent">
<router-view /> <router-view />
<a-drawer placement="bottom" closable :visible="termVisible" @close="onTermClose" </div>
<a-modal v-model="termVisible" title="提示">
<template slot="footer">
<a-button key="submit" @click="handleTermin(0)">暂停急救</a-button>
<a-button key="back" type="primary" @click="handleTermin(1)">终止急救</a-button>
</template>
<p style="line-height: 32px;"><a-icon type="exclamation-circle" style="color: orange;font-weight: bold;font-size: 20px;margin-right: 12px" />是否结束本次急救?</p>
</a-modal>
<!-- <a-drawer placement="bottom" :closable="false" :visible="termVisible" @close="onTermClose"
:get-container="false" :wrap-style="{ position: 'absolute' }"> :get-container="false" :wrap-style="{ position: 'absolute' }">
<div v-if="termVisible"> <div v-if="termVisible">
<div style="text-align: center;line-height: 3rem;font-weight: bold;font-size: 1.5rem;"> <div style="text-align: center;font-size: 1.2rem; line-height: 4.2rem;">
退出急救
</div>
<div style="text-align: center;font-size: 1.2rem; line-height: 5rem;">
<div style="border-bottom: 1px solid #eee;" @click="handleTermin(1)">终止急救</div> <div style="border-bottom: 1px solid #eee;" @click="handleTermin(1)">终止急救</div>
<div @click="handleTermin(0)">暂停急救</div> <div style="border-bottom: 2px solid #eee;" @click="handleTermin(0)">暂停急救</div>
<div style="color: rgba(0, 0, 0, 0.6);" @click="onTermClose">取消</div>
</div> </div>
</div> </div>
</a-drawer> </a-drawer> -->
</div>
<a-drawer placement="left" :visible="visible" width="320" @close="onClose" :getContainer="false" <a-drawer placement="left" :visible="visible" width="320" @close="onClose" :getContainer="false"
:closable="false" :wrap-style="{ position: 'absolute' }"> :closable="false" :wrap-style="{ position: 'absolute' }">
<div class="person-drawer"> <div class="person-drawer">
@ -131,7 +135,8 @@
import store from '@/store'; import store from '@/store';
import { import {
loginInfo, loginInfo,
messageQuery messageQuery,
saveAidRecord,
} from 'api'; } from 'api';
import icon01 from '@/assets/images/slice/icon01.png' import icon01 from '@/assets/images/slice/icon01.png'
import icon01H from '@/assets/images/slice/icon01H.png' import icon01H from '@/assets/images/slice/icon01H.png'
@ -207,7 +212,7 @@
}); });
}, },
methods: { methods: {
...mapMutations('patient', ['setPatientData', 'setPatientDataCur']), ...mapMutations('patient', ['setPatientData', 'setTimerData', 'setPatientDataCur']),
handleClickMenu(item, index) { handleClickMenu(item, index) {
if (index != this.current) { if (index != this.current) {
this.current_ = this.current this.current_ = this.current
@ -256,9 +261,20 @@
}, },
async handleTermin(status) { async handleTermin(finishStatus) {
this.$message.info('结束急救,类型: ' + status) const { firstAidId } = this.patientData;
// this.termVisible = true; let res = await saveAidRecord({
firstAidId,
finishStatus
});
const { code, data, msg } = res;
if (code === 200) {
this.setPatientData({})
this.setTimerData({});
this.$router.replace('/firstaid/patientList')
} else {
this.$message.error(msg);
}
this.onTermClose() this.onTermClose()
}, },
@ -287,7 +303,28 @@
this.current = this.current_ this.current = this.current_
}, },
logout() { logout() {
this.$confirm({
title: '提示',
content: '退出登录后回终止本次急救, 确认要退出登录吗?',
onOk: async () => {
const { firstAidId } = this.patientData;
let res = await saveAidRecord({
firstAidId,
finishStatus: 1
});
const { code, data, msg } = res;
if (code === 200) {
this.setPatientData({})
this.setTimerData({});
this.$router.replace('/login') this.$router.replace('/login')
} else {
this.$message.error(msg);
}
},
onCancel() {},
});
} }
} }
} }

2
src/views/thrombolysis/index.vue

@ -78,11 +78,9 @@
computed: { computed: {
...mapState('patient', ['patientData']), ...mapState('patient', ['patientData']),
isrs() { isrs() {
console.log('isrs', this.patientData?.recordValDict?.['JBXX-ISRS']?.[0]?.answer[0])
return !(this.patientData?.recordValDict?.['JBXX-ISRS']?.[0]?.answer[0] == '否') return !(this.patientData?.recordValDict?.['JBXX-ISRS']?.[0]?.answer[0] == '否')
}, },
isjr() { isjr() {
console.log('isjr', this.patientData?.recordValDict?.['JBXX-ISJR']?.[0]?.answer[0])
return !(this.patientData?.recordValDict?.['JBXX-ISJR']?.[0]?.answer[0] == '否') return !(this.patientData?.recordValDict?.['JBXX-ISJR']?.[0]?.answer[0] == '否')
} }
}, },

Loading…
Cancel
Save