Commit 20b6f4e0 authored by neo's avatar neo

[dev] add tree and blanc page for approval

parent 841c9a3e
......@@ -237,7 +237,7 @@ var frameworkModule = angular.module('app.framework', ['app.webservices', 'app.c
function ($scope, $stateParams, appTranslation) {
appTranslation.load([appTranslation.vat,appTranslation.appPart]);
}],
template: '<app-overview servicetypeid="2"></app-overview>',
template: '<app-approve servicetypeid="2"></app-overview>',
}
},
deepStateRedirect: true,
......
<div id="app-approve" class="app-overview ">
<div class="app-overview-left">
<div class="group-operate-icon" style="margin-bottom: 5px;">
<span class="operate-icon left-first" title="机构" ng-click="dimensionOrgShow('','orgName')"><i class="fa fa-sitemap fa-2x orgName" aria-hidden="true"></i></span><span class="operate-icon" title="事业部" ng-click="dimensionOrgShow('businessUnitID','businessUnitName')">
<i class="fa fa-bank fa-2x businessUnitName" aria-hidden="true"></i>
</span><span class="operate-icon" title="区域" ng-click="dimensionOrgShow('areaID','areaName')">
<i class="material-icons areaName">place</i>
</span><span class="operate-icon" title="机构层级" ng-click="dimensionOrgShow('structureID','structureName')">
<i class="fa fa-mortar-board fa-2x structureName"></i>
</span><span class="operate-icon" title="行业" ng-click="dimensionOrgShow('industryID','industryName')">
<i class="fa fa-bars fa-2x industryName" aria-hidden="true"></i>
</span>
</div>
<perfect-scrollbar class="scroller" wheel-propagation="true" wheel-speed="1" min-scrollbar-length="20">
<div ui-tree data-drag-enabled="false">
<ul ui-tree-nodes="" ng-model="orgData">
<li ng-repeat="item in orgData track by $index" ui-tree-node ng-include="'tree_view_template'">
</li>
</ul>
</div>
</perfect-scrollbar>
</div>
<div class="app-overview-right">
<div class="head-row">报表审批</div>
<div>审批列表</div>
</div>
</div>
\ No newline at end of file
frameworkModule.directive('appApprove', ['$log', 'region', 'enums',
function ($log, region, enums) {
'use strict';
$log.debug('appOverview.ctor()...');
return {
restrict: 'E',
templateUrl: '/app/framework/app-approve/app-approve.html' + '?_=' + Math.random(),
replace: true,
scope: {
servicetypeid : '='
},
controller: 'appApproveController',
link: function ($scope, $element, $attr) {
var ele = $(".datepicker");
ele.datepicker({
startDate: $scope.startDate,
endDate: $scope.endDate,
language: region,
viewMode: 1,
minViewMode: 1,
autoclose: true,//选中之后自动隐藏日期选择框
clearBtn: false,//清除按钮
todayBtn: false,//今日按钮
format: $scope.dateFormat//日期格式,详见 http://bootstrap-datepicker.readthedocs.org/en/release/options.html#format
}).on('changeDate', function (e) {
$scope.changeDate(e);
});
ele.datepicker("setDate", $scope.selectedDate);
$scope.elePicker = ele;
}
};
}
]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment