Selaa lähdekoodia

Merge branch 'master' of http://192.168.1.222:3000/miaofuhao/GYSentiment

lijunjie 1 vuosi sitten
vanhempi
commit
72552dae2c

+ 4 - 0
CallCenterWeb.UI/Script/Common/huayi.config.js

@@ -2,6 +2,10 @@
2 2
     var huayi = {};
3 3
 }
4 4
 huayi.config = {
5
+	callcenter_url: "http://192.168.8.10:7788/",// 正式环境 http://192.168.8.10:7787/home.html
6
+//	callcenter_url: "http://47.92.87.176:8889/",// 正式环境
7
+	//callcenter_url: "http://localhost:63665/",// 测试环境lyy
8
+//  callcenter_url: "http://39.164.159.226:7788/",//生产环境、 39.164.159.192:7788
5 9
 	// callcenter_url: "http://47.92.87.176:8889/",// 正式环境
6 10
 	// callcenter_url: "http://localhost:63665/",// 测试环境lyy
7 11
 //  callcenter_url: "http://39.164.159.226:7788/",//生产环境、 39.164.159.192:7788

+ 403 - 0
CallCenterWeb.UI/tongXun/commonHtml/addTongXun.html

@@ -0,0 +1,403 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <script src="../../Script/Common/huayi.load.js"></script>
7
+    <script src="../../Script/Common/huayi.http.js"></script>
8
+    <script src="../../Script/Common/huayi.config.js"></script>
9
+    <link rel="stylesheet" href="../../css/init.css" />
10
+    <title>编辑通知查询</title>
11
+    <style>
12
+        .bj-title {
13
+            color: #ffffff;
14
+            background-color: #00a1cb;
15
+            padding: 8px 35px 8px 14px;
16
+            text-shadow: 0 1px 0 rgba(179, 142, 142, 0.5);
17
+            border: 1px solid #e5e5e5;
18
+        }
19
+
20
+        .bjCon table th {
21
+            padding: 5px 8px 5px 0;
22
+            text-align: right;
23
+            width: 30%;
24
+        }
25
+
26
+        .bjCon table td {
27
+            padding: 6px 0 5px 10px;
28
+            text-align: left;
29
+            color: #717171;
30
+            line-height: 200%;
31
+            position: relative;
32
+        }
33
+
34
+            .bjCon table td input[type=text],.bjCon table td input[type=email] {
35
+                border: 1px solid #e5e5e5;
36
+                width: 240px;
37
+                outline: 0;
38
+                margin-right: 5px;
39
+                padding-left: 10px;
40
+            }
41
+            .bjCon table td textarea {
42
+                 border: 1px solid #e5e5e5;
43
+			    resize: none;
44
+			    width: 80%;
45
+			    vertical-align: middle;
46
+			    outline: none;
47
+            }
48
+
49
+            .bjCon table td select {
50
+                width: 240px;
51
+                background-color: #ffffff;
52
+                background-image: none !important;
53
+                filter: none !important;
54
+                border: 1px solid #e5e5e5;
55
+                outline: none;
56
+                height: 34px !important;
57
+                line-height: 30px;
58
+                margin-right: 5px;
59
+                padding-left: 10px;
60
+            }
61
+
62
+        .bjCon {
63
+            padding-top: 20px;
64
+            /*border: 1px solid #e5e5e5;
65
+            border-top: 0;*/
66
+        }
67
+
68
+        .bjright table td input {
69
+            padding-left: 44px!important;
70
+        }
71
+
72
+        .tub {
73
+            position: absolute;
74
+            left: 18px;
75
+            top: 13px;
76
+            font-size: 18px;
77
+            color: #ccc;
78
+        }
79
+
80
+        .box {
81
+            width: 55%;
82
+            margin: 0 auto;
83
+            margin-top: 5%;
84
+        }
85
+
86
+        .box .btop {
87
+            height: 35px;
88
+            background: #00a1cb;
89
+            color: #fff;
90
+            line-height: 35px;
91
+            padding: 0 15px;
92
+        }
93
+
94
+        .btl {
95
+            float: left;
96
+            margin: 0;
97
+        }
98
+
99
+        .btr {
100
+            float: right;
101
+            margin: 0;
102
+            cursor: pointer;
103
+        }
104
+
105
+        .boxCon {
106
+            width: 100%;
107
+            min-height: 400px;
108
+            background: #fff;
109
+            text-align: center;
110
+            padding: 10px 15px;
111
+            height: auto;
112
+            overflow-y: auto;
113
+        }
114
+
115
+        .model {
116
+            position: fixed;
117
+            top: 0;
118
+            right: 0;
119
+            bottom: 0;
120
+            left: 0;
121
+            height: 100%;
122
+            width: 100%;
123
+            background: rgba(0, 0, 0, 0.48);
124
+            z-index: 100;
125
+            display: none;
126
+        }
127
+
128
+        .tab-content {
129
+            text-align: left;
130
+            height: 200px;
131
+        }
132
+
133
+
134
+        .drfs {
135
+            display: none;
136
+        }
137
+         .radio-inline input[type=radio]{
138
+         	margin-top: 5px;
139
+         }
140
+        .daoHang{
141
+        	border-bottom: 1px solid #ccc;
142
+        	margin-bottom: 20px;
143
+        }
144
+    </style>
145
+
146
+</head>
147
+
148
+<body>
149
+	 <div class="container-fluid">
150
+        <div class="row-fluid clearfix">
151
+            <div class="bjleft col-md-12">
152
+                <!--<div class="bj-title">
153
+                    <i class="fa fa-user"></i> 基本信息
154
+                </div>-->
155
+                <div class="bjCon">
156
+                    <table style="width: 100%;">
157
+                        <tr>
158
+                            <th>姓名:</th>
159
+                            <td><input type="text" class="Name" name="name" placeholder="请输入您的姓名"/><span>(必填)</span></td>
160
+                        </tr>
161
+                        <tr>
162
+                            <th>性别:</th>
163
+                            <td>
164
+                            	<div class="radio-inline ">
165
+									  <label>
166
+							  <input type="radio" name="sex" id="way1" value="男" checked="checked"> 男
167
+									  </label>
168
+								</div>
169
+                            	<div class="radio-inline">
170
+									  <label>
171
+							   <input type="radio" name="sex" id="way2" value="女"> 女
172
+									  </label>
173
+								</div>
174
+									                            	
175
+                            </td>
176
+                        </tr>
177
+                        
178
+                        <!--<tr>
179
+                            <th>生日:</th>
180
+                             <td>
181
+                                <i class="fa fa-calendar tub"></i>
182
+                                <input type="text" id="sendTime" readonly="readonly" style=" padding-left: 30px;" />
183
+                            </td>
184
+                        </tr>
185
+                        
186
+                          <tr>
187
+                            <th>身份证号:</th>
188
+                            <td><input type="text" class="idCard" name="name" placeholder="请输入您的身份证号"/></td>
189
+                        </tr>
190
+                         <tr>
191
+                            <th>学历:</th>
192
+                            <td>
193
+                            	<div class="radio-inline ">
194
+									  <label>
195
+							  <input type="radio" name="learn" value="研究生"> 研究生
196
+									  </label>
197
+								</div>
198
+                            	<div class="radio-inline ">
199
+									  <label>
200
+							  <input type="radio" name="learn" value="本科"> 本科
201
+									  </label>
202
+								</div>
203
+                            	<div class="radio-inline">
204
+									  <label>
205
+							   <input type="radio" name="learn" value="专科"> 专科
206
+									  </label>
207
+								</div>
208
+                            	<div class="radio-inline">
209
+									  <label>
210
+							   <input type="radio" name="learn" value="高中"> 高中
211
+									  </label>
212
+								</div>
213
+                            	<div class="radio-inline">
214
+									  <label>
215
+							   <input type="radio" name="learn" value="初中及以下"> 初中及以下
216
+									  </label>
217
+								</div>
218
+									                            	
219
+                            </td>
220
+                        </tr>-->
221
+                        <tr>
222
+                            <th>手机号码:</th>
223
+                            <td>
224
+                            	<input type="text" class="sjPhone" placeholder="请输入手机号" /><span>(必填)</span>
225
+                            </td>
226
+                        </tr>
227
+                        <tr>
228
+                            <th>其他电话:</th>
229
+                            <td>
230
+                            	<input type="text" class="elsePhone" placeholder="请输入其他联系电话" />
231
+                            </td>
232
+                        </tr>
233
+                        <tr>
234
+                            <th>Email:</th>
235
+                            <td>
236
+                            	<input type="email" class="Email" placeholder="请输入邮箱" />
237
+                            </td>
238
+                        </tr>
239
+                        <tr>
240
+                            <th>单位:</th>
241
+                            <td>
242
+                            	<!--<select name="" ></select>-->
243
+                            	<input type="text" id="Company" placeholder="请输入单位名称"/>
244
+                            </td>
245
+                        </tr>
246
+                        <tr>
247
+                            <th>部门:</th>
248
+                            <td>
249
+                            	<!--<select name="" ></select>-->
250
+                            	<input type="text" id="Department" placeholder="请输入部门名称"/>
251
+                            </td>
252
+                        </tr>
253
+                        <tr>
254
+                            <th>职务:</th>
255
+                            <td>
256
+                            	<!--<select name="" id="Position"></select>-->
257
+                            	<input type="text" id="Position" placeholder="请输入职务名称"/>
258
+                            </td>
259
+                        </tr>
260
+                        <tr>
261
+                            <th>单位电话:</th>
262
+                            <td>
263
+                            	<input type="text" class="unitPhone" id="dwPhone" placeholder="请输入单位电话"/>
264
+                            </td>
265
+                        </tr>
266
+                        <tr>
267
+                            <th>地址:</th>
268
+                            <td>
269
+                            	 <textarea name="" id="address" rows="" cols="" placeholder="请输入您的详细地址"></textarea>
270
+                            </td>
271
+                        </tr>
272
+                        <tr>
273
+                            <th>备注:</th>
274
+                            <td>
275
+                            	 <textarea name="" id="remark" rows="" cols=""></textarea>
276
+                            </td>
277
+                        </tr>
278
+                    </table>
279
+                    <br />
280
+
281
+                </div>
282
+            </div>
283
+         
284
+            </div>
285
+        </div>
286
+        <p style="text-align: center; padding: 20px 0;">
287
+
288
+            <button class="btns sureCun" type="button">保存</button>
289
+        </p>
290
+
291
+   </div>
292
+    <script src="../../js/laydate/laydate.js"></script>
293
+    <script>
294
+        var token = $.cookie("token");
295
+//      laydate.render({
296
+//			  elem: '#sendTime'
297
+//			  ,format: 'yyyy-MM-dd',
298
+//			  value: new Date() 
299
+//			});
300
+//			//单位 、部门、职位、
301
+//			ZT($('#Company'),39);
302
+//			ZT($('#Department'),40);
303
+//			ZT($('#Position'),41);
304
+//			function ZT(obj,id) {
305
+//				obj.empty();
306
+//				$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
307
+//					"token": $.cookie("token"),
308
+//					id: id
309
+//				}, function(data) {
310
+//					if(data.state.toLowerCase() == "success") {
311
+//						var content = data.data;
312
+//						$(content).each(function(i, n) {
313
+//							$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
314
+//						})
315
+//					}
316
+//				})
317
+//		}
318
+        $('.sureCun').click(function () {
319
+        	var myreg = /^[1][3,4,5,7,8][0-9]{9}$/;
320
+			//	/^(([0\+]\d{2,3}-)?((0\d{2,3}))?(-)?)?(\d{7,8})(-(\d{3,}))?$/
321
+			var myreg11 = /^(([0\+]\d{2,3}-)?((0\d{2,3}))?(-)?)?(\d{7,8})(-(\d{3,}))?$/;
322
+			var str = $(".sjPhone").val();
323
+			var elsestr = $(".elsePhone").val();
324
+			var elsestr123 = $('.elsePhone').val() == '';
325
+			var unitstr = $('.unitPhone').val();
326
+			var unitstr123 = $('.unitPhone').val() == '';
327
+			var Emailstr = $(".Email").val();
328
+			var reg = /\w+[@]{1}\w+[.]\w+/;
329
+            if ($('.Name').val() == '') {
330
+                layer.confirm('请输入您的姓名!', {
331
+                    btn: ['确定']
332
+                });
333
+                return;
334
+            }
335
+            else if ($('.sjPhone').val() == '') {
336
+                layer.confirm('请输入您的手机号!', {
337
+                    btn: ['确定']
338
+                });
339
+                return;
340
+            }else if (!myreg.test(str)&&!myreg11.test(str)) {
341
+                layer.confirm('手机号格式不正确!', {
342
+                    btn: ['确定']
343
+                });
344
+                return;
345
+            }else if (!elsestr123&&!myreg.test(elsestr)&&!myreg11.test(elsestr)) {
346
+                layer.confirm('请输入您的其它电话!', {
347
+                    btn: ['确定']
348
+                });
349
+                return;
350
+            }else if (!unitstr123&&!myreg.test(unitstr)&&!myreg11.test(unitstr)) {
351
+                layer.confirm('单位手机号格式不正确!', {
352
+                    btn: ['确定']
353
+                });
354
+                return;
355
+            }else if (!$(".Email").val() == ''&&!reg.test(Emailstr)) {
356
+                layer.confirm('请输入正确得邮箱格式!', {
357
+                    btn: ['确定']
358
+                });
359
+                return;
360
+            }else {
361
+            		 $.ajax({
362
+		               	type:"post",
363
+		               	url:huayi.config.callcenter_url + "AddressBook/SaveInfo",
364
+		               	async:true,
365
+		               	data:{
366
+		               		token:$.cookie("token"),
367
+		               		F_Name:$('.Name').val(),
368
+		               		F_Sex:$("input[name='sex']:checked").val(),
369
+//		               		F_Birthday:$('#sendTime').val(),
370
+//		               		F_IDCard:$('.idCard').val(),
371
+		               		F_Address:$('#address').val(),
372
+//		               		F_Education:$("input[name='learn']:checked").val(),
373
+		               		F_Email:$('.Email').val(),
374
+		               		F_Telephone:$('#dwPhone').val(),
375
+		               		F_Mobile:$('.sjPhone').val(),
376
+		               		F_ElseMobile:$('.elsePhone').val(),
377
+		               		F_Department:$('#Company').val(),
378
+		               		F_Company:$('#Department').val(),
379
+		               		F_Position:$('#Position').val(),
380
+		               		F_Note:$('#remark').val()
381
+		               	},
382
+		               	success:function(data){
383
+		               		var con=JSON.parse(data);
384
+		               		if(con.state.toLowerCase()=='success'){
385
+		               			var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
386
+								parent.layer.close(index); //再执行关闭
387
+								parent.initTable();
388
+								parent.layer.msg("添加成功");
389
+		               		}
390
+		               		
391
+		               	}
392
+               		});
393
+              
394
+
395
+            }
396
+
397
+        })
398
+       
399
+
400
+    </script>
401
+</body>
402
+
403
+</html>

+ 425 - 0
CallCenterWeb.UI/tongXun/commonHtml/editTongXun.html

@@ -0,0 +1,425 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <script src="../../Script/Common/huayi.load.js"></script>
7
+    <script src="../../Script/Common/huayi.http.js"></script>
8
+    <script src="../../Script/Common/huayi.config.js"></script>
9
+    <link rel="stylesheet" href="../../css/init.css" />
10
+    <title>编辑通讯录</title>
11
+    <style>
12
+        .bj-title {
13
+            color: #ffffff;
14
+            background-color: #00a1cb;
15
+            padding: 8px 35px 8px 14px;
16
+            text-shadow: 0 1px 0 rgba(179, 142, 142, 0.5);
17
+            border: 1px solid #e5e5e5;
18
+        }
19
+
20
+        .bjCon table th {
21
+            padding: 5px 8px 5px 0;
22
+            text-align: right;
23
+            width: 30%;
24
+        }
25
+
26
+        .bjCon table td {
27
+            padding: 6px 0 5px 10px;
28
+            text-align: left;
29
+            color: #717171;
30
+            line-height: 200%;
31
+            position: relative;
32
+        }
33
+
34
+            .bjCon table td input[type=text],.bjCon table td input[type=email] {
35
+                border: 1px solid #e5e5e5;
36
+                width: 240px;
37
+                outline: 0;
38
+                margin-right: 5px;
39
+                padding-left: 10px;
40
+            }
41
+            .bjCon table td textarea {
42
+                 border: 1px solid #e5e5e5;
43
+			    resize: none;
44
+			    width: 80%;
45
+			    vertical-align: middle;
46
+			    outline: none;
47
+            }
48
+
49
+            .bjCon table td select {
50
+                width: 240px;
51
+                background-color: #ffffff;
52
+                background-image: none !important;
53
+                filter: none !important;
54
+                border: 1px solid #e5e5e5;
55
+                outline: none;
56
+                height: 34px !important;
57
+                line-height: 30px;
58
+                margin-right: 5px;
59
+                padding-left: 10px;
60
+            }
61
+
62
+        .bjCon {
63
+            padding-top: 20px;
64
+            /*border: 1px solid #e5e5e5;
65
+            border-top: 0;*/
66
+        }
67
+
68
+        .bjright table td input {
69
+            padding-left: 44px!important;
70
+        }
71
+
72
+        .tub {
73
+            position: absolute;
74
+            left: 18px;
75
+            top: 13px;
76
+            font-size: 18px;
77
+            color: #ccc;
78
+        }
79
+
80
+        .box {
81
+            width: 55%;
82
+            margin: 0 auto;
83
+            margin-top: 5%;
84
+        }
85
+
86
+        .box .btop {
87
+            height: 35px;
88
+            background: #00a1cb;
89
+            color: #fff;
90
+            line-height: 35px;
91
+            padding: 0 15px;
92
+        }
93
+
94
+        .btl {
95
+            float: left;
96
+            margin: 0;
97
+        }
98
+
99
+        .btr {
100
+            float: right;
101
+            margin: 0;
102
+            cursor: pointer;
103
+        }
104
+
105
+        .boxCon {
106
+            width: 100%;
107
+            min-height: 400px;
108
+            background: #fff;
109
+            text-align: center;
110
+            padding: 10px 15px;
111
+            height: auto;
112
+            overflow-y: auto;
113
+        }
114
+
115
+        .model {
116
+            position: fixed;
117
+            top: 0;
118
+            right: 0;
119
+            bottom: 0;
120
+            left: 0;
121
+            height: 100%;
122
+            width: 100%;
123
+            background: rgba(0, 0, 0, 0.48);
124
+            z-index: 100;
125
+            display: none;
126
+        }
127
+
128
+        .tab-content {
129
+            text-align: left;
130
+            height: 200px;
131
+        }
132
+
133
+
134
+        .drfs {
135
+            display: none;
136
+        }
137
+         .radio-inline input[type=radio]{
138
+         	margin-top: 5px;
139
+         }
140
+        .daoHang{
141
+        	border-bottom: 1px solid #ccc;
142
+        	margin-bottom: 20px;
143
+        }
144
+    </style>
145
+
146
+</head>
147
+
148
+<body>
149
+	 <div class="container-fluid">
150
+        <div class="row-fluid clearfix">
151
+            <div class="bjleft col-md-12">
152
+                <!--<div class="bj-title">
153
+                    <i class="fa fa-user"></i> 基本信息
154
+                </div>-->
155
+                <div class="bjCon">
156
+                    <table style="width: 100%;">
157
+                        <tr>
158
+                            <th>姓名:</th>
159
+                            <td><input type="text" class="Name" name="name" placeholder="请输入您的姓名"/><span>(必填)</span></td>
160
+                        </tr>
161
+                        <tr>
162
+                            <th>性别:</th>
163
+                            <td>
164
+                            	<div class="radio-inline ">
165
+									  <label>
166
+							  <input type="radio" name="sex" id="way1" value="男" checked="checked"> 男
167
+									  </label>
168
+								</div>
169
+                            	<div class="radio-inline">
170
+									  <label>
171
+							   <input type="radio" name="sex" id="way2" value="女"> 女
172
+									  </label>
173
+								</div>
174
+									                            	
175
+                            </td>
176
+                        </tr>
177
+                        
178
+                        <!--<tr>
179
+                            <th>生日:</th>
180
+                             <td>
181
+                                <i class="fa fa-calendar tub"></i>
182
+                                <input type="text" id="sendTime" readonly="readonly" style=" padding-left: 30px;" />
183
+                            </td>
184
+                        </tr>
185
+                        
186
+                          <tr>
187
+                            <th>身份证号:</th>
188
+                            <td><input type="text" class="idCard" name="name" placeholder="请输入您的身份证号"/></td>
189
+                        </tr>
190
+                         <tr>
191
+                            <th>学历:</th>
192
+                            <td>
193
+                            	<div class="radio-inline ">
194
+									  <label>
195
+							  <input type="radio" name="learn" value="研究生"> 研究生
196
+									  </label>
197
+								</div>
198
+                            	<div class="radio-inline ">
199
+									  <label>
200
+							  <input type="radio" name="learn" value="本科"> 本科
201
+									  </label>
202
+								</div>
203
+                            	<div class="radio-inline">
204
+									  <label>
205
+							   <input type="radio" name="learn" value="专科"> 专科
206
+									  </label>
207
+								</div>
208
+                            	<div class="radio-inline">
209
+									  <label>
210
+							   <input type="radio" name="learn" value="高中"> 高中
211
+									  </label>
212
+								</div>
213
+                            	<div class="radio-inline">
214
+									  <label>
215
+							   <input type="radio" name="learn" value="初中及以下"> 初中及以下
216
+									  </label>
217
+								</div>
218
+									                            	
219
+                            </td>
220
+                        </tr>-->
221
+                        <tr>
222
+                            <th>手机号码:</th>
223
+                            <td>
224
+                            	<input type="text" class="sjPhone" placeholder="请输入手机号" /><span>(必填)</span>
225
+                            </td>
226
+                        </tr>
227
+                        <tr>
228
+                            <th>其他电话:</th>
229
+                            <td>
230
+                            	<input type="text" class="elsePhone" placeholder="请输入其他联系电话" />
231
+                            </td>
232
+                        </tr>
233
+                        <tr>
234
+                            <th>Email:</th>
235
+                            <td>
236
+                            	<input type="email" class="Email" placeholder="请输入邮箱" />
237
+                            </td>
238
+                        </tr>
239
+                       <tr>
240
+                            <th>单位:</th>
241
+                            <td>
242
+                            	<!--<select name="" ></select>-->
243
+                            	<input type="text" id="Company" placeholder="请输入单位名称"/>
244
+                            </td>
245
+                        </tr>
246
+                        <tr>
247
+                            <th>部门:</th>
248
+                            <td>
249
+                            	<!--<select name="" ></select>-->
250
+                            	<input type="text" id="Department" placeholder="请输入部门名称"/>
251
+                            </td>
252
+                        </tr>
253
+                        <tr>
254
+                            <th>职务:</th>
255
+                            <td>
256
+                            	<!--<select name="" id="Position"></select>-->
257
+                            	<input type="text" id="Position" placeholder="请输入职务名称"/>
258
+                            </td>
259
+                        </tr>
260
+                        <tr>
261
+                            <th>单位电话:</th>
262
+                            <td>
263
+                            	<input type="text" id="dwPhone"/>
264
+                            </td>
265
+                        </tr>
266
+                        <tr>
267
+                            <th>地址:</th>
268
+                            <td>
269
+                            	 <textarea name="" id="address" rows="" cols="" placeholder="请输入您的详细地址"></textarea>
270
+                            </td>
271
+                        </tr>
272
+                        <tr>
273
+                            <th>备注:</th>
274
+                            <td>
275
+                            	 <textarea name="" id="remark" rows="" cols=""></textarea>
276
+                            </td>
277
+                        </tr>
278
+                    </table>
279
+                    <br />
280
+
281
+                </div>
282
+            </div>
283
+         
284
+            </div>
285
+        </div>
286
+        <p style="text-align: center; padding: 20px 0;">
287
+
288
+            <button class="btns sureCun" type="button">保存</button>
289
+        </p>
290
+
291
+   </div>
292
+    <script src="../../js/laydate/laydate.js"></script>
293
+    <script>
294
+    	var ids=helper.request.queryString("id");
295
+    	 $.ajax({
296
+    	 	type:"get",
297
+    	 	url:huayi.config.callcenter_url + "AddressBook/GetInfo",
298
+    	 	async:true,
299
+    	 	dataType:'json',
300
+    	 	data:{
301
+    	 		token:$.cookie("token"),
302
+    	 		infoid:ids
303
+    	 	},
304
+    	 	success:function(data){
305
+    	 		var con=data.data;
306
+    	 		if(data.state.toLowerCase()=='success'){
307
+    	 			$('.Name').val(con.F_Name);//姓名
308
+    	 			$('input[name="sex"][value="'+con.F_Sex+'"]').prop("checked","checked");//性别
309
+//  	 			$('#sendTime').val(con.F_Birthday);//生日
310
+//  	 			$('.idCard').val(con.F_IDCard);//身份证号
311
+    	 			$('#address').val(con.F_Address);//地址
312
+//  	 			$('input[name="learn"][value="'+con.F_Education+'"]').prop("checked","checked");//学历
313
+    	 			$('.Email').val(con.F_Email);//邮箱
314
+    	 			$('#dwPhone').val(con.F_Telephone);//单位电话
315
+	 				$('.sjPhone').val(con.F_Mobile);//手机号
316
+	 				$('.elsePhone').val(con.F_ElseMobile);//其他电话
317
+	 				$('#Company').val(con.F_Company);//单位
318
+               		$('#Department').val(con.F_Department);//部门
319
+               		$('#Position').val(con.F_Position);//职务
320
+               		$('#remark').val(con.F_Note);//备注
321
+    	 		}
322
+    	 	}
323
+    	 });
324
+        var token = $.cookie("token");
325
+//      laydate.render({
326
+//			  elem: '#sendTime'
327
+//			  ,format: 'yyyy-MM-dd',
328
+//			  value: new Date() 
329
+//			});
330
+//			//单位 、部门、职位、
331
+//			ZT($('#Company'),39);
332
+//			ZT($('#Department'),40);
333
+//			ZT($('#Position'),41);
334
+//			function ZT(obj,id) {
335
+//				obj.empty();
336
+//				$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
337
+//					"token": $.cookie("token"),
338
+//					id: id
339
+//				}, function(data) {
340
+//					if(data.state.toLowerCase() == "success") {
341
+//						var content = data.data;
342
+//						$(content).each(function(i, n) {
343
+//							$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
344
+//						})
345
+//					}
346
+//				})
347
+//		}
348
+        $('.sureCun').click(function () {
349
+        	var myreg = /^[1][3,4,5,7,8][0-9]{9}$/;
350
+			//	/^(([0\+]\d{2,3}-)?((0\d{2,3}))?(-)?)?(\d{7,8})(-(\d{3,}))?$/
351
+			var myreg11 = /^(([0\+]\d{2,3}-)?((0\d{2,3}))?(-)?)?(\d{7,8})(-(\d{3,}))?$/;
352
+			var str = $(".sjPhone").val();
353
+			var elsestr = $(".elsePhone").val();
354
+			var elsestr123 = $('.elsePhone').val() == '';
355
+			var Emailstr = $(".Email").val();
356
+			var reg = /\w+[@]{1}\w+[.]\w+/;
357
+            if ($('.Name').val() == '') {
358
+                layer.confirm('请输入您的姓名!', {
359
+                    btn: ['确定']
360
+                });
361
+                return;
362
+            }
363
+            else if ($('.phone').val() == '') {
364
+                layer.confirm('请输入您的手机号!', {
365
+                    btn: ['确定']
366
+                });
367
+                return;
368
+            }else if (!myreg.test(str)&&!myreg11.test(str)) {
369
+                layer.confirm('手机号格式不正确!', {
370
+                    btn: ['确定']
371
+                });
372
+                return;
373
+            }else if (!elsestr123&&!myreg.test(elsestr)&&!myreg11.test(elsestr)) {
374
+                layer.confirm('其它电话格式不正确!', {
375
+                    btn: ['确定']
376
+                });
377
+                return;
378
+            }else if (!$(".Email").val() == ''&&!reg.test(Emailstr)) {
379
+                layer.confirm('请输入正确得邮箱格式!', {
380
+                    btn: ['确定']
381
+                });
382
+                return;
383
+            }else{
384
+            		 $.ajax({
385
+		               	type:"post",
386
+		               	url:huayi.config.callcenter_url + "AddressBook/SaveInfo",
387
+		               	async:true,
388
+		               	data:{
389
+		               		token:$.cookie("token"),
390
+		               		id:ids,
391
+		               		F_Name:$('.Name').val(),
392
+		               		F_Sex:$("input[name='sex']:checked").val(),
393
+		               		F_Birthday:$('#sendTime').val(),
394
+		               		F_IDCard:$('.idCard').val(),
395
+		               		F_Address:$('#address').val(),
396
+		               		F_Education:$("input[name='learn']:checked").val(),
397
+		               		F_Email:$('.Email').val(),
398
+		               		F_Telephone:$('#dwPhone').val(),
399
+		               		F_Mobile:$('.sjPhone').val(),
400
+		               		F_ElseMobile:$('.elsePhone').val(),
401
+		               		F_Company:$('#Company').val(),
402
+		               		F_Department:$('#Department').val(),
403
+		               		F_Position:$('#Position').val(),
404
+		               		F_Note:$('#remark').val()
405
+		               	},
406
+		               	success:function(data){
407
+		               		var con=JSON.parse(data);
408
+		               		
409
+		               		if(con.state.toLowerCase()=='success'){
410
+		               			var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
411
+								parent.layer.close(index); //再执行关闭
412
+								parent.initTable();
413
+								parent.layer.msg("修改成功");
414
+		               		}
415
+		               	}
416
+               		});
417
+            }
418
+
419
+        })
420
+       
421
+
422
+    </script>
423
+</body>
424
+
425
+</html>

BIN
CallCenterWeb.UI/tongXun/muban/AddressBook.xlsx


+ 306 - 88
CallCenterWeb.UI/tongXun/tongList.html

@@ -5,62 +5,30 @@
5 5
 		<meta charset="UTF-8">
6 6
 		<script src="../Script/Common/huayi.load.js"></script>
7 7
 		<script src="../Script/Common/huayi.config.js"></script>
8
-		<!--<link rel="stylesheet" href="../css/layer/need/layer.css" />-->
8
+		<link rel="stylesheet" href="../css/layer/need/layer.css" />
9 9
 		<link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
10 10
 		<link rel="stylesheet" href="../css/init.css" />
11
-		<title>知识库主界面</title>
11
+		<title>通讯录</title>
12 12
 		<style>
13
-			.treeTable {
14
-				height: 400px;
15
-				/*overflow-y: auto;*/
13
+			.toolBar {
14
+				padding: 15px 0;
15
+				border-bottom: 1px solid #ccc;
16 16
 			}
17 17
 			
18
-			.tree {
19
-				height: 100%;
20
-			}
21
-			
22
-			.trTitle {
23
-				width: 100%;
24
-				height: 34px;
25
-				line-height: 34px;
26
-				border-bottom: 1px solid #ebebeb;
27
-				color: red;
28
-				font-weight: 700;
29
-				margin-bottom: 15px;
30
-			}
31
-			
32
-			.treeCon {
33
-				border: 1px solid #ebebeb;
34
-				overflow-y: auto;
35
-			}
36
-			
37
-			.ztree li {
38
-				width: 100%;
39
-				overflow: hidden;
40
-				white-space: nowrap;
41
-				text-overflow: ellipsis;
42
-			}
43
-			
44
-			.content {
45
-				width: 270px;
46
-				height: 100%;
47
-				overflow: hidden;
48
-				white-space: nowrap;
49
-				text-overflow: ellipsis;
50
-				text-align: left;
51
-				cursor: pointer;
18
+			#upFile {
19
+				width: initial!important;
52 20
 			}
53 21
 		</style>
54 22
 	</head>
55 23
 
56 24
 	<body class="gray-bg">
57
-		<div class="container-fluid wrapper-content animated fadeInRight">
25
+		<div class="container-fluid wrapper wrapper-content animated fadeInRight">
58 26
 			<div class="daoHang clearfix">
59 27
 				<div class="dhLeft">
60 28
 					<sapn><i class="syIcon"></i>位置:
61 29
 						<a id="ReIndex">首页</a>&gt;
62
-						<a href="javaScript:;">通讯录</a>&gt;
63
-						<a href="" class="nowPosition">通讯录列表</a>
30
+						<a href="javaScript:;">系统管理</a>&gt;
31
+						<a href="" class="nowPosition">通讯录</a>
64 32
 					</sapn>
65 33
 				</div>
66 34
 				<div class="dhRight">
@@ -68,64 +36,314 @@
68 36
 				</div>
69 37
 			</div>
70 38
 			<div class="toolBar clearfix">
71
-				<div class="toolLeft">
72
-					<!--<span><input type="text" class="searCon input_" placeholder="请输入要搜索的关键字" style="width: 175px;height: 32px; border: 1px solid #ccc;" /></span>-->
73
-					<!--<button class="btns searchGo">搜索</button>-->
74
-					<button class="btns addgroup">添加</button>
75
-					<button class="btns editgroup">修改</button>
76
-					<button class="btns deletegroup">删除</button>
77
-				</div>
39
+				<!--<div class="toolLeft">
40
+					<span style="display: inline-block;"><input class="fl" type="file" id="upFile" name="upFile" /></span>
41
+					<a class="btns" id="daoRu">导入</a>
42
+					<a href="muban/AddressBook.xlsx" download="通讯录模板.xlsx" title="点击下载模板" style="margin-right: 10px;">通讯录模板</a>
43
+				</div>-->
78 44
 				<div class="toolRight">
79
-					<button class="btns addConnew">添加通讯录</button>
80
-					<button class="btns editnew">修改通讯录</button>
81
-					<button class="btns seenew">查看通讯录</button>									
45
+					<span>关键字:<input type="text" class="KeyWord" style="height: 31px;"/></span>
46
+					<button class="btns searchGo">搜索</button>
47
+					<button class="btns return">添加</button>
48
+
49
+					<a class="btns dbexecl">导出</a>
82 50
 				</div>
83 51
 			</div>
84
-			<div class="treeTable clearfix">
85
-				<div class="tree col-md-2">
86
-					<div class="trTitle">通讯录分组</div>
87
-					<div class="treeCon">
88
-						<ul id="treeDemo" class="ztree" style="height: 500px;">
89
-							<!--类名为ztree是必须的-->
90
-						</ul>
52
+			<!--苗福浩导入-->
53
+			<div style="padding: 10px; margin-bottom: 20px;">
54
+				<div class="alert alert-info" role="alert">
55
+					<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
56
+					<span class="sr-only">tips:</span> 上传文件需要严格按照下载的EXCEL模板进行填写!
57
+				</div>
58
+				<div class="form-inline clearfix">
59
+					<div class="form-group">
60
+						<a href="muban/AddressBook.xlsx" download="通讯录模板.xlsx" title="点击下载模板" style="margin-right: 10px;">通讯录模板</a>
61
+					</div>
62
+					<div class="form-group">
63
+						<input class="hidden" type="file" id="upFile" name="upFile" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel,application/x-xls,application/x-xlsx" />
64
+						<input class="form-control btn btn-success" title="点击上传Excel文件" type="button" value="上传Excel文件" id="upFileExcel" />
65
+						<span class="excelName"></span>
91 66
 					</div>
92 67
 				</div>
93
-				<div class="tableCon col-md-10">
94
-					<div class="trTitle">通讯录列表</div>
95
-					<div style="height: 500px;overflow:auto">
96
-						<table id="table1" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
97
-							<thead>
98
-								<tr>
99
-									<th data-field="state" data-checkbox="true" data-align="center"></th>
100
-									<th data-align="center" data-formatter="setCode">编号</th>
101
-									<th data-align="center" data-field="unitname">单位名称</th>
102
-									<!--<th data-align="center" data-field="unitaddress">单位地址</th>-->
103
-									<!--<th data-align="center" data-field="faxnumber">传真</th>-->
104
-									<th data-align="center" data-field="publicphone">公开电话</th>
105
-									<th data-align="center" data-field="officetime">办公时间</th>
106
-									<th data-align="center" data-field="operateduty">工作职责</th>
107
-									<th data-align="center" data-field="internalphone">内部电话</th>
108
-									<th data-align="center" data-field="chargeperson">负责人</th>
109
-									<!--<th data-align="center" data-field="chargepersonpsition">负责人职务</th>-->
110
-									<!--<th data-align="center" data-field="chargepersonphone">负责人联系方式</th>-->
111
-									<!--<th data-align="center" data-field="remark">备注</th>-->
112
-									<th data-align="center" data-formatter="operationBtns">操作</th>
113
-								</tr>
114
-							</thead>
115
-							<tbody id="tbody"></tbody>
116
-						</table>
68
+				<div class="progress">
69
+					<div class="progress-bar progress-bar-striped" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
70
+
117 71
 					</div>
118
-					<!--<p style="margin-top: 20px;"><button class="btns allDel">批量删除</button></p>-->
119 72
 				</div>
73
+				<!--<div class="form-group text-center">
74
+					<input type="button" id="importNum" class="form-control btn btn-success" value="导入" />
75
+				</div>-->
120 76
 			</div>
121 77
 
122
-		</div>
78
+			<div class="treeTable clearfix">
79
+				<div class="tableCon col-md-12">
80
+					<table id="table1" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
81
+						<thead>
82
+							<tr>
83
+								<th data-field="F_Name" data-align="left">姓名</th>
84
+								<th data-field="F_Sex" data-align="left">性别</th>
85
+								<th data-field="F_Mobile" data-align="left" data-formatter="phoneTableHtml1">手机号</th>
86
+								<th data-field="F_ElseMobile" data-align="left" data-formatter="phoneTableHtml2">其他电话</th>
87
+								<!--<th data-field="F_Birthday" data-align="left">生日</th>
88
+								<th data-field="F_IDCard" data-align="center">身份证号</th>
89
+								<th data-field="F_Education" data-align="center">学历</th>-->
90
+								<th data-field="F_Email" data-align="center">邮件</th>
91
+								<th data-field="F_Department" data-align="center">单位名称</th>
92
+								<th data-field="F_Telephone" data-align="center" data-formatter="phoneTableHtml3">单位电话</th>
93
+								<th data-field="F_Company" data-align="center">部门</th>
94
+								<th data-field="F_Position" data-align="center">职务</th>
95
+								<th data-field="F_Address" data-align="center">地址</th>
96
+								<th data-field="F_Note" data-align="center">备注</th>
97
+								<th data-align="center" data-formatter="caoZuo">操作</th>
98
+							</tr>
99
+						</thead>
100
+						<tbody id="tbody"></tbody>
101
+					</table>
102
+				</div>
103
+			</div>
123 104
 
105
+		</div>
124 106
 		<script src="../css/layer/layer.js"></script>
125 107
 		<script src="../js/zTree/jquery.ztree.core.js"></script>
126
-		<script src="../js/kindeditor/kindeditor-all-min.js"></script>
127
-		<script src="../js/kindeditor/lang/zh-CN.js"></script>
128
-		<script src="./js/tongList.js"></script>
108
+		<script src="../js/visit/ajaxfileupload.js"></script>
109
+		<script src="../js/sm2/sm2.js"></script>
110
+		<script src="../js/sm2/decrypt.js"></script>
111
+		<script>
112
+			var token = $.cookie("token");
113
+			var table = $('#table1');
114
+			initTable();
115
+			$('.searchGo').click(function() {
116
+				initTable();
117
+			})
118
+
119
+			function initTable() {
120
+				//先销毁表格
121
+				table.bootstrapTable('destroy');
122
+				//初始化表格,动态从服务器加载数据
123
+				table.bootstrapTable({
124
+					method: "get", //使用get请求到服务器获取数据
125
+					url: huayi.config.callcenter_url + "AddressBook/GetList", //获取数据的Servlet地址
126
+					contentType: "application/x-www-form-urlencoded",
127
+					striped: true, //表格显示条纹
128
+					pagination: true, //启动分页
129
+					pageSize: 10, //每页显示的记录数
130
+					pageNumber: 1, //当前第几页
131
+					pageList: [10, 20, 50, 100], //记录数可选列表
132
+					search: false, //是否启用查询
133
+					showColumns: false, //显示下拉框勾选要显示的列
134
+					showRefresh: false, //显示刷新按钮
135
+					sidePagination: "server", //表示服务端请求
136
+					//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
137
+					//设置为limit可以获取limit, offset, search, sort, order
138
+					queryParamsType: "undefined",
139
+					queryParams: function queryParams(params) { //设置查询参数
140
+						var param = {
141
+							page: params.pageNumber,
142
+							pagesize: params.pageSize,
143
+							token: $.cookie("token"),
144
+							keyWord: $('.KeyWord').val()
145
+						};
146
+						return param;
147
+					},
148
+					onLoadSuccess: function() { //加载成功时执行
149
+						//layer.msg("加载成功");
150
+					},
151
+					onLoadError: function() { //加载失败时执行
152
+						//layer.msg("加载数据失败", { time: 1500, icon: 2 });
153
+					}
154
+				});
155
+			}
156
+			
157
+			function phoneTableHtml1(val, row){
158
+				return '<a onclick="phoneTableClick(this ,\'' +row.F_MobileShow+'\')"> ' + val + '</a>'
159
+			}
160
+			function phoneTableHtml2(val, row){
161
+				return '<a onclick="phoneTableClick(this ,\'' +row.F_ElseMobileShow+'\')"> ' + val + '</a>'
162
+			}
163
+			function phoneTableHtml3(val, row){
164
+				return '<a onclick="phoneTableClick(this ,\'' +row.F_TelephoneShow+'\')"> ' + val + '</a>'
165
+			}
166
+			function caoZuo(val, row) {
167
+				return '<div><a title="编辑" style="margin-right:5px;" onclick="XG(' + row.F_UserId + ')"><i class="fa fa-pencil-square-o"></i></a><a  title="删除" onclick="del(' + row.F_UserId + ')"><i class="fa fa-remove"></i></a>  </div>'
168
+			}
169
+			//添加
170
+			$('.return').click(function() {
171
+				//				top.$("iframe:visible")[0].src = "SystemManager/addTongXun.html";
172
+				layer.open({
173
+					maxmin: true, //开启最大化最小化按钮
174
+					type: 2,
175
+					content: "./commonHtml/addTongXun.html", //iframe的url,no代表不显示滚动条
176
+					title: '添加通讯录',
177
+					area: ['65%', '85%'], //宽高
178
+				});
179
+			})
180
+			//删除
181
+			function del(ids) {
182
+				var laye = layer.confirm('您确定要删除吗?', {
183
+					btn: ['确定', '取消'] //可以无限个按钮
184
+				}, function(index, layero) {
185
+					//按钮【按钮一】的回调 AddressBook/DelAddressBook
186
+					$.ajax({
187
+						type: "post",
188
+						url: huayi.config.callcenter_url + "AddressBook/DelAddressBook",
189
+						async: true,
190
+						dataType: 'json',
191
+						data: {
192
+							token: $.cookie("token"),
193
+							ids: ids
194
+						},
195
+						success: function(data) {
196
+							if(data.state.toLowerCase() == 'success') {
197
+								layer.msg('删除成功');
198
+								initTable();
199
+							}
200
+						}
201
+					});
202
+				}, function(index) {
203
+					//按钮【按钮二】的回调
204
+					layer.close(laye)
205
+				});
206
+			}
207
+			//修改
208
+			function XG(id) {
209
+
210
+				layer.open({
211
+					maxmin: true, //开启最大化最小化按钮
212
+					type: 2,
213
+					content: "./commonHtml/editTongXun.html?id=" + id, //iframe的url,no代表不显示滚动条
214
+					title: '修改通讯录',
215
+					area: ['65%', '85%'], //宽高
216
+				});
217
+			}
218
+			//导出
219
+			$('.dbexecl').click(function() {
220
+				dcexcel(this);
221
+			})
222
+			function dcexcel(obj) {
223
+				var url = huayi.config.callcenter_url + "AddressBook/ExportAddressBook?token=" + $.cookie("token");
224
+				url += "&keyWord=" + $(".KeyWord").val();
225
+				obj.href = url;
226
+			}
227
+//			//导入
228
+//			$("#daoRu").click(function() {
229
+//
230
+//				ajaxFileUpload();
231
+//			});
232
+//
233
+//			function ajaxFileUpload() {
234
+//				$.ajaxFileUpload({
235
+//					url: huayi.config.callcenter_url + 'AddressBook/ImportAddressBook', //用于文件上传的服务器端请求地址
236
+//					secureuri: false, //是否需要安全协议,一般设置为false
237
+//					fileElementId: 'upFile', //文件上传域的ID
238
+//					dataType: 'json', //返回值类型 一般设置为json
239
+//					data: {
240
+//						token: $.cookie("token"),
241
+//						upFile: "upFile"
242
+//					},
243
+//					success: function(data) //服务器成功响应处理函数
244
+//					{
245
+//						if(data.state.toLowerCase() == 'success') {
246
+//							layer.msg("导入成功!");
247
+//
248
+//						}
249
+//					}
250
+//				})
251
+//				return false;
252
+//			}
253
+			
254
+			$(document).ready(function() {
255
+
256
+				//上传EXCEL文件
257
+				$("#upFileExcel").click(function() {
258
+					$("#upFile").trigger("click");
259
+					
260
+				});
261
+				$("#upFile").change(function() {
262
+					var Files = document.getElementById("upFile").files;
263
+					$('.excelName').html(Files[0].name); //文件名称
264
+					uploads();
265
+				});
266
+//				$("#importNum").click(function() {
267
+//					uploads();
268
+//				});
269
+
270
+			});
271
+			//上传Excel文件 模拟实时进度
272
+			function uploads() {
273
+				var txtName = $('.excelName').text();
274
+				if(txtName == '') {
275
+					layer.confirm('请先上传文件', {
276
+						icon: 2,
277
+						btn: ['确定']
278
+					});
279
+					return;
280
+				}
281
+				//一般情况下,excel后缀是".xls",在2007以及以后的版本中又增加了".xlsx"。excel的模板文件后缀名是".xlt",启动宏的工作簿后缀名是".xlsm"。
282
+				if(txtName.indexOf('.xls') != -1 ||
283
+					txtName.indexOf('.xlsx') != -1 ||
284
+					txtName.indexOf('.xlt') != -1 ||
285
+					txtName.indexOf('.xlsm') != -1
286
+				) {
287
+					var formData = new FormData();
288
+					var Files = document.getElementById("upFile").files;
289
+					formData.append("upFile", Files[0]);
290
+//					formData.append("taskid", wid);
291
+					formData.append("token", $.cookie("token"));
292
+					$.ajax({
293
+						url: huayi.config.callcenter_url + "AddressBook/ImportAddressBook",
294
+						type: "POST",
295
+						data: formData,
296
+						/**
297
+						 *必须false才会自动加上正确的Content-Type
298
+						 */
299
+						contentType: false,
300
+						/**
301
+						 * 必须false才会避开jQuery对 formdata 的默认处理
302
+						 * XMLHttpRequest会对 formdata 进行正确的处理
303
+						 */
304
+						processData: false,
305
+
306
+						success: function(result) {
307
+							$("#importNum").attr("disabled", false);
308
+							$("#importNum").val('导入');
309
+							window.location.reload();
310
+						},
311
+						error: function(textStatus) {
312
+//							percents = 0;
313
+							$('.progress').hide();
314
+							layer.confirm('网络繁忙,请稍后再试...', {
315
+								btn: ['确定'] //按钮
316
+							});
317
+							$("#importNum").attr("disabled", false);
318
+							$("#importNum").val('导入');
319
+						},
320
+						complete: function(XMLHttpRequest, textStatus) {
321
+//							percents = 0;
322
+							$('.progress').hide();
323
+							if(textStatus == 'timeout') {
324
+								var xmlhttp = window.XMLHttpRequest ? new window.XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHttp");
325
+								xmlhttp.abort();
326
+								layer.confirm('网络延时,请稍后再试...', {
327
+									btn: ['确定'] //按钮
328
+								});    
329
+							}
330
+							$("#importNum").attr("disabled", false);
331
+							$("#importNum").val('导入');
332
+						},
333
+					});
334
+
335
+				} else {
336
+					layer.confirm('请上传EXCEL文件', {
337
+						icon: 2,
338
+						btn: ['确定']
339
+					});
340
+					return;
341
+				}
342
+			}
343
+
344
+
345
+
346
+		</script>
129 347
 	</body>
130 348
 
131 349
 </html>

+ 131 - 0
CallCenterWeb.UI/tongXun/复制 tongList.html

@@ -0,0 +1,131 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+		<meta charset="UTF-8">
6
+		<script src="../Script/Common/huayi.load.js"></script>
7
+		<script src="../Script/Common/huayi.config.js"></script>
8
+		<!--<link rel="stylesheet" href="../css/layer/need/layer.css" />-->
9
+		<link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
10
+		<link rel="stylesheet" href="../css/init.css" />
11
+		<title>知识库主界面</title>
12
+		<style>
13
+			.treeTable {
14
+				height: 400px;
15
+				/*overflow-y: auto;*/
16
+			}
17
+			
18
+			.tree {
19
+				height: 100%;
20
+			}
21
+			
22
+			.trTitle {
23
+				width: 100%;
24
+				height: 34px;
25
+				line-height: 34px;
26
+				border-bottom: 1px solid #ebebeb;
27
+				color: red;
28
+				font-weight: 700;
29
+				margin-bottom: 15px;
30
+			}
31
+			
32
+			.treeCon {
33
+				border: 1px solid #ebebeb;
34
+				overflow-y: auto;
35
+			}
36
+			
37
+			.ztree li {
38
+				width: 100%;
39
+				overflow: hidden;
40
+				white-space: nowrap;
41
+				text-overflow: ellipsis;
42
+			}
43
+			
44
+			.content {
45
+				width: 270px;
46
+				height: 100%;
47
+				overflow: hidden;
48
+				white-space: nowrap;
49
+				text-overflow: ellipsis;
50
+				text-align: left;
51
+				cursor: pointer;
52
+			}
53
+		</style>
54
+	</head>
55
+
56
+	<body class="gray-bg">
57
+		<div class="container-fluid wrapper-content animated fadeInRight">
58
+			<div class="daoHang clearfix">
59
+				<div class="dhLeft">
60
+					<sapn><i class="syIcon"></i>位置:
61
+						<a id="ReIndex">首页</a>&gt;
62
+						<a href="javaScript:;">通讯录</a>&gt;
63
+						<a href="" class="nowPosition">通讯录列表</a>
64
+					</sapn>
65
+				</div>
66
+				<div class="dhRight">
67
+					<a href="" title="刷新"><i class="fa fa-refresh"></i></a>
68
+				</div>
69
+			</div>
70
+			<div class="toolBar clearfix">
71
+				<div class="toolLeft">
72
+					<!--<span><input type="text" class="searCon input_" placeholder="请输入要搜索的关键字" style="width: 175px;height: 32px; border: 1px solid #ccc;" /></span>-->
73
+					<!--<button class="btns searchGo">搜索</button>-->
74
+					<button class="btns addgroup">添加</button>
75
+					<button class="btns editgroup">修改</button>
76
+					<button class="btns deletegroup">删除</button>
77
+				</div>
78
+				<div class="toolRight">
79
+					<button class="btns addConnew">添加通讯录</button>
80
+					<button class="btns editnew">修改通讯录</button>
81
+					<button class="btns seenew">查看通讯录</button>									
82
+				</div>
83
+			</div>
84
+			<div class="treeTable clearfix">
85
+				<div class="tree col-md-2">
86
+					<div class="trTitle">通讯录分组</div>
87
+					<div class="treeCon">
88
+						<ul id="treeDemo" class="ztree" style="height: 500px;">
89
+							<!--类名为ztree是必须的-->
90
+						</ul>
91
+					</div>
92
+				</div>
93
+				<div class="tableCon col-md-10">
94
+					<div class="trTitle">通讯录列表</div>
95
+					<div style="height: 500px;overflow:auto">
96
+						<table id="table1" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
97
+							<thead>
98
+								<tr>
99
+									<th data-field="state" data-checkbox="true" data-align="center"></th>
100
+									<th data-align="center" data-formatter="setCode">编号</th>
101
+									<th data-align="center" data-field="unitname">单位名称</th>
102
+									<!--<th data-align="center" data-field="unitaddress">单位地址</th>-->
103
+									<!--<th data-align="center" data-field="faxnumber">传真</th>-->
104
+									<th data-align="center" data-field="publicphone">公开电话</th>
105
+									<th data-align="center" data-field="officetime">办公时间</th>
106
+									<th data-align="center" data-field="operateduty">工作职责</th>
107
+									<th data-align="center" data-field="internalphone">内部电话</th>
108
+									<th data-align="center" data-field="chargeperson">负责人</th>
109
+									<!--<th data-align="center" data-field="chargepersonpsition">负责人职务</th>-->
110
+									<!--<th data-align="center" data-field="chargepersonphone">负责人联系方式</th>-->
111
+									<!--<th data-align="center" data-field="remark">备注</th>-->
112
+									<th data-align="center" data-formatter="operationBtns">操作</th>
113
+								</tr>
114
+							</thead>
115
+							<tbody id="tbody"></tbody>
116
+						</table>
117
+					</div>
118
+					<!--<p style="margin-top: 20px;"><button class="btns allDel">批量删除</button></p>-->
119
+				</div>
120
+			</div>
121
+
122
+		</div>
123
+
124
+		<script src="../css/layer/layer.js"></script>
125
+		<script src="../js/zTree/jquery.ztree.core.js"></script>
126
+		<script src="../js/kindeditor/kindeditor-all-min.js"></script>
127
+		<script src="../js/kindeditor/lang/zh-CN.js"></script>
128
+		<script src="./js/tongList.js"></script>
129
+	</body>
130
+
131
+</html>