admin-home-page.html 4.97 KB
Newer Older
eddie.woo's avatar
eddie.woo committed
1 2
<div class="admin-home-page">
    <div class="center-title" ng-mouseover="open=true" ng-mouseleave="open = false">
3
        <span><h1 translate="WelcomeATMS-Longi"></h1></span>
sherlock's avatar
sherlock committed
4
        <!--<div ng-if="hasAdminPermission" class="import-title" ng-show="open"><a ng-click="showUploadModal()" href="#adminHomePage">{{'ImportBasicDataOneTime' |translate}}</a></div>-->
eddie.woo's avatar
eddie.woo committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18
    </div>
    

    <div class="modules">
        <!--  popover-trigger="mouseenter"  -->
        <div ng-repeat="x in menuData" class="first-module">
            <div ng-if="!x.subMenus || x.subMenus.length == 0" class="menu-wrapper" ng-mouseover="menuMouseOver(x)">
                <a href="{{x.navigationUrl}}">
                    <img class="img" ng-src="{{x.imageUrl}}" alt="{{x.name}}" />
                    <br />
                </a>
                <a href="{{x.navigationUrl}}"><b>{{x.name}}</b></a>
            </div>
            <!-- popover-trigger="mouseenter click" -->
19
            <div ng-if="x.subMenus && x.subMenus.length > 0" class="{{x.firstMenuClass}}" uib-popover-template="x.templateUrl" popover-is-open="x.isActive" popover-placement="{{x.popoverPlacement}}"  ng-mouseover="menuMouseOver(x)">
eddie.woo's avatar
eddie.woo committed
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
                <img class="img" ng-src="{{x.imageUrl}}" alt="{{x.name}}" />
                <br />
                <b>{{x.name}}</b>
            </div>
        </div>
    </div>
    <!--<div id="tree"></div>-->
    <script type="text/ng-template" id="myPopoverTemplate.html">
        <div class="second-menu-wrapper">
            <div class="second-menu" ng-repeat="y in x.subMenus">
                <a href="{{y.navigationUrl}}" class="circle"><i class="material-icons menu-icons" ng-bind-template="{{y.iconClassName}}"></i></a>
                <br />
                <a href="{{y.navigationUrl}}">{{y.name}}</a>
            </div>
        </div>
    </script>

    <!--import file-->
    <div class="modal fade" id="importBasicData" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" style="height:100px;width:610px;" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <div class="modal-title">{{'ImportBasicData' | translate }}</div>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal" id="ImportBasicDataForm" name="ImportBasicDataForm">

                        <div class="form-group">
                            <label for="selectDirection" class="col-sm-3 control-label">{{'SelectCustomerFileTitle' | translate}}:</label>
                            <div class="col-sm-6">
                                <input class="form-control" type="text" name="fileName" value="{{file ? file.name : '' | limitString :25}}" readonly placeholder="" required>

                                <br />
                                <button type="button" class="btn btn-in-grid inline-div" ng-click="downloadTemplate()"> <i class="fa fa-download" aria-hidden="true"></i>{{'DownloadTemplate' | translate}}</button>
                            </div>

                            <div class="col-sm-3">
                                <button type="file" ngf-select ng-model="file" accept=".xls,.xlsx" class="btn btn-not-important">{{'Browse' | translate }}</button>
                            </div>
                        </div>

                        <div class="form-group " ng-if="importMsgList.length>0">
                            <label for="selectDirection" class="col-sm-3 control-label">{{'ImportResult' | translate }}:</label>
                            <div class="col-sm-9 import-result">
                                <div ng-repeat="item in importMsgList">
                                    <div><span>{{$index + 1}}. </span><span>总共导入{{item.tableName}}条数据:{{item.dtCount}} 条,系统原有数据:{{item.oldCount}} 条,导入后数据:{{item.newCount}}条,导入成功:{{item.newCount - item.oldCount}}条,导入失败:{{item.dtCount - item.newCount + item.oldCount}} 条。</span></div>
                                </div>
                            </div>

                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" ng-disabled="!file || !file.name || triggered" ng-click="ImportData()">{{'BeginImport' | translate }}</button>
                    <!--<button type="button" class="btn btn-secondary" ng-disabled="!file || !file.name" ng-click="ImportCustomerAppend()">{{'ImportAppend' | translate }}</button>-->
                    <button type="button" class="btn btn-third" ng-disabled="triggered && !completed" data-dismiss="modal">{{'Cancel' | translate }}</button>
                    <span ng-show="triggered && !completed"><span class ="glyphicon glyphicon-refresh spinning import-progress"></span> <span>{{'ImportInProgress' | translate}}...</span></span>
                </div>
            </div>
        </div>
    </div>

</div>