首页 > 代码库 > 前后端交互中出现的问题(六)

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

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

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

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

 

(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
                            )

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

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