fangmingyue 2 years ago
parent
commit
873d2abb35
58 changed files with 2381 additions and 1569 deletions
  1. 2
    0
      .gitignore
  2. 3
    3
      application.yml
  3. BIN
      db/db.mv.db
  4. 124
    1
      resources/static/css/common.css
  5. BIN
      resources/static/images/dashboard/left.png
  6. BIN
      resources/static/images/dashboard/menu_bg.png
  7. BIN
      resources/static/images/dashboard/menu_bg_active.png
  8. BIN
      resources/static/images/dashboard/right.png
  9. BIN
      resources/static/images/dashboard/军供任务明细.png
  10. BIN
      resources/static/images/dashboard/军供任务明细click.png
  11. BIN
      resources/static/images/dashboard/军供供应设备.png
  12. BIN
      resources/static/images/dashboard/军供供应设备click.png
  13. BIN
      resources/static/images/dashboard/军供保障能力.png
  14. BIN
      resources/static/images/dashboard/军供保障能力click.png
  15. BIN
      resources/static/images/dashboard/军供站简介.png
  16. BIN
      resources/static/images/dashboard/军供站简介click.png
  17. BIN
      resources/static/images/dashboard/安防管理.png
  18. BIN
      resources/static/images/dashboard/安防管理click.png
  19. BIN
      resources/static/images/dashboard/年度任务汇总.png
  20. BIN
      resources/static/images/dashboard/年度任务汇总click.png
  21. BIN
      resources/static/images/dashboard/社会保障机构.png
  22. BIN
      resources/static/images/dashboard/社会保障机构click.png
  23. BIN
      resources/static/images/dashboard/社会保障预案.png
  24. BIN
      resources/static/images/dashboard/社会保障预案click.png
  25. BIN
      resources/static/images/logo.png
  26. BIN
      resources/static/images/logo.png.bak
  27. 5
    1
      resources/static/js/equipment/list.js
  28. 21
    11
      resources/static/js/guaranteeOrg/list.js
  29. 5
    1
      resources/static/js/guaranteeOrgPerson/list.js
  30. 5
    1
      resources/static/js/guaranteeOrgRecord/list.js
  31. 5
    1
      resources/static/js/guaranteePlan/list.js
  32. 6
    2
      resources/static/js/task/list.js
  33. 156
    1
      resources/static/less/ext-page.less
  34. 1
    1
      resources/static/less/nav-menu.less
  35. 4
    5
      resources/templates/common/common_header.html
  36. 28
    30
      resources/templates/common/common_list.html
  37. 28
    10
      resources/templates/common/common_menu.html
  38. 107
    86
      resources/templates/dataManager/add.html
  39. 98
    75
      resources/templates/dataManager/details.html
  40. 109
    88
      resources/templates/dataManager/update.html
  41. 19
    11
      resources/templates/index.html
  42. 39
    33
      resources/templates/installations/add.html
  43. 38
    23
      resources/templates/installations/details.html
  44. 45
    37
      resources/templates/installations/update.html
  45. 1
    1
      resources/templates/login.html
  46. 14
    358
      resources/templates/main.html
  47. 204
    0
      resources/templates/main/dashboard.html
  48. 355
    0
      resources/templates/main/data.html
  49. 48
    37
      resources/templates/office/add.html
  50. 41
    26
      resources/templates/office/details.html
  51. 53
    38
      resources/templates/office/update.html
  52. 126
    103
      resources/templates/station/add.html
  53. 89
    59
      resources/templates/station/details.html
  54. 129
    103
      resources/templates/station/update.html
  55. 179
    169
      resources/templates/worker/add.html
  56. 103
    78
      resources/templates/worker/details.html
  57. 191
    176
      resources/templates/worker/update.html
  58. BIN
      uploadFile/inside/32/3206/320685/32068501/20220816185633_ead32dd1e461452daceb4d9999dfd054.jpg

+ 2
- 0
.gitignore View File

@@ -0,0 +1,2 @@
1
+db/
2
+application.yml

+ 3
- 3
application.yml View File

@@ -1,9 +1,9 @@
1 1
 spring:
2 2
   resources:
3
-    static-locations: file:///E:/work/jungongzhang/jgz/resources/static/
3
+    static-locations: file:///E:/work/newJgzWeb/resources/static/
4 4
   datasource:
5 5
     driver-class-name: org.h2.Driver
6
-    url: jdbc:h2:E:/work/jungongzhang/jgz/db/db
6
+    url: jdbc:h2:E:/work/newJgzWeb/db/db
7 7
     username: 
8 8
     password: 
9 9
     hikari:
@@ -13,7 +13,7 @@ spring:
13 13
       minimum-idle: 2
14 14
       connection-timeout: 30000
15 15
   thymeleaf:
16
-    prefix: file:///E:/work/jungongzhang/jgz/resources/templates/
16
+    prefix: file:///E:/work/newJgzWeb/resources/templates/
17 17
     cache: false
18 18
   jpa:
19 19
     generate-ddl: false

BIN
db/db.mv.db View File


+ 124
- 1
resources/static/css/common.css View File

@@ -26,7 +26,7 @@
26 26
 .nav-menu {
27 27
   display: flex;
28 28
   justify-content: center;
29
-  max-width: 600px;
29
+  max-width: 800px;
30 30
   height: 100%;
31 31
   margin: 0 auto;
32 32
 }
@@ -330,3 +330,126 @@
330 330
 .table tbody tr:hover {
331 331
   background: rgba(66, 118, 245, 0.2);
332 332
 }
333
+.dashboard-page {
334
+  height: 100%;
335
+  background-color: #081A48;
336
+}
337
+.dashboard-page > div {
338
+  height: 50%;
339
+  overflow: hidden;
340
+}
341
+.dashboard-page .dash-carousel {
342
+  max-width: 1200px;
343
+  margin: 0 auto;
344
+  height: 100%;
345
+}
346
+.dashboard-page .dash-carousel .ratio-static {
347
+  height: 0;
348
+  padding-bottom: 32%;
349
+  position: relative;
350
+  overflow: hidden;
351
+}
352
+.dashboard-page .dash-carousel .ratio-static > div {
353
+  position: absolute;
354
+  top: 0;
355
+  left: 0;
356
+  width: 100%;
357
+  height: 100%;
358
+  background: transparent;
359
+}
360
+.dashboard-page .dash-carousel .ratio-static .left {
361
+  width: auto;
362
+  background: transparent;
363
+  box-shadow: none;
364
+}
365
+.dashboard-page .act-list .row {
366
+  height: calc(50% - 64px);
367
+  padding: 0 80px;
368
+}
369
+.dashboard-page .act-list .row + .row {
370
+  margin-top: 64px;
371
+}
372
+.dashboard-page .act-list div[class^="col"] {
373
+  min-width: 280px;
374
+  width: calc(25% - 48px);
375
+  height: 100%;
376
+  position: relative;
377
+}
378
+.dashboard-page .act-list div[class^="col"] + div {
379
+  margin-left: 64px;
380
+}
381
+.dashboard-page .act-list div[class^="col"] .act-body {
382
+  z-index: 1;
383
+  width: 100%;
384
+  height: 100%;
385
+  display: flex;
386
+  flex-direction: column;
387
+  justify-content: center;
388
+  align-items: center;
389
+}
390
+.dashboard-page .act-list div[class^="col"] .act-body .act-icon {
391
+  position: relative;
392
+  width: 64px;
393
+  height: 64px;
394
+  min-height: 64px;
395
+  flex: 0;
396
+}
397
+.dashboard-page .act-list div[class^="col"] .act-body .act-icon img {
398
+  position: absolute;
399
+  left: calc(50% - 32px);
400
+  top: 0;
401
+  display: block;
402
+  width: 100%;
403
+  height: 100%;
404
+  object-fit: contain;
405
+}
406
+.dashboard-page .act-list div[class^="col"] .act-body .act-icon img:nth-child(2) {
407
+  display: none;
408
+}
409
+.dashboard-page .act-list div[class^="col"] .act-body .act-content {
410
+  flex: 0;
411
+  text-align: center;
412
+}
413
+.dashboard-page .act-list div[class^="col"] .act-body .act-content span {
414
+  display: inline-block;
415
+  padding: 0 1em;
416
+  font-size: 24px;
417
+  font-weight: 500;
418
+  color: transparent;
419
+  background: linear-gradient(0deg, #2362E4 0%, #00D5FB 100%);
420
+  vertical-align: middle;
421
+  background-clip: text;
422
+  -webkit-background-clip: text;
423
+}
424
+.dashboard-page .act-list div[class^="col"] .act-bg {
425
+  position: absolute;
426
+  width: 100%;
427
+  height: 100%;
428
+  z-index: 0;
429
+  left: 0;
430
+  top: 0;
431
+}
432
+.dashboard-page .act-list div[class^="col"] .act-bg img {
433
+  display: block;
434
+  width: 100%;
435
+  height: 100%;
436
+  object-fit: contain;
437
+}
438
+.dashboard-page .act-list div[class^="col"] .act-bg img:nth-child(2) {
439
+  display: none;
440
+}
441
+.dashboard-page .act-list div[class^="col"]:hover {
442
+  cursor: pointer;
443
+}
444
+.dashboard-page .act-list div[class^="col"]:hover .act-bg img:nth-child(1),
445
+.dashboard-page .act-list div[class^="col"]:hover .act-icon img:nth-child(1) {
446
+  display: none;
447
+}
448
+.dashboard-page .act-list div[class^="col"]:hover .act-bg img:nth-child(2),
449
+.dashboard-page .act-list div[class^="col"]:hover .act-icon img:nth-child(2) {
450
+  display: block;
451
+}
452
+.dashboard-page .act-list div[class^="col"]:hover .act-content span {
453
+  color: #fff;
454
+  background: none;
455
+}

BIN
resources/static/images/dashboard/left.png View File


BIN
resources/static/images/dashboard/menu_bg.png View File


BIN
resources/static/images/dashboard/menu_bg_active.png View File


BIN
resources/static/images/dashboard/right.png View File


BIN
resources/static/images/dashboard/军供任务明细.png View File


BIN
resources/static/images/dashboard/军供任务明细click.png View File


BIN
resources/static/images/dashboard/军供供应设备.png View File


BIN
resources/static/images/dashboard/军供供应设备click.png View File


BIN
resources/static/images/dashboard/军供保障能力.png View File


BIN
resources/static/images/dashboard/军供保障能力click.png View File


BIN
resources/static/images/dashboard/军供站简介.png View File


BIN
resources/static/images/dashboard/军供站简介click.png View File


BIN
resources/static/images/dashboard/安防管理.png View File


BIN
resources/static/images/dashboard/安防管理click.png View File


BIN
resources/static/images/dashboard/年度任务汇总.png View File


BIN
resources/static/images/dashboard/年度任务汇总click.png View File


BIN
resources/static/images/dashboard/社会保障机构.png View File


BIN
resources/static/images/dashboard/社会保障机构click.png View File


BIN
resources/static/images/dashboard/社会保障预案.png View File


BIN
resources/static/images/dashboard/社会保障预案click.png View File


BIN
resources/static/images/logo.png View File


BIN
resources/static/images/logo.png.bak View File


+ 5
- 1
resources/static/js/equipment/list.js View File

@@ -103,7 +103,11 @@ function datagrid(){
103 103
 						title : "操作",
104 104
 						width : 280,
105 105
 						formatter : function(data, row, index) {
106
-							var rtnData = '<a href="'+ urlPre + getClassName() +'/toDetails?id='+row.id+'" class="btn btn-mini btn-link" title="查看">查看</a>';							
106
+							var rtnData = [
107
+								'<a href="'+ urlPre + getClassName() +'/toDetails?id='+row.id+'" class="btn btn-mini btn-link" title="查看">查看</a>',
108
+								'<a href="'+ urlPre + getClassName() +'/toUpdate?id='+row.id+'" class="btn btn-mini btn-link" title="编辑">编辑</a>',
109
+								'<a onclick="deleteObj('+index+', \'api/equipment\');" class="btn btn-mini btn-link" title="删除">删除</a>',
110
+							].join('');							
107 111
 							return rtnData;
108 112
 						}
109 113
 					} ]

+ 21
- 11
resources/static/js/guaranteeOrg/list.js View File

@@ -39,18 +39,24 @@ function toUpdate() {
39 39
 /**
40 40
  * 删除的公用方法
41 41
  */
42
-function deleteObj() {
43
-	var boxes = $("input[name='dataId']:checked");
44
-	if (boxes.length == 0) {
45
-		bootbox.alert('请选择要删除的数据');
46
-		return false;
47
-	}
42
+function deleteObj(inx) {
48 43
 	var className = getClassName();
49 44
 	var datas = JSON.parse($("#datas").val());
50 45
 	let idArr = [];
51
-	for(let t=0;t<boxes.length;t++){
52
-		idArr[idArr.length] = datas[boxes[t].value].OLD_ID
46
+
47
+	if (inx === undefined) {
48
+		var boxes = $("input[name='dataId']:checked");
49
+		if (boxes.length == 0) {
50
+			bootbox.alert('请选择要删除的数据');
51
+			return false;
52
+		}
53
+		for(let t=0;t<boxes.length;t++){
54
+			idArr[idArr.length] = datas[boxes[t].value].OLD_ID
55
+		}
56
+	} else {
57
+		idArr.push(datas[inx].OLD_ID)
53 58
 	}
59
+
54 60
 	var delUrl = urlPre + className + "/" + idArr.toString();
55 61
 	top.bootbox.confirm("确认删除当前选中的记录吗?", function(result) {
56 62
 		if (result) {
@@ -126,9 +132,13 @@ function datagrid(){
126 132
 						title : "操作",
127 133
 						width : 280,
128 134
 						formatter : function(data, row, index) {
129
-							var rtnData = '<a href="'+ urlPre + getClassName() +'/toDetails?id='+row.ID+'" class="btn btn-mini btn-link" title="查看">查看</a>';	
130
-							rtnData += '<a href="'+ urlPre  +'api/guaranteeOrgRecord/toList?org_id='+row.OLD_ID+'" class="btn btn-mini btn-link" title="审核记录">审核</a>';	
131
-							rtnData += '<a href="'+ urlPre  +'api/guaranteeOrgPerson/toList?org_id='+row.OLD_ID+'" class="btn btn-mini btn-link" title="人员管理">人员</a>';	
135
+							var rtnData = [
136
+								'<a href="'+ urlPre + getClassName() +'/toDetails?id='+row.ID+'" class="btn btn-mini btn-link" title="查看">查看</a>',
137
+								'<a href="'+ urlPre + getClassName() +'/toUpdate?id='+row.ID+'" class="btn btn-mini btn-link" title="编辑">编辑</a>',
138
+								'<a onclick="deleteObj('+index+');" class="btn btn-mini btn-link" title="删除">删除</a>',
139
+								'<a href="'+ urlPre  +'api/guaranteeOrgRecord/toList?org_id='+row.OLD_ID+'" class="btn btn-mini btn-link" title="审核记录">审核</a>',
140
+								'<a href="'+ urlPre  +'api/guaranteeOrgPerson/toList?org_id='+row.OLD_ID+'" class="btn btn-mini btn-link" title="人员管理">人员</a>',
141
+							].join('');
132 142
 													return rtnData;
133 143
 						}
134 144
 					} ]

+ 5
- 1
resources/static/js/guaranteeOrgPerson/list.js View File

@@ -54,7 +54,11 @@ function datagrid(){
54 54
 						title : "操作",
55 55
 						width : 280,
56 56
 						formatter : function(data, row, index) {
57
-							var rtnData = '<a href="'+ urlPre + getClassName() +'/toDetails?id='+row.id+'" class="btn btn-mini btn-link" title="查看">查看</a>';							
57
+							var rtnData = [
58
+								'<a href="'+ urlPre + getClassName() +'/toDetails?id='+row.id+'" class="btn btn-mini btn-link" title="查看">查看</a>',
59
+								'<a href="'+ urlPre + getClassName() +'/toUpdate?id='+row.id+'" class="btn btn-mini btn-link" title="编辑">编辑</a>',
60
+								'<a onclick="deleteObj('+index+', \'api/guaranteeOrgPerson\');" class="btn btn-mini btn-link" title="删除">删除</a>',
61
+							].join('');							
58 62
 							return rtnData;
59 63
 						}
60 64
 					} ]

+ 5
- 1
resources/static/js/guaranteeOrgRecord/list.js View File

@@ -62,7 +62,11 @@ function datagrid(){
62 62
 						title : "操作",
63 63
 						width : 280,
64 64
 						formatter : function(data, row, index) {
65
-							var rtnData = '<a href="'+ urlPre + getClassName() +'/toDetails?id='+row.id+'" class="btn btn-mini btn-link" title="查看">查看</a>';							
65
+							var rtnData = [
66
+								'<a href="'+ urlPre + getClassName() +'/toDetails?id='+row.id+'" class="btn btn-mini btn-link" title="查看">查看</a>',
67
+								'<a href="'+ urlPre + getClassName() +'/toUpdate?id='+row.id+'" class="btn btn-mini btn-link" title="编辑">编辑</a>',
68
+								'<a onclick="deleteObj('+index+', \'api/guaranteeOrgRecord\');" class="btn btn-mini btn-link" title="删除">删除</a>',
69
+							].join('');
66 70
 							return rtnData;
67 71
 						}
68 72
 					} ]

+ 5
- 1
resources/static/js/guaranteePlan/list.js View File

@@ -38,7 +38,11 @@ function datagrid(){
38 38
 						title : "操作",
39 39
 						width : 280,
40 40
 						formatter : function(data, row, index) {
41
-							var rtnData = '<a href="'+ urlPre + getClassName() +'/toDetails?id='+row.id+'" class="btn btn-mini btn-link" title="查看">查看</a>';							
41
+							var rtnData = [
42
+								'<a href="'+ urlPre + getClassName() +'/toDetails?id='+row.id+'" class="btn btn-mini btn-link" title="查看">查看</a>',
43
+								'<a href="'+ urlPre + getClassName() +'/toUpdate?id='+row.id+'" class="btn btn-mini btn-link" title="编辑">编辑</a>',
44
+								'<a onclick="deleteObj('+index+', \'api/guaranteePlan\');" class="btn btn-mini btn-link" title="删除">删除</a>',
45
+							].join('');
42 46
 							return rtnData;
43 47
 						}
44 48
 					} ]

+ 6
- 2
resources/static/js/task/list.js View File

@@ -74,8 +74,12 @@ function datagrid(){
74 74
 						title : "操作",
75 75
 						width : 280,
76 76
 						formatter : function(data, row, index) {
77
-							var rtnData = '<a href="'+ urlPre + getClassName() +'/toDetails?id='+row.id+'" class="btn btn-mini btn-link" title="查看">查看</a>';							
78
-							rtnData += '<a href="javascript:toList(\''+ row.config_evaluate_item+'\',\''+ row.oldId+'\')" class="btn btn-mini btn-link" title="评价">评价</a>';						
77
+							var rtnData = [
78
+								'<a href="'+ urlPre + getClassName() +'/toDetails?id='+row.id+'" class="btn btn-mini btn-link" title="查看">查看</a>',
79
+								'<a href="'+ urlPre + getClassName() +'/toUpdate?id='+row.id+'" class="btn btn-mini btn-link" title="编辑">编辑</a>',
80
+								'<a onclick="deleteObj('+index+', \'api/task\');" class="btn btn-mini btn-link" title="删除">删除</a>',
81
+								'<a href="javascript:toList(\''+ row.config_evaluate_item+'\',\''+ row.oldId+'\')" class="btn btn-mini btn-link" title="评价">评价</a>'
82
+							].join('');						
79 83
 							return rtnData;
80 84
 						}
81 85
 					} ]

+ 156
- 1
resources/static/less/ext-page.less View File

@@ -107,4 +107,159 @@
107 107
       }
108 108
     }
109 109
   }
110
-}
110
+}
111
+
112
+.dashboard-page {
113
+  height: 100%;
114
+  background-color: #081A48;
115
+
116
+  & > div {
117
+    height: 50%;
118
+    overflow: hidden;
119
+  }
120
+
121
+  .dash-carousel {
122
+    max-width: 1200px;
123
+    margin: 0 auto;
124
+    height: 100%;
125
+
126
+    .ratio-static {
127
+      height: 0;
128
+      padding-bottom: 32%; // 大约 10:3
129
+      position: relative;
130
+      overflow: hidden;
131
+
132
+      & > div {
133
+        position: absolute;
134
+        top: 0;
135
+        left: 0;
136
+        width: 100%;
137
+        height: 100%;
138
+        background: transparent;
139
+      }
140
+
141
+      .left {
142
+        width: auto;
143
+        background: transparent;
144
+        box-shadow: none;
145
+      }
146
+    }
147
+
148
+  }
149
+  
150
+
151
+  .act-list {
152
+    .row {
153
+      height: calc(50% - 64px);
154
+      padding: 0 80px;
155
+
156
+      & + .row {
157
+        margin-top: 64px;
158
+      }
159
+    }
160
+
161
+    div[class^="col"] {
162
+      min-width: 280px;
163
+      // 每行 4 个, 间距 64
164
+      width: calc(25% - 48px);
165
+      height: 100%;
166
+      position: relative;
167
+      
168
+      & + div {
169
+        margin-left: 64px;
170
+      }
171
+
172
+      .act-body {
173
+        z-index: 1;
174
+        width: 100%;
175
+        height: 100%;
176
+        display: flex;
177
+        flex-direction: column;
178
+        justify-content: center;
179
+        align-items: center;
180
+
181
+        .act-icon {
182
+          position: relative;
183
+          width: 64px;
184
+          height: 64px;
185
+          min-height: 64px;
186
+          flex: 0;
187
+
188
+          img {
189
+            position: absolute;
190
+            left: calc(50% - 32px);
191
+            top: 0;
192
+            display: block;
193
+            width: 100%;
194
+            height: 100%;
195
+            object-fit: contain;
196
+  
197
+            &:nth-child(2) {
198
+              display: none;
199
+            }
200
+          }
201
+        }
202
+
203
+        .act-content {
204
+          flex: 0;
205
+          text-align: center;
206
+
207
+          span {
208
+            display: inline-block;
209
+            padding: 0 1em;
210
+            font-size: 24px;
211
+            font-weight: 500;
212
+            color: transparent;
213
+            background: linear-gradient(0deg, #2362E4 0%, #00D5FB 100%);
214
+            vertical-align: middle;
215
+            background-clip: text;
216
+            -webkit-background-clip: text;
217
+          }
218
+        }
219
+
220
+      }
221
+
222
+      .act-bg {
223
+        position: absolute;
224
+        width: 100%;
225
+        height: 100%;
226
+        z-index: 0;
227
+        left: 0;
228
+        top: 0;
229
+
230
+        img {
231
+          display: block;
232
+          width: 100%;
233
+          height: 100%;
234
+          object-fit: contain;
235
+
236
+          &:nth-child(2) {
237
+            display: none;
238
+          }
239
+        }
240
+      }
241
+
242
+      &:hover {
243
+        cursor: pointer;
244
+
245
+        .act-bg, .act-icon {
246
+          img {
247
+            &:nth-child(1) {
248
+              display: none;
249
+            }
250
+            &:nth-child(2) {
251
+              display: block;
252
+            }
253
+          }
254
+        }
255
+
256
+        .act-content {
257
+          span {
258
+            color: #fff;
259
+            background: none;
260
+          }
261
+        }
262
+      }
263
+    }
264
+  }
265
+}

+ 1
- 1
resources/static/less/nav-menu.less View File

@@ -1,7 +1,7 @@
1 1
 .nav-menu {
2 2
   display: flex;
3 3
   justify-content: center;
4
-  max-width: 600px;
4
+  max-width: 800px;
5 5
   height: 100%;
6 6
   margin: 0 auto;
7 7
 

+ 4
- 5
resources/templates/common/common_header.html View File

@@ -1,7 +1,7 @@
1 1
 <!DOCTYPE html>
2 2
 <html lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
3 3
 <head th:fragment="common_header(title,link,style,script,methodName)">
4
-    <title th:replace="${title}">全国军供保障信息管理系统</title>
4
+    <title th:replace="${title}">海安军供保障信息管理系统</title>
5 5
     <meta name="application-name" content="HTML5test"/>
6 6
 	<meta charset="utf-8"/>
7 7
 	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
@@ -19,18 +19,17 @@
19 19
 	<script th:src="@{/js/jquery-validation/localization/messages_zh.min.js}"  th:if="${methodName=='edit'}"></script>
20 20
     <script th:src="@{/js/zui/dist/lib/bootbox/bootbox.js}"></script>
21 21
     <link th:href="@{/js/zui/dist/lib/bootbox/bootbox.css}" rel="stylesheet" type="text/css"/>
22
+		<link th:href="@{/css/common.css}" rel="stylesheet" type="text/css"/>
22 23
     <script th:src="@{/js/common.js}"></script>
23 24
     <script type="text/javascript" th:inline="javascript">
24 25
         /*<![CDATA[*/
25 26
 	    var  ctxPath = /*[[@{/}]]*/ '';
26
-	    /*]]>*/	 
27
-	  
28
-	</script> 
27
+	    /*]]>*/
28
+	</script>
29 29
     <th:block th:replace="${link}" />
30 30
     <!--/* Per-page placeholder for additional styles */-->
31 31
     <th:block th:replace="${style}" />  
32 32
     <!--/* Per-page placeholder for additional script */-->
33 33
     
34 34
  	<th:block th:replace="${script}" />	
35
-	<link th:href="@{/css/common.css}" rel="stylesheet" type="text/css"/>
36 35
 </head>

+ 28
- 30
resources/templates/common/common_list.html View File

@@ -1,6 +1,6 @@
1 1
 <!DOCTYPE html>
2
-<html lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml"
3
-	xmlns:th="http://www.thymeleaf.org">
2
+<html lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
3
+
4 4
 <body th:fragment="common_list(title,div,haveAuth)" class="ext-page">
5 5
 	<input id="resCode" type="hidden" th:value="${resCode}" />
6 6
 	<th:block th:replace="${div}" />
@@ -20,27 +20,30 @@
20 20
 					onclick="queryDatas()" id="ordinary"><i class="icon icon-search"></i>搜索</a>
21 21
 			</span>
22 22
 			</span>-->
23
-			 <span id="schSpan" class="input-group">
23
+			<span id="schSpan" class="input-group">
24 24
 				<span class="input-group-addon" id="selSapn" style="display:none"></span>
25
-				<select data-placeholder="请选择查询项..." class="chosen-select form-control" tabindex="2" multiple=""  id="schSel" style="display:none">
26
-				 
25
+				<select data-placeholder="请选择查询项..." class="chosen-select form-control" tabindex="2" multiple="" id="schSel"
26
+					style="display:none">
27
+
27 28
 				</select>
28
-				 <span class="input-group-addon" id="schCol_span"></span>
29
-					 <input type="text" name="schVal" id="schVal" value="" class="form-control ">
30
-					 <input type="hidden" id="searchCols" />
31
-				 <span class="input-group-btn"><a class="input-group-btn btn btn-primary" onclick="queryDatas()" id="ordinary">搜索</a></span>
32
-			</span> 
29
+				<span class="input-group-addon" id="schCol_span"></span>
30
+				<input type="text" name="schVal" id="schVal" value="" class="form-control ">
31
+				<input type="hidden" id="searchCols" />
32
+				<span class="input-group-btn"><a class="input-group-btn btn btn-primary" onclick="queryDatas()"
33
+						id="ordinary">搜索</a></span>
34
+			</span>
33 35
 		</div>
34 36
 	</div>
35 37
 	<div class="panel">
36 38
 		<div class="panel-body">
37 39
 			<div class="editBar" id="schBar">
38
-				<span class="btn-group"  id="btnSpan" th:if="${haveAuth != null && haveAuth == '1'}">
39
-		        <a class="btn btn-primary" onclick="toAdd();" id="addBtn"><i class="icon icon-plus"></i>添加</a>
40
-						<!-- <a class="btn btn-info" onclick="toUpdate();" id="updateBtn"><i class="icon icon-edit"></i> 编辑</a> -->
41
-						<!-- <a class="btn btn-danger" onclick="deleteObj();" id="deleteBtn"><i class="icon icon-trash"></i>删除</a> -->
40
+				<span class="btn-group" id="btnSpan">
41
+					<!-- th:if="${haveAuth != null && haveAuth == '1'}" -->
42
+					<a class="btn btn-primary" onclick="toAdd();" id="addBtn"><i class="icon icon-plus"></i>添加</a>
43
+					<a class="btn btn-info" onclick="toUpdate();" id="updateBtn"><i class="icon icon-edit"></i> 编辑</a>
44
+					<a class="btn btn-danger" onclick="deleteObj();" id="deleteBtn"><i class="icon icon-trash"></i>删除</a>
42 45
 				</span>
43
-				
46
+
44 47
 			</div>
45 48
 			<div class="conCoverTable">
46 49
 				<input id="datas" type="hidden" value="">
@@ -49,7 +52,7 @@
49 52
 					<tbody id="tbTbody"></tbody>
50 53
 				</table>
51 54
 			</div>
52
-		
55
+
53 56
 			<div class="mainPager" id="pageDiv">
54 57
 				<div class="pull-right">
55 58
 					<ul class="pager">
@@ -58,22 +61,17 @@
58 61
 						<li id="nextLi"><a href="javascript:jumpPage('next')">下一页</a></li>
59 62
 						<li id="lastLi"><a href="javascript:jumpPage('last')">末页</a></li>
60 63
 					</ul>
61
-					<span class="form-condensed floatL"> <input id="currentPage"
62
-						type="hidden" value=""> <input id="totalPage" type="hidden"
63
-						value=""> <input id="totalNum" type="hidden" value="">
64
-						转至第<input id="jumppage" class="form-control" size="2" maxlength="5"
65
-						value="">页
66
-					</span> <span class="floatL"> <input name="pagesubmit"
67
-						class="btn btn-sm btn-primary" onclick="return gotoPage()"
68
-						type="button" value="跳转">
64
+					<span class="form-condensed floatL"> <input id="currentPage" type="hidden" value=""> <input id="totalPage"
65
+							type="hidden" value=""> <input id="totalNum" type="hidden" value="">
66
+						转至第<input id="jumppage" class="form-control" size="2" maxlength="5" value="">页
67
+					</span> <span class="floatL"> <input name="pagesubmit" class="btn btn-sm btn-primary"
68
+							onclick="return gotoPage()" type="button" value="跳转">
69 69
 				</div>
70
-				</span><span class="pull-left">总共<font class="text-red"
71
-					id="totalNumFont"></font>条记录&nbsp; 共<font class="text-red"
72
-					id="totalPageFont"></font>页&nbsp; 当前所在第<font class="text-red"
73
-					id="currentPageFont"></font>页
70
+				</span><span class="pull-left">总共<font class="text-red" id="totalNumFont"></font>条记录&nbsp; 共<font
71
+						class="text-red" id="totalPageFont"></font>页&nbsp; 当前所在第<font class="text-red" id="currentPageFont"></font>页
74 72
 				</span>
75 73
 			</div>
76
-	</div>
77
-		
74
+		</div>
75
+
78 76
 	</div>
79 77
 </body>

+ 28
- 10
resources/templates/common/common_menu.html View File

@@ -2,14 +2,29 @@
2 2
 <html lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
3 3
 <div th:fragment="nav-menu" class="nav-menu">
4 4
   <script>
5
-    function onNavMenuClick(dom, menuId) {
5
+    function showSider(visible) {
6
+      if (visible) {
7
+        $('.layout .left').attr("style","display: block");
8
+      } else {
9
+        $('.layout .left').attr("style","display: none");
10
+      }
11
+    }
12
+
13
+    function activeNavMenu(menuId) {
6 14
       $(".nav-menu .nav-menu-item.active").removeClass("active");
7
-      $(dom).addClass("active");
8
-      $('.layout .left').attr("style","display: block");
15
+      $("#"+menuId).addClass("active");
16
+    }
17
+
18
+    function onNavMenuClick(menuId) {
19
+      activeNavMenu(menuId);
20
+      showSider(true);
9 21
 
10 22
       if (menuId == 'nav-menu-index') {
11
-        $('.layout .left').attr("style","display: none");
12
-        toPage(ctxPath +"main");
23
+        toPage(ctxPath +"main?t=1");
24
+        showSider(false);
25
+      } else if (menuId == 'nav-menu-data') {
26
+        showSider(false);
27
+        toPage(ctxPath +"main?t=2");
13 28
       } else if (menuId == 'nav-menu-doc') {
14 29
         $(".help-doc").get(0).click()
15 30
       } else {
@@ -23,19 +38,22 @@
23 38
     }
24 39
   </script>
25 40
   <a class="help-doc" th:href="@{/js/操作手册.pdf}" target="_blank" style="width: 0"></a>
26
-  <div class="nav-menu-item active" onclick="onNavMenuClick(this, 'nav-menu-index')">
41
+  <div id="nav-menu-index" class="nav-menu-item active" onclick="onNavMenuClick(this.id)">
27 42
     <div><span>首页</span></div>
28 43
   </div>
29
-  <div class="nav-menu-item" onclick="onNavMenuClick(this, 'nav-menu-report')">
44
+  <div id="nav-menu-data" class="nav-menu-item" onclick="onNavMenuClick(this.id)">
45
+    <div><span>数据统计</span></div>
46
+  </div>
47
+  <div id="nav-menu-report" class="nav-menu-item" onclick="onNavMenuClick(this.id)">
30 48
     <div><span>数据上报</span></div>
31 49
   </div>
32
-  <div class="nav-menu-item" onclick="onNavMenuClick(this, 'nav-menu-government')">
50
+  <div id="nav-menu-government" class="nav-menu-item" onclick="onNavMenuClick(this.id)">
33 51
     <div><span>政务外网</span></div>
34 52
   </div>
35
-  <div class="nav-menu-item" onclick="onNavMenuClick(this, 'nav-menu-system')">
53
+  <div id="nav-menu-system" class="nav-menu-item" onclick="onNavMenuClick(this.id)">
36 54
     <div><span>系统管理</span></div>
37 55
   </div>
38
-  <div class="nav-menu-item" onclick="onNavMenuClick(this, 'nav-menu-doc')">
56
+  <div id="nav-menu-doc" class="nav-menu-item" onclick="onNavMenuClick(this.id)">
39 57
     <div>
40 58
       <span>操作手册</span>
41 59
     </div>

+ 107
- 86
resources/templates/dataManager/add.html View File

@@ -1,96 +1,117 @@
1 1
 <html lang="zh-CN">
2
-<head
3
-	th:replace="common/common_header::common_header(~{},~{::link},~{},~{::script},'edit')">
4
-<meta charset="utf-8" />
5
-<link th:href="@{/js/zui/dist/lib/uploader/zui.uploader.min.css}"
6
-	rel="stylesheet">
7
-<script th:src="@{/js/zui/dist/lib/uploader/zui.uploader.min.js}"></script>
8
-<script th:src="@{/js/dataManager/add.js}"></script>
2
+
3
+<head th:replace="common/common_header::common_header(~{},~{::link},~{},~{::script},'edit')">
4
+	<meta charset="utf-8" />
5
+	<link th:href="@{/js/zui/dist/lib/uploader/zui.uploader.min.css}" rel="stylesheet">
6
+	<script th:src="@{/js/zui/dist/lib/uploader/zui.uploader.min.js}"></script>
7
+	<script th:src="@{/js/dataManager/add.js}"></script>
9 8
 
10 9
 </head>
11
-<body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">  	
12
-		<div class="panel-body">
13
-		<form id="dataManagerForm"  method="post" class="conForm load-indicator" data-loading="正在处理...">
14
-			<h1 class="title">基本信息</h1>
15
-			<div class="form-group col-xs-12">
16
-				<label class="required col-sm-4">资料名称:</label>
17
-				<div class="col-lg-6 col-xs-8">
18
-					<input id="dataTitle" name="dataTitle" class="form-control required" 
19
-						 maxlength="100">
20
-				</div>
21
-			</div>
22
-			<div class="form-group col-xs-12">
23
-				<label class="required col-sm-4">资料类别:</label>
24
-				<div class="col-lg-6 col-xs-8">
25
-					<select name="dataType" id="dataType"
26
-						class="form-control required" aria-required="true" aria-invalid="false"><option
27
-							 value="" selected="">--请选择--</option></select>
10
+
11
+<body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">
12
+	<div class="panel-body">
13
+		<form id="dataManagerForm" method="post" class="conForm load-indicator" data-loading="正在处理...">
14
+
15
+			<div class="ext-card">
16
+				<h1 class="title">基本信息</h1>
17
+				<div class="wd-m">
18
+					<div class="form-group col-xs-12">
19
+						<label class="required col-sm-4">资料名称:</label>
20
+						<div class="col-lg-6 col-xs-8">
21
+							<input id="dataTitle" name="dataTitle" class="form-control required" maxlength="100">
22
+						</div>
23
+					</div>
24
+					<div class="form-group col-xs-12">
25
+						<label class="required col-sm-4">资料类别:</label>
26
+						<div class="col-lg-6 col-xs-8">
27
+							<select name="dataType" id="dataType" class="form-control required" aria-required="true"
28
+								aria-invalid="false">
29
+								<option value="" selected="">--请选择--</option>
30
+							</select>
31
+						</div>
32
+					</div>
33
+					<!-- <div class="form-group col-xs-12">
34
+						<label class="col-sm-4">是否允许全局查看:</label>
35
+						<div class="col-lg-6 col-xs-8">
36
+							<label class="checkbox-inline"> <input type="checkbox"
37
+								name="ifGlobalView" id="ifGlobalView" value="1">
38
+							</label>
39
+						</div>
40
+					</div> -->
41
+					<div class="form-group col-xs-12">
42
+						<label class="col-sm-4">资料摘要:</label>
43
+						<div class="col-lg-10 col-xs-12">
44
+							<textarea style="resize: none;" rows="5" name="dataSummary" maxlength="500"
45
+								class="form-control"></textarea>
46
+						</div>
47
+					</div>
28 48
 				</div>
29 49
 			</div>
30
-			<!-- <div class="form-group col-xs-12">
31
-				<label class="col-sm-4">是否允许全局查看:</label>
32
-				<div class="col-lg-6 col-xs-8">
33
-					<label class="checkbox-inline"> <input type="checkbox"
34
-						name="ifGlobalView" id="ifGlobalView" value="1">
35
-					</label>
36
-				</div>
37
-			</div> -->
38
-			<div class="form-group col-xs-12">
39
-				<label class="col-sm-4">资料摘要:</label>
40
-				<div class="col-lg-10 col-xs-12">
41
-					<textarea style="resize: none;" rows="5" name="dataSummary"
42
-						maxlength="500" class="form-control"></textarea>
50
+
51
+			<div class="ext-card">
52
+				<h1 class="title">资料附件</h1>
53
+				<div class="wd-m">
54
+					<div class="">
55
+						<input type="hidden" id="dataFiles" name="dataFiles" />
56
+						<div id="tableUploader" class="uploader">
57
+							<div class="uploader-message text-center">
58
+								<div class="content"></div>
59
+								<button type="button" class="close">×</button>
60
+							</div>
61
+							<table class="table table-bordered">
62
+								<thead>
63
+									<tr>
64
+										<th colspan="2">文件名</th>
65
+										<th style="width: 100px">大小</th>
66
+										<th style="width: 160px; text-align: center;">状态/操作</th>
67
+									</tr>
68
+								</thead>
69
+								<tbody class="uploader-files">
70
+									<tr class="file template">
71
+										<td style="width: 38px; padding: 3px">
72
+											<div class="file-icon"></div>
73
+										</td>
74
+										<td style="padding: 0">
75
+											<div style="position: relative; padding: 8px;">
76
+												<strong class="file-name"></strong>
77
+												<div class="file-progress-bar"></div>
78
+											</div>
79
+										</td>
80
+										<td><span class="file-size text-muted"></span></td>
81
+										<td class="actions text-right" style="padding: 0 4px;">
82
+											<div class="file-status" data-toggle="tooltip" style="margin: 8px;"><i class="icon"></i> <span
83
+													class="text"></span></div>
84
+											<a data-toggle="tooltip" class="btn btn-link btn-download-file" target="_blank"><i
85
+													class="icon icon-download-alt"></i></a>
86
+											<button type="button" data-toggle="tooltip" class="btn btn-link btn-reset-file" title="Repeat"><i
87
+													class="icon icon-repeat"></i></button>
88
+											<button type="button" data-toggle="tooltip" class="btn btn-link btn-rename-file" title="Rename"><i
89
+													class="icon icon-pencil"></i></button>
90
+											<button type="button" data-toggle="tooltip" title="Remove" class="btn btn-link btn-delete-file"><i
91
+													class="icon icon-trash text-danger"></i></button>
92
+										</td>
93
+									</tr>
94
+								</tbody>
95
+								<tfoot>
96
+									<tr>
97
+										<td colspan="4" style="padding: 4px 0">
98
+											<div style="position: relative;">
99
+												<div class="uploader-status pull-right text-muted" style="margin-top: 5px;"></div>
100
+												<button type="button" class="btn btn-link uploader-btn-browse"><i class="icon icon-plus"></i>
101
+													选择文件</button>
102
+												<button type="button" class="btn btn-link uploader-btn-start"><i
103
+														class="icon icon-cloud-upload"></i> 开始上传</button>
104
+											</div>
105
+										</td>
106
+									</tr>
107
+								</tfoot>
108
+							</table>
109
+						</div>
110
+					</div>
43 111
 				</div>
112
+
44 113
 			</div>
45
-			<h1 class="title">资料附件</h1>
46
-			<div class="">
47
-			<input type="hidden" id="dataFiles" name="dataFiles" />
48
-			<div id="tableUploader" class="uploader">
49
-				  <div class="uploader-message text-center">
50
-				    <div class="content"></div>
51
-				    <button type="button" class="close">×</button>
52
-				  </div>
53
-				  <table class="table table-bordered">
54
-				    <thead>
55
-				      <tr>
56
-				        <th colspan="2">文件名</th>
57
-				        <th style="width: 100px">大小</th>
58
-				        <th style="width: 160px; text-align: center;">状态/操作</th>
59
-				      </tr>
60
-				    </thead>
61
-				    <tbody class="uploader-files">
62
-				      <tr class="file template">
63
-				        <td style="width: 38px; padding: 3px"><div class="file-icon"></div></td>
64
-				        <td style="padding: 0">
65
-				          <div style="position: relative; padding: 8px;">
66
-				            <strong class="file-name"></strong>
67
-				            <div class="file-progress-bar"></div>
68
-				          </div>
69
-				        </td>
70
-				        <td><span class="file-size text-muted"></span></td>
71
-				        <td class="actions text-right" style="padding: 0 4px;">
72
-				          <div class="file-status" data-toggle="tooltip" style="margin: 8px;"><i class="icon"></i> <span class="text"></span></div>
73
-				          <a data-toggle="tooltip" class="btn btn-link btn-download-file" target="_blank"><i class="icon icon-download-alt"></i></a>
74
-				          <button type="button" data-toggle="tooltip" class="btn btn-link btn-reset-file" title="Repeat"><i class="icon icon-repeat"></i></button>
75
-				          <button type="button" data-toggle="tooltip" class="btn btn-link btn-rename-file" title="Rename"><i class="icon icon-pencil"></i></button>
76
-				          <button type="button" data-toggle="tooltip" title="Remove" class="btn btn-link btn-delete-file"><i class="icon icon-trash text-danger"></i></button>
77
-				        </td>
78
-				      </tr>
79
-				    </tbody>
80
-				    <tfoot>
81
-				      <tr>
82
-				        <td colspan="4" style="padding: 4px 0">
83
-				          <div style="position: relative;">
84
-				            <div class="uploader-status pull-right text-muted" style="margin-top: 5px;"></div>
85
-				            <button type="button" class="btn btn-link uploader-btn-browse"><i class="icon icon-plus"></i> 选择文件</button>
86
-				            <button type="button" class="btn btn-link uploader-btn-start"><i class="icon icon-cloud-upload"></i> 开始上传</button>
87
-				          </div>
88
-				        </td>
89
-				      </tr>
90
-				    </tfoot>
91
-				  </table>
92
-				</div>
93
-				</div>
114
+
94 115
 			<div class="btnEnd">
95 116
 				<button class="btn btn-primary" id="submitBtn" type="button">保存</button>
96 117
 				<button class="btn" type="button" onclick="history.back();">取消</button>

+ 98
- 75
resources/templates/dataManager/details.html View File

@@ -1,84 +1,106 @@
1 1
 <html lang="zh-CN">
2
-<head
3
-	th:replace="common/common_header::common_header(~{},~{::link},~{::style},~{::script},'')">
4
-<meta charset="utf-8" />
5
-<link th:href="@{/js/zui/dist/lib/uploader/zui.uploader.min.css}"
6
-	rel="stylesheet">
7
-<script th:src="@{/js/zui/dist/lib/uploader/zui.uploader.min.js}"></script>
8
-<script th:src="@{/js/dataManager/details.js}"></script>
9
-<script th:src="@{/js/pictureViewer/js/pictureViewer.js}"></script>
10
-<script th:src="@{/js/pictureViewer/js/jquery.mousewheel.min.js}"></script>
11
-<script th:src="@{/js/pictureViewer/js/pictureViewer.js}"></script>
12
-<link rel="stylesheet" type="text/css" th:href="@{/js/pictureViewer/css/pictureViewer.css}">
13
-<style type="text/css">
14
-.view-info>div>label{min-width: 148px;}
15
-</style>
2
+
3
+<head th:replace="common/common_header::common_header(~{},~{::link},~{::style},~{::script},'')">
4
+	<meta charset="utf-8" />
5
+	<link th:href="@{/js/zui/dist/lib/uploader/zui.uploader.min.css}" rel="stylesheet">
6
+	<script th:src="@{/js/zui/dist/lib/uploader/zui.uploader.min.js}"></script>
7
+	<script th:src="@{/js/dataManager/details.js}"></script>
8
+	<script th:src="@{/js/pictureViewer/js/pictureViewer.js}"></script>
9
+	<script th:src="@{/js/pictureViewer/js/jquery.mousewheel.min.js}"></script>
10
+	<script th:src="@{/js/pictureViewer/js/pictureViewer.js}"></script>
11
+	<link rel="stylesheet" type="text/css" th:href="@{/js/pictureViewer/css/pictureViewer.css}">
12
+	<style type="text/css">
13
+		.view-info>div>label {
14
+			min-width: 148px;
15
+		}
16
+	</style>
16 17
 </head>
18
+
17 19
 <body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">
18 20
 	<div class="panel-body">
19
-		<form id="equipmentForm" action="" method="post"
20
-			class="conForm view-info">		
21
-				<h1 class="title">基本信息</h1>	
22
-			<div class="col-xs-6">
23
-				<label>资料名称:</label>[[${dataManagerObj.dataTitle}]]
24
-			</div>
25
-			<div class="col-xs-6">
26
-				<label>资料类别:</label><font th:selOpt="${dataManagerObj.dataType}" id="dataType"></font>
21
+		<form id="equipmentForm" action="" method="post" class="conForm">
22
+
23
+			<div class="ext-card">
24
+				<h1 class="title">基本信息</h1>
25
+				<div class="view-info">
26
+					<div class="col-xs-6">
27
+						<label>资料名称:</label>[[${dataManagerObj.dataTitle}]]
28
+					</div>
29
+					<div class="col-xs-6">
30
+						<label>资料类别:</label>
31
+						<font th:selOpt="${dataManagerObj.dataType}" id="dataType"></font>
32
+
33
+					</div>
34
+					<!-- <div class="col-xs-6">
35
+						<label>是否允许全局查看:</label><font th:selOpt="${dataManagerObj.ifGlobalView}" id="ifGlobalView"></font>
36
+					</div> -->
37
+					<div class="col-xs-12">
38
+						<label>资料摘要:</label>[[${dataManagerObj.dataSummary}]]
39
+					</div>
40
+				</div>
27 41
 
28 42
 			</div>
29
-			<!-- <div class="col-xs-6">
30
-				<label>是否允许全局查看:</label><font th:selOpt="${dataManagerObj.ifGlobalView}" id="ifGlobalView"></font>
31
-			</div> -->
32
-			<div class="col-xs-12">
33
-				<label>资料摘要:</label>[[${dataManagerObj.dataSummary}]]
34
-			</div>
35
-			<h1 class="title">资料附件</h1>
36
-			<div class="text-center">
37
-				<input type="hidden" id="dataFiles" name="dataFiles"  th:value="${dataManagerObj.dataFiles}"/>
38
-			    <div id="tableUploader" class="uploader">
39
-				  <div class="uploader-message text-center">
40
-				    <div class="content"></div>
41
-				    <button type="button" class="close">×</button>
42
-				  </div>
43
-				  <table class="table table-bordered">
44
-				    <thead>
45
-				      <tr>
46
-				        <th colspan="2">文件名</th>
47
-				        <th style="width: 100px">大小</th>
48
-				        <th style="width: 160px; text-align: center;">状态/操作</th>
49
-				      </tr>
50
-				    </thead>
51
-				    <tbody class="uploader-files">
52
-				      <tr class="file template">
53
-				        <td style="width: 38px; padding: 3px"><div class="file-icon"></div></td>
54
-				        <td style="padding: 0">
55
-				          <div style="position: relative; padding: 8px;">
56
-				            <strong class="file-name"></strong>
57
-				            <div class="file-progress-bar"></div>
58
-				          </div>
59
-				        </td>
60
-				        <td><span class="file-size text-muted"></span></td>
61
-				        <td class="actions text-right" style="padding: 0 4px;">
62
-				          <div class="file-status" data-toggle="tooltip" style="margin: 8px;"><i class="icon"></i> <span class="text"></span></div>
63
-				          <a data-toggle="tooltip" class="btn btn-link btn-download-file" target="_blank"><i class="icon icon-download-alt"></i></a>
64
-				          <a data-toggle="tooltip" class="btn btn-link btn-reset-file" title="Repeat"><i class="icon icon-repeat"></i></a>
65
-				          <a data-toggle="tooltip" class="btn btn-link btn-rename-file" title="Rename"><i class="icon icon-pencil"></i></a>
66
-				          <a data-toggle="tooltip" title="Remove" class="btn btn-link btn-delete-file"><i class="icon icon-trash text-danger"></i></a>
67
-				        </td>
68
-				      </tr>
69
-				    </tbody>
70
-				    <tfoot>
71
-				      <tr style="display:none">
72
-				        <td colspan="4" style="padding: 4px 0">
73
-				          <div style="position: relative;">
74
-				            <div class="uploader-status pull-right text-muted" style="margin-top: 5px;"></div>
75
-				            <button type="button" class="btn btn-link uploader-btn-browse"><i class="icon icon-plus"></i> 选择文件</button>
76
-				            <button type="button" class="btn btn-link uploader-btn-start"><i class="icon icon-cloud-upload"></i> 开始上传</button>
77
-				          </div>
78
-				        </td>
79
-				      </tr>
80
-				    </tfoot>
81
-				  </table>
43
+
44
+			<div class="ext-card">
45
+				<h1 class="title">资料附件</h1>
46
+				<div class="view-info">
47
+					<div class="text-center">
48
+						<input type="hidden" id="dataFiles" name="dataFiles" th:value="${dataManagerObj.dataFiles}" />
49
+						<div id="tableUploader" class="uploader">
50
+							<div class="uploader-message text-center">
51
+								<div class="content"></div>
52
+								<button type="button" class="close">×</button>
53
+							</div>
54
+							<table class="table table-bordered">
55
+								<thead>
56
+									<tr>
57
+										<th colspan="2">文件名</th>
58
+										<th style="width: 100px">大小</th>
59
+										<th style="width: 160px; text-align: center;">状态/操作</th>
60
+									</tr>
61
+								</thead>
62
+								<tbody class="uploader-files">
63
+									<tr class="file template">
64
+										<td style="width: 38px; padding: 3px">
65
+											<div class="file-icon"></div>
66
+										</td>
67
+										<td style="padding: 0">
68
+											<div style="position: relative; padding: 8px;">
69
+												<strong class="file-name"></strong>
70
+												<div class="file-progress-bar"></div>
71
+											</div>
72
+										</td>
73
+										<td><span class="file-size text-muted"></span></td>
74
+										<td class="actions text-right" style="padding: 0 4px;">
75
+											<div class="file-status" data-toggle="tooltip" style="margin: 8px;"><i class="icon"></i> <span
76
+													class="text"></span></div>
77
+											<a data-toggle="tooltip" class="btn btn-link btn-download-file" target="_blank"><i
78
+													class="icon icon-download-alt"></i></a>
79
+											<a data-toggle="tooltip" class="btn btn-link btn-reset-file" title="Repeat"><i
80
+													class="icon icon-repeat"></i></a>
81
+											<a data-toggle="tooltip" class="btn btn-link btn-rename-file" title="Rename"><i
82
+													class="icon icon-pencil"></i></a>
83
+											<a data-toggle="tooltip" title="Remove" class="btn btn-link btn-delete-file"><i
84
+													class="icon icon-trash text-danger"></i></a>
85
+										</td>
86
+									</tr>
87
+								</tbody>
88
+								<tfoot>
89
+									<tr style="display:none">
90
+										<td colspan="4" style="padding: 4px 0">
91
+											<div style="position: relative;">
92
+												<div class="uploader-status pull-right text-muted" style="margin-top: 5px;"></div>
93
+												<button type="button" class="btn btn-link uploader-btn-browse"><i class="icon icon-plus"></i>
94
+													选择文件</button>
95
+												<button type="button" class="btn btn-link uploader-btn-start"><i
96
+														class="icon icon-cloud-upload"></i> 开始上传</button>
97
+											</div>
98
+										</td>
99
+									</tr>
100
+								</tfoot>
101
+							</table>
102
+						</div>
103
+					</div>
82 104
 				</div>
83 105
 			</div>
84 106
 			<div class="btnEnd">
@@ -87,4 +109,5 @@
87 109
 		</form>
88 110
 	</div>
89 111
 </body>
112
+
90 113
 </html>

+ 109
- 88
resources/templates/dataManager/update.html View File

@@ -1,98 +1,119 @@
1 1
 <html lang="zh-CN">
2
-<head
3
-	th:replace="common/common_header::common_header(~{},~{::link},~{},~{::script},'edit')">
4
-<meta charset="utf-8" />
5
-<link th:href="@{/js/zui/dist/lib/uploader/zui.uploader.min.css}"
6
-	rel="stylesheet">
7
-<script th:src="@{/js/zui/dist/lib/uploader/zui.uploader.min.js}"></script>
8
-<script th:src="@{/js/dataManager/update.js}"></script>
2
+
3
+<head th:replace="common/common_header::common_header(~{},~{::link},~{},~{::script},'edit')">
4
+	<meta charset="utf-8" />
5
+	<link th:href="@{/js/zui/dist/lib/uploader/zui.uploader.min.css}" rel="stylesheet">
6
+	<script th:src="@{/js/zui/dist/lib/uploader/zui.uploader.min.js}"></script>
7
+	<script th:src="@{/js/dataManager/update.js}"></script>
9 8
 
10 9
 </head>
11
-<body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">  	
12
-		<div class="panel-body">
13
-		<form id="dataManagerForm"  method="post" class="conForm load-indicator" data-loading="正在处理...">
14
-		    <input type="hidden" id="id" name="id" th:value="${dataManagerObj.id}" />
15
-			<h1 class="title">基本信息</h1>
16
-			<div class="form-group col-xs-12">
17
-				<label class="required col-sm-4">资料名称:</label>
18
-				<div class="col-lg-6 col-xs-8">
19
-					<input id="dataTitle" name="dataTitle" class="form-control required"  th:value="${dataManagerObj.dataTitle}"
20
-						 maxlength="100">
21
-				</div>
22
-			</div>
23
-			<div class="form-group col-xs-12">
24
-				<label class="required col-sm-4">资料类别:</label>
25
-				<div class="col-lg-6 col-xs-8">
26
-					<select name="dataType" id="dataType" th:selOpt="${dataManagerObj.dataType}"
27
-						class="form-control required" aria-required="true" aria-invalid="false" ><option
28
-							 value="" selected="">--请选择--</option></select>
10
+
11
+<body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">
12
+	<div class="panel-body">
13
+		<form id="dataManagerForm" method="post" class="conForm load-indicator" data-loading="正在处理...">
14
+			<input type="hidden" id="id" name="id" th:value="${dataManagerObj.id}" />
15
+
16
+			<div class="ext-card">
17
+				<h1 class="title">基本信息</h1>
18
+				<div class="view-info">
19
+					<div class="form-group col-xs-12">
20
+						<label class="required col-sm-4">资料名称:</label>
21
+						<div class="col-lg-6 col-xs-8">
22
+							<input id="dataTitle" name="dataTitle" class="form-control required"
23
+								th:value="${dataManagerObj.dataTitle}" maxlength="100">
24
+						</div>
25
+					</div>
26
+					<div class="form-group col-xs-12">
27
+						<label class="required col-sm-4">资料类别:</label>
28
+						<div class="col-lg-6 col-xs-8">
29
+							<select name="dataType" id="dataType" th:selOpt="${dataManagerObj.dataType}" class="form-control required"
30
+								aria-required="true" aria-invalid="false">
31
+								<option value="" selected="">--请选择--</option>
32
+							</select>
33
+						</div>
34
+					</div>
35
+					<!-- <div class="form-group col-xs-12">
36
+							<label class="col-sm-4">是否允许全局查看:</label>
37
+							<div class="col-lg-6 col-xs-8">
38
+								<label class="checkbox-inline"> <input type="checkbox" th:selOpt="${dataManagerObj.ifGlobalView}"
39
+									name="ifGlobalView" id="ifGlobalView" value="1">
40
+								</label>
41
+							</div>
42
+						</div> -->
43
+					<div class="form-group col-xs-12">
44
+						<label>资料摘要:</label>
45
+						<div class="col-lg-10 col-xs-12">
46
+							<textarea style="resize: none;" rows="5" name="dataSummary" th:text="${dataManagerObj.dataSummary}"
47
+								maxlength="500" class="form-control"></textarea>
48
+						</div>
49
+					</div>
29 50
 				</div>
30 51
 			</div>
31
-			<!-- <div class="form-group col-xs-12">
32
-				<label class="col-sm-4">是否允许全局查看:</label>
33
-				<div class="col-lg-6 col-xs-8">
34
-					<label class="checkbox-inline"> <input type="checkbox" th:selOpt="${dataManagerObj.ifGlobalView}"
35
-						name="ifGlobalView" id="ifGlobalView" value="1">
36
-					</label>
37
-				</div>
38
-			</div> -->
39
-			<div class="form-group col-xs-12">
40
-				<label>资料摘要:</label>
41
-				<div class="col-lg-10 col-xs-12">
42
-					<textarea style="resize: none;" rows="5" name="dataSummary" th:text="${dataManagerObj.dataSummary}"
43
-						maxlength="500" class="form-control"></textarea>
52
+
53
+			<div class="ext-card">
54
+				<h1 class="title">资料附件</h1>
55
+				<div class="view-info">
56
+					<div class="">
57
+						<input type="hidden" id="dataFiles" name="dataFiles" th:value="${dataManagerObj.dataFiles}" />
58
+						<input type="hidden" id="nodeCode" th:value="${nodeCode}" />
59
+						<div id="tableUploader" class="uploader">
60
+							<div class="uploader-message text-center">
61
+								<div class="content"></div>
62
+								<button type="button" class="close">×</button>
63
+							</div>
64
+							<table class="table table-bordered">
65
+								<thead>
66
+									<tr>
67
+										<th colspan="2">文件名</th>
68
+										<th style="width: 100px">大小</th>
69
+										<th style="width: 160px; text-align: center;">状态/操作</th>
70
+									</tr>
71
+								</thead>
72
+								<tbody class="uploader-files">
73
+									<tr class="file template">
74
+										<td style="width: 38px; padding: 3px">
75
+											<div class="file-icon"></div>
76
+										</td>
77
+										<td style="padding: 0">
78
+											<div style="position: relative; padding: 8px;">
79
+												<strong class="file-name"></strong>
80
+												<div class="file-progress-bar"></div>
81
+											</div>
82
+										</td>
83
+										<td><span class="file-size text-muted"></span></td>
84
+										<td class="actions text-right" style="padding: 0 4px;">
85
+											<div class="file-status" data-toggle="tooltip" style="margin: 8px;"><i class="icon"></i> <span
86
+													class="text"></span></div>
87
+											<a data-toggle="tooltip" class="btn btn-link btn-download-file" target="_blank"><i
88
+													class="icon icon-download-alt"></i></a>
89
+											<button type="button" data-toggle="tooltip" class="btn btn-link btn-reset-file" title="Repeat"><i
90
+													class="icon icon-repeat"></i></button>
91
+											<button type="button" data-toggle="tooltip" class="btn btn-link btn-rename-file" title="Rename"><i
92
+													class="icon icon-pencil"></i></button>
93
+											<button type="button" data-toggle="tooltip" title="Remove" class="btn btn-link btn-delete-file"><i
94
+													class="icon icon-trash text-danger"></i></button>
95
+										</td>
96
+									</tr>
97
+								</tbody>
98
+								<tfoot>
99
+									<tr>
100
+										<td colspan="4" style="padding: 4px 0">
101
+											<div style="position: relative;">
102
+												<div class="uploader-status pull-right text-muted" style="margin-top: 5px;"></div>
103
+												<button type="button" class="btn btn-link uploader-btn-browse"><i class="icon icon-plus"></i>
104
+													选择文件</button>
105
+												<button type="button" class="btn btn-link uploader-btn-start"><i
106
+														class="icon icon-cloud-upload"></i>
107
+													开始上传</button>
108
+											</div>
109
+										</td>
110
+									</tr>
111
+								</tfoot>
112
+							</table>
113
+						</div>
114
+					</div>
44 115
 				</div>
45 116
 			</div>
46
-			<h1 class="title">资料附件</h1>
47
-			<div class="">
48
-			<input type="hidden" id="dataFiles" name="dataFiles"  th:value="${dataManagerObj.dataFiles}"/>
49
-			<input type="hidden" id="nodeCode" th:value="${nodeCode}"/>
50
-			<div id="tableUploader" class="uploader">
51
-				  <div class="uploader-message text-center">
52
-				    <div class="content"></div>
53
-				    <button type="button" class="close">×</button>
54
-				  </div>
55
-				  <table class="table table-bordered">
56
-				    <thead>
57
-				      <tr>
58
-				        <th colspan="2">文件名</th>
59
-				        <th style="width: 100px">大小</th>
60
-				        <th style="width: 160px; text-align: center;">状态/操作</th>
61
-				      </tr>
62
-				    </thead>
63
-				    <tbody class="uploader-files">
64
-				      <tr class="file template">
65
-				        <td style="width: 38px; padding: 3px"><div class="file-icon"></div></td>
66
-				        <td style="padding: 0">
67
-				          <div style="position: relative; padding: 8px;">
68
-				            <strong class="file-name"></strong>
69
-				            <div class="file-progress-bar"></div>
70
-				          </div>
71
-				        </td>
72
-				        <td><span class="file-size text-muted"></span></td>
73
-				        <td class="actions text-right" style="padding: 0 4px;">
74
-				          <div class="file-status" data-toggle="tooltip" style="margin: 8px;"><i class="icon"></i> <span class="text"></span></div>
75
-				          <a data-toggle="tooltip" class="btn btn-link btn-download-file" target="_blank"><i class="icon icon-download-alt"></i></a>
76
-				          <button type="button" data-toggle="tooltip" class="btn btn-link btn-reset-file" title="Repeat"><i class="icon icon-repeat"></i></button>
77
-				          <button type="button" data-toggle="tooltip" class="btn btn-link btn-rename-file" title="Rename"><i class="icon icon-pencil"></i></button>
78
-				          <button type="button" data-toggle="tooltip" title="Remove" class="btn btn-link btn-delete-file"><i class="icon icon-trash text-danger"></i></button>
79
-				        </td>
80
-				      </tr>
81
-				    </tbody>
82
-				    <tfoot>
83
-				      <tr>
84
-				        <td colspan="4" style="padding: 4px 0">
85
-				          <div style="position: relative;">
86
-				            <div class="uploader-status pull-right text-muted" style="margin-top: 5px;"></div>
87
-				            <button type="button" class="btn btn-link uploader-btn-browse"><i class="icon icon-plus"></i> 选择文件</button>
88
-				            <button type="button" class="btn btn-link uploader-btn-start"><i class="icon icon-cloud-upload"></i> 开始上传</button>
89
-				          </div>
90
-				        </td>
91
-				      </tr>
92
-				    </tfoot>
93
-				  </table>
94
-				</div>
95
-				</div>
96 117
 			<div class="btnEnd">
97 118
 				<button class="btn btn-primary" id="submitBtn" type="button">保存</button>
98 119
 				<button class="btn" type="button" onclick="history.back();">取消</button>

+ 19
- 11
resources/templates/index.html View File

@@ -3,7 +3,7 @@
3 3
 	xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
4 4
 <head th:replace="common/common_header::common_header(~{::title},~{::style},~{},~{},'')">
5 5
 <meta charset="utf-8">
6
-<title>全国军供保障信息管理系统</title>
6
+<title>海安军供保障信息管理系统</title>
7 7
 <style type="text/css">
8 8
 .dropdown{display: inline-block;margin-right: 15px;}
9 9
 .dropdown .icon{font-size: 18px;}
@@ -45,7 +45,7 @@
45 45
 					<ul id="treeMenu" class="tree tree-menu nav-menu-submenu nav-menu-report active" data-ride="tree">
46 46
 						<th:block th:each="menu:${user.menus}">
47 47
 								<li th:id="${menu.oldId}" th:if="${menu.oldId == '100009' || menu.oldId == '100381' || menu.oldId == '100383' || menu.oldId == '100008' || menu.oldId == '100382' || menu.oldId == '100384'  || menu.oldId == '100296'} ">
48
-										<a th:href="@{'javascript:childMenuHandle(\''+ ${menu.oldId} + '\',\'' + ${menu.nodepath} + '\',\'' + ${menu.nodename} + '\',\'' + ${menu.openimg} + '\')'}">
48
+										<a th:href="@{'javascript:childMenuHandle(\''+ ${menu.oldId} + '\',\'' + ${menu.nodepath} + '\',\'' + ${menu.nodename} + '\',\'' + ${menu.openimg} + '\', \'nav-menu-report\')'}">
49 49
 												<i th:class="'iconfont '+${menu.nodeimg}"></i><i th:class="'iconfont '+${menu.openimg}"></i>[[${menu.nodename}]]
50 50
 										</a>
51 51
 								</li>
@@ -54,7 +54,7 @@
54 54
 					<ul id="treeMenu" class="tree tree-menu nav-menu-submenu nav-menu-government" data-ride="tree">
55 55
 						<th:block th:each="menu:${user.menus}">
56 56
 								<li th:id="${menu.oldId}" th:if="${menu.oldId == '100003' || menu.oldId == '100007' || menu.oldId == '100005' || menu.oldId == '100004' || menu.oldId == '100010' || menu.oldId == '100380'}">
57
-										<a th:href="@{'javascript:childMenuHandle(\''+ ${menu.oldId} + '\',\'' + ${menu.nodepath} + '\',\'' + ${menu.nodename} + '\',\'' + ${menu.openimg} + '\')'}">
57
+										<a th:href="@{'javascript:childMenuHandle(\''+ ${menu.oldId} + '\',\'' + ${menu.nodepath} + '\',\'' + ${menu.nodename} + '\',\'' + ${menu.openimg} + '\', \'nav-menu-government\')'}">
58 58
 												<i th:class="'iconfont '+${menu.nodeimg}"></i><i th:class="'iconfont '+${menu.openimg}"></i>[[${menu.nodename}]]
59 59
 										</a>
60 60
 								</li>
@@ -63,7 +63,7 @@
63 63
 					<ul id="treeMenu" class="tree tree-menu nav-menu-submenu nav-menu-system" data-ride="tree">
64 64
 						<th:block th:each="menu:${user.menus}">
65 65
 								<li th:id="${menu.oldId}" th:if="${menu.oldId == '100272' || menu.oldId == '100273' }">
66
-										<a th:href="@{'javascript:childMenuHandle(\''+ ${menu.oldId} + '\',\'' + ${menu.nodepath} + '\',\'' + ${menu.nodename} + '\',\'' + ${menu.openimg} + '\')'}">
66
+										<a th:href="@{'javascript:childMenuHandle(\''+ ${menu.oldId} + '\',\'' + ${menu.nodepath} + '\',\'' + ${menu.nodename} + '\',\'' + ${menu.openimg} + '\', \'nav-menu-system\')'}">
67 67
 												<i th:class="'iconfont '+${menu.nodeimg}"></i><i th:class="'iconfont '+${menu.openimg}"></i>[[${menu.nodename}]]
68 68
 										</a>
69 69
 								</li>
@@ -103,7 +103,7 @@
103 103
 		bootbox.confirm(confirmData);
104 104
 	}
105 105
 	  //二级菜单事件处理
106
-	function childMenuHandle(tmpId, tmpUrl, tmpText, openimg) {
106
+	function childMenuHandle(tmpId, tmpUrl, tmpText, openimg, parentMenu) {
107 107
 		var arr = document.getElementsByTagName("li");
108 108
 		for (var j = 0; j < arr.length; j++) {
109 109
 			arr[j].classList.remove("active");
@@ -125,19 +125,27 @@
125 125
 		localStorage.setItem("parentUrl",url);
126 126
 		localStorage.setItem("openimg",openimg);
127 127
 		window.top.hideMask();
128
+
129
+		activeNavMenu(parentMenu);
128 130
 	}
129 131
 	function passwordEdit(){
130 132
 		toPage(ctxPath + 'api/operator/toChangePwd')
131 133
 	}
132 134
 	function toMain(){
133 135
 		toPage(ctxPath +"main");
134
-		// 父级菜单回显
135
-		$(".nav-menu .nav-menu-item.active").removeClass("active");
136
-		$(".nav-menu .nav-menu-item").first().addClass("active");
137
-
136
+		activeNavMenu('nav-menu-index');
138 137
 	}
139
-	window.onload=function(){
140
-		
138
+	
139
+	function subMenuClick(menuText) {
140
+		var found = false;
141
+		$('.menu li').each(function(_, el) {
142
+			if (found) return;
143
+
144
+			if ($(el).text().includes(menuText)) {
145
+				$(el).find('a').get(0).click()
146
+				found = true;
147
+			}
148
+		});
141 149
 	}
142 150
 </script>
143 151
 </html>

+ 39
- 33
resources/templates/installations/add.html View File

@@ -1,42 +1,48 @@
1 1
 <html lang="zh-CN">
2
-<head
3
-	th:replace="common/common_header::common_header(~{},~{},~{},~{::script},'edit')">
4
-<meta charset="utf-8" />
5
-<script th:src="@{/js/installations/add.js}"></script>
2
+
3
+<head th:replace="common/common_header::common_header(~{},~{},~{},~{::script},'edit')">
4
+	<meta charset="utf-8" />
5
+	<script th:src="@{/js/installations/add.js}"></script>
6 6
 </head>
7
-<body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">  	
8
-		<div class="panel-body">
9
-		<form id="installationsForm"  method="post" class="conForm load-indicator" data-loading="正在处理...">
10
-			<h1 class="title">基本信息</h1>
11
-			<div class="form-group col-xs-12">
12
-				<label class=" required">设施名称:</label>
13
-				<div class="col-lg-6 col-xs-8">
14
-					<input id="inTitle" name="inTitle" class="form-control required" 
15
-						 maxlength="30">
16
-				</div>
17
-			</div>
18
-			<div class="form-group col-xs-12">
19
-				<label class=" required">设施数量:</label>
20
-				<div class="col-lg-6 col-xs-8">
21
-					<input id="inCount" name="inCount" class="form-control required digits" 
22
-						 maxlength="100">
23
-				</div>
24
-			</div>
25
-			<div class="form-group col-xs-12">
26
-				<label class=" required">设施面积(㎡):</label>
27
-				<div class="col-lg-6 col-xs-8">
28
-					<input id="inArea" name="inArea" class="form-control required number" 
29
-						 maxlength="20">
7
+
8
+<body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">
9
+	<div class="panel-body">
10
+		<form id="installationsForm" method="post" class="conForm load-indicator" data-loading="正在处理...">
11
+			<div class="ext-card">
12
+				<h1 class="title">基本信息</h1>
13
+				<div class="wd-m">
14
+					<div class="form-group col-xs-12">
15
+						<label class=" required col-sm-4">设施名称:</label>
16
+						<div class="col-lg-6 col-xs-8">
17
+							<input id="inTitle" name="inTitle" class="form-control required" maxlength="30">
18
+						</div>
19
+					</div>
20
+					<div class="form-group col-xs-12">
21
+						<label class=" required col-sm-4">设施数量:</label>
22
+						<div class="col-lg-6 col-xs-8">
23
+							<input id="inCount" name="inCount" class="form-control required digits" maxlength="100">
24
+						</div>
25
+					</div>
26
+					<div class="form-group col-xs-12">
27
+						<label class=" required col-sm-4">设施面积(㎡):</label>
28
+						<div class="col-lg-6 col-xs-8">
29
+							<input id="inArea" name="inArea" class="form-control required number" maxlength="20">
30
+						</div>
31
+					</div>
30 32
 				</div>
31 33
 			</div>
32
-			
33
-			<h1 class="title">备注信息</h1>
34
-			<div class="form-group col-xs-12">
35
-				<div class="col-lg-10 col-xs-12">
36
-						<textarea style="resize: none;" rows="5" name="remark"
37
-						maxlength="500" class="form-control"></textarea>
34
+
35
+			<div class="ext-card">
36
+				<h1 class="title">备注信息</h1>
37
+				<div class="wd-m">
38
+					<div class="form-group col-xs-12">
39
+						<div class="col-lg-10 col-xs-12">
40
+							<textarea style="resize: none;" rows="5" name="remark" maxlength="500" class="form-control"></textarea>
41
+						</div>
42
+					</div>
38 43
 				</div>
39 44
 			</div>
45
+
40 46
 			<div class="btnEnd">
41 47
 				<button class="btn btn-primary" id="submitBtn" type="button">保存</button>
42 48
 				<button class="btn" type="button" onclick="history.back();">取消</button>

+ 38
- 23
resources/templates/installations/details.html View File

@@ -1,37 +1,52 @@
1 1
 <html lang="zh-CN">
2
-<head
3
-	th:replace="common/common_header::common_header(~{},~{},~{},~{::script},'')">
4
-<meta charset="utf-8">
5
-<script th:src="@{/js/installations/details.js}"></script>
2
+
3
+<head th:replace="common/common_header::common_header(~{},~{},~{},~{::script},'')">
4
+	<meta charset="utf-8">
5
+	<script th:src="@{/js/installations/details.js}"></script>
6 6
 </head>
7
+
7 8
 <body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">
8 9
 	<div class="panel-body">
9
-		<form id="installationsForm" action="" method="post"
10
-			class="conForm view-info">		
11
-				<h1 class="title">基本信息</h1>	
12
-			<div class="col-xs-6">
13
-				<label>设施名称:</label>[[${installationsObj.inTitle}]]
14
-			</div>
15
-			<div class="col-xs-6">
16
-				<label>设施数量:</label>[[${installationsObj.inCount}]]
10
+		<form id="installationsForm" action="" method="post" class="conForm">
11
+			<div class="ext-card">
12
+				<h1 class="title">基本信息</h1>
13
+				<div class="view-info">
14
+					<div class="col-xs-6">
15
+						<label>设施名称:</label>[[${installationsObj.inTitle}]]
16
+					</div>
17
+					<div class="col-xs-6">
18
+						<label>设施数量:</label>[[${installationsObj.inCount}]]
17 19
 
20
+					</div>
21
+					<div class="col-xs-6">
22
+						<label>设施面积(㎡):</label> [[${installationsObj.inArea}]]
23
+					</div>
24
+				</div>
18 25
 			</div>
19
-			<div class="col-xs-6">
20
-				<label>设施面积(㎡):</label> [[${installationsObj.inArea}]]
26
+
27
+			<div class="ext-card">
28
+				<h1 class="title">设施位置</h1>
29
+				<div class="view-info">
30
+					<div class="text">
31
+						[[${installationsObj.inPosition}]]
32
+					</div>
33
+				</div>
21 34
 			</div>
22
-			<h1 class="title">设施位置</h1>
23
-			<div class="text">
24
-				[[${installationsObj.inPosition}]]
25
-			</div>			
26
-			<h1 class="title">备注信息</h1>
27
-			<div class="text">
28
-				[[${installationsObj.remark}]]
35
+
36
+			<div class="ext-card">
37
+				<h1 class="title">备注信息</h1>
38
+				<div class="view-info">
39
+					<div class="text">
40
+						[[${installationsObj.remark}]]
41
+					</div>
42
+				</div>
29 43
 			</div>
44
+
30 45
 			<div class="btnEnd">
31
-				<button class="btn btn-primary" type="button"
32
-					onclick="history.back();">返回</button>
46
+				<button class="btn btn-primary" type="button" onclick="history.back();">返回</button>
33 47
 			</div>
34 48
 		</form>
35 49
 	</div>
36 50
 </body>
51
+
37 52
 </html>

+ 45
- 37
resources/templates/installations/update.html View File

@@ -1,46 +1,54 @@
1 1
 <html lang="zh-CN">
2
-<head
3
-	th:replace="common/common_header::common_header(~{},~{},~{},~{::script},'edit')">
4
-<meta charset="utf-8" />
5
-<script th:src="@{/js/installations/update.js}"></script>
2
+
3
+<head th:replace="common/common_header::common_header(~{},~{},~{},~{::script},'edit')">
4
+	<meta charset="utf-8" />
5
+	<script th:src="@{/js/installations/update.js}"></script>
6 6
 </head>
7
-<body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">  	
8
-		<div class="panel-body">
9
-		<form id="installationsForm"  method="post" class="conForm load-indicator" data-loading="正在处理...">
10
-		<input type="hidden" id="id" name="id" th:value="${installationsObj.id}" />
11
-				    		 <input type="hidden" id="oldId" name="oldId" th:value="${installationsObj.oldId}" />
12
-		
13
-			<h1 class="title">基本信息</h1>
14
-			
15
-			<div class="form-group col-xs-12">
16
-				<label class="required col-sm-4">设施名称:</label>
17
-				<div class="col-lg-6 col-xs-8">
18
-					<input id="inTitle" name="inTitle" class="form-control required"  th:value="${installationsObj.inTitle}"
19
-						 maxlength="30">
20
-				</div>
21
-			</div>
22
-			<div class="form-group col-xs-12">
23
-				<label class="required col-sm-4">设施数量:</label>
24
-				<div class="col-lg-6 col-xs-8">
25
-					<input id="inCount" name="inCount" class="form-control required digits"  th:value="${installationsObj.inCount}"
26
-						 maxlength="6">
27
-				</div>
28
-			</div>
29
-			<div class="form-group col-xs-12">
30
-				<label class="required col-sm-4">设施面积(㎡):</label>
31
-				<div class="col-lg-6 col-xs-8">
32
-					<input id="inArea" name="inArea" class="form-control required number"  th:value="${#numbers.formatDecimal(installationsObj.inArea,1,2)}"
33
-						 maxlength="10">
7
+
8
+<body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">
9
+	<div class="panel-body">
10
+		<form id="installationsForm" method="post" class="conForm load-indicator" data-loading="正在处理...">
11
+			<input type="hidden" id="id" name="id" th:value="${installationsObj.id}" />
12
+			<input type="hidden" id="oldId" name="oldId" th:value="${installationsObj.oldId}" />
13
+			<div class="ext-card">
14
+				<h1 class="title">基本信息</h1>
15
+				<div class="wd-m">
16
+					<div class="form-group col-xs-12">
17
+						<label class="required col-sm-4">设施名称:</label>
18
+						<div class="col-lg-6 col-xs-8">
19
+							<input id="inTitle" name="inTitle" class="form-control required" th:value="${installationsObj.inTitle}"
20
+								maxlength="30">
21
+						</div>
22
+					</div>
23
+					<div class="form-group col-xs-12">
24
+						<label class="required col-sm-4">设施数量:</label>
25
+						<div class="col-lg-6 col-xs-8">
26
+							<input id="inCount" name="inCount" class="form-control required digits"
27
+								th:value="${installationsObj.inCount}" maxlength="6">
28
+						</div>
29
+					</div>
30
+					<div class="form-group col-xs-12">
31
+						<label class="required col-sm-4">设施面积(㎡):</label>
32
+						<div class="col-lg-6 col-xs-8">
33
+							<input id="inArea" name="inArea" class="form-control required number"
34
+								th:value="${#numbers.formatDecimal(installationsObj.inArea,1,2)}" maxlength="10">
35
+						</div>
36
+					</div>
34 37
 				</div>
35 38
 			</div>
36
-			
37
-			<h1 class="title">备注信息</h1>
38
-			<div class="form-group col-xs-12">
39
-				<div class="col-lg-10 col-xs-12">
40
-						<textarea style="resize: none;" rows="5" name="remark" th:text="${installationsObj.remark}"
41
-						maxlength="500" class="form-control"></textarea>
39
+
40
+			<div class="ext-card">
41
+				<h1 class="title">备注信息</h1>
42
+				<div class="wd-m">
43
+					<div class="form-group col-xs-12">
44
+						<div class="col-lg-10 col-xs-12">
45
+							<textarea style="resize: none;" rows="5" name="remark" th:text="${installationsObj.remark}"
46
+								maxlength="500" class="form-control"></textarea>
47
+						</div>
48
+					</div>
42 49
 				</div>
43 50
 			</div>
51
+
44 52
 			<div class="btnEnd">
45 53
 				<button class="btn btn-primary" id="submitBtn" type="button">保存</button>
46 54
 				<button class="btn" type="button" onclick="history.back();">取消</button>

+ 1
- 1
resources/templates/login.html View File

@@ -9,7 +9,7 @@
9 9
 	<link th:href="@{/css/login-page.css}" rel="stylesheet" />
10 10
 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
11 11
 	<link rel="shortcut icon" th:href="@{/images/favicon.ico}">
12
-	<title>全国军供保障信息管理系统</title>
12
+	<title>海安军供保障信息管理系统</title>
13 13
 </head>
14 14
 
15 15
 <body>

+ 14
- 358
resources/templates/main.html View File

@@ -2,7 +2,6 @@
2 2
 <html>
3 3
 <head
4 4
 	th:replace="common/common_header::common_header(~{},~{},~{::style},~{::script},'')">
5
-<meta charset="utf-8">
6 5
 <script th:src="@{/js/chart/echarts.min.js}" type="text/javascript"></script>
7 6
 <script th:src="@{/js/chart/chart.js}"></script>
8 7
 <script th:src="@{/js/chart/pie.js}"></script>
@@ -14,367 +13,24 @@
14 13
 @media (max-width: 1280px) {
15 14
 .panel{margin:30px 0 0 15px;}
16 15
 }
16
+body { background-color: #081A48; }
17 17
 </style>
18 18
 </head>
19
-
20 19
 <body>
21
-	<div class="chart-page">
22
-		<div class="flex-part">
23
-			<div class="flex-part-3">
24
-
25
-				<div class="count">
26
-					<dl>
27
-						<dt id="totalTask">0</dt>
28
-						<dd>任务总数</dd>
29
-						<img th:src="@{/images/statistic/数字统计.png}" alt="">
30
-					</dl>
31
-					<dl>
32
-						<dt id="totalPerson">0</dt>
33
-						<dd>接待军人总数</dd>
34
-						<img th:src="@{/images/statistic/接待军人总数.png}" alt="">
35
-					</dl>
36
-					<dl>
37
-						<dt id="totalOrg">0</dt>
38
-						<dd>保障机构数</dd>
39
-						<img th:src="@{/images/statistic/保障机构数.png}" alt="">
40
-					</dl>
41
-					<dl>
42
-						<dt id="totalEquipment">0</dt>
43
-						<dd>设备数量</dd>
44
-						<img th:src="@{/images/statistic/设备数量.png}" alt="">
45
-					</dl>
46
-				</div>
47
-			
48
-				<div class="panelGroup flex-part" style="padding-bottom:0;">
49
-					<div class="panel flex-part-2 chart-card">
50
-						<div class="panel-heading">
51
-							<img th:src="@{/images/statistic/任务统计.png}" />
52
-							<span>任务统计</span>
53
-							<!-- <svg>
54
-								<defs>
55
-										<linearGradient id="grad" x1="0" y1="100%" x2="0" y2="0">
56
-												<stop offset="0%" style="stop-color:#6F39B9; stop-opacity:1" />
57
-												<stop offset="100%" style="stop-color:#1EAED1; stop-opacity:1" />
58
-										</linearGradient>
59
-								</defs>
60
-								<text x="0" y="22" fill="url(#grad)" style="font-size:22px">任务统计</text>
61
-							</svg> -->
62
-							<div class="selectGroup">
63
-								<select class="" id="selYear" onchange="taskTimeReport()">
64
-										</select>
65
-							</div>
66
-						</div>
67
-						<div class="panel-body">
68
-							<div class="text-center">
69
-								<div class="text-center" style="height:300px;" id="taskChart"></div>
70
-							</div>
71
-						</div>
72
-					</div>
73
-					<div class="flex-part-1">
74
-						<div class="panel chart-card">
75
-							<div class="panel-heading">
76
-								<img th:src="@{/images/statistic/设备分类统计.png}" />
77
-								<span>设备分类统计</span>
78
-							</div>
79
-							<div class="panel-body">
80
-								<div class="text-center" style="height:260px;" id="devChart"></div>
81
-							</div>
82
-						</div>
83
-					</div>
84
-				</div>
85
-
86
-
87
-			</div>
88
-			<div class="flex-part-1">
89
-				<div class="panel chart-card" style="margin: 15px 30px 0 0; height: calc(100% - 15px)">
90
-					<div class="panel-heading">
91
-						<img th:src="@{/images/statistic/军供保障能力.png}" />
92
-						<span>军供保障能力</span>
93
-					</div>
94
-					<div class="panel-body" style="height: calc(100% - 60px);">
95
-						<div class="info-text">
96
-							
97
-						</div>
98
-						<ul class="info-list" style="overflow-y: auto; height: 100%;">
99
-							<li title="常规单日整体膳食供应能力(人次)"><span id="ztssgynl">0</span>常规单日整体膳食供应能力(人次):</li>
100
-							<li title="常规单次整体膳食供应能力(人)"><span id="dcztssgynl">0</span>常规单次整体膳食供应能力(人):</li>
101
-							<li title="应急单日整体膳食供应能力(人次)"><span id="yjztssgynl">0</span>应急单日整体膳食供应能力(人次):</li>
102
-							<li title="应急单次整体膳食供应能力(人)"><span id="yjdcztssgynl">0</span>应急单次整体膳食供应能力(人):</li>
103
-							<li title="常规整体住宿供应能力(人)"><span id="ztzsgynl">0</span>常规整体住宿供应能力(人):</li>
104
-							<li title="应急整体住宿供应能力(人)"><span id="yjztzsgynl">0</span>应急整体住宿供应能力(人):</li>
105
-						</ul>
106
-					</div>
107
-				</div>
108
-			</div>
109
-		</div>
110
-	<div class="panelGroup">
111
-		<div class="panel panel-row-2 chart-card">
112
-			<div class="panel-heading">
113
-				<img th:src="@{/images/statistic/社会保障机构分类统计.png}" />
114
-				<span>社会保障机构分类统计</span>
115
-			</div>
116
-			<div class="panel-body">
117
-				<div class="text-center" id="guaChart" style="height:320px"></div>
118
-			</div>
119
-		</div>
120
-		<div class="panel panel-row-2 chart-card">
121
-			<div class="panel-heading">
122
-				<img th:src="@{/images/statistic/人员统计.png}" />
123
-				<span>人员统计</span>
124
-			</div>
125
-			<div class="panel-body">
126
-				<div class="col-sm-6 text-center" id="eduChart" style="height:300px;">
127
-				</div>
128
-				<div class="col-sm-6 text-center" id="ageChart" style="height:270px;">
129
-				</div>
130
-			</div>
131
-		</div>
132
-	</div>
133
-	
134
-
135
-		
136
-</div>
20
+	<div th:replace="main/data::main-data"></div>
21
+	<div th:replace="main/dashboard::main-dashboard"></div>
137 22
 </body>
138
- <script>
139
-	function loadPage() {
140
-		let colArr = commentReport();
141
-		$
142
-				.ajax({
143
-					url : urlPre + "getMainData",
144
-					dataType : 'json',
145
- 					success : function(data) {
146
-
147
-						(function mockData(dt) {
148
-							function rand() {
149
-								return Math.floor(100 * Math.random() + 10);
150
-							}
151
-
152
-							dt.countData.ageArrNum = dt.countData.ageArrNum.split(',').map(rand).join(',')
153
-							dt.countData.devArrNum = dt.countData.devArrNum.split(',').map(rand).join(',')
154
-							dt.countData.guaArrNum = dt.countData.guaArrNum.split(',').map(rand).join(',')
155
-							dt.countData.eduNum = dt.countData.eduNum.split(',').map(rand).join(',')
156
-							dt.countData.guaAbiJson.clzs = rand()
157
-							dt.countData.guaAbiJson.dcztssgynl = rand()
158
-							dt.countData.guaAbiJson.yjdcztssgynl = rand()
159
-							dt.countData.guaAbiJson.yjztssgynl = rand()
160
-							dt.countData.guaAbiJson.ztssgynl = rand()
161
-							dt.countData.guaAbiJson.ztzsgynl = rand()
162
-							dt.yearTask = Object.keys(dt.yearTask).map((key) => {
163
-								return {[key]: rand()}
164
-							}).reduce((acc, item) => ({ ...acc, ...item }), {})
165
-						})(data)
166
-
167
-						console.log(data)
168
-
169
- 						$("#totalTask").text(data.totalTask);
170
- 						$("#totalOrg").text(data.totalOrg);
171
- 						$("#totalPerson").text(data.totalPerson);
172
- 						$("#totalEquipment").text(data.totalEquipment);
173
- 						//选择年份 按月统计任务
174
- 						var myDate = new Date();
175
-                        var tYear = myDate.getFullYear();
176
-                        var lasYear = tYear - 1;
177
-                        $("#selYear").html("<option value='"+tYear+"'>"+tYear+"年</option><option value='"+lasYear+"'>"+lasYear+"年</option>");
178
- 						var chartData = {};
179
-                        let yearTask = data.yearTask
180
-                        let xAxisData = []
181
-                        let datas = []
182
-                        for(let key in yearTask){
183
-                        	xAxisData[xAxisData.length] = key
184
-                        	datas[datas.length] = yearTask[key]
185
-                        }                      
186
- 						chartData.datas = datas;
187
- 						chartData.xAxisData = xAxisData;
188
- 						// setLine("taskChart", chartData);
189
-
190
-						setChart("#taskChart", getBar1Option(xAxisData, datas))
191
-                        
192
- 						var comments = data.comments;
193
- 						var commentUl = "";
194
- 						for (var key in comments) {
195
- 							var tmpData = comments[key];
196
- 							commentUl += '<li><a href="###"><h2>'+tmpData.taskNumber+'</h2>'
197
- 							let config_evaluate_item = tmpData.config_evaluate_item.split(",")
198
- 							for(var ky in colArr){
199
- 								if(config_evaluate_item.indexOf(colArr[ky].substring(0,2)) !=-1){
200
- 									if(tmpData[colArr[ky]] != null){
201
- 	 									let num = tmpData[colArr[ky]];
202
- 	 	 								let total = tmpData[colArr[ky].substring(0,2)]
203
- 	 	 								let addNum = (num/total*100).toFixed() + "%"
204
- 	 	 								commentUl += '<span>'+addNum+'</span>'
205
- 	 								}else{
206
- 	 									commentUl += '<span>0%</span>'
207
- 	 								}
208
- 								}else{
209
- 									commentUl += '<span>未选择</span>'
210
- 								}
211
- 							
212
- 								
213
- 							}
214
- 							commentUl += '</li>';		
215
- 						}
216
- 						$("#commentUl").html(commentUl);
217
- 						
218
- 						var taskInfos = data.taskInfos;
219
- 						var taskInfoUl = "";
220
- 						for (var key in taskInfos) {
221
- 							var tmpData = taskInfos[key];
222
- 							taskInfoUl += '<li><a href="###"><h2>'+tmpData.taskNumber+'</h2><span>'+tmpData.data_date.substring(0,10)+'</span><span>'
223
- 							               +tmpData.config_supply_main+'</span></a></li>';
224
- 						}
225
- 						$("#taskInfoUl").html(taskInfoUl);
226
- 						//人员学历统计
227
- 						
228
- 						chartData = {};
229
- 						let eduArrNameArr = data.countData.eduArrName.split(",")
230
- 						let eduNumArr = data.countData.eduNum.split(",")
231
-  						datas = {};
232
- 						datas[eduArrNameArr[0]] = eduNumArr[0];
233
- 						datas[eduArrNameArr[1]] = eduNumArr[1];
234
- 						datas[eduArrNameArr[2]] = eduNumArr[2];
235
-						chartData.datas = datas;
236
-						chartData.subtext = '人员学历统计';
237
-						chartData.seriesName = "学历";
238
-						chartData.addNum = 2
239
-						// setBar("eduChart", chartData);
240
-						setChart("#eduChart", getBar3Option(eduArrNameArr, eduNumArr))
241
-
242
-						
243
-						//人员年龄统计
244
-						let ageArrNameArr = data.countData.ageArrName.split(",")
245
-						let ageArrNum = data.countData.ageArrNum.split(",")
246
-						datas = {};
247
-						datas[ageArrNameArr[0]] = ageArrNum[0];
248
- 						datas[ageArrNameArr[1]] = ageArrNum[1];
249
- 						datas[ageArrNameArr[2]] = ageArrNum[2];
250
- 						datas[ageArrNameArr[3]] = ageArrNum[3];
251
-  					    chartData = {};
252
-					 	chartData.datas = datas;
253
-					 	chartData.subtext = '人员年龄统计';
254
-					 	chartData.seriesName = "年龄";
255
-					 	chartData.isShowLine= false
256
-					 	chartData.isShowTooltip = false
257
-					 	// setPie("ageChart", chartData);	
258
-						 var pie2 = setChart("#ageChart", getPie2Option(datas))
259
-						// 默认选中第一个, 并处理选中逻辑
260
-						var pie2DataIndex = 0
261
-						pie2.on('mousemove', function(e) {
262
-							pie2.dispatchAction({ type: 'downplay', dataIndex: pie2DataIndex });
263
-							pie2.dispatchAction({ type: 'highlight', dataIndex: e.dataIndex });
264
-							pie2DataIndex = e.dataIndex
265
-						});
266
-						pie2.dispatchAction({ type: 'highlight', dataIndex: pie2DataIndex });
267
-
268
-					 	//机构分类统计
269
-					 	let guaArrNameArr = data.countData.guaArrName.split(",");
270
-					 	let guaArrNumArr = data.countData.guaArrNum.split(",");
271
-					 	datas = {};						
272
-					 	for(var i=0;i<guaArrNameArr.length;i++){
273
-					 		datas[guaArrNameArr[i]] = guaArrNumArr[i];
274
-					 	}
275
-					 	chartData = {};
276
-					 	chartData.datas = datas;
277
-					 	chartData.subtext = '';
278
-					 	chartData.seriesName = "保障机构类别";
279
-					 	chartData.isShowLine= false
280
-					 	chartData.isShowTooltip = false
281
-					 	// setBar("guaChart", chartData);
282
-						setChart("#guaChart", getBar2Option(guaArrNameArr, guaArrNumArr))
283
-
284
-					 	//供应设备分类统计
285
-					 	let devArrName = data.countData.devArrName.split(",");
286
-					 	let devArrNum = data.countData.devArrNum.split(",");
287
-					 	datas = {};						
288
-					 	for(var i=0;i<devArrName.length;i++){
289
-					 		datas[devArrName[i]] = devArrNum[i];
290
-					 	}
291
-					 	chartData = {};
292
-					 	chartData.datas = datas;
293
-					 	chartData.subtext = '';
294
-					 	chartData.seriesName = "设备类别";
295
-					 	chartData.isShowLine= false
296
-					 	chartData.isShowTooltip = false
297
-					 	// setPie("devChart", chartData);
298
-						var pie1 = setChart("#devChart", getPie1Option(datas));
299
-						// 默认选中第一个, 并处理选中逻辑
300
-						var pie1DataIndex = 0
301
-						pie1.on('mousemove', function(e) {
302
-							pie1.dispatchAction({ type: 'downplay', dataIndex: pie1DataIndex });
303
-							pie1.dispatchAction({ type: 'highlight', dataIndex: e.dataIndex });
304
-							pie1DataIndex = e.dataIndex
305
-						});
306
-						pie1.dispatchAction({ type: 'highlight', dataIndex: pie1DataIndex });
307
-
308
-					 	let guaAbiJson = data.countData.guaAbiJson
309
-					 	$(".info-list").find("span").each(function(){
310
-					 		let objId = $(this).attr("id")
311
-					 		if(guaAbiJson[objId] != null){
312
-					 			$(this).text(guaAbiJson[objId]);
313
-					 		}					 		
314
-					 	})
315
-					 	let config_service_ability = guaAbiJson.config_service_ability
316
-					 	let serviceArr = config_service_ability.split(",")
317
-					 	for(let key in serviceArr){
318
-					 		if(serviceArr[key] != null && serviceArr[key] != ""){
319
-						 		$(".info-text").append('<span class="label">'+serviceArr[key]+'</span>')
320
-
321
-					 		}
322
-					 	}
323
- 					}
324
- 				});
325
-		        
326
-	}
327
-	function taskTimeReport() {
328
-		let year = $("#selYear").val()
329
-		$
330
-		.ajax({
331
-			url : urlPre + "taskTimeReport?yearTime="+year,
332
-			dataType : 'json',
333
-				success : function(yearTask) {
334
-					var chartData = {};
335
-                    let xAxisData = []
336
-                    let datas = []
337
-                    for(let key in yearTask){
338
-                    	xAxisData[xAxisData.length] = key
339
-                    	datas[datas.length] = yearTask[key]
340
-                    }                      
341
-                    chartData.datas = datas;
342
-					chartData.xAxisData = xAxisData;
343
-					chartData.addNum = 2;
344
-					setLine("taskChart", chartData);	
345
-				}
346
-		})
347
-	}
348
-	function commentReport(){
349
-		let queryParams = {};
350
-		queryParams.schCols = 'itemCode,itemName';
351
-		queryParams.limit = 200
352
-		queryParams["sorts[0].field"] = 'sort';
353
-		queryParams["sorts[0].order"] = 'asc';
354
-		queryParams.search_LENGTH_itemCode = 2;
355
-		let colArr = []
356
-		$.ajax({
357
-			type : 'post',
358
-			async : false,
359
-			url : urlPre + 'api/commentItem/page',
360
-			data:queryParams,
361
-			dataType : 'json',
362
-			success : function(data) {
363
-				var rows = data.rows;
364
-				for(var m = 0; m < rows.length; m++){
365
-					if(m<3){
366
-						let row = rows[m]
367
-						let str = '<span>'+row.itemName+'(优)</span>'
368
-	                    $("#commentLi").append(str)
369
-	                    colArr[colArr.length] = row.itemCode + "_1"
370
-					}
371
-				
372
-				}
373
-			}
374
-		});	
375
-		return colArr;
23
+<script>
24
+	var paramT = '1';
25
+	var matched = /t=(\d)/.exec(location.search);
26
+	if (matched) {
27
+		paramT = matched[1] || '1';
376 28
 	}
377 29
 
378
-	console.log('-------->', window)
379
-</script> 
30
+	if (paramT == '2') {
31
+		document.querySelector('#t2').style.display="block"
32
+	} else {
33
+		document.querySelector('#t1').style.display="block"
34
+	}
35
+</script>
380 36
 </html>

+ 204
- 0
resources/templates/main/dashboard.html View File

@@ -0,0 +1,204 @@
1
+<!DOCTYPE html>
2
+<html lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
3
+<div id="t1" th:fragment="main-dashboard" class="dashboard-page" style="display: none;">
4
+  <script>
5
+    function onAction(menuId, subMenuName) {
6
+      // 额外添加, 显示菜单栏
7
+      parent.onNavMenuClick(menuId);
8
+      parent.subMenuClick(subMenuName);
9
+    }
10
+  </script>
11
+
12
+  <div>
13
+    <div class="dash-carousel">
14
+      <div class="ratio-static">
15
+        
16
+    <div id="myNiceCarousel" class="carousel slide" data-ride="carousel">
17
+      <!-- 轮播项目 -->
18
+      <div class="carousel-inner">
19
+        <div class="item active">
20
+          <img alt="First slide" src="http://openzui.com/docs/img/slide1.jpg">
21
+          <div class="carousel-caption">
22
+            <h3>我是第一张幻灯片</h3>
23
+            <p>:)</p>
24
+          </div>
25
+        </div>
26
+        <div class="item">
27
+          <img alt="Second slide" src="http://openzui.com/docs/img/slide2.jpg">
28
+          <div class="carousel-caption">
29
+            <h3>我是第二张幻灯片</h3>
30
+            <p>0.0</p>
31
+          </div>
32
+        </div>
33
+        <div class="item">
34
+          <img alt="Third slide" src="http://openzui.com/docs/img/slide3.jpg">
35
+          <div class="carousel-caption">
36
+            <h3>我是第三张幻灯片</h3>
37
+            <p>最后一张咯~</p>
38
+          </div>
39
+        </div>
40
+      </div>
41
+    
42
+      <!-- 项目切换按钮 -->
43
+      <a class="left carousel-control" href="#myNiceCarousel" data-slide="prev">
44
+        <span class="icon icon-chevron-left"></span>
45
+      </a>
46
+      <a class="right carousel-control" href="#myNiceCarousel" data-slide="next">
47
+        <span class="icon icon-chevron-right"></span>
48
+      </a>
49
+    </div>
50
+      </div>
51
+    </div>
52
+
53
+  </div>
54
+  <div class="act-list">
55
+    <div class="row">
56
+      <div class="col-md-3" onclick="onAction('nav-menu-report','年度任务汇总')">
57
+        <div class="act-bg">
58
+          <img th:src="@{/images/dashboard/menu_bg.png}" alt="">
59
+          <img th:src="@{/images/dashboard/menu_bg_active.png}" alt="">
60
+        </div>
61
+
62
+        <div class="act-body">
63
+          <div class="act-icon">
64
+            <img th:src="@{/images/dashboard/年度任务汇总.png}" alt="">
65
+            <img th:src="@{/images/dashboard/年度任务汇总click.png}" alt="">
66
+          </div>
67
+          <div class="act-content">
68
+            <img th:src="@{/images/dashboard/left.png}" alt="">
69
+            <span>年度任务汇总</span>
70
+            <img th:src="@{/images/dashboard/right.png}" alt="">
71
+          </div>
72
+        </div>
73
+      </div>
74
+      <div class="col-md-3" onclick="onAction('nav-menu-report','军供任务明细')">
75
+        <div class="act-bg">
76
+          <img th:src="@{/images/dashboard/menu_bg.png}" alt="">
77
+          <img th:src="@{/images/dashboard/menu_bg_active.png}" alt="">
78
+        </div>
79
+
80
+        <div class="act-body">
81
+          <div class="act-icon">
82
+            <img th:src="@{/images/dashboard/军供任务明细.png}" alt="">
83
+            <img th:src="@{/images/dashboard/军供任务明细click.png}" alt="">
84
+          </div>
85
+          <div class="act-content">
86
+            <img th:src="@{/images/dashboard/left.png}" alt="">
87
+            <span>军供任务明细</span>
88
+            <img th:src="@{/images/dashboard/right.png}" alt="">
89
+          </div>
90
+        </div>
91
+      </div>
92
+      <div class="col-md-3" onclick="onAction('nav-menu-report','军供保障能力')">
93
+        <div class="act-bg">
94
+          <img th:src="@{/images/dashboard/menu_bg.png}" alt="">
95
+          <img th:src="@{/images/dashboard/menu_bg_active.png}" alt="">
96
+        </div>
97
+
98
+        <div class="act-body">
99
+          <div class="act-icon">
100
+            <img th:src="@{/images/dashboard/军供保障能力.png}" alt="">
101
+            <img th:src="@{/images/dashboard/军供保障能力click.png}" alt="">
102
+          </div>
103
+          <div class="act-content">
104
+            <img th:src="@{/images/dashboard/left.png}" alt="">
105
+            <span>军供保障能力</span>
106
+            <img th:src="@{/images/dashboard/right.png}" alt="">
107
+          </div>
108
+        </div>
109
+      </div>
110
+      <div class="col-md-3" onclick="onAction('nav-menu-report','军供保障预案')">
111
+        <div class="act-bg">
112
+          <img th:src="@{/images/dashboard/menu_bg.png}" alt="">
113
+          <img th:src="@{/images/dashboard/menu_bg_active.png}" alt="">
114
+        </div>
115
+
116
+        <div class="act-body">
117
+          <div class="act-icon">
118
+            <img th:src="@{/images/dashboard/社会保障预案.png}" alt="">
119
+            <img th:src="@{/images/dashboard/社会保障预案click.png}" alt="">
120
+          </div>
121
+          <div class="act-content">
122
+            <img th:src="@{/images/dashboard/left.png}" alt="">
123
+            <span>军供保障预案</span>
124
+            <img th:src="@{/images/dashboard/right.png}" alt="">
125
+          </div>
126
+        </div>
127
+      </div>
128
+    </div>
129
+    <div class="row">
130
+      <div class="col-md-3" onclick="onAction('nav-menu-report','社会保障机构')">
131
+        <div class="act-bg">
132
+          <img th:src="@{/images/dashboard/menu_bg.png}" alt="">
133
+          <img th:src="@{/images/dashboard/menu_bg_active.png}" alt="">
134
+        </div>
135
+
136
+        <div class="act-body">
137
+          <div class="act-icon">
138
+            <img th:src="@{/images/dashboard/社会保障机构.png}" alt="">
139
+            <img th:src="@{/images/dashboard/社会保障机构click.png}" alt="">
140
+          </div>
141
+          <div class="act-content">
142
+            <img th:src="@{/images/dashboard/left.png}" alt="">
143
+            <span>社会保障机构</span>
144
+            <img th:src="@{/images/dashboard/right.png}" alt="">
145
+          </div>
146
+        </div>
147
+      </div>
148
+      <div class="col-md-3" onclick="onAction('nav-menu-report','军供供应设备')">
149
+        <div class="act-bg">
150
+          <img th:src="@{/images/dashboard/menu_bg.png}" alt="">
151
+          <img th:src="@{/images/dashboard/menu_bg_active.png}" alt="">
152
+        </div>
153
+
154
+        <div class="act-body">
155
+          <div class="act-icon">
156
+            <img th:src="@{/images/dashboard/军供供应设备.png}" alt="">
157
+            <img th:src="@{/images/dashboard/军供供应设备click.png}" alt="">
158
+          </div>
159
+          <div class="act-content">
160
+            <img th:src="@{/images/dashboard/left.png}" alt="">
161
+            <span>军供供应设备</span>
162
+            <img th:src="@{/images/dashboard/right.png}" alt="">
163
+          </div>
164
+        </div>
165
+      </div>
166
+      <div class="col-md-3" onclick="onAction('nav-menu-government','军供站简介')">
167
+        <div class="act-bg">
168
+          <img th:src="@{/images/dashboard/menu_bg.png}" alt="">
169
+          <img th:src="@{/images/dashboard/menu_bg_active.png}" alt="">
170
+        </div>
171
+
172
+        <div class="act-body">
173
+          <div class="act-icon">
174
+            <img th:src="@{/images/dashboard/军供站简介.png}" alt="">
175
+            <img th:src="@{/images/dashboard/军供站简介click.png}" alt="">
176
+          </div>
177
+          <div class="act-content">
178
+            <img th:src="@{/images/dashboard/left.png}" alt="">
179
+            <span>军供站简介</span>
180
+            <img th:src="@{/images/dashboard/right.png}" alt="">
181
+          </div>
182
+        </div>
183
+      </div>
184
+      <div class="col-md-3" onclick="onAction('nav-menu-government','安防管理')">
185
+        <div class="act-bg">
186
+          <img th:src="@{/images/dashboard/menu_bg.png}" alt="">
187
+          <img th:src="@{/images/dashboard/menu_bg_active.png}" alt="">
188
+        </div>
189
+
190
+        <div class="act-body">
191
+          <div class="act-icon">
192
+            <img th:src="@{/images/dashboard/安防管理.png}" alt="">
193
+            <img th:src="@{/images/dashboard/安防管理click.png}" alt="">
194
+          </div>
195
+          <div class="act-content">
196
+            <img th:src="@{/images/dashboard/left.png}" alt="">
197
+            <span>安防管理</span>
198
+            <img th:src="@{/images/dashboard/right.png}" alt="">
199
+          </div>
200
+        </div>
201
+      </div>
202
+    </div>
203
+  </div>
204
+</div>

+ 355
- 0
resources/templates/main/data.html View File

@@ -0,0 +1,355 @@
1
+<!DOCTYPE html>
2
+<html lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
3
+<div id="t2" th:fragment="main-data" class="chart-page" style="display: none;">
4
+  <div class="flex-part">
5
+    <div class="flex-part-3">
6
+      <div class="count">
7
+        <dl>
8
+          <dt id="totalTask">0</dt>
9
+          <dd>任务总数</dd>
10
+          <img th:src="@{/images/statistic/数字统计.png}" alt="">
11
+        </dl>
12
+        <dl>
13
+          <dt id="totalPerson">0</dt>
14
+          <dd>接待军人总数</dd>
15
+          <img th:src="@{/images/statistic/接待军人总数.png}" alt="">
16
+        </dl>
17
+        <dl>
18
+          <dt id="totalOrg">0</dt>
19
+          <dd>保障机构数</dd>
20
+          <img th:src="@{/images/statistic/保障机构数.png}" alt="">
21
+        </dl>
22
+        <dl>
23
+          <dt id="totalEquipment">0</dt>
24
+          <dd>设备数量</dd>
25
+          <img th:src="@{/images/statistic/设备数量.png}" alt="">
26
+        </dl>
27
+      </div>
28
+    
29
+      <div class="panelGroup flex-part" style="padding-bottom:0;">
30
+        <div class="panel flex-part-2 chart-card">
31
+          <div class="panel-heading">
32
+            <img th:src="@{/images/statistic/任务统计.png}" />
33
+            <span>任务统计</span>
34
+            <!-- <svg>
35
+              <defs>
36
+                  <linearGradient id="grad" x1="0" y1="100%" x2="0" y2="0">
37
+                      <stop offset="0%" style="stop-color:#6F39B9; stop-opacity:1" />
38
+                      <stop offset="100%" style="stop-color:#1EAED1; stop-opacity:1" />
39
+                  </linearGradient>
40
+              </defs>
41
+              <text x="0" y="22" fill="url(#grad)" style="font-size:22px">任务统计</text>
42
+            </svg> -->
43
+            <div class="selectGroup">
44
+              <select class="" id="selYear" onchange="taskTimeReport()">
45
+                  </select>
46
+            </div>
47
+          </div>
48
+          <div class="panel-body">
49
+            <div class="text-center">
50
+              <div class="text-center" style="height:300px;" id="taskChart"></div>
51
+            </div>
52
+          </div>
53
+        </div>
54
+        <div class="flex-part-1">
55
+          <div class="panel chart-card">
56
+            <div class="panel-heading">
57
+              <img th:src="@{/images/statistic/设备分类统计.png}" />
58
+              <span>设备分类统计</span>
59
+            </div>
60
+            <div class="panel-body">
61
+              <div class="text-center" style="height:260px;" id="devChart"></div>
62
+            </div>
63
+          </div>
64
+        </div>
65
+      </div>
66
+
67
+
68
+    </div>
69
+    <div class="flex-part-1">
70
+      <div class="panel chart-card" style="margin: 15px 30px 0 0; height: calc(100% - 15px)">
71
+        <div class="panel-heading">
72
+          <img th:src="@{/images/statistic/军供保障能力.png}" />
73
+          <span>军供保障能力</span>
74
+        </div>
75
+        <div class="panel-body" style="height: calc(100% - 60px);">
76
+          <div class="info-text">
77
+            
78
+          </div>
79
+          <ul class="info-list" style="overflow-y: auto; height: 100%;">
80
+            <li title="常规单日整体膳食供应能力(人次)"><span id="ztssgynl">0</span>常规单日整体膳食供应能力(人次):</li>
81
+            <li title="常规单次整体膳食供应能力(人)"><span id="dcztssgynl">0</span>常规单次整体膳食供应能力(人):</li>
82
+            <li title="应急单日整体膳食供应能力(人次)"><span id="yjztssgynl">0</span>应急单日整体膳食供应能力(人次):</li>
83
+            <li title="应急单次整体膳食供应能力(人)"><span id="yjdcztssgynl">0</span>应急单次整体膳食供应能力(人):</li>
84
+            <li title="常规整体住宿供应能力(人)"><span id="ztzsgynl">0</span>常规整体住宿供应能力(人):</li>
85
+            <li title="应急整体住宿供应能力(人)"><span id="yjztzsgynl">0</span>应急整体住宿供应能力(人):</li>
86
+          </ul>
87
+        </div>
88
+      </div>
89
+    </div>
90
+  </div>
91
+  <div class="panelGroup">
92
+    <div class="panel panel-row-2 chart-card">
93
+      <div class="panel-heading">
94
+        <img th:src="@{/images/statistic/社会保障机构分类统计.png}" />
95
+        <span>社会保障机构分类统计</span>
96
+      </div>
97
+      <div class="panel-body">
98
+        <div class="text-center" id="guaChart" style="height:320px"></div>
99
+      </div>
100
+    </div>
101
+    <div class="panel panel-row-2 chart-card">
102
+      <div class="panel-heading">
103
+        <img th:src="@{/images/statistic/人员统计.png}" />
104
+        <span>人员统计</span>
105
+      </div>
106
+      <div class="panel-body">
107
+        <div class="col-sm-6 text-center" id="eduChart" style="height:300px;">
108
+        </div>
109
+        <div class="col-sm-6 text-center" id="ageChart" style="height:270px;">
110
+        </div>
111
+      </div>
112
+    </div>
113
+  </div>
114
+  <script>
115
+   function loadPage() {
116
+     let colArr = commentReport();
117
+     $
118
+         .ajax({
119
+           url : urlPre + "getMainData",
120
+           dataType : 'json',
121
+            success : function(data) {
122
+ 
123
+             (function mockData(dt) {
124
+               function rand() {
125
+                 return Math.floor(100 * Math.random() + 10);
126
+               }
127
+ 
128
+               dt.countData.ageArrNum = dt.countData.ageArrNum.split(',').map(rand).join(',')
129
+               dt.countData.devArrNum = dt.countData.devArrNum.split(',').map(rand).join(',')
130
+               dt.countData.guaArrNum = dt.countData.guaArrNum.split(',').map(rand).join(',')
131
+               dt.countData.eduNum = dt.countData.eduNum.split(',').map(rand).join(',')
132
+               dt.countData.guaAbiJson.clzs = rand()
133
+               dt.countData.guaAbiJson.dcztssgynl = rand()
134
+               dt.countData.guaAbiJson.yjdcztssgynl = rand()
135
+               dt.countData.guaAbiJson.yjztssgynl = rand()
136
+               dt.countData.guaAbiJson.ztssgynl = rand()
137
+               dt.countData.guaAbiJson.ztzsgynl = rand()
138
+               dt.yearTask = Object.keys(dt.yearTask).map((key) => {
139
+                 return {[key]: rand()}
140
+               }).reduce((acc, item) => ({ ...acc, ...item }), {})
141
+             })(data)
142
+ 
143
+             console.log(data)
144
+ 
145
+              $("#totalTask").text(data.totalTask);
146
+              $("#totalOrg").text(data.totalOrg);
147
+              $("#totalPerson").text(data.totalPerson);
148
+              $("#totalEquipment").text(data.totalEquipment);
149
+              //选择年份 按月统计任务
150
+              var myDate = new Date();
151
+                         var tYear = myDate.getFullYear();
152
+                         var lasYear = tYear - 1;
153
+                         $("#selYear").html("<option value='"+tYear+"'>"+tYear+"年</option><option value='"+lasYear+"'>"+lasYear+"年</option>");
154
+              var chartData = {};
155
+                         let yearTask = data.yearTask
156
+                         let xAxisData = []
157
+                         let datas = []
158
+                         for(let key in yearTask){
159
+                           xAxisData[xAxisData.length] = key
160
+                           datas[datas.length] = yearTask[key]
161
+                         }                      
162
+              chartData.datas = datas;
163
+              chartData.xAxisData = xAxisData;
164
+              // setLine("taskChart", chartData);
165
+ 
166
+             setChart("#taskChart", getBar1Option(xAxisData, datas))
167
+                         
168
+              var comments = data.comments;
169
+              var commentUl = "";
170
+              for (var key in comments) {
171
+                var tmpData = comments[key];
172
+                commentUl += '<li><a href="###"><h2>'+tmpData.taskNumber+'</h2>'
173
+                let config_evaluate_item = tmpData.config_evaluate_item.split(",")
174
+                for(var ky in colArr){
175
+                  if(config_evaluate_item.indexOf(colArr[ky].substring(0,2)) !=-1){
176
+                    if(tmpData[colArr[ky]] != null){
177
+                       let num = tmpData[colArr[ky]];
178
+                        let total = tmpData[colArr[ky].substring(0,2)]
179
+                        let addNum = (num/total*100).toFixed() + "%"
180
+                        commentUl += '<span>'+addNum+'</span>'
181
+                     }else{
182
+                       commentUl += '<span>0%</span>'
183
+                     }
184
+                  }else{
185
+                    commentUl += '<span>未选择</span>'
186
+                  }
187
+                
188
+                  
189
+                }
190
+                commentUl += '</li>';		
191
+              }
192
+              $("#commentUl").html(commentUl);
193
+              
194
+              var taskInfos = data.taskInfos;
195
+              var taskInfoUl = "";
196
+              for (var key in taskInfos) {
197
+                var tmpData = taskInfos[key];
198
+                taskInfoUl += '<li><a href="###"><h2>'+tmpData.taskNumber+'</h2><span>'+tmpData.data_date.substring(0,10)+'</span><span>'
199
+                               +tmpData.config_supply_main+'</span></a></li>';
200
+              }
201
+              $("#taskInfoUl").html(taskInfoUl);
202
+              //人员学历统计
203
+              
204
+              chartData = {};
205
+              let eduArrNameArr = data.countData.eduArrName.split(",")
206
+              let eduNumArr = data.countData.eduNum.split(",")
207
+               datas = {};
208
+              datas[eduArrNameArr[0]] = eduNumArr[0];
209
+              datas[eduArrNameArr[1]] = eduNumArr[1];
210
+              datas[eduArrNameArr[2]] = eduNumArr[2];
211
+             chartData.datas = datas;
212
+             chartData.subtext = '人员学历统计';
213
+             chartData.seriesName = "学历";
214
+             chartData.addNum = 2
215
+             // setBar("eduChart", chartData);
216
+             setChart("#eduChart", getBar3Option(eduArrNameArr, eduNumArr))
217
+ 
218
+             
219
+             //人员年龄统计
220
+             let ageArrNameArr = data.countData.ageArrName.split(",")
221
+             let ageArrNum = data.countData.ageArrNum.split(",")
222
+             datas = {};
223
+             datas[ageArrNameArr[0]] = ageArrNum[0];
224
+              datas[ageArrNameArr[1]] = ageArrNum[1];
225
+              datas[ageArrNameArr[2]] = ageArrNum[2];
226
+              datas[ageArrNameArr[3]] = ageArrNum[3];
227
+                 chartData = {};
228
+              chartData.datas = datas;
229
+              chartData.subtext = '人员年龄统计';
230
+              chartData.seriesName = "年龄";
231
+              chartData.isShowLine= false
232
+              chartData.isShowTooltip = false
233
+              // setPie("ageChart", chartData);	
234
+              var pie2 = setChart("#ageChart", getPie2Option(datas))
235
+             // 默认选中第一个, 并处理选中逻辑
236
+             var pie2DataIndex = 0
237
+             pie2.on('mousemove', function(e) {
238
+               pie2.dispatchAction({ type: 'downplay', dataIndex: pie2DataIndex });
239
+               pie2.dispatchAction({ type: 'highlight', dataIndex: e.dataIndex });
240
+               pie2DataIndex = e.dataIndex
241
+             });
242
+             pie2.dispatchAction({ type: 'highlight', dataIndex: pie2DataIndex });
243
+ 
244
+              //机构分类统计
245
+              let guaArrNameArr = data.countData.guaArrName.split(",");
246
+              let guaArrNumArr = data.countData.guaArrNum.split(",");
247
+              datas = {};						
248
+              for(var i=0;i<guaArrNameArr.length;i++){
249
+                datas[guaArrNameArr[i]] = guaArrNumArr[i];
250
+              }
251
+              chartData = {};
252
+              chartData.datas = datas;
253
+              chartData.subtext = '';
254
+              chartData.seriesName = "保障机构类别";
255
+              chartData.isShowLine= false
256
+              chartData.isShowTooltip = false
257
+              // setBar("guaChart", chartData);
258
+             setChart("#guaChart", getBar2Option(guaArrNameArr, guaArrNumArr))
259
+ 
260
+              //供应设备分类统计
261
+              let devArrName = data.countData.devArrName.split(",");
262
+              let devArrNum = data.countData.devArrNum.split(",");
263
+              datas = {};						
264
+              for(var i=0;i<devArrName.length;i++){
265
+                datas[devArrName[i]] = devArrNum[i];
266
+              }
267
+              chartData = {};
268
+              chartData.datas = datas;
269
+              chartData.subtext = '';
270
+              chartData.seriesName = "设备类别";
271
+              chartData.isShowLine= false
272
+              chartData.isShowTooltip = false
273
+              // setPie("devChart", chartData);
274
+             var pie1 = setChart("#devChart", getPie1Option(datas));
275
+             // 默认选中第一个, 并处理选中逻辑
276
+             var pie1DataIndex = 0
277
+             pie1.on('mousemove', function(e) {
278
+               pie1.dispatchAction({ type: 'downplay', dataIndex: pie1DataIndex });
279
+               pie1.dispatchAction({ type: 'highlight', dataIndex: e.dataIndex });
280
+               pie1DataIndex = e.dataIndex
281
+             });
282
+             pie1.dispatchAction({ type: 'highlight', dataIndex: pie1DataIndex });
283
+ 
284
+              let guaAbiJson = data.countData.guaAbiJson
285
+              $(".info-list").find("span").each(function(){
286
+                let objId = $(this).attr("id")
287
+                if(guaAbiJson[objId] != null){
288
+                  $(this).text(guaAbiJson[objId]);
289
+                }					 		
290
+              })
291
+              let config_service_ability = guaAbiJson.config_service_ability
292
+              let serviceArr = config_service_ability.split(",")
293
+              for(let key in serviceArr){
294
+                if(serviceArr[key] != null && serviceArr[key] != ""){
295
+                  $(".info-text").append('<span class="label">'+serviceArr[key]+'</span>')
296
+ 
297
+                }
298
+              }
299
+            }
300
+          });
301
+             
302
+   }
303
+   function taskTimeReport() {
304
+     let year = $("#selYear").val()
305
+     $
306
+     .ajax({
307
+       url : urlPre + "taskTimeReport?yearTime="+year,
308
+       dataType : 'json',
309
+         success : function(yearTask) {
310
+           var chartData = {};
311
+                     let xAxisData = []
312
+                     let datas = []
313
+                     for(let key in yearTask){
314
+                       xAxisData[xAxisData.length] = key
315
+                       datas[datas.length] = yearTask[key]
316
+                     }                      
317
+                     chartData.datas = datas;
318
+           chartData.xAxisData = xAxisData;
319
+           chartData.addNum = 2;
320
+           setLine("taskChart", chartData);	
321
+         }
322
+     })
323
+   }
324
+   function commentReport(){
325
+     let queryParams = {};
326
+     queryParams.schCols = 'itemCode,itemName';
327
+     queryParams.limit = 200
328
+     queryParams["sorts[0].field"] = 'sort';
329
+     queryParams["sorts[0].order"] = 'asc';
330
+     queryParams.search_LENGTH_itemCode = 2;
331
+     let colArr = []
332
+     $.ajax({
333
+       type : 'post',
334
+       async : false,
335
+       url : urlPre + 'api/commentItem/page',
336
+       data:queryParams,
337
+       dataType : 'json',
338
+       success : function(data) {
339
+         var rows = data.rows;
340
+         for(var m = 0; m < rows.length; m++){
341
+           if(m<3){
342
+             let row = rows[m]
343
+             let str = '<span>'+row.itemName+'(优)</span>'
344
+                       $("#commentLi").append(str)
345
+                       colArr[colArr.length] = row.itemCode + "_1"
346
+           }
347
+         
348
+         }
349
+       }
350
+     });	
351
+     return colArr;
352
+   }
353
+ 
354
+ </script> 
355
+</div>

+ 48
- 37
resources/templates/office/add.html View File

@@ -1,48 +1,59 @@
1 1
 <html lang="zh-CN">
2
-<head
3
-	th:replace="common/common_header::common_header(~{},~{},~{},~{::script},'edit')">
4
-<meta charset="utf-8" />
5
-<script th:src="@{/js/office/add.js}"></script>
2
+
3
+<head th:replace="common/common_header::common_header(~{},~{},~{},~{::script},'edit')">
4
+	<meta charset="utf-8" />
5
+	<script th:src="@{/js/office/add.js}"></script>
6 6
 </head>
7
-<body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">  	
8
-		<div class="panel-body">
9
-		<form id="officeForm"  method="post" class="conForm load-indicator" data-loading="正在处理...">
10
-			<h1 class="title">基本信息</h1>
11
-			<div class="form-group col-xs-12">
12
-				<label class="required col-sm-4">科室名称:</label>
13
-				<div class="col-lg-6 col-xs-8">
14
-					<input id="depName" name="depName" class="form-control required" 
15
-						 maxlength="100">
16
-				</div>
17
-			</div>
18
-			<div class="form-group col-xs-12">
19
-				<label class="required col-sm-4">科室负责人:</label>
20
-				<div class="col-lg-6 col-xs-8">
21
-					<input id="depfzr" name="depfzr" class="form-control required" 
22
-						 maxlength="20">
23
-				</div>
24
-			</div>
25
-			<div class="form-group col-xs-12">
26
-				<label class="required col-sm-4">负责人联系电话:</label>
27
-				<div class="col-lg-6 col-xs-8">
28
-					<input id="tel" name="tel" class="form-control isTel required" 
29
-						 maxlength="20">
7
+
8
+<body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">
9
+	<div class="panel-body">
10
+		<form id="officeForm" method="post" class="conForm load-indicator" data-loading="正在处理...">
11
+			<div class="ext-card">
12
+				<h1 class="title">基本信息</h1>
13
+				<div class="wd-m">
14
+					<div class="form-group col-xs-12">
15
+						<label class="required col-sm-4">科室名称:</label>
16
+						<div class="col-lg-6 col-xs-8">
17
+							<input id="depName" name="depName" class="form-control required" maxlength="100">
18
+						</div>
19
+					</div>
20
+					<div class="form-group col-xs-12">
21
+						<label class="required col-sm-4">科室负责人:</label>
22
+						<div class="col-lg-6 col-xs-8">
23
+							<input id="depfzr" name="depfzr" class="form-control required" maxlength="20">
24
+						</div>
25
+					</div>
26
+					<div class="form-group col-xs-12">
27
+						<label class="required col-sm-4">负责人联系电话:</label>
28
+						<div class="col-lg-6 col-xs-8">
29
+							<input id="tel" name="tel" class="form-control isTel required" maxlength="20">
30
+						</div>
31
+					</div>
30 32
 				</div>
31 33
 			</div>
32
-			<h1 class="title">职责信息</h1>
33
-			<div class="form-group col-xs-12">
34
-				<div class="col-lg-10 col-xs-12">
35
-						<textarea style="resize: none;" rows="5" name="depDuty"
36
-						maxlength="300" class="form-control"></textarea>
34
+
35
+			<div class="ext-card">
36
+				<h1 class="title">职责信息</h1>
37
+				<div class="wd-m">
38
+					<div class="form-group col-xs-12">
39
+						<div class="col-lg-10 col-xs-12">
40
+							<textarea style="resize: none;" rows="5" name="depDuty" maxlength="300" class="form-control"></textarea>
41
+						</div>
42
+					</div>
37 43
 				</div>
38 44
 			</div>
39
-			<h1 class="title">备注信息</h1>
40
-			<div class="form-group col-xs-12">
41
-				<div class="col-lg-10 col-xs-12">
42
-						<textarea style="resize: none;" rows="5" name="remark"
43
-						maxlength="500" class="form-control"></textarea>
45
+
46
+			<div class="ext-card">
47
+				<h1 class="title">备注信息</h1>
48
+				<div class="wd-m">
49
+					<div class="form-group col-xs-12">
50
+						<div class="col-lg-10 col-xs-12">
51
+							<textarea style="resize: none;" rows="5" name="remark" maxlength="500" class="form-control"></textarea>
52
+						</div>
53
+					</div>
44 54
 				</div>
45 55
 			</div>
56
+
46 57
 			<div class="btnEnd">
47 58
 				<button class="btn btn-primary" id="submitBtn" type="button">保存</button>
48 59
 				<button class="btn" type="button" onclick="history.back();">取消</button>

+ 41
- 26
resources/templates/office/details.html View File

@@ -1,40 +1,55 @@
1 1
 <html lang="zh-CN">
2
-<head
3
-	th:replace="common/common_header::common_header(~{},~{},~{},~{::script},'')">
4
-<meta charset="utf-8">
5
-<script th:src="@{/js/office/details.js}"></script>
2
+
3
+<head th:replace="common/common_header::common_header(~{},~{},~{},~{::script},'')">
4
+	<meta charset="utf-8">
5
+	<script th:src="@{/js/office/details.js}"></script>
6 6
 </head>
7
+
7 8
 <body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">
8 9
 	<div class="panel-body">
9
-		<form id="officeForm" action="" method="post"
10
-			class="conForm view-info">		
11
-				<h1 class="title">基本信息</h1>	
12
-			<div class="col-xs-6">
13
-				<label>科室名称:</label>[[${officeObj.depName}]]
14
-			</div>
15
-			<div class="col-xs-6">
16
-				<label>科室负责人:</label>[[${officeObj.depfzr}]]
10
+		<form id="officeForm" action="" method="post" class="conForm">
11
+			<div class="ext-card">
12
+				<h1 class="title">基本信息</h1>
13
+				<div class="view-info">
14
+					<div class="col-xs-6">
15
+						<label>科室名称:</label>[[${officeObj.depName}]]
16
+					</div>
17
+					<div class="col-xs-6">
18
+						<label>科室负责人:</label>[[${officeObj.depfzr}]]
17 19
 
20
+					</div>
21
+					<div class="col-xs-6">
22
+						<label>负责人联系电话:</label> [[${officeObj.tel}]]
23
+					</div>
24
+					<div class="col-xs-6">
25
+						<label>科室人员数:</label>[[${officeObj.depPeo}]]
26
+					</div>
27
+				</div>
18 28
 			</div>
19
-			<div class="col-xs-6">
20
-				<label>负责人联系电话:</label> [[${officeObj.tel}]]
21
-			</div>
22
-			<div class="col-xs-6">
23
-				<label>科室人员数:</label>[[${officeObj.depPeo}]]
24
-			</div>
25
-			<h1 class="title">职责信息</h1>
26
-			<div class="text">
27
-				[[${officeObj.depDuty}]]
29
+
30
+			<div class="ext-card">
31
+				<h1 class="title">职责信息</h1>
32
+				<div class="view-info">
33
+					<div class="text">
34
+						[[${officeObj.depDuty}]]
35
+					</div>
36
+				</div>
28 37
 			</div>
29
-			<h1 class="title">备注信息</h1>
30
-			<div class="text">
31
-				[[${officeObj.remark}]]
38
+
39
+			<div class="ext-card">
40
+				<h1 class="title">备注信息</h1>
41
+				<div class="view-info">
42
+					<div class="text">
43
+						[[${officeObj.remark}]]
44
+					</div>
45
+				</div>
32 46
 			</div>
47
+
33 48
 			<div class="btnEnd">
34
-				<button class="btn btn-primary" type="button"
35
-					onclick="history.back();">返回</button>
49
+				<button class="btn btn-primary" type="button" onclick="history.back();">返回</button>
36 50
 			</div>
37 51
 		</form>
38 52
 	</div>
39 53
 </body>
54
+
40 55
 </html>

+ 53
- 38
resources/templates/office/update.html View File

@@ -1,49 +1,64 @@
1 1
 <html lang="zh-CN">
2
-<head
3
-	th:replace="common/common_header::common_header(~{},~{},~{},~{::script},'edit')">
4
-<meta charset="utf-8" />
5
-<script th:src="@{/js/office/update.js}"></script>
2
+
3
+<head th:replace="common/common_header::common_header(~{},~{},~{},~{::script},'edit')">
4
+	<meta charset="utf-8" />
5
+	<script th:src="@{/js/office/update.js}"></script>
6 6
 </head>
7
-<body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">  	
8
-		<div class="panel-body">
9
-		<form id="officeForm"  method="post" class="conForm load-indicator" data-loading="正在处理...">
10
-		<input type="hidden" id="id" name="id" th:value="${officeObj.id}" />
11
-			<h1 class="title">基本信息</h1>
12
-			<div class="form-group col-xs-12">
13
-				<label class="required col-sm-4">科室名称:</label>
14
-				<div class="col-lg-6 col-xs-8">
15
-					<input id="depName" name="depName" class="form-control required" th:value="${officeObj.depName}"
16
-						 maxlength="100">
17
-				</div>
18
-			</div>
19
-			<div class="form-group col-xs-12">
20
-				<label class="required col-sm-4">科室负责人:</label>
21
-				<div class="col-lg-6 col-xs-8">
22
-					<input id="depfzr" name="depfzr" class="form-control required"  th:value="${officeObj.depfzr}"
23
-						 maxlength="20">
24
-				</div>
25
-			</div>
26
-			<div class="form-group col-xs-12">
27
-				<label class="required col-sm-4">负责人联系电话:</label>
28
-				<div class="col-lg-6 col-xs-8">
29
-					<input id="tel" name="tel" class="form-control isTel required"  th:value="${officeObj.tel}"
30
-						 maxlength="20">
7
+
8
+<body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">
9
+	<div class="panel-body">
10
+		<form id="officeForm" method="post" class="conForm load-indicator" data-loading="正在处理...">
11
+			<input type="hidden" id="id" name="id" th:value="${officeObj.id}" />
12
+			<div class="ext-card">
13
+				<h1 class="title">基本信息</h1>
14
+				<div class="wd-m">
15
+					<div class="form-group col-xs-12">
16
+						<label class="required col-sm-4">科室名称:</label>
17
+						<div class="col-lg-6 col-xs-8">
18
+							<input id="depName" name="depName" class="form-control required" th:value="${officeObj.depName}"
19
+								maxlength="100">
20
+						</div>
21
+					</div>
22
+					<div class="form-group col-xs-12">
23
+						<label class="required col-sm-4">科室负责人:</label>
24
+						<div class="col-lg-6 col-xs-8">
25
+							<input id="depfzr" name="depfzr" class="form-control required" th:value="${officeObj.depfzr}"
26
+								maxlength="20">
27
+						</div>
28
+					</div>
29
+					<div class="form-group col-xs-12">
30
+						<label class="required col-sm-4">负责人联系电话:</label>
31
+						<div class="col-lg-6 col-xs-8">
32
+							<input id="tel" name="tel" class="form-control isTel required" th:value="${officeObj.tel}" maxlength="20">
33
+						</div>
34
+					</div>
31 35
 				</div>
32 36
 			</div>
33
-			<h1 class="title">职责信息</h1>
34
-			<div class="form-group col-xs-12">
35
-				<div class="col-lg-10 col-xs-12">
36
-						<textarea style="resize: none;" rows="5" name="depDuty"  th:text="${officeObj.depDuty}"
37
-						maxlength="300" class="form-control"></textarea>
37
+
38
+			<div class="ext-card">
39
+				<h1 class="title">职责信息</h1>
40
+				<div class="wd-m">
41
+					<div class="form-group col-xs-12">
42
+						<div class="col-lg-10 col-xs-12">
43
+							<textarea style="resize: none;" rows="5" name="depDuty" th:text="${officeObj.depDuty}" maxlength="300"
44
+								class="form-control"></textarea>
45
+						</div>
46
+					</div>
38 47
 				</div>
39 48
 			</div>
40
-			<h1 class="title">备注信息</h1>
41
-			<div class="form-group col-xs-12">
42
-				<div class="col-lg-10 col-xs-12">
43
-						<textarea style="resize: none;" rows="5" name="remark"  th:text="${officeObj.remark}"
44
-						maxlength="500" class="form-control"></textarea>
49
+
50
+			<div class="ext-card">
51
+				<h1 class="title">备注信息</h1>
52
+				<div class="wd-m">
53
+					<div class="form-group col-xs-12">
54
+						<div class="col-lg-10 col-xs-12">
55
+							<textarea style="resize: none;" rows="5" name="remark" th:text="${officeObj.remark}" maxlength="500"
56
+								class="form-control"></textarea>
57
+						</div>
58
+					</div>
45 59
 				</div>
46 60
 			</div>
61
+
47 62
 			<div class="btnEnd">
48 63
 				<button class="btn btn-primary" id="submitBtn" type="button">保存</button>
49 64
 				<button class="btn" type="button" onclick="history.back();">取消</button>

+ 126
- 103
resources/templates/station/add.html View File

@@ -1,104 +1,126 @@
1 1
 <html lang="zh-CN">
2
-<head
3
-	th:replace="common/common_header::common_header(~{},~{::link},~{},~{::script},'edit')">
4
-<meta charset="utf-8" />
5
-<script
6
-	th:src="@{/js/zui/dist/lib/datetimepicker/datetimepicker.min.js}"></script>
7
-<link
8
-	th:href="@{/js/zui/dist/lib/datetimepicker/datetimepicker.min.css}"
9
-	rel="stylesheet" />
10
-<script th:src="@{/js/station/add.js}"></script>
2
+
3
+<head th:replace="common/common_header::common_header(~{},~{::link},~{},~{::script},'edit')">
4
+	<meta charset="utf-8" />
5
+	<script th:src="@{/js/zui/dist/lib/datetimepicker/datetimepicker.min.js}"></script>
6
+	<link th:href="@{/js/zui/dist/lib/datetimepicker/datetimepicker.min.css}" rel="stylesheet" />
7
+	<script th:src="@{/js/station/add.js}"></script>
11 8
 </head>
12
-<body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">  	
13
-		<div class="panel-body">
14
-		<form id="stationForm"  method="post" class="conForm load-indicator" data-loading="正在处理...">
15
-			<h1 class="title">基本信息</h1>
16
-			<div class="form-group col-xs-12">
17
-				<label class="required col-sm-4">是否建设站内监控:</label>
18
-				<div class="col-lg-6 col-xs-8">
19
-					<select name="ifjsznjk" id="ifjsznjk"  class="form-control required" aria-required="true" aria-invalid="false">
20
-						<option value="" selected="">--请选择--</option>
21
-					</select>
22
-				</div>
23
-			</div>
24
-			<div class="form-group col-xs-12">
25
-				<label class="required col-sm-4">厨房是否建设监控:</label>
26
-				<div class="col-lg-6 col-xs-8">
27
-					<select name="ifjscfjk" id="ifjscfjk"  class="form-control required" aria-required="true" aria-invalid="false">
28
-						<option value="" selected="">--请选择--</option>
29
-					</select>
30
-				</div>
31
-			</div>
32
-			<div class="form-group col-xs-12">
33
-				<label class="required col-sm-4">监控存档时间:</label>
34
-				<div class="col-lg-6 col-xs-8">
35
-					<input id="jkcdsj" name="jkcdsj" class="form-control form-date required dateISO">
36
-				</div>
37
-			</div>
38
-			<div class="form-group col-xs-12">
39
-				<label class="required col-sm-4">大门是否建设门禁安防:</label>
40
-				<div class="col-lg-6 col-xs-8">
41
-					<select name="ifjsdmmjaf" id="ifjsdmmjaf"  class="form-control required" aria-required="true" aria-invalid="false">
42
-						<option value="" selected="">--请选择--</option>
43
-					</select>
44
-				</div>
45
-			</div>
46
-			<div class="form-group col-xs-12">
47
-				<label class="required col-sm-4">大门门禁类别:</label>
48
-				<div class="col-lg-6 col-xs-8">
49
-					<select name="config_door_type" id="config_door_type"  class="form-control required" aria-required="true" aria-invalid="false">
50
-						<option value="" selected="">--请选择--</option>
51
-					</select>
52
-				</div>
53
-			</div>
54
-			<div class="form-group col-xs-12">
55
-				<label class="required col-sm-4">厨房是否建设门禁安防:</label>
56
-				<div class="col-lg-6 col-xs-8">
57
-					<select name="ifjscfmjaf" id="ifjscfmjaf"  class="form-control required" aria-required="true" aria-invalid="false">
58
-						<option value="" selected="">--请选择--</option>
59
-					</select>
60
-				</div>
61
-			</div>
62
-			<div class="form-group col-xs-12">
63
-				<label class="required col-sm-4">厨房门禁类别:</label>
64
-				<div class="col-lg-6 col-xs-8">
65
-					<select name="config_kitchen_door_type" id="config_kitchen_door_type"  class="form-control required" aria-required="true" aria-invalid="false">
66
-						<option value="" selected="">--请选择--</option>
67
-					</select>
68
-				</div>
69
-			</div>
70
-			<h1 class="title">运行情况</h1>
71
-			<div class="form-group col-xs-12">
72
-				<label class="required col-sm-4">监控是否正常:</label>
73
-				<div class="col-lg-6 col-xs-8">
74
-					<select name="ifzcjk" id="ifzcjk"  class="form-control required" aria-required="true" aria-invalid="false">
75
-						<option value="" selected="">--请选择--</option>
76
-					</select>
77
-				</div>
78
-			</div>
79
-			<div class="form-group col-xs-12">
80
-				<label class="required col-sm-4">大门门禁是否正常:</label>
81
-				<div class="col-lg-6 col-xs-8">
82
-					<select name="ifzcdmmj" id="ifzcdmmj"  class="form-control required" aria-required="true" aria-invalid="false">
83
-						<option value="" selected="">--请选择--</option>
84
-					</select>
9
+
10
+<body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">
11
+	<div class="panel-body">
12
+		<form id="stationForm" method="post" class="conForm load-indicator" data-loading="正在处理...">
13
+
14
+			<div class="ext-card">
15
+				<h1 class="title">基本信息</h1>
16
+				<div class="wd-m">
17
+					<div class="form-group col-xs-12">
18
+						<label class="required col-sm-4">是否建设站内监控:</label>
19
+						<div class="col-lg-6 col-xs-8">
20
+							<select name="ifjsznjk" id="ifjsznjk" class="form-control required" aria-required="true"
21
+								aria-invalid="false">
22
+								<option value="" selected="">--请选择--</option>
23
+							</select>
24
+						</div>
25
+					</div>
26
+					<div class="form-group col-xs-12">
27
+						<label class="required col-sm-4">厨房是否建设监控:</label>
28
+						<div class="col-lg-6 col-xs-8">
29
+							<select name="ifjscfjk" id="ifjscfjk" class="form-control required" aria-required="true"
30
+								aria-invalid="false">
31
+								<option value="" selected="">--请选择--</option>
32
+							</select>
33
+						</div>
34
+					</div>
35
+					<div class="form-group col-xs-12">
36
+						<label class="required col-sm-4">监控存档时间:</label>
37
+						<div class="col-lg-6 col-xs-8">
38
+							<input id="jkcdsj" name="jkcdsj" class="form-control form-date required dateISO">
39
+						</div>
40
+					</div>
41
+					<div class="form-group col-xs-12">
42
+						<label class="required col-sm-4">大门是否建设门禁安防:</label>
43
+						<div class="col-lg-6 col-xs-8">
44
+							<select name="ifjsdmmjaf" id="ifjsdmmjaf" class="form-control required" aria-required="true"
45
+								aria-invalid="false">
46
+								<option value="" selected="">--请选择--</option>
47
+							</select>
48
+						</div>
49
+					</div>
50
+					<div class="form-group col-xs-12">
51
+						<label class="required col-sm-4">大门门禁类别:</label>
52
+						<div class="col-lg-6 col-xs-8">
53
+							<select name="config_door_type" id="config_door_type" class="form-control required" aria-required="true"
54
+								aria-invalid="false">
55
+								<option value="" selected="">--请选择--</option>
56
+							</select>
57
+						</div>
58
+					</div>
59
+					<div class="form-group col-xs-12">
60
+						<label class="required col-sm-4">厨房是否建设门禁安防:</label>
61
+						<div class="col-lg-6 col-xs-8">
62
+							<select name="ifjscfmjaf" id="ifjscfmjaf" class="form-control required" aria-required="true"
63
+								aria-invalid="false">
64
+								<option value="" selected="">--请选择--</option>
65
+							</select>
66
+						</div>
67
+					</div>
68
+					<div class="form-group col-xs-12">
69
+						<label class="required col-sm-4">厨房门禁类别:</label>
70
+						<div class="col-lg-6 col-xs-8">
71
+							<select name="config_kitchen_door_type" id="config_kitchen_door_type" class="form-control required"
72
+								aria-required="true" aria-invalid="false">
73
+								<option value="" selected="">--请选择--</option>
74
+							</select>
75
+						</div>
76
+					</div>
85 77
 				</div>
86 78
 			</div>
87
-			<div class="form-group col-xs-12">
88
-				<label class="required col-sm-4">厨房门禁是否正常:</label>
89
-				<div class="col-lg-6 col-xs-8">
90
-					<select name="ifzccfmj" id="ifzccfmj"  class="form-control required" aria-required="true" aria-invalid="false">
91
-						<option value="" selected="">--请选择--</option>
92
-					</select>
79
+
80
+			<div class="ext-card">
81
+				<h1 class="title">运行情况</h1>
82
+				<div class="wd-m">
83
+					<div class="form-group col-xs-12">
84
+						<label class="required col-sm-4">监控是否正常:</label>
85
+						<div class="col-lg-6 col-xs-8">
86
+							<select name="ifzcjk" id="ifzcjk" class="form-control required" aria-required="true" aria-invalid="false">
87
+								<option value="" selected="">--请选择--</option>
88
+							</select>
89
+						</div>
90
+					</div>
91
+					<div class="form-group col-xs-12">
92
+						<label class="required col-sm-4">大门门禁是否正常:</label>
93
+						<div class="col-lg-6 col-xs-8">
94
+							<select name="ifzcdmmj" id="ifzcdmmj" class="form-control required" aria-required="true"
95
+								aria-invalid="false">
96
+								<option value="" selected="">--请选择--</option>
97
+							</select>
98
+						</div>
99
+					</div>
100
+					<div class="form-group col-xs-12">
101
+						<label class="required col-sm-4">厨房门禁是否正常:</label>
102
+						<div class="col-lg-6 col-xs-8">
103
+							<select name="ifzccfmj" id="ifzccfmj" class="form-control required" aria-required="true"
104
+								aria-invalid="false">
105
+								<option value="" selected="">--请选择--</option>
106
+							</select>
107
+						</div>
108
+					</div>
93 109
 				</div>
94 110
 			</div>
95
-			<h1 class="title">异常情况说明</h1>
96
-			<div class="form-group col-xs-12">
97
-				<div class="col-lg-10 col-xs-12">
98
-					<textarea style="resize: none;" rows="5" name="exceptionExplan" maxlength="4000" class="form-control"></textarea>
111
+
112
+			<div class="ext-card">
113
+				<h1 class="title">异常情况说明</h1>
114
+				<div class="wd-m">
115
+					<div class="form-group col-xs-12">
116
+						<div class="col-lg-10 col-xs-12">
117
+							<textarea style="resize: none;" rows="5" name="exceptionExplan" maxlength="4000"
118
+								class="form-control"></textarea>
119
+						</div>
120
+					</div>
99 121
 				</div>
100 122
 			</div>
101
-			
123
+
102 124
 			<div class="btnEnd">
103 125
 				<button class="btn btn-primary" id="submitBtn" type="button">保存</button>
104 126
 				<button class="btn" type="button" onclick="history.back();">取消</button>
@@ -110,17 +132,18 @@
110 132
 <script>
111 133
 	// 仅选择日期
112 134
 	$(".form-date").datetimepicker({
113
-		language : "zh-CN",
114
-		weekStart : 1,
115
-		todayBtn : 1,
116
-		autoclose : 1,
117
-		todayHighlight : 1,
118
-		startView : 2,
119
-		minView : 2,
120
-		forceParse : 0,
121
-		format : "yyyy-mm-dd"
122
-	}).on('changeDate', function(ev) {
135
+		language: "zh-CN",
136
+		weekStart: 1,
137
+		todayBtn: 1,
138
+		autoclose: 1,
139
+		todayHighlight: 1,
140
+		startView: 2,
141
+		minView: 2,
142
+		forceParse: 0,
143
+		format: "yyyy-mm-dd"
144
+	}).on('changeDate', function (ev) {
123 145
 		$(this).valid();
124 146
 	});
125 147
 </script>
148
+
126 149
 </html>

+ 89
- 59
resources/templates/station/details.html View File

@@ -1,73 +1,103 @@
1 1
 <html lang="zh-CN">
2
-<head
3
-	th:replace="common/common_header::common_header(~{},~{},~{::style},~{::script},'')">
4
-<meta charset="utf-8">
5
-<script th:src="@{/js/station/details.js}"></script>
6
-<style type="text/css">
7
-.view-info>div>label{min-width: 172px;}
8
-</style>
2
+
3
+<head th:replace="common/common_header::common_header(~{},~{},~{::style},~{::script},'')">
4
+	<meta charset="utf-8">
5
+	<script th:src="@{/js/station/details.js}"></script>
6
+	<style type="text/css">
7
+		.view-info>div>label {
8
+			min-width: 172px;
9
+		}
10
+	</style>
9 11
 </head>
12
+
10 13
 <body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">
11 14
 	<div class="panel-body">
12
-		<form id="stationForm" action="" method="post" class="conForm view-info">
13
-		     <input type="hidden" id="dataFiles" name="dataFiles"  th:value="${files}"/>		
14
-			<h1 class="title">基本信息</h1>	
15
-			<div class="col-xs-6">
16
-				<label>站内是否建设监控:</label><font th:selOpt="${stationObj.ifjsznjk}" id="ifjsznjk"></font>
15
+		<form id="stationForm" action="" method="post" class="conForm">
16
+			<input type="hidden" id="dataFiles" name="dataFiles" th:value="${files}" />
17
+			<div class="ext-card">
18
+				<h1 class="title">基本信息</h1>
19
+				<div class="view-info">
20
+					<div class="col-xs-6">
21
+						<label>站内是否建设监控:</label>
22
+						<font th:selOpt="${stationObj.ifjsznjk}" id="ifjsznjk"></font>
23
+					</div>
24
+					<div class="col-xs-6">
25
+						<label>站内监控存档时间:</label>[[${stationObj.jkcdsj}]]
26
+					</div>
27
+					<div class="col-xs-6">
28
+						<label>厨房是否建设监控:</label>
29
+						<font th:selOpt="${stationObj.ifjscfjk}" id="ifjscfjk"></font>
30
+					</div>
31
+
32
+					<div class="col-xs-6">
33
+						<label>厨房监控存档时间:</label>
34
+						<font th:selOpt="${stationObj.cfjkcdsj}" id="cfjkcdsj"></font>
35
+					</div>
36
+					<div class="col-xs-6">
37
+						<label>大门是否建设门禁安防:</label>
38
+						<font th:selOpt="${stationObj.ifjsdmmjaf}" id="ifjsdmmjaf"></font>
39
+					</div>
40
+
41
+					<div class="col-xs-6">
42
+						<label>大门门禁类别:</label>
43
+						<font th:selOpt="${stationObj.config_door_type}" id="config_door_type"></font>
44
+					</div>
45
+					<div class="col-xs-6">
46
+						<label>厨房是否建设门禁安防:</label>
47
+						<font th:selOpt="${stationObj.ifjscfmjaf}" id="ifjscfmjaf"></font>
48
+					</div>
49
+
50
+					<div class="col-xs-6">
51
+						<label>厨房门禁类别:</label>
52
+						<font th:selOpt="${stationObj.config_kitchen_door_type}" id="config_kitchen_door_type"></font>
53
+					</div>
54
+				</div>
17 55
 			</div>
18
-			<div class="col-xs-6">
19
-				<label>站内监控存档时间:</label>[[${stationObj.jkcdsj}]]
56
+
57
+			<div class="ext-card">
58
+				<h1 class="title">运行情况</h1>
59
+				<div class="view-info">
60
+					<div class="col-xs-6">
61
+						<label>记录时间:</label>[[${stationObj.full_date}]]
62
+					</div>
63
+					<div class="col-xs-6">
64
+						<label>站内监控是否正常:</label>
65
+						<font th:selOpt="${stationObj.ifzcjk}" id="ifzcjk"></font>
66
+					</div>
67
+					<div class="col-xs-6">
68
+						<label>厨房监控是否正常:</label>
69
+						<font th:selOpt="${stationObj.ifzcjkcf}" id="ifzcjkcf"></font>
70
+					</div>
71
+					<div class="col-xs-6">
72
+						<label>大门门禁是否正常:</label>
73
+						<font th:selOpt="${stationObj.ifzcdmmj}" id="ifzcdmmj"></font>
74
+					</div>
75
+					<div class="col-xs-6">
76
+						<label>厨房门禁是否正常:</label>
77
+						<font th:selOpt="${stationObj.ifzccfmj}" id="ifzccfmj"></font>
78
+					</div>
79
+				</div>
20 80
 			</div>
21
-			<div class="col-xs-6">
22
-				<label>厨房是否建设监控:</label><font th:selOpt="${stationObj.ifjscfjk}" id="ifjscfjk"></font>
81
+
82
+			<div class="ext-card">
83
+				<h1 class="title">异常情况说明</h1>
84
+				<div class="view-info">
85
+					<div class="text">
86
+						[[${stationObj.exceptionExplan}]]
87
+					</div>
88
+					<h1 class="title" style="display:none">设备异常图片</h1>
89
+					<div style="text-align:center;display:none">
90
+						<div class="form-group " id="imgDiv" style="display: inline-block;padding: 0;margin: 0;">
91
+						</div>
92
+					</div>
93
+				</div>
23 94
 			</div>
24
-			
25
-			<div class="col-xs-6">
26
-				<label>厨房监控存档时间:</label><font th:selOpt="${stationObj.cfjkcdsj}" id="cfjkcdsj"></font>
27
-			</div>
28
-				<div class="col-xs-6">
29
-				<label>大门是否建设门禁安防:</label><font th:selOpt="${stationObj.ifjsdmmjaf}" id="ifjsdmmjaf"></font>
30
-			</div>
31
-			
32
-			<div class="col-xs-6">
33
-				<label>大门门禁类别:</label><font th:selOpt="${stationObj.config_door_type}" id="config_door_type"></font>
34
-			</div>
35
-				<div class="col-xs-6">
36
-				<label>厨房是否建设门禁安防:</label><font th:selOpt="${stationObj.ifjscfmjaf}" id="ifjscfmjaf"></font>
37
-			</div>
38
-					
39
-			<div class="col-xs-6">
40
-				<label>厨房门禁类别:</label><font th:selOpt="${stationObj.config_kitchen_door_type}" id="config_kitchen_door_type"></font>
41
-			</div>
42
-			<h1 class="title">运行情况</h1>
43
-			<div class="col-xs-6">
44
-				<label>记录时间:</label>[[${stationObj.full_date}]]
45
-			</div>
46
-			<div class="col-xs-6">
47
-				<label>站内监控是否正常:</label><font th:selOpt="${stationObj.ifzcjk}" id="ifzcjk"></font>
48
-			</div>
49
-			<div class="col-xs-6">
50
-				<label>厨房监控是否正常:</label><font th:selOpt="${stationObj.ifzcjkcf}" id="ifzcjkcf"></font>
51
-			</div>	
52
-			<div class="col-xs-6">
53
-				<label>大门门禁是否正常:</label><font th:selOpt="${stationObj.ifzcdmmj}" id="ifzcdmmj"></font>
54
-			</div>
55
-			<div class="col-xs-6">
56
-				<label>厨房门禁是否正常:</label><font th:selOpt="${stationObj.ifzccfmj}" id="ifzccfmj"></font>
57
-			</div>
58
-			<h1 class="title">异常情况说明</h1>
59
-			<div class="text">
60
-				[[${stationObj.exceptionExplan}]]
61
-			</div>
62
-			<h1 class="title" style="display:none">设备异常图片</h1>
63
-			<div style="text-align:center;display:none" >
64
-				<div class="form-group " id="imgDiv" style="display: inline-block;padding: 0;margin: 0;">										
65
-				</div>	
66
-			</div>	
95
+
67 96
 			<div class="btnEnd">
68 97
 				<button class="btn btn-primary" type="button" onclick="history.back();">取消</button>
69 98
 			</div>
70 99
 		</form>
71 100
 	</div>
72 101
 </body>
102
+
73 103
 </html>

+ 129
- 103
resources/templates/station/update.html View File

@@ -1,104 +1,129 @@
1 1
 <html lang="zh-CN">
2
-<head
3
-	th:replace="common/common_header::common_header(~{},~{::link},~{},~{::script},'edit')">
4
-<meta charset="utf-8" />
5
-<script
6
-	th:src="@{/js/zui/dist/lib/datetimepicker/datetimepicker.min.js}"></script>
7
-<link
8
-	th:href="@{/js/zui/dist/lib/datetimepicker/datetimepicker.min.css}"
9
-	rel="stylesheet" />
10
-<script th:src="@{/js/station/update.js}"></script>
2
+
3
+<head th:replace="common/common_header::common_header(~{},~{::link},~{},~{::script},'edit')">
4
+	<meta charset="utf-8" />
5
+	<script th:src="@{/js/zui/dist/lib/datetimepicker/datetimepicker.min.js}"></script>
6
+	<link th:href="@{/js/zui/dist/lib/datetimepicker/datetimepicker.min.css}" rel="stylesheet" />
7
+	<script th:src="@{/js/station/update.js}"></script>
11 8
 </head>
12
-<body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">  	
13
-		<div class="panel-body">
14
-		<form id="stationForm"  method="post" class="conForm load-indicator" data-loading="正在处理...">
15
-		<input type="hidden" id="id" name="id" th:value="${stationObj.id}" />
16
-			<h1 class="title">基本信息</h1>
17
-			<div class="form-group col-xs-12">
18
-				<label class="required col-sm-4">是否建设站内监控:</label>
19
-				<div class="col-lg-6 col-xs-8">
20
-					<select name="ifjsznjk" id="ifjsznjk" th:selOpt="${stationObj.ifjsznjk}" class="form-control required" aria-required="true" aria-invalid="false">
21
-						<option value="" selected="">--请选择--</option>
22
-					</select>
23
-				</div>
24
-			</div>
25
-			<div class="form-group col-xs-12">
26
-				<label class="required col-sm-4">厨房是否建设监控:</label>
27
-				<div class="col-lg-6 col-xs-8">
28
-					<select name="ifjscfjk" id="ifjscfjk" th:selOpt="${stationObj.ifjscfjk}"  class="form-control required" aria-required="true" aria-invalid="false">
29
-						<option value="" selected="">--请选择--</option>
30
-					</select>
31
-				</div>
32
-			</div>
33
-			<div class="form-group col-xs-12">
34
-				<label class="required col-sm-4">监控存档时间:</label>
35
-				<div class="col-lg-6 col-xs-8">
36
-					<input id="jkcdsj" name="jkcdsj" th:value="${#dates.format(stationObj.jkcdsj, 'yyyy-MM-dd')}" class="form-control form-date required dateISO">
37
-				</div>
38
-			</div>
39
-			<div class="form-group col-xs-12">
40
-				<label class="required col-sm-4">大门是否建设门禁安防:</label>
41
-				<div class="col-lg-6 col-xs-8">
42
-					<select name="ifjsdmmjaf" id="ifjsdmmjaf" th:selOpt="${stationObj.ifjsdmmjaf}" class="form-control required" aria-required="true" aria-invalid="false">
43
-						<option value="" selected="">--请选择--</option>
44
-					</select>
45
-				</div>
46
-			</div>
47
-			<div class="form-group col-xs-12">
48
-				<label class="required col-sm-4">大门门禁类别:</label>
49
-				<div class="col-lg-6 col-xs-8">
50
-					<select name="config_door_type" id="config_door_type" th:selOpt="${stationObj.config_door_type}" class="form-control required" aria-required="true" aria-invalid="false">
51
-						<option value="" selected="">--请选择--</option>
52
-					</select>
53
-				</div>
54
-			</div>
55
-			<div class="form-group col-xs-12">
56
-				<label class="required col-sm-4">厨房是否建设门禁安防:</label>
57
-				<div class="col-lg-6 col-xs-8">
58
-					<select name="ifjscfmjaf" id="ifjscfmjaf" th:selOpt="${stationObj.ifjscfmjaf}" class="form-control required" aria-required="true" aria-invalid="false">
59
-						<option value="" selected="">--请选择--</option>
60
-					</select>
61
-				</div>
62
-			</div>
63
-			<div class="form-group col-xs-12">
64
-				<label class="required col-sm-4">厨房门禁类别:</label>
65
-				<div class="col-lg-6 col-xs-8">
66
-					<select name="config_kitchen_door_type" th:selOpt="${stationObj.config_kitchen_door_type}" id="config_kitchen_door_type"  class="form-control required" aria-required="true" aria-invalid="false">
67
-						<option value="" selected="">--请选择--</option>
68
-					</select>
69
-				</div>
70
-			</div>
71
-			<h1 class="title">运行情况</h1>
72
-			<div class="form-group col-xs-12">
73
-				<label class="required col-sm-4">监控是否正常:</label>
74
-				<div class="col-lg-6 col-xs-8">
75
-					<select name="ifzcjk" id="ifzcjk" th:selOpt="${stationObj.ifzcjk}" class="form-control required" aria-required="true" aria-invalid="false">
76
-						<option value="" selected="">--请选择--</option>
77
-					</select>
78
-				</div>
79
-			</div>
80
-			<div class="form-group col-xs-12">
81
-				<label class="required col-sm-4">大门门禁是否正常:</label>
82
-				<div class="col-lg-6 col-xs-8">
83
-					<select name="ifzcdmmj" id="ifzcdmmj" th:selOpt="${stationObj.ifzcdmmj}" class="form-control required" aria-required="true" aria-invalid="false">
84
-						<option value="" selected="">--请选择--</option>
85
-					</select>
9
+
10
+<body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">
11
+	<div class="panel-body">
12
+		<form id="stationForm" method="post" class="conForm load-indicator" data-loading="正在处理...">
13
+			<input type="hidden" id="id" name="id" th:value="${stationObj.id}" />
14
+
15
+			<div class="ext-card">
16
+				<h1 class="title">基本信息</h1>
17
+				<div class="wd-m">
18
+					<div class="form-group col-xs-12">
19
+						<label class="required col-sm-4">是否建设站内监控:</label>
20
+						<div class="col-lg-6 col-xs-8">
21
+							<select name="ifjsznjk" id="ifjsznjk" th:selOpt="${stationObj.ifjsznjk}" class="form-control required"
22
+								aria-required="true" aria-invalid="false">
23
+								<option value="" selected="">--请选择--</option>
24
+							</select>
25
+						</div>
26
+					</div>
27
+					<div class="form-group col-xs-12">
28
+						<label class="required col-sm-4">厨房是否建设监控:</label>
29
+						<div class="col-lg-6 col-xs-8">
30
+							<select name="ifjscfjk" id="ifjscfjk" th:selOpt="${stationObj.ifjscfjk}" class="form-control required"
31
+								aria-required="true" aria-invalid="false">
32
+								<option value="" selected="">--请选择--</option>
33
+							</select>
34
+						</div>
35
+					</div>
36
+					<div class="form-group col-xs-12">
37
+						<label class="required col-sm-4">监控存档时间:</label>
38
+						<div class="col-lg-6 col-xs-8">
39
+							<input id="jkcdsj" name="jkcdsj" th:value="${#dates.format(stationObj.jkcdsj, 'yyyy-MM-dd')}"
40
+								class="form-control form-date required dateISO">
41
+						</div>
42
+					</div>
43
+					<div class="form-group col-xs-12">
44
+						<label class="required col-sm-4">大门是否建设门禁安防:</label>
45
+						<div class="col-lg-6 col-xs-8">
46
+							<select name="ifjsdmmjaf" id="ifjsdmmjaf" th:selOpt="${stationObj.ifjsdmmjaf}"
47
+								class="form-control required" aria-required="true" aria-invalid="false">
48
+								<option value="" selected="">--请选择--</option>
49
+							</select>
50
+						</div>
51
+					</div>
52
+					<div class="form-group col-xs-12">
53
+						<label class="required col-sm-4">大门门禁类别:</label>
54
+						<div class="col-lg-6 col-xs-8">
55
+							<select name="config_door_type" id="config_door_type" th:selOpt="${stationObj.config_door_type}"
56
+								class="form-control required" aria-required="true" aria-invalid="false">
57
+								<option value="" selected="">--请选择--</option>
58
+							</select>
59
+						</div>
60
+					</div>
61
+					<div class="form-group col-xs-12">
62
+						<label class="required col-sm-4">厨房是否建设门禁安防:</label>
63
+						<div class="col-lg-6 col-xs-8">
64
+							<select name="ifjscfmjaf" id="ifjscfmjaf" th:selOpt="${stationObj.ifjscfmjaf}"
65
+								class="form-control required" aria-required="true" aria-invalid="false">
66
+								<option value="" selected="">--请选择--</option>
67
+							</select>
68
+						</div>
69
+					</div>
70
+					<div class="form-group col-xs-12">
71
+						<label class="required col-sm-4">厨房门禁类别:</label>
72
+						<div class="col-lg-6 col-xs-8">
73
+							<select name="config_kitchen_door_type" th:selOpt="${stationObj.config_kitchen_door_type}"
74
+								id="config_kitchen_door_type" class="form-control required" aria-required="true" aria-invalid="false">
75
+								<option value="" selected="">--请选择--</option>
76
+							</select>
77
+						</div>
78
+					</div>
86 79
 				</div>
87 80
 			</div>
88
-			<div class="form-group col-xs-12">
89
-				<label class="required col-sm-4">厨房门禁是否正常:</label>
90
-				<div class="col-lg-6 col-xs-8">
91
-					<select name="ifzccfmj" id="ifzccfmj" th:selOpt="${stationObj.ifzccfmj}" class="form-control required" aria-required="true" aria-invalid="false">
92
-						<option value="" selected="">--请选择--</option>
93
-					</select>
81
+
82
+			<div class="ext-card">
83
+				<h1 class="title">运行情况</h1>
84
+				<div class="wd-m">
85
+					<div class="form-group col-xs-12">
86
+						<label class="required col-sm-4">监控是否正常:</label>
87
+						<div class="col-lg-6 col-xs-8">
88
+							<select name="ifzcjk" id="ifzcjk" th:selOpt="${stationObj.ifzcjk}" class="form-control required"
89
+								aria-required="true" aria-invalid="false">
90
+								<option value="" selected="">--请选择--</option>
91
+							</select>
92
+						</div>
93
+					</div>
94
+					<div class="form-group col-xs-12">
95
+						<label class="required col-sm-4">大门门禁是否正常:</label>
96
+						<div class="col-lg-6 col-xs-8">
97
+							<select name="ifzcdmmj" id="ifzcdmmj" th:selOpt="${stationObj.ifzcdmmj}" class="form-control required"
98
+								aria-required="true" aria-invalid="false">
99
+								<option value="" selected="">--请选择--</option>
100
+							</select>
101
+						</div>
102
+					</div>
103
+					<div class="form-group col-xs-12">
104
+						<label class="required col-sm-4">厨房门禁是否正常:</label>
105
+						<div class="col-lg-6 col-xs-8">
106
+							<select name="ifzccfmj" id="ifzccfmj" th:selOpt="${stationObj.ifzccfmj}" class="form-control required"
107
+								aria-required="true" aria-invalid="false">
108
+								<option value="" selected="">--请选择--</option>
109
+							</select>
110
+						</div>
111
+					</div>
94 112
 				</div>
95 113
 			</div>
96
-			<h1 class="title">异常情况说明</h1>
97
-			<div class="form-group col-xs-12">
98
-				<div class="col-lg-10 col-xs-12">
99
-					<textarea style="resize: none;" rows="5" name="exceptionExplan" th:text="${stationObj.exceptionExplan}" maxlength="4000" class="form-control"></textarea>
114
+
115
+			<div class="ext-card">
116
+				<h1 class="title">异常情况说明</h1>
117
+				<div class="wd-m">
118
+					<div class="form-group col-xs-12">
119
+						<div class="col-lg-10 col-xs-12">
120
+							<textarea style="resize: none;" rows="5" name="exceptionExplan" th:text="${stationObj.exceptionExplan}"
121
+								maxlength="4000" class="form-control"></textarea>
122
+						</div>
123
+					</div>
100 124
 				</div>
101 125
 			</div>
126
+
102 127
 			<div class="btnEnd">
103 128
 				<button class="btn btn-primary" id="submitBtn" type="button">保存</button>
104 129
 				<button class="btn" type="button" onclick="history.back();">取消</button>
@@ -110,17 +135,18 @@
110 135
 <script>
111 136
 	// 仅选择日期
112 137
 	$(".form-date").datetimepicker({
113
-		language : "zh-CN",
114
-		weekStart : 1,
115
-		todayBtn : 1,
116
-		autoclose : 1,
117
-		todayHighlight : 1,
118
-		startView : 2,
119
-		minView : 2,
120
-		forceParse : 0,
121
-		format : "yyyy-mm-dd"
122
-	}).on('changeDate', function(ev) {
138
+		language: "zh-CN",
139
+		weekStart: 1,
140
+		todayBtn: 1,
141
+		autoclose: 1,
142
+		todayHighlight: 1,
143
+		startView: 2,
144
+		minView: 2,
145
+		forceParse: 0,
146
+		format: "yyyy-mm-dd"
147
+	}).on('changeDate', function (ev) {
123 148
 		$(this).valid();
124 149
 	});
125 150
 </script>
151
+
126 152
 </html>

+ 179
- 169
resources/templates/worker/add.html View File

@@ -1,172 +1,180 @@
1 1
 <html lang="zh-CN">
2
-<head
3
-	th:replace="common/common_header::common_header(~{},~{::link},~{},~{::script},'edit')">
4
-<meta charset="utf-8" />
5
-<script
6
-	th:src="@{/js/zui/dist/lib/datetimepicker/datetimepicker.min.js}"></script>
7
-<link
8
-	th:href="@{/js/zui/dist/lib/datetimepicker/datetimepicker.min.css}"
9
-	rel="stylesheet" />
10
-<script th:src="@{/js/idcard.js}" type="text/javascript"></script>
11
-<script th:src="@{/js/worker/add.js}"></script>
12
-<link th:href="@{/js/zui/dist/lib/uploader/zui.uploader.min.css}"
13
-	rel="stylesheet">
14
-<script th:src="@{/js/zui/dist/lib/uploader/zui.uploader.min.js}"></script>
2
+
3
+<head th:replace="common/common_header::common_header(~{},~{::link},~{},~{::script},'edit')">
4
+	<meta charset="utf-8" />
5
+	<script th:src="@{/js/zui/dist/lib/datetimepicker/datetimepicker.min.js}"></script>
6
+	<link th:href="@{/js/zui/dist/lib/datetimepicker/datetimepicker.min.css}" rel="stylesheet" />
7
+	<script th:src="@{/js/idcard.js}" type="text/javascript"></script>
8
+	<script th:src="@{/js/worker/add.js}"></script>
9
+	<link th:href="@{/js/zui/dist/lib/uploader/zui.uploader.min.css}" rel="stylesheet">
10
+	<script th:src="@{/js/zui/dist/lib/uploader/zui.uploader.min.js}"></script>
15 11
 
16 12
 </head>
13
+
17 14
 <body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">
18 15
 	<div class="panel-body">
19 16
 		<form id="workerForm" method="post" class="conForm load-indicator" data-loading="正在处理...">
20
-			<h1 class="title">基本信息</h1>
21
-			<div class="form-group col-xs-12">
22
-				<label class="required col-sm-4">姓名:</label>
23
-				<div class="col-lg-6 col-xs-8">
24
-					<input id="uName" name="uName" class="form-control required"
25
-						maxlength="10">
26
-				</div>
27
-			</div>
28
-			<div class="form-group col-xs-12">
29
-				<label class="required col-sm-4">性别:</label>
30
-				<div class="col-lg-6 col-xs-8">
31
-					<select name="config_gender" id="config_gender"  class="form-control required" 
32
-						aria-required="true" aria-invalid="false"><option
33
-							value="" selected="">--请选择--</option></select>
34
-				</div>
35
-			</div>
36
-			<div class="form-group col-xs-12">
37
-				<label class=" required">民族:</label>
38
-				<div class="col-lg-6 col-xs-8">
39
-					<select name="config_nation" id="config_nation"  class="form-control required" 
40
-						aria-required="true" aria-invalid="false"><option
41
-							value="" selected="">--请选择--</option></select>
42
-				</div>
43
-			</div>
44
-			<div class="form-group col-xs-12">
45
-				<label class="required col-sm-4">血型:</label>
46
-				<div class="col-lg-6 col-xs-8">
47
-					<select name="config_bltype" id="config_bltype" class="form-control required"
48
-						 aria-required="true"
49
-						aria-invalid="false"><option value="" selected="">--请选择--</option></select>
50
-				</div>
51
-			</div>
52
-			<div class="form-group col-xs-12">
53
-				<label class="required col-sm-4">身份证号:</label>
54
-				<div class="col-lg-6 col-xs-8">
55
-					<input id="idNumber" name="idNumber" class="form-control required"
56
-						maxlength="20">
57
-				</div>
58
-			</div>
59
-			<div class="form-group col-xs-12">
60
-				<label class="required col-sm-4">出生日期:</label>
61
-				<div class="col-lg-6 col-xs-8">
62
-					<input id="birth_date" name="birth_date" class="form-control form-date required dateISO" >
63
-				</div>
64
-			</div>
65
-			<div class="form-group col-xs-12">
66
-				<label class="required col-sm-4">文化程度:</label>
67
-				<div class="col-lg-6 col-xs-8">
68
-					<select name="config_education" id="config_education" class="form-control required"
69
-						 aria-required="true"
70
-						aria-invalid="false"><option value="" selected="">--请选择--</option></select>
71
-				</div>
72
-			</div>
73
-			<div class="form-group col-xs-12">
74
-				<label class="required col-sm-4">政治面貌:</label>
75
-				<div class="col-lg-6 col-xs-8">
76
-					<select name="config_polity" id="config_polity" class="form-control required"
77
-						aria-required="true"
78
-						aria-invalid="false"><option value="" selected="">--请选择--</option></select>
79
-				</div>
80
-			</div>
81
-			<div class="form-group col-xs-12">
82
-				<label class="required col-sm-4">人员身份:</label>
83
-				<div class="col-lg-6 col-xs-8">
84
-					<select name="config_peoidentity" id="config_peoidentity" class="form-control required"
85
-						 aria-required="true"
86
-						aria-invalid="false"><option value="" selected="">--请选择--</option></select>
87
-				</div>
88
-			</div>
89
-			<div class="form-group col-xs-12">
90
-				<label class="required col-sm-4">工作岗位:</label>
91
-				<div class="col-lg-6 col-xs-8">
92
-					<select name="config_workstation" id="config_workstation" class="form-control required"
93
-						 aria-required="true"
94
-						aria-invalid="false"><option value="" selected="">--请选择--</option></select>
95
-				</div>
96
-			</div>
97
-			<div class="form-group col-xs-12">
98
-				<label class="required col-sm-4">编制性质:</label>
99
-				<div class="col-lg-6 col-xs-8">
100
-					<select name="config_worker_formation_prop" id="config_worker_formation_prop" class="form-control required"
101
-						 aria-required="true"
102
-						aria-invalid="false"><option value="" selected="">--请选择--</option></select>
103
-				</div>
104
-			</div>
105
-			<div class="form-group col-xs-12">
106
-				<label class="required col-sm-4">行政级别:</label>
107
-				<div class="col-lg-6 col-xs-8">
108
-					<select name="config_level" id="config_level" class="form-control required"
109
-						 aria-required="true"
110
-						aria-invalid="false"><option value="" selected="">--请选择--</option></select>
111
-				</div>
112
-			</div>
113
-			<div class="form-group col-xs-12">
114
-				<label class="col-sm-4">家庭住址:</label>
115
-				<div class="col-lg-6 col-xs-8">
116
-					<input id="address" name="address" class="form-control "
117
-						maxlength="50">
118
-				</div>
119
-			</div>
120
-			<div class="form-group col-xs-12">
121
-				<label class="col-sm-4">籍贯:</label>
122
-				<div class="col-lg-6 col-xs-8">
123
-					<input id="native_place" name="native_place" class="form-control "
124
-						maxlength="50">
125
-				</div>
126
-			</div>
127
-			<div class="form-group col-xs-12">
128
-				<label class="required col-sm-4">办公电话:</label>
129
-				<div class="col-lg-6 col-xs-8">
130
-					<input id="officeTel" name="officeTel" class="form-control isTel required"
131
-						maxlength="20">
132
-				</div>
133
-			</div>
134
-			<div class="form-group col-xs-12">
135
-				<label class="required col-sm-4">移动电话:</label>
136
-				<div class="col-lg-6 col-xs-8">
137
-					<input id="mobile" name="mobile" class="form-control isMobile required"
138
-						maxlength="30">
17
+			<div class="ext-card">
18
+				<h1 class="title">基本信息</h1>
19
+				<div class="wd-m">
20
+					<div class="form-group col-xs-12">
21
+						<label class="required col-sm-4">姓名:</label>
22
+						<div class="col-lg-6 col-xs-8">
23
+							<input id="uName" name="uName" class="form-control required" maxlength="10">
24
+						</div>
25
+					</div>
26
+					<div class="form-group col-xs-12">
27
+						<label class="required col-sm-4">性别:</label>
28
+						<div class="col-lg-6 col-xs-8">
29
+							<select name="config_gender" id="config_gender" class="form-control required" aria-required="true"
30
+								aria-invalid="false">
31
+								<option value="" selected="">--请选择--</option>
32
+							</select>
33
+						</div>
34
+					</div>
35
+					<div class="form-group col-xs-12">
36
+						<label class=" required col-sm-4">民族:</label>
37
+						<div class="col-lg-6 col-xs-8">
38
+							<select name="config_nation" id="config_nation" class="form-control required" aria-required="true"
39
+								aria-invalid="false">
40
+								<option value="" selected="">--请选择--</option>
41
+							</select>
42
+						</div>
43
+					</div>
44
+					<div class="form-group col-xs-12">
45
+						<label class="required col-sm-4">血型:</label>
46
+						<div class="col-lg-6 col-xs-8">
47
+							<select name="config_bltype" id="config_bltype" class="form-control required" aria-required="true"
48
+								aria-invalid="false">
49
+								<option value="" selected="">--请选择--</option>
50
+							</select>
51
+						</div>
52
+					</div>
53
+					<div class="form-group col-xs-12">
54
+						<label class="required col-sm-4">身份证号:</label>
55
+						<div class="col-lg-6 col-xs-8">
56
+							<input id="idNumber" name="idNumber" class="form-control required" maxlength="20">
57
+						</div>
58
+					</div>
59
+					<div class="form-group col-xs-12">
60
+						<label class="required col-sm-4">出生日期:</label>
61
+						<div class="col-lg-6 col-xs-8">
62
+							<input id="birth_date" name="birth_date" class="form-control form-date required dateISO">
63
+						</div>
64
+					</div>
65
+					<div class="form-group col-xs-12">
66
+						<label class="required col-sm-4">文化程度:</label>
67
+						<div class="col-lg-6 col-xs-8">
68
+							<select name="config_education" id="config_education" class="form-control required" aria-required="true"
69
+								aria-invalid="false">
70
+								<option value="" selected="">--请选择--</option>
71
+							</select>
72
+						</div>
73
+					</div>
74
+					<div class="form-group col-xs-12">
75
+						<label class="required col-sm-4">政治面貌:</label>
76
+						<div class="col-lg-6 col-xs-8">
77
+							<select name="config_polity" id="config_polity" class="form-control required" aria-required="true"
78
+								aria-invalid="false">
79
+								<option value="" selected="">--请选择--</option>
80
+							</select>
81
+						</div>
82
+					</div>
83
+					<div class="form-group col-xs-12">
84
+						<label class="required col-sm-4">人员身份:</label>
85
+						<div class="col-lg-6 col-xs-8">
86
+							<select name="config_peoidentity" id="config_peoidentity" class="form-control required"
87
+								aria-required="true" aria-invalid="false">
88
+								<option value="" selected="">--请选择--</option>
89
+							</select>
90
+						</div>
91
+					</div>
92
+					<div class="form-group col-xs-12">
93
+						<label class="required col-sm-4">工作岗位:</label>
94
+						<div class="col-lg-6 col-xs-8">
95
+							<select name="config_workstation" id="config_workstation" class="form-control required"
96
+								aria-required="true" aria-invalid="false">
97
+								<option value="" selected="">--请选择--</option>
98
+							</select>
99
+						</div>
100
+					</div>
101
+					<div class="form-group col-xs-12">
102
+						<label class="required col-sm-4">编制性质:</label>
103
+						<div class="col-lg-6 col-xs-8">
104
+							<select name="config_worker_formation_prop" id="config_worker_formation_prop"
105
+								class="form-control required" aria-required="true" aria-invalid="false">
106
+								<option value="" selected="">--请选择--</option>
107
+							</select>
108
+						</div>
109
+					</div>
110
+					<div class="form-group col-xs-12">
111
+						<label class="required col-sm-4">行政级别:</label>
112
+						<div class="col-lg-6 col-xs-8">
113
+							<select name="config_level" id="config_level" class="form-control required" aria-required="true"
114
+								aria-invalid="false">
115
+								<option value="" selected="">--请选择--</option>
116
+							</select>
117
+						</div>
118
+					</div>
119
+					<div class="form-group col-xs-12">
120
+						<label class="col-sm-4">家庭住址:</label>
121
+						<div class="col-lg-6 col-xs-8">
122
+							<input id="address" name="address" class="form-control " maxlength="50">
123
+						</div>
124
+					</div>
125
+					<div class="form-group col-xs-12">
126
+						<label class="col-sm-4">籍贯:</label>
127
+						<div class="col-lg-6 col-xs-8">
128
+							<input id="native_place" name="native_place" class="form-control " maxlength="50">
129
+						</div>
130
+					</div>
131
+					<div class="form-group col-xs-12">
132
+						<label class="required col-sm-4">办公电话:</label>
133
+						<div class="col-lg-6 col-xs-8">
134
+							<input id="officeTel" name="officeTel" class="form-control isTel required" maxlength="20">
135
+						</div>
136
+					</div>
137
+					<div class="form-group col-xs-12">
138
+						<label class="required col-sm-4">移动电话:</label>
139
+						<div class="col-lg-6 col-xs-8">
140
+							<input id="mobile" name="mobile" class="form-control isMobile required" maxlength="30">
141
+						</div>
142
+					</div>
143
+					<div class="form-group col-xs-12">
144
+						<label class="col-sm-4">电子邮箱:</label>
145
+						<div class="col-lg-6 col-xs-8">
146
+							<input id="email" name="email" class="form-control email" maxlength="50">
147
+						</div>
148
+					</div>
149
+					<div class="form-group col-xs-12">
150
+						<label class="required col-sm-4">所属科室:</label>
151
+						<div class="col-lg-6 col-xs-8">
152
+							<select name="officeId" id="officeId" class="form-control required" aria-required="true"
153
+								aria-invalid="false">
154
+								<option value="" selected="">--请选择--</option>
155
+							</select>
156
+						</div>
157
+					</div>
158
+					<div class="form-group col-lg-8 col-xs-12">
159
+						<label class="col-sm-4">个人照片:</label>
160
+						<div class="col-lg-10 col-xs-10">
161
+							<div th:replace="common/common_file::common_file('photo','')"></div>
162
+						</div>
163
+					</div>
139 164
 				</div>
140 165
 			</div>
141
-			<div class="form-group col-xs-12">
142
-				<label class="col-sm-4">电子邮箱:</label>
143
-				<div class="col-lg-6 col-xs-8">
144
-					<input id="email" name="email" class="form-control email"
145
-						maxlength="50">
146
-				</div>
147
-			</div>
148
-			<div class="form-group col-xs-12">
149
-				<label class="required col-sm-4">所属科室:</label>
150
-				<div class="col-lg-6 col-xs-8">
151
-					<select name="officeId" id="officeId" class="form-control required"
152
-						aria-required="true"
153
-						aria-invalid="false"><option value="" selected="">--请选择--</option></select>
154
-				</div>
155
-			</div>
156
-			<div class="form-group col-lg-8 col-xs-12">
157
-				<label class="col-sm-4">个人照片:</label>
158
-				<div class="col-lg-10 col-xs-10">
159
-					<div
160
-						th:replace="common/common_file::common_file('photo','')"></div>
161
-				</div>
162
-			</div>
163
-			<h1 class="title">备注信息</h1>
164
-			<div class="form-group col-xs-12">
165
-				<div class="col-lg-10 col-xs-12">
166
-					<textarea style="resize: none;" rows="5" name="remark"
167
-						maxlength="500" class="form-control"></textarea>
166
+
167
+			<div class="ext-card">
168
+				<h1 class="title">备注信息</h1>
169
+				<div class="wd-m">
170
+					<div class="form-group col-xs-12">
171
+						<div class="col-lg-10 col-xs-12">
172
+							<textarea style="resize: none;" rows="5" name="remark" maxlength="500" class="form-control"></textarea>
173
+						</div>
174
+					</div>
168 175
 				</div>
169 176
 			</div>
177
+
170 178
 			<div class="btnEnd">
171 179
 				<button class="btn btn-primary" id="submitBtn" type="button">保存</button>
172 180
 				<button class="btn" type="button" onclick="history.back();">取消</button>
@@ -177,18 +185,20 @@
177 185
 <script>
178 186
 	// 仅选择日期
179 187
 	$(".form-date").datetimepicker({
180
-		language : "zh-CN",
181
-		weekStart : 1,
182
-		todayBtn : 1,
183
-		autoclose : 1,
184
-		todayHighlight : 1,
185
-		startView : 2,
186
-		minView : 2,
187
-		forceParse : 0,
188
-		format : "yyyy-mm-dd"
189
-	}).on('changeDate', function(ev) {
188
+		language: "zh-CN",
189
+		weekStart: 1,
190
+		todayBtn: 1,
191
+		autoclose: 1,
192
+		todayHighlight: 1,
193
+		startView: 2,
194
+		minView: 2,
195
+		forceParse: 0,
196
+		format: "yyyy-mm-dd"
197
+	}).on('changeDate', function (ev) {
190 198
 		$(this).valid();
191 199
 	});
192 200
 </script>
201
+
193 202
 </html>
203
+
194 204
 </html>

+ 103
- 78
resources/templates/worker/details.html View File

@@ -1,88 +1,113 @@
1 1
 <html lang="zh-CN">
2
-<head
3
-	th:replace="common/common_header::common_header(~{},~{::link},~{},~{::script},'')">
4
-<meta charset="utf-8">
5
-<script th:src="@{/js/worker/details.js}"></script>
6
-<script th:src="@{/js/pictureViewer/js/pictureViewer.js}"></script>
7
-<script th:src="@{/js/pictureViewer/js/jquery.mousewheel.min.js}"></script>
8
-<script th:src="@{/js/pictureViewer/js/pictureViewer.js}"></script>
9
-<link rel="stylesheet" type="text/css" th:href="@{/js/pictureViewer/css/pictureViewer.css}">
2
+
3
+<head th:replace="common/common_header::common_header(~{},~{::link},~{},~{::script},'')">
4
+	<meta charset="utf-8">
5
+	<script th:src="@{/js/worker/details.js}"></script>
6
+	<script th:src="@{/js/pictureViewer/js/pictureViewer.js}"></script>
7
+	<script th:src="@{/js/pictureViewer/js/jquery.mousewheel.min.js}"></script>
8
+	<script th:src="@{/js/pictureViewer/js/pictureViewer.js}"></script>
9
+	<link rel="stylesheet" type="text/css" th:href="@{/js/pictureViewer/css/pictureViewer.css}">
10 10
 </head>
11
+
11 12
 <body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">
12 13
 	<div class="panel-body">
13
-		<form id="officeForm" action="" method="post"
14
-			class="conForm view-info">		
15
-			<h1 class="title">基本信息</h1>	
16
-			<div class="col-xs-6">
17
-				<label>姓名:</label>[[${workerObj.uName}]]
18
-			</div>
19
-			<div class="col-xs-6">
20
-				<label>身份证号:</label>[[${workerObj.idNumber}]]
21
-			</div>
22
-			<div class="col-xs-6">
23
-				<label>性别:</label><font th:selOpt="${workerObj.config_gender}" id="config_gender"></font>
24
-			</div>
25
-			<div class="col-xs-6">
26
-				<label>出生日期:</label>[[${#dates.format(workerObj.birth_date, 'yyyy-MM-dd')}]]
27
-			</div>
28
-			<div class="col-xs-6">
29
-				<label>民族:</label><font th:selOpt="${workerObj.config_nation}" id="config_nation"></font>
30
-			</div>
31
-			<div class="col-xs-6">
32
-				<label>血型:</label><font th:selOpt="${workerObj.config_bltype}" id="config_bltype"></font>
33
-			</div>
34
-			<div class="col-xs-6">
35
-				<label>文化程度:</label><font th:selOpt="${workerObj.config_education}" id="config_education"></font>
36
-			</div>
37
-			<div class="col-xs-6">
38
-				<label>政治面貌:</label><font th:selOpt="${workerObj.config_polity}" id="config_polity"></font>
39
-			</div>
40
-			<div class="col-xs-6">
41
-				<label>人员身份:</label><font th:selOpt="${workerObj.config_peoidentity}" id="config_peoidentity"></font>
42
-			</div>
43
-			<div class="col-xs-6">
44
-				<label>工作岗位:</label><font th:selOpt="${workerObj.config_workstation}" id="config_workstation"></font>
45
-			</div>
46
-			<div class="col-xs-6">
47
-				<label>编制性质:</label><font th:selOpt="${workerObj.config_worker_formation_prop}" id="config_worker_formation_prop"></font>
48
-			</div>
49
-			<div class="col-xs-6">
50
-				<label>行政级别:</label><font th:selOpt="${workerObj.config_admin_grade}" id="config_admin_grade"></font>
51
-			</div>
52
-			<div class="col-xs-6">
53
-				<label>家庭住址:</label>[[${workerObj.address}]]
54
-			</div>
55
-			<div class="col-xs-6">
56
-				<label>籍贯:</label>[[${workerObj.native_place}]]
57
-			</div>
58
-			<div class="col-xs-6">
59
-				<label>办公电话:</label>[[${workerObj.officeTel}]]
60
-			</div>
61
-			<div class="col-xs-6">
62
-				<label>移动电话:</label>[[${workerObj.mobile}]]
63
-			</div>
64
-			<div class="col-xs-6">
65
-				<label>电子邮箱:</label>[[${workerObj.email}]]
66
-			</div>
67
-			<div class="col-xs-6">
68
-				<label>所属科室:</label><font th:selOpt="${(workerObj.officeid != null)?workerObj.officeid:''}" id="officeId"></font>
69
-			</div>
70
-			<h1 class="title">照片信息</h1>	
71
-			<div class="col-xs-12 image-list"
72
-				th:if="${not #strings.isEmpty(workerObj.photo)}">
73
-				<label>个人照片:</label>
74
-				<span class="cover"><img th:src="@{/} + 'api/file/getFile?filePath=' + ${workerObj.photo}"  th:imgName="${workerObj.uName}"
75
-				alt="个人照片" style="width:200px;height:200px;border:#ddd 1px solid; vertical-align: text-top;"></span>
76
-			</div>
77
-			<h1 class="title">备注信息</h1>
78
-			<div class="text">
79
-				[[${workerObj.remark}]]
80
-			</div>
14
+		<form id="officeForm" action="" method="post" class="conForm">
15
+			<div class="ext-card">
16
+				<h1 class="title">基本信息</h1>
17
+				<div class="view-info">
18
+					<div class="col-xs-6">
19
+						<label>姓名:</label>[[${workerObj.uName}]]
20
+					</div>
21
+					<div class="col-xs-6">
22
+						<label>身份证号:</label>[[${workerObj.idNumber}]]
23
+					</div>
24
+					<div class="col-xs-6">
25
+						<label>性别:</label>
26
+						<font th:selOpt="${workerObj.config_gender}" id="config_gender"></font>
27
+					</div>
28
+					<div class="col-xs-6">
29
+						<label>出生日期:</label>[[${#dates.format(workerObj.birth_date, 'yyyy-MM-dd')}]]
30
+					</div>
31
+					<div class="col-xs-6">
32
+						<label>民族:</label>
33
+						<font th:selOpt="${workerObj.config_nation}" id="config_nation"></font>
34
+					</div>
35
+					<div class="col-xs-6">
36
+						<label>血型:</label>
37
+						<font th:selOpt="${workerObj.config_bltype}" id="config_bltype"></font>
38
+					</div>
39
+					<div class="col-xs-6">
40
+						<label>文化程度:</label>
41
+						<font th:selOpt="${workerObj.config_education}" id="config_education"></font>
42
+					</div>
43
+					<div class="col-xs-6">
44
+						<label>政治面貌:</label>
45
+						<font th:selOpt="${workerObj.config_polity}" id="config_polity"></font>
46
+					</div>
47
+					<div class="col-xs-6">
48
+						<label>人员身份:</label>
49
+						<font th:selOpt="${workerObj.config_peoidentity}" id="config_peoidentity"></font>
50
+					</div>
51
+					<div class="col-xs-6">
52
+						<label>工作岗位:</label>
53
+						<font th:selOpt="${workerObj.config_workstation}" id="config_workstation"></font>
54
+					</div>
55
+					<div class="col-xs-6">
56
+						<label>编制性质:</label>
57
+						<font th:selOpt="${workerObj.config_worker_formation_prop}" id="config_worker_formation_prop"></font>
58
+					</div>
59
+					<div class="col-xs-6">
60
+						<label>行政级别:</label>
61
+						<font th:selOpt="${workerObj.config_admin_grade}" id="config_admin_grade"></font>
62
+					</div>
63
+					<div class="col-xs-6">
64
+						<label>家庭住址:</label>[[${workerObj.address}]]
65
+					</div>
66
+					<div class="col-xs-6">
67
+						<label>籍贯:</label>[[${workerObj.native_place}]]
68
+					</div>
69
+					<div class="col-xs-6">
70
+						<label>办公电话:</label>[[${workerObj.officeTel}]]
71
+					</div>
72
+					<div class="col-xs-6">
73
+						<label>移动电话:</label>[[${workerObj.mobile}]]
74
+					</div>
75
+					<div class="col-xs-6">
76
+						<label>电子邮箱:</label>[[${workerObj.email}]]
77
+					</div>
78
+					<div class="col-xs-6">
79
+						<label>所属科室:</label>
80
+						<font th:selOpt="${(workerObj.officeid != null)?workerObj.officeid:''}" id="officeId"></font>
81
+					</div>
82
+				</div>
83
+			</div>
84
+
85
+			<div class="ext-card">
86
+				<h1 class="title">照片信息</h1>
87
+				<div class="view-info">
88
+					<div class="col-xs-12 image-list" th:if="${not #strings.isEmpty(workerObj.photo)}">
89
+						<label>个人照片:</label>
90
+						<span class="cover"><img th:src="@{/} + 'api/file/getFile?filePath=' + ${workerObj.photo}"
91
+								th:imgName="${workerObj.uName}" alt="个人照片"
92
+								style="width:200px;height:200px;border:#ddd 1px solid; vertical-align: text-top;"></span>
93
+					</div>
94
+				</div>
95
+			</div>
96
+
97
+			<div class="ext-card">
98
+				<h1 class="title">备注信息</h1>
99
+				<div class="view-info">
100
+					<div class="text">
101
+						[[${workerObj.remark}]]
102
+					</div>
103
+				</div>
104
+			</div>
105
+
81 106
 			<div class="btnEnd">
82
-				<button class="btn btn-primary" type="button"
83
-					onclick="history.back();">返回</button>
107
+				<button class="btn btn-primary" type="button" onclick="history.back();">返回</button>
84 108
 			</div>
85 109
 		</form>
86 110
 	</div>
87 111
 </body>
112
+
88 113
 </html>

+ 191
- 176
resources/templates/worker/update.html View File

@@ -1,181 +1,194 @@
1 1
 <html lang="zh-CN">
2
-<head
3
-	th:replace="common/common_header::common_header(~{},~{::link},~{},~{::script},'edit')">
4
-<meta charset="utf-8" />
5
-<script
6
-	th:src="@{/js/zui/dist/lib/datetimepicker/datetimepicker.min.js}"></script>
7
-<link
8
-	th:href="@{/js/zui/dist/lib/datetimepicker/datetimepicker.min.css}"
9
-	rel="stylesheet" />
10
-<script th:src="@{/js/idcard.js}" type="text/javascript"></script>
11
-<script th:src="@{/js/worker/update.js}"></script>
12
-<link th:href="@{/js/zui/dist/lib/uploader/zui.uploader.min.css}"
13
-	rel="stylesheet">
14
-<script th:src="@{/js/zui/dist/lib/uploader/zui.uploader.min.js}"></script>
2
+
3
+<head th:replace="common/common_header::common_header(~{},~{::link},~{},~{::script},'edit')">
4
+	<meta charset="utf-8" />
5
+	<script th:src="@{/js/zui/dist/lib/datetimepicker/datetimepicker.min.js}"></script>
6
+	<link th:href="@{/js/zui/dist/lib/datetimepicker/datetimepicker.min.css}" rel="stylesheet" />
7
+	<script th:src="@{/js/idcard.js}" type="text/javascript"></script>
8
+	<script th:src="@{/js/worker/update.js}"></script>
9
+	<link th:href="@{/js/zui/dist/lib/uploader/zui.uploader.min.css}" rel="stylesheet">
10
+	<script th:src="@{/js/zui/dist/lib/uploader/zui.uploader.min.js}"></script>
15 11
 
16 12
 </head>
13
+
17 14
 <body th:replace="common/common_entity::common_entity(~{::div})" class="ext-page">
18 15
 	<div class="panel-body">
19 16
 		<form id="workerForm" method="post" class="conForm load-indicator" data-loading="正在处理...">
20
-			<h1 class="title">基本信息</h1>
21
-			<input type="hidden" id="id" name= "id" th:value="${workerObj.id}" />
22
-			<div class="form-group col-xs-12">
23
-				<label class="required col-sm-4">姓名:</label>
24
-				<div class="col-lg-6 col-xs-8">
25
-					<input id="uName" name="uName" class="form-control required" th:value="${workerObj.uName}"
26
-						maxlength="10">
27
-				</div>
28
-			</div>
29
-			<div class="form-group col-xs-12">
30
-				<label class="required col-sm-4">性别:</label>
31
-				<div class="col-lg-6 col-xs-8">
32
-					<select name="config_gender" id="config_gender"  class="form-control required" th:selOpt="${workerObj.config_gender}"
33
-						aria-required="true" aria-invalid="false"><option
34
-							value="" selected="">--请选择--</option></select>
35
-				</div>
36
-			</div>
37
-			<div class="form-group col-xs-12">
38
-				<label class=" required">民族:</label>
39
-				<div class="col-lg-6 col-xs-8">
40
-					<select name="config_nation" id="config_nation"  class="form-control required" th:selOpt="${workerObj.config_nation}" 
41
-						aria-required="true" aria-invalid="false"><option
42
-							value="" selected="">--请选择--</option></select>
43
-				</div>
44
-			</div>
45
-			<div class="form-group col-xs-12">
46
-				<label class="required col-sm-4">血型:</label>
47
-				<div class="col-lg-6 col-xs-8">
48
-					<select name="config_bltype" id="config_bltype" class="form-control required" th:selOpt="${workerObj.config_bltype}"
49
-						 aria-required="true"
50
-						aria-invalid="false"><option value="" selected="">--请选择--</option></select>
51
-				</div>
52
-			</div>
53
-			<div class="form-group col-xs-12">
54
-				<label class="required col-sm-4">身份证号:</label>
55
-				<div class="col-lg-6 col-xs-8">
56
-					<input id="idNumber" name="idNumber" class="form-control required" th:value="${workerObj.idNumber}"
57
-						maxlength="20" th:selOpt="${workerObj.idNumber}">
58
-				</div>
59
-			</div>
60
-			<div class="form-group col-xs-12">
61
-				<label class="required col-sm-4">出生日期:</label>
62
-				<div class="col-lg-6 col-xs-8"> 
63
-					<input id="birth_date" name="birth_date" class="form-control form-date required dateISO" 
64
-					th:value="${#dates.format(workerObj.birth_date, 'yyyy-MM-dd')}">
65
-				</div>
66
-			</div>
67
-			<div class="form-group col-xs-12">
68
-				<label class="required col-sm-4">文化程度:</label>
69
-				<div class="col-lg-6 col-xs-8">
70
-					<select name="config_education" id="config_education" class="form-control required" th:selOpt="${workerObj.config_education}"
71
-						 aria-required="true"
72
-						aria-invalid="false"><option value="" selected="">--请选择--</option></select>
73
-				</div>
74
-			</div>
75
-			<div class="form-group col-xs-12">
76
-				<label class="required col-sm-4">政治面貌:</label>
77
-				<div class="col-lg-6 col-xs-8">
78
-					<select name="config_polity" id="config_polity" class="form-control required" th:selOpt="${workerObj.config_polity}"
79
-						aria-required="true"
80
-						aria-invalid="false"><option value="" selected="">--请选择--</option></select>
81
-				</div>
82
-			</div>
83
-			<div class="form-group col-xs-12">
84
-				<label class="col-sm-4">人员身份:</label>
85
-				<div class="col-lg-6 col-xs-8">
86
-					<select name="config_peoidentity" id="config_peoidentity" class="form-control required" th:selOpt="${workerObj.config_peoidentity}"
87
-						 aria-required="true"
88
-						aria-invalid="false"><option value="" selected="">--请选择--</option></select>
89
-				</div>
90
-			</div>
91
-			<div class="form-group col-xs-12">
92
-				<label class="required col-sm-4">工作岗位:</label>
93
-				<div class="col-lg-6 col-xs-8">
94
-					<select name="config_workstation" id="config_workstation" class="form-control required" th:selOpt="${workerObj.config_workstation}"
95
-						 aria-required="true"
96
-						aria-invalid="false"><option value="" selected="">--请选择--</option></select>
97
-				</div>
98
-			</div>
99
-			<div class="form-group col-xs-12">
100
-				<label class="required col-sm-4">编制性质:</label>
101
-				<div class="col-lg-6 col-xs-8">
102
-					<select name="config_worker_formation_prop" id="config_worker_formation_prop" class="form-control required"
103
-						 aria-required="true" th:selOpt="${workerObj.config_worker_formation_prop}"
104
-						aria-invalid="false"><option value="" selected="">--请选择--</option></select>
17
+			<div class="ext-card">
18
+				<h1 class="title">基本信息</h1>
19
+				<div class="wd-m">
20
+					<input type="hidden" id="id" name="id" th:value="${workerObj.id}" />
21
+					<div class="form-group col-xs-12">
22
+						<label class="required col-sm-4">姓名:</label>
23
+						<div class="col-lg-6 col-xs-8">
24
+							<input id="uName" name="uName" class="form-control required" th:value="${workerObj.uName}" maxlength="10">
25
+						</div>
26
+					</div>
27
+					<div class="form-group col-xs-12">
28
+						<label class="required col-sm-4">性别:</label>
29
+						<div class="col-lg-6 col-xs-8">
30
+							<select name="config_gender" id="config_gender" class="form-control required"
31
+								th:selOpt="${workerObj.config_gender}" aria-required="true" aria-invalid="false">
32
+								<option value="" selected="">--请选择--</option>
33
+							</select>
34
+						</div>
35
+					</div>
36
+					<div class="form-group col-xs-12">
37
+						<label class=" required col-sm-4">民族:</label>
38
+						<div class="col-lg-6 col-xs-8">
39
+							<select name="config_nation" id="config_nation" class="form-control required"
40
+								th:selOpt="${workerObj.config_nation}" aria-required="true" aria-invalid="false">
41
+								<option value="" selected="">--请选择--</option>
42
+							</select>
43
+						</div>
44
+					</div>
45
+					<div class="form-group col-xs-12">
46
+						<label class="required col-sm-4">血型:</label>
47
+						<div class="col-lg-6 col-xs-8">
48
+							<select name="config_bltype" id="config_bltype" class="form-control required"
49
+								th:selOpt="${workerObj.config_bltype}" aria-required="true" aria-invalid="false">
50
+								<option value="" selected="">--请选择--</option>
51
+							</select>
52
+						</div>
53
+					</div>
54
+					<div class="form-group col-xs-12">
55
+						<label class="required col-sm-4">身份证号:</label>
56
+						<div class="col-lg-6 col-xs-8">
57
+							<input id="idNumber" name="idNumber" class="form-control required" th:value="${workerObj.idNumber}"
58
+								maxlength="20" th:selOpt="${workerObj.idNumber}">
59
+						</div>
60
+					</div>
61
+					<div class="form-group col-xs-12">
62
+						<label class="required col-sm-4">出生日期:</label>
63
+						<div class="col-lg-6 col-xs-8">
64
+							<input id="birth_date" name="birth_date" class="form-control form-date required dateISO"
65
+								th:value="${#dates.format(workerObj.birth_date, 'yyyy-MM-dd')}">
66
+						</div>
67
+					</div>
68
+					<div class="form-group col-xs-12">
69
+						<label class="required col-sm-4">文化程度:</label>
70
+						<div class="col-lg-6 col-xs-8">
71
+							<select name="config_education" id="config_education" class="form-control required"
72
+								th:selOpt="${workerObj.config_education}" aria-required="true" aria-invalid="false">
73
+								<option value="" selected="">--请选择--</option>
74
+							</select>
75
+						</div>
76
+					</div>
77
+					<div class="form-group col-xs-12">
78
+						<label class="required col-sm-4">政治面貌:</label>
79
+						<div class="col-lg-6 col-xs-8">
80
+							<select name="config_polity" id="config_polity" class="form-control required"
81
+								th:selOpt="${workerObj.config_polity}" aria-required="true" aria-invalid="false">
82
+								<option value="" selected="">--请选择--</option>
83
+							</select>
84
+						</div>
85
+					</div>
86
+					<div class="form-group col-xs-12">
87
+						<label class="col-sm-4">人员身份:</label>
88
+						<div class="col-lg-6 col-xs-8">
89
+							<select name="config_peoidentity" id="config_peoidentity" class="form-control required"
90
+								th:selOpt="${workerObj.config_peoidentity}" aria-required="true" aria-invalid="false">
91
+								<option value="" selected="">--请选择--</option>
92
+							</select>
93
+						</div>
94
+					</div>
95
+					<div class="form-group col-xs-12">
96
+						<label class="required col-sm-4">工作岗位:</label>
97
+						<div class="col-lg-6 col-xs-8">
98
+							<select name="config_workstation" id="config_workstation" class="form-control required"
99
+								th:selOpt="${workerObj.config_workstation}" aria-required="true" aria-invalid="false">
100
+								<option value="" selected="">--请选择--</option>
101
+							</select>
102
+						</div>
103
+					</div>
104
+					<div class="form-group col-xs-12">
105
+						<label class="required col-sm-4">编制性质:</label>
106
+						<div class="col-lg-6 col-xs-8">
107
+							<select name="config_worker_formation_prop" id="config_worker_formation_prop"
108
+								class="form-control required" aria-required="true" th:selOpt="${workerObj.config_worker_formation_prop}"
109
+								aria-invalid="false">
110
+								<option value="" selected="">--请选择--</option>
111
+							</select>
112
+						</div>
113
+					</div>
114
+					<div class="form-group col-xs-12">
115
+						<label class="col-sm-4">行政级别:</label>
116
+						<div class="col-lg-6 col-xs-8">
117
+							<select name="config_level" id="config_level" class="form-control required" aria-required="true"
118
+								th:selOpt="${workerObj.config_level}" aria-invalid="false">
119
+								<option value="" selected="">--请选择--</option>
120
+							</select>
121
+						</div>
122
+					</div>
123
+					<div class="form-group col-xs-12">
124
+						<label class="col-sm-4">家庭住址:</label>
125
+						<div class="col-lg-6 col-xs-8">
126
+							<input id="address" name="address" class="form-control " th:value="${workerObj.address}" maxlength="50">
127
+						</div>
128
+					</div>
129
+					<div class="form-group col-xs-12">
130
+						<label class="col-sm-4">籍贯:</label>
131
+						<div class="col-lg-6 col-xs-8">
132
+							<input id="native_place" name="native_place" class="form-control " th:value="${workerObj.native_place}"
133
+								maxlength="50">
134
+						</div>
135
+					</div>
136
+					<div class="form-group col-xs-12">
137
+						<label class="col-sm-4">办公电话:</label>
138
+						<div class="col-lg-6 col-xs-8">
139
+							<input id="officeTel" name="officeTel" class="form-control isTel required"
140
+								th:value="${workerObj.officeTel}" maxlength="20">
141
+						</div>
142
+					</div>
143
+					<div class="form-group col-xs-12">
144
+						<label class="required col-sm-4">移动电话:</label>
145
+						<div class="col-lg-6 col-xs-8">
146
+							<input id="mobile" name="mobile" class="form-control isMobile required" th:value="${workerObj.mobile}"
147
+								maxlength="30">
148
+						</div>
149
+					</div>
150
+					<div class="form-group col-xs-12">
151
+						<label class="col-sm-4">电子邮箱:</label>
152
+						<div class="col-lg-6 col-xs-8">
153
+							<input id="email" name="email" class="form-control email" th:value="${workerObj.email}" maxlength="50">
154
+						</div>
155
+					</div>
156
+					<div class="form-group col-xs-12">
157
+						<label class="required col-sm-4">所属科室:</label>
158
+						<div class="col-lg-6 col-xs-8">
159
+							<select name="officeId" id="officeId" class="form-control required" aria-required="true"
160
+								th:selOpt="${(workerObj.officeid != null)?workerObj.officeid:''}" aria-invalid="false">
161
+								<option value="" selected="">--请选择--</option>
162
+							</select>
163
+						</div>
164
+					</div>
165
+					<div class="form-group col-xs-12">
166
+						<label class="col-sm-4">个人照片:</label>
167
+						<div class="col-lg-10 col-xs-10" th:if="${not #strings.isEmpty(workerObj.photo)}">
168
+							<div th:replace="common/common_file::common_file('photo',${workerObj.photo})"></div>
169
+						</div>
170
+						<div class="col-lg-10 col-xs-10" th:if="${#strings.isEmpty(workerObj.photo)}">
171
+							<div th:if="${#strings.isEmpty(workerObj.photo)}"
172
+								th:replace="common/common_file::common_file('photo','')"></div>
173
+						</div>
174
+					</div>
105 175
 				</div>
106 176
 			</div>
107
-			<div class="form-group col-xs-12">
108
-				<label class="col-sm-4">行政级别:</label>
109
-				<div class="col-lg-6 col-xs-8">
110
-					<select name="config_level" id="config_level" class="form-control required"
111
-						 aria-required="true" th:selOpt="${workerObj.config_level}"
112
-						aria-invalid="false"><option value="" selected="">--请选择--</option></select>
113
-				</div>
114
-			</div>
115
-			<div class="form-group col-xs-12">
116
-				<label class="col-sm-4">家庭住址:</label>
117
-				<div class="col-lg-6 col-xs-8">
118
-					<input id="address" name="address" class="form-control " th:value="${workerObj.address}"
119
-						maxlength="50">
120
-				</div>
121
-			</div>
122
-			<div class="form-group col-xs-12">
123
-				<label class="col-sm-4">籍贯:</label>
124
-				<div class="col-lg-6 col-xs-8">
125
-					<input id="native_place" name="native_place" class="form-control " th:value="${workerObj.native_place}"
126
-						maxlength="50">
127
-				</div>
128
-			</div>
129
-			<div class="form-group col-xs-12">
130
-				<label class="col-sm-4">办公电话:</label>
131
-				<div class="col-lg-6 col-xs-8">
132
-					<input id="officeTel" name="officeTel" class="form-control isTel required" th:value="${workerObj.officeTel}"
133
-						maxlength="20">
134
-				</div>
135
-			</div>
136
-			<div class="form-group col-xs-12">
137
-				<label class="required col-sm-4">移动电话:</label>
138
-				<div class="col-lg-6 col-xs-8">
139
-					<input id="mobile" name="mobile" class="form-control isMobile required" th:value="${workerObj.mobile}"
140
-						maxlength="30">
141
-				</div>
142
-			</div>
143
-			<div class="form-group col-xs-12">
144
-				<label class="col-sm-4">电子邮箱:</label>
145
-				<div class="col-lg-6 col-xs-8">
146
-					<input id="email" name="email" class="form-control email" th:value="${workerObj.email}"
147
-						maxlength="50">
148
-				</div>
149
-			</div>
150
-			<div class="form-group col-xs-12">
151
-				<label class="required col-sm-4">所属科室:</label>
152
-				<div class="col-lg-6 col-xs-8">
153
-					<select name="officeId" id="officeId" class="form-control required"
154
-						aria-required="true" th:selOpt="${(workerObj.officeid != null)?workerObj.officeid:''}"
155
-						aria-invalid="false"><option value="" selected="">--请选择--</option></select>
156
-				</div>
157
-			</div>
158
-			<div class="form-group col-xs-12">
159
-				<label class="col-sm-4">个人照片:</label>
160
-				<div class="col-lg-10 col-xs-10" th:if="${not #strings.isEmpty(workerObj.photo)}">
161
-					<div   
162
-						th:replace="common/common_file::common_file('photo',${workerObj.photo})"></div> 
163
-				</div>
164
-				<div class="col-lg-10 col-xs-10" th:if="${#strings.isEmpty(workerObj.photo)}">					
165
-					<div th:if="${#strings.isEmpty(workerObj.photo)}"
166
-						th:replace="common/common_file::common_file('photo','')"></div>
167
-				</div>
168
-			</div>
169
-			<h1 class="title">备注信息</h1>
170
-			<div class="form-group col-xs-12">
171
-				<div class="col-lg-10 col-xs-12">
172
-					<textarea style="resize: none;" rows="5" name="remark"
173
-						maxlength="500" class="form-control"></textarea>
177
+
178
+			<div class="ext-card">
179
+				<h1 class="title">备注信息</h1>
180
+				<div class="wd-m">
181
+					<div class="form-group col-xs-12">
182
+						<div class="col-lg-10 col-xs-12">
183
+							<textarea style="resize: none;" rows="5" name="remark" maxlength="500" class="form-control"></textarea>
184
+						</div>
185
+					</div>
174 186
 				</div>
175 187
 			</div>
188
+
176 189
 			<div class="btnEnd">
177 190
 				<button class="btn btn-primary" id="submitBtn" type="button">保存</button>
178
-				<button class="btn" type="button" onclick="history.back();">取消</button>	
191
+				<button class="btn" type="button" onclick="history.back();">取消</button>
179 192
 			</div>
180 193
 		</form>
181 194
 	</div>
@@ -183,18 +196,20 @@
183 196
 <script>
184 197
 	// 仅选择日期
185 198
 	$(".form-date").datetimepicker({
186
-		language : "zh-CN",
187
-		weekStart : 1,
188
-		todayBtn : 1,
189
-		autoclose : 1,
190
-		todayHighlight : 1,
191
-		startView : 2,
192
-		minView : 2,
193
-		forceParse : 0,
194
-		format : "yyyy-mm-dd"
195
-	}).on('changeDate', function(ev) {
199
+		language: "zh-CN",
200
+		weekStart: 1,
201
+		todayBtn: 1,
202
+		autoclose: 1,
203
+		todayHighlight: 1,
204
+		startView: 2,
205
+		minView: 2,
206
+		forceParse: 0,
207
+		format: "yyyy-mm-dd"
208
+	}).on('changeDate', function (ev) {
196 209
 		$(this).valid();
197 210
 	});
198 211
 </script>
212
+
199 213
 </html>
214
+
200 215
 </html>

BIN
uploadFile/inside/32/3206/320685/32068501/20220816185633_ead32dd1e461452daceb4d9999dfd054.jpg View File