-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
234 lines (193 loc) · 12.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html>
<!--<![endif]-->
<html>
<head>
<meta charset="utf-8">
<title>首页</title>
<meta name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<!-- BEGIN GLOBAL MANDATORY STYLES -->
<link href="http://cdn.bootcss.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/simple-line-icons/2.2.3/css/simple-line-icons.min.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/bootstrap-switch/3.3.2/css/bootstrap2/bootstrap-switch.min.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/jqueryui/1.11.4/jquery-ui.min.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/jqueryui/1.11.4/jquery-ui.theme.min.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/semantic-ui/2.1.8/semantic.min.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/bootstrap-daterangepicker/2.1.18/daterangepicker.min.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/angular.js/1.4.9/angular-csp.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/jstree/3.2.1/themes/default/style.min.css" rel="stylesheet">
<link href="http://zhangguiplus.oss-cn-shenzhen.aliyuncs.com/assets/lib/Swiper/dist/css/swiper.min.css" rel="stylesheet">
<link href="bower_components/bootstrap-table/dist/bootstrap-table.min.css" rel="stylesheet">
<link href="bower_components/bootstrap-table/dist/extensions/sticky-header/bootstrap-table-sticky-header.css" rel="stylesheet">
<link href="bower_components/bootstrap-table-fixed-columns/bootstrap-table-fixed-columns.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/ng-table/1.0.0/ng-table.min.css" rel="stylesheet" >
<link href="https://cdn.bootcss.com/jquery-treegrid/0.2.0/css/jquery.treegrid.min.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/angular-ui-select/0.20.0/select.min.css" rel="stylesheet" >
<link href="http://cdn.bootcss.com/angular-bootstrap-colorpicker/3.0.25/css/colorpicker.min.css" rel="stylesheet" >
<link href="bower_components/angular-bootstrap-grid-tree/src/treeGrid.css" rel="stylesheet" >
<link href="demo.css" rel="stylesheet">
<!-- BEGIN CORE PLUGINS -->
<script src="http://cdn.bootcss.com/jquery/2.1.4/jquery.js"></script>
<script src="http://cdn.bootcss.com/semantic-ui/2.1.8/semantic.js"></script>
<script src="http://cdn.bootcss.com/jqueryui/1.11.4/jquery-ui.min.js"></script>
<script src="http://cdn.bootcss.com/jqueryui/1.11.4/i18n/jquery-ui-i18n.min.js"></script>
<script src="http://cdn.bootcss.com/moment.js/2.10.6/moment.min.js"></script>
<script src="http://cdn.bootcss.com/moment.js/2.10.6/moment-with-locales.min.js"></script>
<script src="http://cdn.bootcss.com/moment.js/2.10.6/locale/zh-cn.js"></script>
<script src="http://cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.js"></script>
<script src="http://cdn.bootcss.com/bootstrap-switch/3.3.2/js/bootstrap-switch.min.js"></script>
<script src="http://cdn.bootcss.com/bootstrap-daterangepicker/2.1.18/daterangepicker.min.js"></script>
<script src="http://cdn.bootcss.com/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
<!-- END CORE PLUGINS -->
<!-- BEGIN CORE ANGULARJS PLUGINS -->
<script src="http://cdn.bootcss.com/angular.js/1.4.9/angular.js"></script>
<script src="http://cdn.bootcss.com/angular.js/1.4.9/angular-sanitize.min.js"></script>
<script src="http://cdn.bootcss.com/angular.js/1.4.9/angular-touch.min.js"></script>
<script src="http://cdn.bootcss.com/angular.js/1.4.9/angular-route.min.js"></script>
<script src="http://cdn.bootcss.com/angular.js/1.4.9/angular-animate.min.js"></script>
<script src="http://cdn.bootcss.com/angular.js/1.4.9/i18n/angular-locale_zh-cn.js"></script>
<script src="http://cdn.bootcss.com/angular-ui-bootstrap/1.1.2/ui-bootstrap.min.js"></script>
<script src="http://cdn.bootcss.com/angular-ui-bootstrap/1.1.2/ui-bootstrap-tpls.min.js"></script>
<script src="http://cdn.bootcss.com/angular-ui-router/0.2.18/angular-ui-router.min.js"></script>
<script src="http://cdn.bootcss.com/jstree/3.2.1/jstree.min.js"></script>
<script src="http://cdn.bootcss.com/ng-table/1.0.0/ng-table.min.js"></script>
<!-- END CORE ANGULARJS PLUGINS -->
<!--SCRIPTS-->
<script src="bower_components/select2/select2.js"></script>
<script src="bower_components/select2/select2_locale_zh-CN.js"></script>
<script src="bower_components/bootstrap-table/dist/bootstrap-table.js"></script>
<script src="bower_components/bootstrap-table/dist/extensions/export/bootstrap-table-export.js"></script>
<script src="bower_components/bootstrap-table/dist/extensions/treegrid/bootstrap-table-treegrid.js"></script>
<script src="bower_components/bootstrap-table/dist/extensions/sticky-header/bootstrap-table-sticky-header.js"></script>
<script src="bower_components/bootstrap-table/dist/extensions/angular/bootstrap-table-angular.js"></script>
<script src="bower_components/jquery-treegrid/jquery.treegrid.js"></script>
<script src="bower_components/bootstrap-table-fixed-columns/bootstrap-table-fixed-columns.js"></script>
<!--
<script src="//rawgit.com/vitalets/x-editable/master/dist/bootstrap3-editable/js/bootstrap-editable.js"></script>
-->
<script src="bower_components/bootstrap-table/dist/locale/bootstrap-table-zh-CN.js"></script>
<script src="bower_components/bootstrap3-dialog/dist/js/bootstrap-dialog.min.js"></script>
<script src="bower_components/lodash/lodash.js"></script>
<script src="bower_components/ng-bs-daterangepicker/dist/ng-bs-daterangepicker.min.js"></script>
<script src="bower_components/ng-file-upload/ng-file-upload.js"></script>
<script src="bower_components/ng-img-crop/compile/minified/ng-img-crop.js"></script>
<script src="bower_components/ng-js-tree/ngJsTree.js"></script>
<script src="bower_components/ng-table/dist/ng-table.min.js"></script>
<script src="http://cdn.bootcss.com/angular-bootstrap-colorpicker/3.0.25/js/bootstrap-colorpicker-module.min.js"></script>
<script src="bower_components/angular-drag-and-drop-lists/angular-drag-and-drop-lists.js"></script>
<script src="bower_components/angular-fancybox-plus/js/angular-fancybox-plus.js"></script>
<script src="bower_components/angular-strap/dist/angular-strap.js"></script>
<script src="bower_components/angular-strap/dist/angular-strap.tpl.js"></script>
<script src="bower_components/angular-translate/angular-translate.js"></script>
<script src="http://cdn.bootcss.com/angular-ui-select/0.20.0/select.min.js"></script>
<script src="bower_components/angular-ui-sortable/sortable.js"></script>
<script src="bower_components/angular-ui-utils/ui-utils.js"></script>
<script src="http://cdn.bootcss.com/angularjs-dropdown-multiselect/1.5.2/angularjs-dropdown-multiselect.min.js"></script>
<script src="http://cdn.bootcss.com/tv4/1.2.7/tv4.min.js"></script>
<script src="bower_components/objectpath/lib/ObjectPath.js"></script>
<script src="http://cdn.bootcss.com/angular-schema-form/0.8.13/schema-form.min.js"></script>
<script src="http://cdn.bootcss.com/angular-schema-form/0.8.13/bootstrap-decorator.min.js"></script>
<script src="http://cdn.bootcss.com/tv4/1.2.7/lang/zh-CN.min.js"></script>
<script src="bower_components/angular-schema-form-dynamic-select/ui-sortable.js"></script>
<script src="bower_components/angular-schema-form-dynamic-select/angular-schema-form-dynamic-select.js"></script>
<script src="bower_components/angular-schema-form-dynamic-select/app.js"></script>
<script src="bower_components/schema-form-datetimepicker/schema-form-date-time-picker.js"></script>
<script src="bower_components/highcharts/highcharts.js"></script>
<script src="bower_components/tableExport.jquery.plugin/tableExport.min.js"></script>
<script src="bower_components/jspdf/dist/jspdf.min.js"></script>
<script src="bower_components/jspdf-autotable/dist/jspdf.plugin.autotable.js"></script>
<script src="bower_components/html2canvas/build/html2canvas.min.js"></script>
<script src="bower_components/fancybox-plus/dist/jquery.fancybox-plus.js"></script>
<script src="bower_components/file-saver/FileSaver.js"></script>
<script src="bower_components/angular-bootstrap-grid-tree/src/tree-grid-directive.js"></script>
<!--SCRIPTS END-->
<script src="bootstrap-table.js"></script>
<script src="demo.js"></script>
</head>
<body style="padding-top:0;width:100%;height: 100%; background-color: #FFFFFF;" ng-app="mosApp" class="version-2017-001">
<script>
isAjaxToIO = true;
//路由、功能列表
var menus = [
{key: 'tree', name: '树形选择组件'},
{key: 'ckeditor', name: '富文本编辑'},
{key: 'export', name: '导出数据'},
{key: 'layout', name: '动态布局'},
{key: 'upload', name: '上传组件'},
{key: 'mq', name: '消息推送'},
{key: 'rpc', name: '远程调用'},
{key: 'sms', name: '发送短信'},
{key: 'pay', name: '在线支付'},
{key: 'search', name: '表单'},
{key: 'bsTable', name: 'Bs表格'},
//bsTreeTable
{key: 'bsTreeTable', name: 'BsTree表格'},
];
var routes = {};
mosApp.config(function ($urlRouterProvider, $stateProvider) {
$urlRouterProvider.otherwise('/');
//$stateProvider.state('404', {url: '/404', templateUrl: "/page/home/notfound"});
angular.forEach(menus, function (item, index) {
var value = {name: item.name, url: '/'+item.key+'/:name', templateUrl: "templates/"+item.key+".html"};
//注册路由
$stateProvider.state(item.key, value);
});
})
.controller('DemoCtrl', function ($rootScope, $scope, $state, $http) {
$scope.name = "示例中心";
$scope.pages = [];
angular.forEach(menus, function (item, index) {
//功能菜单
$scope.pages.push({name: item.name, url: item.key});
});
$scope.$on('$viewContentLoaded',
function(event, viewConfig){
console.log('viewContentLoaded ...');
});
$scope.$on('$viewContentLoading',
function(event){
console.log('viewContentLoading ...');
});
$scope.$on('$stateChangeError', function(event) {
console.error('state 404...');
$state.go('/');
});
$scope.$on('$stateNotFound', function(event){
console.error('$stateNotFound...'); // {inherit:false} + default options
$state.go('/');
});
})
.controller('pageCtrl', function ($scope, $http, Upload, $timeout, $uibModal, $stateParams, $sce, $parse, $interpolate, NgTableParams, $q, $compile) {
pageCtrl($scope, $http, Upload, $timeout, $uibModal, $stateParams, $sce, $parse, $interpolate, NgTableParams, $q, $compile);
});
</script>
<script src="http://cdn.bootcss.com/ckeditor/4.4.5/ckeditor.js"></script>
<script src="http://cdn.bootcss.com/ckeditor/4.4.5/lang/zh-cn.js"></script>
<script src="bower_components/angular-ckeditor/angular-ckeditor.js"></script>
<script>
mosApp.requires.push('ckeditor');
</script>
<div ng-app="mosApp" ng-controller="DemoCtrl" style="padding: 15px">
<h1>{{name}}</h1>
<div class="form-group">
<a class="btn btn-success" ng-repeat="p in pages" href="#/{{p.url}}/{{p.name}}" style="margin-right: 5px">{{p.name}}</a>
</div>
<hr/>
<div ui-view autoscroll="false" class="fade-in-up"> </div>
</div>
<div id="infoBox" class="ht-info-box aHide" style="visibility: hidden;">
<span class="ht-info-text"></span>
</div>
<div class="loading aHide" style="top: 300px; bottom: auto; position: fixed;visibility: hidden;">
<div class="ui active dimmer" style="width: 150px;height: 100px;position: relative;">
<div class="ui text loader">请稍后...</div>
</div>
<p></p>
</div>
</body>
</html>