feat(platform): expose customer service scope actions
This commit is contained in:
@@ -128,7 +128,7 @@ export default function App() {
|
||||
if (route.page === 'detail') {
|
||||
setActiveVin(route.keyword);
|
||||
}
|
||||
if (route.page === 'history' || route.page === 'history-query' || route.page === 'mileage') {
|
||||
if (route.page === 'dashboard' || route.page === 'history' || route.page === 'history-query' || route.page === 'mileage') {
|
||||
setAnalysisVin(route.keyword);
|
||||
}
|
||||
if (route.page === 'time-monitor') {
|
||||
@@ -614,8 +614,12 @@ export default function App() {
|
||||
};
|
||||
|
||||
const pages: Record<PageKey, JSX.Element> = {
|
||||
dashboard: <Dashboard onOpenVehicle={openVehicle} onOpenQuality={openQuality} onOpenMap={openMap} onOpenRealtime={openRealtime} onOpenVehicles={openVehicles} onOpenHistory={openHistoryWithFilters} onOpenMileage={openMileageWithFilters} customerTimeWindow={customerTimeWindow} />,
|
||||
'time-monitor': <Dashboard focusMode="time-window" onOpenVehicle={openVehicle} onOpenQuality={openQuality} onOpenMap={openMap} onOpenRealtime={openRealtime} onOpenVehicles={openVehicles} onOpenHistory={openHistoryWithFilters} onOpenMileage={openMileageWithFilters} customerTimeWindow={customerTimeWindow} initialTimeMonitorFilters={{
|
||||
dashboard: <Dashboard onOpenVehicle={openVehicle} onOpenQuality={openQuality} onOpenMap={openMap} onOpenRealtime={openRealtime} onOpenVehicles={openVehicles} onOpenHistory={openHistoryWithFilters} onOpenMileage={openMileageWithFilters} customerTimeWindow={customerTimeWindow} onCopyCustomerScope={copyCustomerScope} onSaveCustomerView={saveCustomerView} initialTimeMonitorFilters={{
|
||||
...(activeVin || analysisVin ? { keyword: activeVin || analysisVin } : {}),
|
||||
...(activeProtocol ? { protocol: activeProtocol } : {}),
|
||||
...customerTimeWindow
|
||||
}} />,
|
||||
'time-monitor': <Dashboard focusMode="time-window" onOpenVehicle={openVehicle} onOpenQuality={openQuality} onOpenMap={openMap} onOpenRealtime={openRealtime} onOpenVehicles={openVehicles} onOpenHistory={openHistoryWithFilters} onOpenMileage={openMileageWithFilters} customerTimeWindow={customerTimeWindow} onCopyCustomerScope={copyCustomerScope} onSaveCustomerView={saveCustomerView} initialTimeMonitorFilters={{
|
||||
...(activeVin || analysisVin ? { keyword: activeVin || analysisVin } : {}),
|
||||
...(activeProtocol ? { protocol: activeProtocol } : {}),
|
||||
...customerTimeWindow
|
||||
|
||||
Reference in New Issue
Block a user