mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2025-08-24 13:04:57 +08:00
医院移除登录切换医院
This commit is contained in:
parent
269ee1c120
commit
97709b525f
|
@ -105,7 +105,7 @@ export function getHospitalManager(hospitalId: string) {
|
|||
|
||||
export function changeHospital(id: string) {
|
||||
return new Promise(resolve => {
|
||||
request.postForm(changeHospitalUrl, {id}).then(res => {
|
||||
request.postForm(changeHospitalUrl, {id: id ? id : ''}).then(res => {
|
||||
resolve(res.data)
|
||||
}).catch(err => {
|
||||
resolve(err);
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
<div class="login-page">
|
||||
<div class="left-content move_4"></div>
|
||||
<div class="right-content">
|
||||
<div class="select-hospital-box">
|
||||
<!-- <div class="select-hospital-box">
|
||||
<el-select class="select-hospital" v-model="currentHospital" size="small" @change="selectHospital">
|
||||
<el-option v-for="item in hospitals" :key="item.id" :label="item.name" :value="item.id"/>
|
||||
</el-select>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<img v-show="!isShowRegister" class="logo move_2" src="@/assets/imgs/logo.png">
|
||||
<div v-if="!isShowRegister" class="login-block move_2">
|
||||
|
@ -301,10 +301,10 @@ const sendCode = () => {
|
|||
}
|
||||
const login = async (type: string) => {
|
||||
//加载效果:开始加载
|
||||
if (!currentHospital.value) {
|
||||
ElMessage.warning('请在右上角选择院区')
|
||||
return
|
||||
}
|
||||
// if (!currentHospital.value) {
|
||||
// ElMessage.warning('请在右上角选择院区')
|
||||
// return
|
||||
// }
|
||||
//加载效果:开始加载
|
||||
loading.value = true;
|
||||
//保证全部表单正常再发请求
|
||||
|
|
Loading…
Reference in New Issue
Block a user