diff --git a/src/views/registration/index.vue b/src/views/registration/index.vue
index 6220dcd..00fab1c 100644
--- a/src/views/registration/index.vue
+++ b/src/views/registration/index.vue
@@ -10,9 +10,10 @@
-
+
+ 全部
@@ -22,9 +23,9 @@
{{ item.name }}
{{ item.sectionNames }}
-
+
@@ -102,8 +103,7 @@ const getActionText = (date: string) => {
selectedDate.getFullYear() < today.getFullYear() ||
selectedDate.getMonth() < today.getMonth() ||
selectedDate.getDate() < today.getDate()
- )
- {
+ ) {
return ''
} else if (
selectedDate.getFullYear() === today.getFullYear() &&
@@ -122,6 +122,7 @@ onMounted(() => {
selectedDate.value = [getPrevious30Days(), getToday().end]
initDoctor()
getPatientList()
+ doctorId.value = null
})
const keyword = ref('');
@@ -144,13 +145,13 @@ const handleDateChange = (date: any[]) => {
getPatientList()
}
const getPatientList = () => {
- isShowNum.value = -1
id.value = null
post('registration/list', {
page: page.value,
size: size.value,
startDate: selectedDate.value[0],
- endDate: selectedDate.value[1]
+ endDate: selectedDate.value[1],
+ doctorId: doctorId.value,
}).then((res: any) => {
patientList.value = res.list
total.value = res.total_count
@@ -170,9 +171,10 @@ const rowClick = (row: any) => {
editRef.value?.init(row.organizationDoctorId, row.id)
})
}
+const isShow = ref(-1)
const editRef = ref('')
const openDialog = (item: any, index: any) => {
- isShowNum.value = index
+ isShow.value = index
nextTick(() => {
editRef.value?.init(item.id)
})
@@ -185,7 +187,16 @@ const reset = () => {
keyword.value = ''
getPatientList()
}
-const changeRole=(item: any) => {
+const doctorId = ref(null)
+const changeRole = (item: any, index: any) => {
+ isShowNum.value = index
+ doctorId.value = item.id
+ getPatientList()
+}
+const allList = () => {
+ selectedDate.value = [getPrevious30Days(), getToday().end]
+ isShowNum.value = -1
+ doctorId.value = null
getPatientList()
}
@@ -242,6 +253,7 @@ const changeRole=(item: any) => {
padding: 0 10px;
border-radius: 5px;
align-items: center;
+ cursor: pointer;
&:hover {
background: rgba(#4D6DE4, 0.3);
@@ -283,6 +295,7 @@ const changeRole=(item: any) => {
&:hover {
background: #4D6DE4;
color: #FFF;
+ border: 1px solid #fff;
}
}
@@ -290,18 +303,14 @@ const changeRole=(item: any) => {
}
.active {
- background: #4D6DE4;
+ background: #4D6DE4 !important;
.name {
- color: #fff;
+ color: #fff !important;
}
.section_name {
- color: #fff;
- }
-
- .btn {
- color: #fff;
+ color: #fff !important;
}
}
}
@@ -364,5 +373,8 @@ const changeRole=(item: any) => {
}
}
+.default-btn {
+ margin-left: 24px;
+}
\ No newline at end of file