feat: add other dispatch calendar tab on web and h5.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
ebe346110a
commit
09c10fc9d7
3 files changed
+8
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import request, { pickBxData } from '@/utils/http/bx'
|
||||
|
||||
export type DispatchCalendarKind = 'acid' | 'alkali'
|
||||
export type DispatchCalendarKind = 'acid' | 'alkali' | 'other'
|
||||
|
||||
export interface DispatchCalendarBody {
|
||||
dispatchDate: string
|
||||
|
||||
@@ -6,12 +6,14 @@
|
||||
<van-tabs v-model:active="active" shrink color="#0a9f6d" title-active-color="#087f57">
|
||||
<van-tab title="酸派车日历" name="acid" />
|
||||
<van-tab title="碱派车日历" name="alkali" />
|
||||
<van-tab title="其他日历" name="other" />
|
||||
<van-tab title="实际派车信息" name="actual" />
|
||||
</van-tabs>
|
||||
</div>
|
||||
<template v-if="ready">
|
||||
<ManualCalendar v-if="active === 'acid'" calendar-kind="acid" title="酸派车日历" />
|
||||
<ManualCalendar v-else-if="active === 'alkali'" calendar-kind="alkali" title="碱派车日历" />
|
||||
<ManualCalendar v-else-if="active === 'other'" calendar-kind="other" title="其他日历" />
|
||||
<ActualCalendar v-else />
|
||||
</template>
|
||||
</div>
|
||||
|
||||
@@ -2,15 +2,19 @@
|
||||
<template>
|
||||
<div
|
||||
class="dispatch-calendar-tabs"
|
||||
:class="{ 'manual-calendar-theme': active === 'acid' || active === 'alkali' }"
|
||||
:class="{
|
||||
'manual-calendar-theme': active === 'acid' || active === 'alkali' || active === 'other'
|
||||
}"
|
||||
>
|
||||
<el-tabs v-model="active">
|
||||
<el-tab-pane label="酸派车日历" name="acid" />
|
||||
<el-tab-pane label="碱派车日历" name="alkali" />
|
||||
<el-tab-pane label="其他日历" name="other" />
|
||||
<el-tab-pane label="实际派车信息" name="actual" />
|
||||
</el-tabs>
|
||||
<ManualCalendar v-if="active === 'acid'" calendar-kind="acid" title="酸派车日历" />
|
||||
<ManualCalendar v-else-if="active === 'alkali'" calendar-kind="alkali" title="碱派车日历" />
|
||||
<ManualCalendar v-else-if="active === 'other'" calendar-kind="other" title="其他日历" />
|
||||
<ActualCalendar v-else />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in new issue
Block a user