Browse Source

中转视图添加权限

zhongxiaoyu 2 years ago
parent
commit
3ea590b6aa

+ 1 - 0
src/router/routes/routes-file-six.ts

@@ -322,6 +322,7 @@ const ActualTimeRoutes = {
       meta: {
         title: '中转',
         breadcrumb: false,
+        roles: ['view_of_international_transfer_terminal_page'],
       },
       component: KeepAliveRouterView('InternationalTransferDeparture'),
       children: [

+ 6 - 1
src/views/realTime/components/AirportView/index.vue

@@ -466,7 +466,12 @@ const permissionMap = {
     UTC: 'the_view_of_international_inbound_terminal_opens_utc_button',
     columnSet: 'view_column_setting_of_international_inbound_terminal_button',
   },
-  InternationalTransferDepartureAirport: {},
+  InternationalTransferDepartureAirport: {
+    count:
+      'number_of_pieces_displayed_in_international_transfer_terminal_view_button',
+    UTC: 'international_transfer_terminal_view_opens_utc_button',
+    columnSet: 'international_transfer_terminal_view_column_setting_button',
+  },
 }
 const getPermission = (type?: string) => {
   return [permissionMap[props.name][type]]