Compare commits

..

No commits in common. "44a6a90e9fbff581c5c279f49a6e764f8d27bbdb" and "9340bfd9e36543cd097e1945f9263b3373ddc1a1" have entirely different histories.

6 changed files with 10 additions and 13 deletions

View File

@ -2,14 +2,14 @@ export enum apiConfig{
/**
*
*/
"ManagerUserLogin"="manager/user/login",//登录
"ManagerLogin"="manager/user/login",//登录
"signIn"="sign/in",//签到
"signOut"="sign/out",//签退
"managerUserVerify"="manager/user/verify",//获取用户信息
"getInfo"="manager/user/verify",//获取用户信息
/**
*
*/
"RegistrationDetail" ="medical/record/getDetailByRegisId",//详情
"RegistrationList" ="registration/getListByType",//患者列表
"DoctorDetail" ="medical/record/getDetailByRegisId",//详情
"DoctorList" ="registration/getListByType",//患者列表
}
}

View File

@ -205,7 +205,7 @@ onMounted(()=>{
})
const username=ref<any>('')
const getInfo=()=>{
post(apiConfig.managerUserVerify).then((res: any) => {
post(apiConfig.getInfo).then((res: any) => {
username.value=res.username
})
}

View File

@ -138,6 +138,7 @@ const isExpire = (item: any) => {
.item-right {
width: 100px;
.item-right-num {
font-size: 28px;
font-weight: bold;

View File

@ -82,14 +82,11 @@ const itemId = defineModel()
onMounted(() => {
initStatusList()
curItem.value = itemId
if(props.status==1){
init()
}
})
const loading = ref(true)
const init = () => {
loading.value = true
post(apiConfig.RegistrationList, {
post(apiConfig.DoctorList, {
query: {
status: props.status,
beginTime: '2024-05-07 23:59:59',
@ -114,7 +111,6 @@ const clickLi = (item: any) => {
}
watch(() => props.status, () => {
console.log('status', props.status)
init() //
})
</script>

View File

@ -35,7 +35,7 @@ const handleLogin = () => {
duration: 1000,
})
}
post(apiConfig.ManagerUserLogin, {username: username.value, password: password.value},{catch_error: true}).then((token: any) => {
post(apiConfig.ManagerLogin, {username: username.value, password: password.value},{catch_error: true}).then((token: any) => {
localStorage.setItem('token', token)
// success,error
ElMessage({

View File

@ -117,7 +117,7 @@ const getId = (item: any) => {
})
}
if (item.status == 3) {
post(apiConfig.RegistrationDetail, {
post(apiConfig.DoctorDetail, {
regisId: item.id
}).then((res: any) => {
formData.value = res.diagnosisMedicalRecord