|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+<!DOCTYPE html>
|
|
|
2
|
+<html>
|
|
|
3
|
+
|
|
|
4
|
+ <head>
|
|
|
5
|
+ <meta charset="UTF-8">
|
|
|
6
|
+ <title>专题编辑</title>
|
|
|
7
|
+ <script src="../../Script/Common/huayi.load.js"></script>
|
|
|
8
|
+ <script src="../../Script/Common/huayi.config.js"></script>
|
|
|
9
|
+ <link rel="stylesheet" href="../../js/zTree/zTreeStyle.css" />
|
|
|
10
|
+ <link rel="stylesheet" href="../../css/init.css" />
|
|
|
11
|
+ <script src="../../js/laydate/laydate.js"></script>
|
|
|
12
|
+ <style>
|
|
|
13
|
+ th {
|
|
|
14
|
+ padding: 5px 8px 5px 0;
|
|
|
15
|
+ text-align: right;
|
|
|
16
|
+ }
|
|
|
17
|
+
|
|
|
18
|
+ input {
|
|
|
19
|
+ background-color: #FFF;
|
|
|
20
|
+ background-image: none;
|
|
|
21
|
+ border: 1px solid #ccc;
|
|
|
22
|
+ border-radius: 1px;
|
|
|
23
|
+ color: inherit;
|
|
|
24
|
+ padding: 6px 12px;
|
|
|
25
|
+ width: 200px;
|
|
|
26
|
+ }
|
|
|
27
|
+
|
|
|
28
|
+ td {
|
|
|
29
|
+ padding: 6px 0 5px 10px;
|
|
|
30
|
+ }
|
|
|
31
|
+
|
|
|
32
|
+ .addts {
|
|
|
33
|
+ background: #1ab394;
|
|
|
34
|
+ color: #fff;
|
|
|
35
|
+ padding: 6px 10px;
|
|
|
36
|
+ outline: none;
|
|
|
37
|
+ font-size: 12px;
|
|
|
38
|
+ margin-left: 15px;
|
|
|
39
|
+ border: 0;
|
|
|
40
|
+ border-radius: 3px;
|
|
|
41
|
+ box-sizing: border-box;
|
|
|
42
|
+ }
|
|
|
43
|
+
|
|
|
44
|
+ .time-box {
|
|
|
45
|
+ display: inline-block;
|
|
|
46
|
+ position: relative;
|
|
|
47
|
+ }
|
|
|
48
|
+
|
|
|
49
|
+ .tub {
|
|
|
50
|
+ position: absolute;
|
|
|
51
|
+ right: 8px;
|
|
|
52
|
+ top: 10px;
|
|
|
53
|
+ font-size: 18px;
|
|
|
54
|
+ color: #00a0ca;
|
|
|
55
|
+ }
|
|
|
56
|
+
|
|
|
57
|
+ #layui-laydate3 .layui-laydate-header {
|
|
|
58
|
+ height: 31px;
|
|
|
59
|
+ padding: 5px;
|
|
|
60
|
+ }
|
|
|
61
|
+
|
|
|
62
|
+ .laydate-theme-molv .layui-laydate-header i,
|
|
|
63
|
+ .laydate-theme-molv .layui-laydate-header span {
|
|
|
64
|
+ top: 2px;
|
|
|
65
|
+ }
|
|
|
66
|
+
|
|
|
67
|
+ .layui-laydate-header {
|
|
|
68
|
+ padding: 0;
|
|
|
69
|
+ }
|
|
|
70
|
+
|
|
|
71
|
+ .laydate-theme-molv .layui-laydate-content {
|
|
|
72
|
+ height: 195px;
|
|
|
73
|
+ overflow: hidden;
|
|
|
74
|
+ }
|
|
|
75
|
+
|
|
|
76
|
+ .laydate-month-list>li {
|
|
|
77
|
+ margin: 10px 0;
|
|
|
78
|
+ }
|
|
|
79
|
+
|
|
|
80
|
+ .laydate-footer-btns span:hover {
|
|
|
81
|
+ color: #00a1cb;
|
|
|
82
|
+ }
|
|
|
83
|
+
|
|
|
84
|
+ .select {
|
|
|
85
|
+ width: 200px;
|
|
|
86
|
+ background-color: #FFF;
|
|
|
87
|
+ background-image: none;
|
|
|
88
|
+ border: 1px solid #ccc;
|
|
|
89
|
+ border-radius: 1px;
|
|
|
90
|
+ height: 36px;
|
|
|
91
|
+ }
|
|
|
92
|
+ </style>
|
|
|
93
|
+ </head>
|
|
|
94
|
+
|
|
|
95
|
+ <body>
|
|
|
96
|
+ <div style="padding: 10px;">
|
|
|
97
|
+ <div style="padding: 10px;" class="clearFix">
|
|
|
98
|
+ <div>
|
|
|
99
|
+ <div class="box_content">
|
|
|
100
|
+ <table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
|
|
|
101
|
+ <tr>
|
|
|
102
|
+ <th>名称:</th>
|
|
|
103
|
+ <td>
|
|
|
104
|
+ <input type="text" disabled="disabled" id="F_DeptName" style="margin-top: 5px;" />
|
|
|
105
|
+ </td>
|
|
|
106
|
+ </tr>
|
|
|
107
|
+ <tr>
|
|
|
108
|
+ <th>大屏展示:</th>
|
|
|
109
|
+ <td>
|
|
|
110
|
+ <input type="number" id="sort">
|
|
|
111
|
+ </td>
|
|
|
112
|
+ </tr>
|
|
|
113
|
+
|
|
|
114
|
+ </table>
|
|
|
115
|
+ </div>
|
|
|
116
|
+ </div>
|
|
|
117
|
+ <div class="bton" style="text-align: center;">
|
|
|
118
|
+ <input class="addts" type="button" value="保存" />
|
|
|
119
|
+ </div>
|
|
|
120
|
+ </div>
|
|
|
121
|
+ </div>
|
|
|
122
|
+ <script>
|
|
|
123
|
+ var id = helper.request.queryString("id");
|
|
|
124
|
+ var F_DeptName = decodeURIComponent(helper.request.queryString("F_DeptName"));
|
|
|
125
|
+ $(document).ready(function() {
|
|
|
126
|
+ if(id) {
|
|
|
127
|
+ $("#F_DeptName").val(F_DeptName)
|
|
|
128
|
+// getDetail()
|
|
|
129
|
+ }
|
|
|
130
|
+
|
|
|
131
|
+ });
|
|
|
132
|
+ $(".addts").click(function() {
|
|
|
133
|
+ editThemSort()
|
|
|
134
|
+ })
|
|
|
135
|
+
|
|
|
136
|
+ function editThemSort() {
|
|
|
137
|
+ if($("#sort").val()=='') {
|
|
|
138
|
+ layer.confirm('请输入排序!', {
|
|
|
139
|
+ btn: ['确定']
|
|
|
140
|
+ });
|
|
|
141
|
+ return;
|
|
|
142
|
+ }
|
|
|
143
|
+ $.ajax({
|
|
|
144
|
+ type: "post",
|
|
|
145
|
+ url: huayi.config.callcenter_url + "Theme/EditModel",
|
|
|
146
|
+ async: true,
|
|
|
147
|
+ dataType: 'json',
|
|
|
148
|
+ data: {
|
|
|
149
|
+ id:id,
|
|
|
150
|
+ sort: $("#sort").val(),
|
|
|
151
|
+ "token": $.cookie("token")
|
|
|
152
|
+ },
|
|
|
153
|
+ success: function(data) {
|
|
|
154
|
+ if(data.state == "success") {
|
|
|
155
|
+ layer.msg("操作成功");
|
|
|
156
|
+ var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
|
157
|
+ parent.layer.close(index); //再执行关闭
|
|
|
158
|
+ }
|
|
|
159
|
+ }
|
|
|
160
|
+ });
|
|
|
161
|
+
|
|
|
162
|
+
|
|
|
163
|
+ }
|
|
|
164
|
+
|
|
|
165
|
+ function getDetail() {
|
|
|
166
|
+ $.getJSON(huayi.config.callcenter_url + 'Theme/GetModel', {
|
|
|
167
|
+ id: id,
|
|
|
168
|
+ "token": $.cookie("token")
|
|
|
169
|
+ }, function(result) {
|
|
|
170
|
+ if(result.state.toLowerCase() == "success") {
|
|
|
171
|
+ var content = result.data;
|
|
|
172
|
+ info = content;
|
|
|
173
|
+
|
|
|
174
|
+ $("#name").val(content.F_Name);
|
|
|
175
|
+ // $("#types").val(content.F_TypesOf);
|
|
|
176
|
+ $("#cycle").val(content.F_Cycle);
|
|
|
177
|
+ $("#time").val(content.F_StatisticsBeginTime + ' - ' + content.F_StatisticsEndTime);
|
|
|
178
|
+
|
|
|
179
|
+ if(content.F_IsDisplay) {
|
|
|
180
|
+ $("#isdisplay").prop("checked", true)
|
|
|
181
|
+ } else {
|
|
|
182
|
+ $("#isdisplay").prop("checked", false)
|
|
|
183
|
+ }
|
|
|
184
|
+ }
|
|
|
185
|
+ })
|
|
|
186
|
+ }
|
|
|
187
|
+ </script>
|
|
|
188
|
+ </body>
|
|
|
189
|
+
|
|
|
190
|
+</html>
|