登录
This commit is contained in:
parent
9174b59dfe
commit
0f454cc7ed
@ -2,10 +2,10 @@
|
||||
<a-dropdown position="bl" :style="{ top: '52px' }">
|
||||
<div class="avatar-container">
|
||||
<a-avatar :size="32" :style="{ backgroundColor: '#3370ff' }">
|
||||
<img alt="avatar" :src="userInfo.avatar" />
|
||||
<img alt="avatar" :src="userInfo.avatar" v-if="userInfo"/>
|
||||
</a-avatar>
|
||||
<div class="user-info">
|
||||
<div class="user-info-name">{{ userInfo.nick_name }}</div>
|
||||
<div class="user-info-name" v-if="userInfo">{{ userInfo.nick_name }}</div>
|
||||
<!-- <div class="user-info-desc">{{ userInfo.introduction }}</div> -->
|
||||
</div>
|
||||
</div>
|
||||
@ -50,9 +50,9 @@ const handleLogout = () => {
|
||||
onOk:async() => {
|
||||
const store = useUserStore();
|
||||
await store.userLogut();
|
||||
window.localStorage.removeItem('token');
|
||||
clearLocalStorage();
|
||||
proxy.$router.push('/login');
|
||||
// window.localStorage.removeItem('token');
|
||||
// clearLocalStorage();
|
||||
//proxy.$router.push('/login');
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
@ -83,7 +83,6 @@ router.beforeEach(async(to, from, next) => {
|
||||
permissionStore.addRouters.forEach((route) => {
|
||||
router.addRoute('/', route);
|
||||
});
|
||||
|
||||
// next(to.fullPath);
|
||||
// 如果 addRoute 并未完成,路由守卫会一层一层的执行执行,直到 addRoute 完成,找到对应的路由
|
||||
next({ ...to, replace: true });
|
||||
|
||||
@ -47,6 +47,7 @@ export const useUserStore = defineStore('user', {
|
||||
|
||||
if(code==200){
|
||||
this.clearInfo();
|
||||
window.location.href="/login"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -8,15 +8,12 @@
|
||||
<a-form-item field="mobile" label="电话号码">
|
||||
<a-input v-model="queryForm.mobile" placeholder="请输入电话号码" @press-enter="handleQuery" />
|
||||
</a-form-item>
|
||||
<a-form-item field="iden_auth_status" label="审核状态">
|
||||
<!-- <a-form-item field="iden_auth_status" label="审核状态">
|
||||
<a-select v-model="queryForm.iden_auth_status" placeholder="请选择审核状态" :style="{ width: '180px' }">
|
||||
<!-- 医生多点执业认证状态(0:未认证 1:认证通过 2:审核中 3:认证失败) -->
|
||||
<!-- <a-option :value="0">未认证</a-option>
|
||||
<a-option :value="1">认证通过</a-option> -->
|
||||
<a-option :value="2">审核中</a-option>
|
||||
<a-option :value="3">认证失败</a-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-form-item> -->
|
||||
<a-form-item>
|
||||
<a-space>
|
||||
<a-button type="primary" @click="handleQuery"><icon-search /> 搜索</a-button>
|
||||
|
||||
@ -182,14 +182,13 @@
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<a-form-item field="hospital.hospital_name" label="医院名称:">
|
||||
<a-form-item field="hospital_id" label="医院名称:">
|
||||
<a-space direction="vertical" size="large">
|
||||
<a-select :style="{width:'400px'}" allow-search placeholder="请选择所在医院" v-model="hospital_name" :loading="loading" @change="changeHospital" @search="handleHospitalList" >
|
||||
<a-option size="large" style="max-width:500px" v-for="item in hospitalData" :key="item.hospital_id" :value="item.hospital_id"
|
||||
:label="item.hospital_name+'('+item.province+item.city+item.county+')'"></a-option>
|
||||
</a-select>
|
||||
</a-space>
|
||||
<!-- <a-input v-model="modalForm.hospital.hospital_name" placeholder="请输入医院名称" /> -->
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
@ -585,8 +584,13 @@
|
||||
avatar: 'https://img.applets.igandanyiyuan.com/basic/file/doctor_avatar.png',
|
||||
bank_card_code:'',
|
||||
});
|
||||
const hospital_name=computed(()=>{
|
||||
return modalForm.hospital.hospital_name+'('+modalForm.hospital.province+modalForm.hospital.city+modalForm.hospital.county+')'
|
||||
const hospital_name=ref('');
|
||||
watch(()=>modalForm.hospital.hospital_name,()=>{
|
||||
if(modalForm.hospital.hospital_name){
|
||||
hospital_name.value= modalForm.hospital.hospital_name+'('+modalForm.hospital.province+modalForm.hospital.city+modalForm.hospital.county+')'
|
||||
}else{
|
||||
hospital_name.value=''
|
||||
}
|
||||
})
|
||||
//const doctor_expertise=ref([]);
|
||||
//证书计算
|
||||
@ -748,7 +752,7 @@
|
||||
}
|
||||
}],
|
||||
'hospital.address': [{ required: true, message: '请输入医院地址' }],
|
||||
'hospital.hospital_name': [{ required: true, message: '请选择医院名称' }],
|
||||
'hospital_id': [{ required: true, message: '请选择医院名称' }],
|
||||
'department_custom_mobile':[{
|
||||
required: true, message: '请输入科室电话'
|
||||
}],
|
||||
@ -1175,6 +1179,7 @@
|
||||
};
|
||||
const hospitalData = ref([]);
|
||||
const changeHospital=(value)=>{
|
||||
console.log(value);
|
||||
modalForm.hospital_id=value;
|
||||
}
|
||||
//获取医院列表
|
||||
|
||||
@ -8,15 +8,12 @@
|
||||
<a-form-item field="mobile" label="电话号码">
|
||||
<a-input v-model="queryForm.mobile" placeholder="请输入电话号码" @press-enter="handleQuery" />
|
||||
</a-form-item>
|
||||
<a-form-item field="multi_point_status" label="审核状态">
|
||||
<!-- <a-form-item field="multi_point_status" label="审核状态">
|
||||
<a-select v-model="queryForm.multi_point_status" placeholder="请选择审核状态" :style="{ width: '180px' }">
|
||||
<!-- 医生多点执业认证状态(0:未认证 1:认证通过 2:审核中 3:认证失败) -->
|
||||
<!-- <a-option :value="0">未认证</a-option>
|
||||
<a-option :value="1">认证通过</a-option> -->
|
||||
<a-option :value="2">审核中</a-option>
|
||||
<a-option :value="3">认证失败</a-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-form-item> -->
|
||||
<a-form-item>
|
||||
<a-space>
|
||||
<a-button type="primary" @click="handleQuery"><icon-search /> 搜索</a-button>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user