dev
This commit is contained in:
parent
3b9d87ee3e
commit
cefc091908
|
|
@ -151,7 +151,7 @@ let logout = function () {
|
||||||
localStorage.removeItem('token')
|
localStorage.removeItem('token')
|
||||||
useRouter().push("/manager/login")
|
useRouter().push("/manager/login")
|
||||||
ElMessage({
|
ElMessage({
|
||||||
message: "退出成功,即将为您跳转到登陆页面",
|
message: "退出成功,即将为您跳转到登录页面",
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1000,
|
duration: 1000,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ const handleLogin = () => {
|
||||||
post("manager/user/login", {username: username.value, password: password.value}).then((token: any) => {
|
post("manager/user/login", {username: username.value, password: password.value}).then((token: any) => {
|
||||||
localStorage.setItem('token', token)
|
localStorage.setItem('token', token)
|
||||||
ElMessage({
|
ElMessage({
|
||||||
message: "登陆成功,即将为您跳转到首页",
|
message: "登录成功,即将为您跳转到首页",
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 1000,
|
duration: 1000,
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
|
|
||||||
|
|
@ -338,6 +338,8 @@ const openLevelEdit = (vip: any) => {
|
||||||
|
|
||||||
.container-wrapper {
|
.container-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
background: none;
|
||||||
|
padding: 0 24px;
|
||||||
|
|
||||||
.left {
|
.left {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<div class="middle">
|
<div class="middle">
|
||||||
|
<div class="date">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="selectedDate"
|
v-model="selectedDate"
|
||||||
type="daterange"
|
type="daterange"
|
||||||
|
|
@ -27,8 +28,11 @@
|
||||||
start-placeholder="开始时间"
|
start-placeholder="开始时间"
|
||||||
end-placeholder="结束时间"
|
end-placeholder="结束时间"
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="list">
|
||||||
<List :patientList="patientList" @rowClick="rowClick"></List>
|
<List :patientList="patientList" @rowClick="rowClick"></List>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
<div class="page_btn_list">
|
<div class="page_btn_list">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
|
|
@ -55,7 +59,7 @@ import Mask from "@/components/common/Mask.vue";
|
||||||
import Edit from "@/components/registration/Edit.vue";
|
import Edit from "@/components/registration/Edit.vue";
|
||||||
import List from "@/components/registration/List.vue";
|
import List from "@/components/registration/List.vue";
|
||||||
import {post} from "@/utils/request";
|
import {post} from "@/utils/request";
|
||||||
import {formatDate,getToday,formatDateArray} from "@/utils/dateUtils.ts";
|
import {formatDate, getToday, formatDateArray} from "@/utils/dateUtils.ts";
|
||||||
|
|
||||||
const isShowNum = ref(0)
|
const isShowNum = ref(0)
|
||||||
const roleList = ref<any>([])
|
const roleList = ref<any>([])
|
||||||
|
|
@ -72,13 +76,18 @@ const initDoctor = () => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const patientList = ref<any>([])
|
const patientList = ref<any>([])
|
||||||
const selectedDate = ref<any>([getToday().start,getToday().end])
|
const selectedDate = ref<any>([getToday().start, getToday().end])
|
||||||
const handleDateChange = (date: any[]) => {
|
const handleDateChange = (date: any[]) => {
|
||||||
selectedDate.value = formatDateArray(date)
|
selectedDate.value = formatDateArray(date)
|
||||||
getPatientList()
|
getPatientList()
|
||||||
}
|
}
|
||||||
const getPatientList = () => {
|
const getPatientList = () => {
|
||||||
post('registration/list', {page: page.value, size: size.value,startDate:selectedDate.value[0],endDate:selectedDate.value[1]}).then((res: any) => {
|
post('registration/list', {
|
||||||
|
page: page.value,
|
||||||
|
size: size.value,
|
||||||
|
startDate: selectedDate.value[0],
|
||||||
|
endDate: selectedDate.value[1]
|
||||||
|
}).then((res: any) => {
|
||||||
patientList.value = res.list
|
patientList.value = res.list
|
||||||
})
|
})
|
||||||
isShow.value = false
|
isShow.value = false
|
||||||
|
|
@ -98,7 +107,9 @@ const rowClick = (row: any) => {
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.container-wrapper {
|
.container-wrapper {
|
||||||
padding-top: 0;
|
background: none;
|
||||||
|
height: 100%;
|
||||||
|
padding: 0 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
|
|
@ -108,6 +119,7 @@ const rowClick = (row: any) => {
|
||||||
.left {
|
.left {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 319px;
|
width: 319px;
|
||||||
|
background: #fff;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
height: 50px;
|
height: 50px;
|
||||||
|
|
@ -152,10 +164,24 @@ const rowClick = (row: any) => {
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
.middle{
|
|
||||||
|
.middle {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
background: #fff;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
.date {
|
||||||
|
margin: 30px auto 0;
|
||||||
|
height: 60px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.list {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.bottom {
|
.bottom {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
|
|
@ -163,13 +189,10 @@ const rowClick = (row: any) => {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
position: relative;
|
position: relative;
|
||||||
border-bottom: 1px solid #EEE;
|
border-top: 1px solid #EEE;
|
||||||
|
display: flex;
|
||||||
.page_btn_list {
|
justify-content: flex-end;
|
||||||
position: absolute;
|
align-items: center;
|
||||||
left: 0;
|
|
||||||
top: 10px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -202,13 +202,10 @@ let download = (ver: any, type: any) => {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
position: relative;
|
position: relative;
|
||||||
border-bottom: 1px solid #EEE;
|
border-top: 1px solid #EEE;
|
||||||
|
display: flex;
|
||||||
.page_btn_list {
|
justify-content: flex-end;
|
||||||
position: absolute;
|
align-items: center;
|
||||||
left: 0;
|
|
||||||
top: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download_btn {
|
.download_btn {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue