zhangshuangnan лет назад: 7
Родитель
Сommit
396b8086ad
1 измененных файлов с 82 добавлено и 84 удалено
  1. 82 84
      CallCenterWeb.UI/OutboundMessage/LookMessages.html

+ 82 - 84
CallCenterWeb.UI/OutboundMessage/LookMessages.html

@@ -126,8 +126,6 @@
126 126
 					async: true,
127 127
 					success: function(data) {
128 128
 						if(data.state.toLowerCase()=='success'){
129
-							
130
-						
131 129
 						var Count = data.data;
132 130
 						$("#Name_").text(Count.taskModel.F_CusName);
133 131
 						$("#Phone_").text(Count.taskModel.F_Telephone);
@@ -137,90 +135,90 @@
137 135
 
138 136
 						$(' input[name="check"][value="' + Count.taskModel.F_HJJGId + '"]').prop("checked", "checked");
139 137
 						$(' input[name="checks"][value="' + Count.taskModel.F_YHFKId + '"]').prop("checked", "checked");
140
-						$('.Title').text(Count.paperModel.F_Title);
141
-						$("#F_Remark").text(Count.paperModel.F_Remark);
142
-						$("#startText").text(Count.paperModel.F_StartText);
143
-						$("#endText").text(Count.paperModel.F_EndText);
138
+//						$('.Title').text(Count.paperModel.F_Title);
139
+//						$("#F_Remark").text(Count.paperModel.F_Remark);
140
+//						$("#startText").text(Count.paperModel.F_StartText);
141
+//						$("#endText").text(Count.paperModel.F_EndText);
144 142
 
145 143
 						//循环填表
146
-						var html = '';
147
-						var Questions = Count.paperModel.F_Questions;
148
-
149
-						for(var i = 0; i < Questions.length; i++) {
150
-							var questype = Questions[i].questype;
151
-							var quesanswers = Questions[i].quesanswers;
152
-							var Quesid = Questions[i].quesid;
153
-							var quesremark = Questions[i].quesremark; //试题说明
154
-							if(quesremark) {
155
-								quesremark = ' 【' + quesremark + '】';
156
-							} else {
157
-								quesremark = "";
158
-							}
159
-							html += '<li class="" name="ltype' + Quesid + '" >';
160
-							html += '<div class="Back">';
161
-							html += '<h3 class="size-14 QuesTitle"  indexs="' + Questions[i].quesid + '">' + Questions[i].questitle + quesremark + ' </h3>';
162
-							html += '</div>';
163
-							//判断类型
164
-							if(questype == 2) {
165
-								//选项
166
-								if(Questions[i].quesitems.length > 0) { //单选
167
-									html += '<div class="radio clearfix" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
168
-									var quesitems = Questions[i].quesitems;
169
-									html += '<ul class="Ul">'
170
-									for(var j = 0; j < quesitems.length; j++) {
171
-										html += '<li><div class="radio i-checks">'
172
-										html += '<label style="font-weight: normal;">'
173
-										html += '' + (j + 1) + '.';
174
-										var chk = '';
175
-										if(quesanswers == quesitems[j].itemid) {
176
-											chk = 'checked="checked"';
177
-											//html += '<input type="radio" checked="checked" index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '"  style="margin-left:5px;"> <span>' + quesitems[j].itemname + '</span></label>'
178
-										}
179
-										html += '<input disabled type="radio" ' + chk + ' index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '"  style="margin-left:5px;"> <span>' + quesitems[j].itemname + '</span></label>'
180
-										html += '</div></li>'
181
-
182
-									}
183
-									html += '</ul>'
184
-									html += '</div>'
185
-									html += '</li>'
186
-								}
187
-							} else if(questype == 1) {
188
-								html += '<div class="Wd" indexs="' + Questions[i].quesid + '">';
189
-								html += '<p class="Wds" "index="' + Questions[i].quesid + '" style="width: 100%;">' + quesanswers + '</p>'
190
-								html += '</div>'
191
-
192
-							} else {
193
-								if(Questions[i].quesitems.length > 0) { //多选
194
-
195
-									html += '<div class="checkbox clearfix" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
196
-									var quesitems = Questions[i].quesitems;
197
-									html += '<ul class="Ul">'
198
-									for(var j = 0; j < quesitems.length; j++) {
199
-										html += '<li> <div class="checkbox i-checks">'
200
-										html += '<label style="font-weight: normal;">'
201
-										html += '' + (j + 1) + '.';
202
-										var arr = quesanswers.split('|');
203
-										var chk = '';
204
-										for(var k = 0; k < arr.length; k++) {
205
-											chk = '';
206
-											if(arr[k] == quesitems[j].itemid) {
207
-												chk = 'checked="checked"';
208
-												break;
209
-											}
210
-										}
211
-										html += '<input disabled type="checkbox" ' + chk + ' index_="' + quesitems[j].itemid + '"  value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" ><span> ' + quesitems[j].itemname + '</span></label>'
212
-										//html += '<input type="checkbox" index_="' + quesitems[j].itemid + '"  value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" > ' + quesitems[j].itemname + '</label>'
213
-										html += '</div></li>'
214
-									}
215
-									html += '</ul>'
216
-									html += '</div>'
217
-
218
-									html += '</li >';
219
-								}
220
-							}
221
-
222
-						}
223
-						$(html).appendTo(".Qus_box");
144
+//						var html = '';
145
+//						var Questions = Count.paperModel.F_Questions;
146
+//
147
+//						for(var i = 0; i < Questions.length; i++) {
148
+//							var questype = Questions[i].questype;
149
+//							var quesanswers = Questions[i].quesanswers;
150
+//							var Quesid = Questions[i].quesid;
151
+//							var quesremark = Questions[i].quesremark; //试题说明
152
+//							if(quesremark) {
153
+//								quesremark = ' 【' + quesremark + '】';
154
+//							} else {
155
+//								quesremark = "";
156
+//							}
157
+//							html += '<li class="" name="ltype' + Quesid + '" >';
158
+//							html += '<div class="Back">';
159
+//							html += '<h3 class="size-14 QuesTitle"  indexs="' + Questions[i].quesid + '">' + Questions[i].questitle + quesremark + ' </h3>';
160
+//							html += '</div>';
161
+//							//判断类型
162
+//							if(questype == 2) {
163
+//								//选项
164
+//								if(Questions[i].quesitems.length > 0) { //单选
165
+//									html += '<div class="radio clearfix" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
166
+//									var quesitems = Questions[i].quesitems;
167
+//									html += '<ul class="Ul">'
168
+//									for(var j = 0; j < quesitems.length; j++) {
169
+//										html += '<li><div class="radio i-checks">'
170
+//										html += '<label style="font-weight: normal;">'
171
+//										html += '' + (j + 1) + '.';
172
+//										var chk = '';
173
+//										if(quesanswers == quesitems[j].itemid) {
174
+//											chk = 'checked="checked"';
175
+//											//html += '<input type="radio" checked="checked" index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '"  style="margin-left:5px;"> <span>' + quesitems[j].itemname + '</span></label>'
176
+//										}
177
+//										html += '<input disabled type="radio" ' + chk + ' index_="' + quesitems[j].itemid + '" value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '"  style="margin-left:5px;"> <span>' + quesitems[j].itemname + '</span></label>'
178
+//										html += '</div></li>'
179
+//
180
+//									}
181
+//									html += '</ul>'
182
+//									html += '</div>'
183
+//									html += '</li>'
184
+//								}
185
+//							} else if(questype == 1) {
186
+//								html += '<div class="Wd" indexs="' + Questions[i].quesid + '">';
187
+//								html += '<p class="Wds" "index="' + Questions[i].quesid + '" style="width: 100%;">' + quesanswers + '</p>'
188
+//								html += '</div>'
189
+//
190
+//							} else {
191
+//								if(Questions[i].quesitems.length > 0) { //多选
192
+//
193
+//									html += '<div class="checkbox clearfix" name="ltype' + Quesid + '" indexs="' + Questions[i].quesid + '">';
194
+//									var quesitems = Questions[i].quesitems;
195
+//									html += '<ul class="Ul">'
196
+//									for(var j = 0; j < quesitems.length; j++) {
197
+//										html += '<li> <div class="checkbox i-checks">'
198
+//										html += '<label style="font-weight: normal;">'
199
+//										html += '' + (j + 1) + '.';
200
+//										var arr = quesanswers.split('|');
201
+//										var chk = '';
202
+//										for(var k = 0; k < arr.length; k++) {
203
+//											chk = '';
204
+//											if(arr[k] == quesitems[j].itemid) {
205
+//												chk = 'checked="checked"';
206
+//												break;
207
+//											}
208
+//										}
209
+//										html += '<input disabled type="checkbox" ' + chk + ' index_="' + quesitems[j].itemid + '"  value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" ><span> ' + quesitems[j].itemname + '</span></label>'
210
+//										//html += '<input type="checkbox" index_="' + quesitems[j].itemid + '"  value="' + quesitems[j].itemid + '" name="ltype' + Quesid + '" > ' + quesitems[j].itemname + '</label>'
211
+//										html += '</div></li>'
212
+//									}
213
+//									html += '</ul>'
214
+//									html += '</div>'
215
+//
216
+//									html += '</li >';
217
+//								}
218
+//							}
219
+//
220
+//						}
221
+//						$(html).appendTo(".Qus_box");
224 222
 						autosize($('textarea'));
225 223
 						$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})
226 224
 						}