|
|
@@ -1,5 +1,6 @@
|
|
1
|
1
|
<!DOCTYPE html>
|
|
2
|
2
|
<html>
|
|
|
3
|
+
|
|
3
|
4
|
<head>
|
|
4
|
5
|
<meta charset="UTF-8">
|
|
5
|
6
|
<script src="../Script/Common/huayi.load.js"></script>
|
|
|
@@ -97,31 +98,32 @@
|
|
97
|
98
|
overflow-y: initial;
|
|
98
|
99
|
}
|
|
99
|
100
|
|
|
100
|
|
- .common table {
|
|
101
|
|
- width: 100%;
|
|
102
|
|
- }
|
|
|
101
|
+ .common table {
|
|
|
102
|
+ width: 100%;
|
|
|
103
|
+ }
|
|
103
|
104
|
|
|
104
|
|
- .common table th {
|
|
105
|
|
- padding: 5px 8px 5px 0;
|
|
106
|
|
- text-align: right;
|
|
107
|
|
- width: 20%;
|
|
108
|
|
- }
|
|
|
105
|
+ .common table th {
|
|
|
106
|
+ padding: 5px 8px 5px 0;
|
|
|
107
|
+ text-align: right;
|
|
|
108
|
+ width: 20%;
|
|
|
109
|
+ }
|
|
109
|
110
|
|
|
110
|
|
- .common table td {
|
|
111
|
|
- padding: 6px 0 5px 10px;
|
|
112
|
|
- text-align: left;
|
|
113
|
|
- color: #717171;
|
|
114
|
|
- line-height: 200%;
|
|
115
|
|
- }
|
|
|
111
|
+ .common table td {
|
|
|
112
|
+ padding: 6px 0 5px 10px;
|
|
|
113
|
+ text-align: left;
|
|
|
114
|
+ color: #717171;
|
|
|
115
|
+ line-height: 200%;
|
|
|
116
|
+ }
|
|
116
|
117
|
|
|
117
|
|
- .common table td textarea {
|
|
118
|
|
- width: 100%;
|
|
119
|
|
- vertical-align: middle;
|
|
120
|
|
- resize: none;
|
|
121
|
|
- outline: none;
|
|
122
|
|
- }
|
|
|
118
|
+ .common table td textarea {
|
|
|
119
|
+ width: 100%;
|
|
|
120
|
+ vertical-align: middle;
|
|
|
121
|
+ resize: none;
|
|
|
122
|
+ outline: none;
|
|
|
123
|
+ }
|
|
123
|
124
|
</style>
|
|
124
|
125
|
</head>
|
|
|
126
|
+
|
|
125
|
127
|
<body>
|
|
126
|
128
|
<div class="common">
|
|
127
|
129
|
<table>
|
|
|
@@ -203,8 +205,9 @@
|
|
203
|
205
|
$(".btns").click(function () {
|
|
204
|
206
|
if (!$("#title").val()) {
|
|
205
|
207
|
layer.msg("输入标题");
|
|
206
|
|
- }
|
|
207
|
|
- else if (!$("#greetingTimes").val()) {
|
|
|
208
|
+ } else if ($.fn.zTree.getZTreeObj("treeDemo").getCheckedNodes(true).length <= 0) {
|
|
|
209
|
+ layer.msg("请选择角色");
|
|
|
210
|
+ } else if (!$("#greetingTimes").val()) {
|
|
208
|
211
|
layer.msg("输入选择日期");
|
|
209
|
212
|
} else {
|
|
210
|
213
|
var ztree = $.fn.zTree.getZTreeObj("treeDemo").getCheckedNodes(true);
|
|
|
@@ -238,7 +241,8 @@
|
|
238
|
241
|
if (result.state.toLowerCase() == "success") {
|
|
239
|
242
|
$("#title").val(result.data.F_Title);
|
|
240
|
243
|
//$("#content").val(result.data.F_Content);
|
|
241
|
|
- $('#greetingTimes').val(result.data.F_StartDate + ' ~ ' + result.data.F_EndDate);
|
|
|
244
|
+ $('#greetingTimes').val(result.data.F_StartDate + ' ~ ' + result.data
|
|
|
245
|
+ .F_EndDate);
|
|
242
|
246
|
$('#role').val(result.data.F_RoleId);
|
|
243
|
247
|
$("#zx").val(result.data.F_UserId);
|
|
244
|
248
|
|
|
|
@@ -262,8 +266,8 @@
|
|
262
|
266
|
title: $("#title").val(),
|
|
263
|
267
|
//content: $("#content").val(),
|
|
264
|
268
|
content: encodeURIComponent(editor.html()),
|
|
265
|
|
- stime: $('#greetingTimes').val() && $('#greetingTimes').val().split('~')[0],//开始时间
|
|
266
|
|
- etime: $('#greetingTimes').val() && $('#greetingTimes').val().split('~')[1],//结束时间
|
|
|
269
|
+ stime: $('#greetingTimes').val() && $('#greetingTimes').val().split('~')[0], //开始时间
|
|
|
270
|
+ etime: $('#greetingTimes').val() && $('#greetingTimes').val().split('~')[1], //结束时间
|
|
267
|
271
|
nid: wid,
|
|
268
|
272
|
userid: user,
|
|
269
|
273
|
roleid: role,
|
|
|
@@ -366,5 +370,5 @@
|
|
366
|
370
|
}
|
|
367
|
371
|
</script>
|
|
368
|
372
|
</body>
|
|
369
|
|
-</html>
|
|
370
|
373
|
|
|
|
374
|
+</html>
|