Browse Source

中午和夜班添加时段显示

lighter 2 months ago
parent
commit
7c9e1b878f
3 changed files with 6 additions and 2 deletions
  1. 1 1
      src/App.vue
  2. 3 1
      src/views/Home.vue
  3. 2 0
      src/views/hospital-service/appointment/DoctorArrangement.vue

+ 1 - 1
src/App.vue

@@ -17,7 +17,7 @@ const loading = computed(() => {
   return store.state.loading
 })
 
-// Cookies.set('token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcGVuaWQiOiJvYW82ZjAzUm1nVk5xUXVqSEhkRGpINXFiRHpvIiwiY29tcGFueUxvZ28iOiJjc3RoeXkiLCJleHBpcmVfdGltZSI6MH0.qrB2lhaV0EszGic9wx9SyzOholw722ky0YeaXt6TtYI')
+// Cookies.set('token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcGVuaWQiOiJvYW82ZjB5NG9GN2pkNjBRaHpQek1EOUMzYkJVIiwiY29tcGFueUxvZ28iOiJjc3RoeXkiLCJleHBpcmVfdGltZSI6MH0.Ia2o3nuT62B5OmGNVFIaNH7dFNAPlNeZe6-zp3edR-8')
 
 function getScreenSize() {
   const w = window.innerWidth

+ 3 - 1
src/views/Home.vue

@@ -26,8 +26,10 @@ const executeNavigate = () => {
       router.push('/' + to)
     } else if (pathInfo.length === 2) {
       router.push('/' + pathInfo[0] + '/' + pathInfo[1])
-    } else {
+    } else if (pathInfo.length === 3)  {
       router.push('/' + pathInfo[0] + '/' + pathInfo[1] + '/' + pathInfo[2])
+    } else {
+      router.push('/' + pathInfo[0] + '/' + pathInfo[1] + '/' + pathInfo[2] + '/' + pathInfo[3])
     }
   }
 }

+ 2 - 0
src/views/hospital-service/appointment/DoctorArrangement.vue

@@ -272,6 +272,8 @@ const beforeConfirmAppointment = (item) => {
   currentAppointmentItem.value.date = data.date
   currentAppointmentItem.value.week = weekText.value
   if (item.ampm !== '上午' && item.ampm !== '下午') {
+    currentAppointmentItem.value.ampm = item.ampm
+    currentAppointmentItem.value.apValue = item.startTime + '-'+item.endTime
     toConfirmAppointment()
   } else {
     timeSections.value = []