Ver código fonte

fix(schedule): move add-schedule button out of TopBar for tab page

xuyunhui 1 semana atrás
pai
commit
548f19bd48
1 arquivos alterados com 15 adições e 0 exclusões
  1. 15 0
      src/components/dispatch/ScheduleView.vue

+ 15 - 0
src/components/dispatch/ScheduleView.vue

@@ -16,6 +16,21 @@
       </template>
     </TopBar>
 
+    <!-- tab 页面专用操作栏 -->
+    <view v-if="!showTopBar" class="bg-white px-4 py-3 flex items-center justify-between border-b border-gray-100">
+      <text class="text-base font-semibold text-gray-800">排班管理</text>
+      <view class="flex items-center gap-3">
+        <view class="text-sm text-blue-500 flex items-center" @click="goToToday">
+          <text class="uni-icons uniui-calendar-filled mr-1"></text>
+          今天
+        </view>
+        <view class="text-blue-500 text-sm flex items-center" @click="addSchedule">
+          <text class="uni-icons uniui-plusempty mr-1"></text>
+          新增排班
+        </view>
+      </view>
+    </view>
+
     <!-- 月份切换 -->
     <view class="bg-white px-4 py-3 flex items-center justify-between border-b border-gray-100">
       <view class="flex items-center">