diff --git a/src/views/registration/index.vue b/src/views/registration/index.vue
index 072cf0f..7d2ea81 100644
--- a/src/views/registration/index.vue
+++ b/src/views/registration/index.vue
@@ -13,12 +13,23 @@
- 全部
- - 全部
+ -
+ 全部
+
+
+
+
+ {{ dateName ? dateName : '挂号' }}
+
+
-
{{ item.name }}
@@ -176,9 +187,16 @@ const isShow = ref(-1)
const editRef = ref('')
const openDialog = (item: any, index: any) => {
isShow.value = index
- nextTick(() => {
- editRef.value?.init(item.id)
- })
+ if (item) {
+ nextTick(() => {
+ editRef.value?.init(item.id)
+ })
+ } else {
+ nextTick(() => {
+ editRef.value?.init(null)
+ })
+ }
+
}
const close = () => {
id.value = null
@@ -191,8 +209,12 @@ const reset = () => {
const doctorId = ref(null)
const changeRole = (item: any, index: any) => {
isShowNum.value = index
- doctorId.value = item.id
- getPatientList()
+ if(index==-1){
+ allList()
+ }else{
+ doctorId.value = item.id
+ getPatientList()
+ }
}
const allList = () => {
selectedDate.value = [getPrevious30Days(), getToday().end]
@@ -255,6 +277,7 @@ const allList = () => {
border-radius: 5px;
align-items: center;
cursor: pointer;
+ color: #999;
&:hover {
background: rgba(#4D6DE4, 0.3);
@@ -304,6 +327,7 @@ const allList = () => {
}
.active {
+ color: #fff !important;
background: #4D6DE4 !important;
.name {