前后端交互中出现的问题(六)

vs中创建新模块的步骤
   1》Hyzt.ltxy.core->localization->ltxy-zh-cn.xml
   2》app.js
   3》app-start->ltxyNavigationProvider.cs

  <text name="ConvertPNR" value="转换PNR" />
    <text name="Domestic" value="国内" />
    <text name="International" value="国际" />
    <text name="CityPair" value="城市对"/>
    <text name="ComparePrice" value="航线比价"/>
    <text name="DirectFreight" value="运价直连政策"/>
    <text name="Flux" value="流量汇总与明细"/>
    <text name="TicketInquery" value="机票查询"/>
    <text name="Sabre" value="sabre指令执行"/>
    <text name="FluxCache" value="流量缓存设置"/>

    <text name="AllBatchOperation" value="全部挂起/解挂"/>
    <text name="BatchUpdateUsedState" value="批量挂起/解挂"/>
    <text name="CtripComparePrice" value="携程比价"/>
    <text name="Policy" value="政策"/>
    <text name="PolicyQunar" value="去哪儿政策"/>
    <text name="Presale" value="售前" />
    <text name="NormalOrder" value="正常订单管理" />
    <text name="RepeatPaymentSaleOrder" value="重复支付管理" />
    <text name="Aftersale" value="售后" />
    <text name="ChangesOrder" value="改期订单管理" />
    <text name="RefundOrder" value="退票订单管理" />
    <text name="FallCabinOrder" value="降舱订单管理" />

 

(function () {
    'use strict';
    //Configuration for Angular UI routing.
    appModule.config([
            '$stateProvider', '$urlRouterProvider',
            function($stateProvider, $urlRouterProvider) {
                $urlRouterProvider.otherwise('/');
                
                //国内管理
                if (abp.auth.hasPermission('Pages.Domestic')) {
                    $stateProvider.state('domestic', {
                        'abstract': true,
                        url: '/domestic',
                        template: '<div ui-view class="shuffle-animation"></div>'
                    });
                }
                //国内政策管理
                if (abp.auth.hasPermission('Pages.Domestic.Policy')) {
                    $stateProvider.state('domestic.policy', {
                        'abstract': true,
                        url: '/policy',
                        template: '<div ui-view class="shuffle-animation"></div>'
                    });
                }
                if (abp.auth.hasPermission('Pages.Domestic.Policy.Qunar')) {
                    $stateProvider.state('domestic.policy.qunar', {
                        url: '/qunar',
                        templateUrl: '~/App/Main/views/domestic/policy/qunar/index.cshtml',
                        menu: 'Domestic.Policy.Qunar'
                    });
                }

 

                          L("PolicyQunar"),
                            url: "#/domestic/policy/qunar",
                            icon: "fa fa-desktop",
                            requiredPermissionName: PermissionNames.Pages_Domestic_Policy_Qunar
                            )))
                    .AddItem(new MenuItemDefinition(
                        PageNames.App.Domestics.PreSales.PreSale,
                        L("Presale"),
                        icon: "fa fa-desktop",
                        requiredPermissionName: PermissionNames.Pages_Domestic_PreSale
                        ).AddItem(new MenuItemDefinition(
                            PageNames.App.Domestics.PreSales.Normal,
                            L("NormalOrder"),
                            url: "#/domestic/presale/normal",
                            icon: "fa fa-slack"
                            )
                        ).AddItem(new MenuItemDefinition(
                            PageNames.App.Domestics.PreSales.OffLine,
                            L("OffLineOrder"),
                            url: "#/domestic/presale/offline",
                            icon: "fa fa-file-text",
                            requiredPermissionName: PermissionNames.Pages_Domestic_PreSale_PreOffLine
                            )
                        ).AddItem(new MenuItemDefinition(
                            PageNames.App.Domestics.PreSales.RepeatPayment,
                            L("RepeatPaymentSaleOrder"),
                            url: "#/domestic/presale/repeatpayment",
                            icon: "fa fa-share-alt",
                            requiredPermissionName: PermissionNames.Pages_Domestic_PreSale_RepeatPayment
                            )
                        )
                    ).AddItem(new MenuItemDefinition(
                        PageNames.App.Domestics.AfterSales.AfterSale,
                        L("Aftersale"),
                        icon: "fa fa-phone",
                        requiredPermissionName: PermissionNames.Pages_Domestic_AftSale
                        ).AddItem(new MenuItemDefinition(
                            PageNames.App.Domestics.AfterSales.RefundOrderPool,
                            L("RefundOrderPool"),
                            url: "#/domestic/aftersale/refundorderpool",
                            icon: "fa fa-paw",
                            requiredPermissionName: PermissionNames.Pages_Domestic_AftSale_RefundPool
                            )
                        ).AddItem(new MenuItemDefinition(
                            PageNames.App.Domestics.AfterSales.Change,
                            L("ChangesOrder"),
                            url: "#/domestic/aftersale/changes",
                            icon: "fa fa-retweet",
                            requiredPermissionName: PermissionNames.Pages_Domestic_AftSale_Change
                            )
                        ).AddItem(new MenuItemDefinition(
                            PageNames.App.Domestics.AfterSales.Refund,
                            L("RefundOrder"),
                            url: "#/domestic/aftersale/refund",
                            icon: "fa fa-plane",
                            requiredPermissionName: PermissionNames.Pages_Domestic_AftSale_Refund
                            )
                        ).AddItem(new MenuItemDefinition(
                            PageNames.App.Domestics.AfterSales.FallCabin,
                            L("FallCabinOrder"),
                            url: "#/domestic/aftersale/fallcabin",
                            icon: "fa fa-level-down",
                            requiredPermissionName: PermissionNames.Pages_Domestic_AftSale_FallCabin
                            )
                        ).AddItem(new MenuItemDefinition(
                            PageNames.App.Domestics.AfterSales.FlightChange,
                            L("FlightChangeOrder"),
                            url: "#/domestic/aftersale/flightchange",
                            icon: "fa fa-history",
                            requiredPermissionName: PermissionNames.Pages_Domestic_AftSale_FlightChange
                            )

 这些就是添加一个新模块的详细步骤

posted @ 2017-04-13 12:56  代码小白一枚  阅读(268)  评论(0编辑  收藏  举报