-
Notifications
You must be signed in to change notification settings - Fork 0
/
role.html
332 lines (324 loc) · 13.9 KB
/
role.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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>角色</title>
<link href="css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
<link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
<link href="css/style.min862f.css?v=4.1.0" rel="stylesheet">
<link rel="stylesheet" href="css/bootstrap-table.css">
<link rel="stylesheet" href="css/plugins/sweetalert/sweetalert2.css">
</head>
<style>
body{
margin: 10px 5px;
}
button{
margin-left: 2%;
}
</style>
<body>
<div id="toolbar">
<div class=" form-inline">
<a type="button" class="btn btn-outline btn-default" data-toggle="modal" id="add-a">
<i class="glyphicon glyphicon-plus" aria-hidden="true"></i>
</a>
<input type="text" class="form-control"placeholder="搜索" id="search-input">
<input type="button" value="搜索" class="btn btn-primary" id="searchButton">
</div>
</div>
<table id="table">
</table>
<div id="addModal" class="modal fade " aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="row">
<h3 class="m-t-none m-b">新建</h3>
<form id="addForm" role="form">
<div class="form-group">
<label>名称:</label>
<input id="name" type="text" name="name" placeholder="请输入名称" class="form-control" required>
</div>
<div class="form-group">
<label>描述:</label>
<textarea id="descript" placeholder="请输入描述" name="descript" class="form-control" required></textarea>
</div>
<div>
<button class="btn btn-sm btn-primary pull-right m-t-n-xs" type="button" onclick="add()"><strong>提交</strong></button>
<button class="btn btn-sm btn-white pull-right m-t-n-xs" type="button" data-toggle="modal" data-target="#addModal" ><strong>取消</strong></button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div id="updateModal" class="modal fade " aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="row">
<h3 class="m-t-none m-b">修改</h3>
<form id="updateForm" role="form">
<div class="form-group">
<label>名称:</label>
<input id="newName" type="text" name="name" placeholder="请输入名称" class="form-control" required>
</div>
<div class="form-group">
<label>描述:</label>
<textarea id="newDescript" placeholder="请输入描述" name="descript" class="form-control" required></textarea>
</div>
<div>
<button class="btn btn-sm btn-primary pull-right m-t-n-xs" type="button" id="edit-save-button"><strong>提交</strong></button>
<button class="btn btn-sm btn-white pull-right m-t-n-xs" type="button" data-toggle="modal" data-target="#updateModal" ><strong>取消</strong></button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!--删除模态框-->
<div id="delete-modal" class="modal fade " aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
<h4 class="modal-title">删除</h4>
</div>
<div class="modal-body">
<h3 class="text-center" id="delete-prompt"></h3>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
<button type="button" class="btn btn-primary" id="delete-confirm-button">确定</button>
</div>
</div>
</div>
</div>
<!--权限设置模态框-->
<div id="permission-setting-modal" class="modal fade " aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div class="row">
<h3 class="m-t-none m-b">权限设置</h3>
<table id="permission-table" class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th>一级菜单</th>
<th>二级菜单</th>
<th>权限</th>
</tr>
</thead>
<tbody>
<tr>
<th>
<input type="checkbox" id="modal1" value="1" name="">流程模板
</th>
<th></th>
<th>
<input type="radio" name="radio1" id="radio1" value="1>1_0" > 仅查看
<input type="radio" name="radio1" id="radio1" value="1>1_1" > 所有权限
</th>
</tr>
<tr>
<th>
<input type="checkbox" id="modal2" value="2" name="">生产管理
</th>
<th>
</th>
<th>
<input type="radio" name="radio2" id="radio2" value="2>1_0" > 仅查看
<input type="radio" name="radio2" id="radio2" value="2>1_1" > 所有权限
</th>
</tr>
<tr>
<th>
<input type="checkbox" id="modal3" value="3" name="">生产执行
</th>
<th>
</th>
<th>
<input type="radio" name="radio3" id="radio3" value="3>1_0" > 仅查看
<input type="radio" name="radio3" id="radio3" value="3>1_1" > 所有权限
</th>
</tr>
<tr>
<th>
<input type="checkbox" id="modal4" value="4" name="">人员管理
</th>
<th>
</th>
<th>
<input type="radio" name="radio4" id="radio4" value="4>1_0" > 仅查看
<input type="radio" name="radio4" id="radio4" value="4>1_1" > 所有权限
</th>
</tr>
<tr>
<th>
<input type="checkbox" id="modal5" value="5" name="">库存管理
</th>
<th></th>
<th>
<input type="radio" name="radio5" id="radio5" value="5>1_0" > 仅查看
<input type="radio" name="radio5" id="radio5" value="5>1_1" > 所有权限
</th>
</tr>
<tr>
<th>
<input type="checkbox" id="modal6" value="6" name="">规则库
</th>
<th></th>
<th>
<input type="radio" name="radio6" id="radio6" value="6>1_0" > 仅查看
<input type="radio" name="radio6" id="radio6" value="6>1_1" > 所有权限
</th>
</tr>
<tr>
<th>
<input type="checkbox" id="modal7" value="7" name="">数据字典
</th>
<th>
<input type="checkbox" id="modal7-1" value="" name="">工种
</th>
<th>
<input type="radio" name="radio7-1" id="" value="1_0" > 仅查看
<input type="radio" name="radio7-1" id="" value="1_1" > 所有权限
</th>
</tr>
<tr>
<th></th>
<th>
<input type="checkbox" id="modal7-2" value="" name="">角色
</th>
<th>
<input type="radio" name="radio7-2" id="" value="2_0" > 仅查看
<input type="radio" name="radio7-2" id="" value="2_1" > 所有权限
</th>
</tr>
<tr>
<th></th>
<th>
<input type="checkbox" id="modal7-3" value="" name="">生产要素
</th>
<th>
<input type="radio" name="radio7-3" id="" value="3_0" > 仅查看
<input type="radio" name="radio7-3" id="" value="3_1" > 所有权限
</th>
</tr>
<tr>
<th>
</th>
<th>
<input type="checkbox" id="modal7-4" value="" name="">返修问题
</th>
<th>
<input type="radio" name="radio7-4" id="" value="4_0" > 仅查看
<input type="radio" name="radio7-4" id="" value="4_1" > 所有权限
</th>
</tr>
<tr>
<th></th>
<th>
<input type="checkbox" id="modal7-5" value="" name="">工序
</th>
<th>
<input type="radio" name="radio7-5" id="" value="5_0" > 仅查看
<input type="radio" name="radio7-5" id="" value="5_1" > 所有权限
</th>
</tr>
<tr>
<th></th>
<th>
<input type="checkbox" id="modal7-6" value="" name="">设备类型
</th>
<th>
<input type="radio" name="radio7-6" id="" value="6_0" > 仅查看
<input type="radio" name="radio7-6" id="" value="6_1" > 所有权限
</th>
</tr>
<tr>
<th></th>
<th>
<input type="checkbox" id="modal7-7" value="" name="">设备
</th>
<th>
<input type="radio" name="radio7-7" id="" value="7_0" > 仅查看
<input type="radio" name="radio7-7" id="" value="7_1" > 所有权限
</th>
</tr>
<tr>
<th></th>
<th>
<input type="checkbox" id="modal7-8" value="" name="">折旧表
</th>
<th>
<input type="radio" name="radio7-8" id="" value="8_0" > 仅查看
<input type="radio" name="radio7-8" id="" value="8_1" > 所有权限
</th>
</tr>
<tr>
<th></th>
<th>
<input type="checkbox" id="modal7-9" value="" name="">特征表
</th>
<th>
<input type="radio" name="radio7-9" id="" value="9_0" > 仅查看
<input type="radio" name="radio7-9" id="" value="9_1" > 所有权限
</th>
</tr>
<tr>
<th></th>
<th>
<input type="checkbox" id="modal7-10" value="" name="">工资表
</th>
<th>
<input type="radio" name="radio7-10" id="" value="10_0" > 仅查看
<input type="radio" name="radio7-10" id="" value="10_1" > 所有权限
</th>
</tr>
<tr>
<th></th>
<th>
<input type="checkbox" id="modal7-11" value="" name="">加工环境
</th>
<th>
<input type="radio" name="radio7-11" id="" value="11_0" > 仅查看
<input type="radio" name="radio7-11" id="" value="11_1" > 所有权限
</th>
</tr>
<tr>
<th></th>
<th>
<input type="checkbox" id="modal7-12" value="" name="">工艺参数
</th>
<th>
<input type="radio" name="radio7-12" id="" value="12_0" > 仅查看
<input type="radio" name="radio7-12" id="" value="12_1" > 所有权限
</th>
</tr>
</tbody>
</table>
<button class="btn btn-sm btn-primary pull-right m-t-n-xs" type="button" id="permission-setting-button"><strong>提交</strong></button>
<button class="btn btn-sm btn-white pull-right m-t-n-xs" type="button" data-toggle="modal" data-target="#permission-setting-modal" ><strong>取消</strong></button>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>
<script src="js/bootstrap-table.js"></script>
<script src="js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
<script src="js/plugins/sweetalert/sweetalert2.js"></script>
<script src="js/plugins/validate/jquery.validate.min.js"></script>
<script src="js/plugins/validate/messages_zh.min.js"></script>
<script src="js/mes/public/publicURL.js"></script>
<script src="js/js/dataDict/role.js"></script>
</body>
</html>