Bladeren bron

机构职能展示修改

liuzhen 6 jaren geleden
bovenliggende
commit
c6ac07581b

+ 3 - 2
WebUI/CallCenterWeb.UI/zhiShiKu/js/newRepository.js

@@ -249,7 +249,7 @@
249 249
 				      	title: '查看知识库详情',
250 250
 				      	area: ['70%', '60%'],
251 251
 				      	maxmin:true,
252
-				      	content: 'newRepositoryDetail.html?ids='+ ids
252
+				      	content: 'newRepositoryDetail.html?ids='+ ids+'&&DeptId='+DeptId
253 253
 				    });
254 254
 				}
255 255
 					
@@ -358,7 +358,8 @@
358 358
 				      	title: '编辑知识库',
359 359
 				      	area: ['70%', '60%'],
360 360
 				      	maxmin:true,
361
-				      	content: 'newRepositoryAdd.html?ids='+ ids +'&depId='+$('#depID').val() 
361
+//				      	content: 'newRepositoryAdd.html?ids='+ ids +'&depId='+$('#depID').val()
362
+				      	content: 'newRepositoryAdd.html?ids='+ ids +'&depId='+DeptId
362 363
 				    });
363 364
 				}
364 365
 						

+ 2 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/js/newRepositoryAdd.js

@@ -208,6 +208,8 @@ $(document).ready(function() {
208 208
 										
209 209
 				}
210 210
 			});
211
+		}else{
212
+			$('.mechanism').css('display','none')
211 213
 		}
212 214
 	    //获取知识库详情
213 215
 	  if(ids){

+ 3 - 2
WebUI/CallCenterWeb.UI/zhiShiKu/js/repositoryDrafts.js

@@ -250,7 +250,7 @@
250 250
 				      	title: '查看知识库详情',
251 251
 				      	area: ['70%', '60%'],
252 252
 				      	maxmin:true,
253
-				      	content: 'newRepositoryDetail.html?ids='+ ids
253
+				      	content: 'newRepositoryDetail.html?ids='+ ids+'&&DeptId='+DeptId
254 254
 				    });
255 255
 				}
256 256
 					
@@ -302,7 +302,8 @@
302 302
 				      	title: '编辑知识库',
303 303
 				      	area: ['70%', '60%'],
304 304
 				      	maxmin:true,
305
-				      	content: 'newRepositoryAdd.html?ids='+ ids +'&depId='+$('#depID').val() 
305
+//				      	content: 'newRepositoryAdd.html?ids='+ ids +'&depId='+$('#depID').val()
306
+				      	content: 'newRepositoryAdd.html?ids='+ ids +'&depId='+DeptId 
306 307
 				    });
307 308
 				}
308 309
 						

+ 1 - 1
WebUI/CallCenterWeb.UI/zhiShiKu/newRepositoryAdd.html

@@ -141,7 +141,7 @@
141 141
 							<textarea name="" rows="" cols="" id="remark"></textarea>
142 142
 						</td>
143 143
 					</tr>
144
-					<tr>
144
+					<tr class='mechanism'>
145 145
 						<td width="100" height="100"> 机构职能</td>
146 146
 						<td colspan="3" height="100">
147 147
 							<textarea name="" rows="" cols="" id="mechanism" disabled></textarea>

+ 32 - 0
WebUI/CallCenterWeb.UI/zhiShiKu/newRepositoryDetail.html

@@ -125,6 +125,10 @@
125 125
 						<td colspan="3"> <input type="text" id="title" readonly="readonly" /></td>
126 126
 					</tr>
127 127
 					<tr>
128
+						<td width="100" height="100"> 参考答案</td>
129
+						<td colspan="3" height="100"> <textarea name="" rows="" cols="" id="endanswer" readonly="readonly"></textarea></td>
130
+					</tr>
131
+					<tr>
128 132
 						<td width="100">单位</td>
129 133
 						<td colspan="3"> <input type="text" id="maindept" readonly="readonly" /></td>
130 134
 					</tr>
@@ -159,6 +163,12 @@
159 163
 						<td width="100" height="100"> 备注</td>
160 164
 						<td colspan="3" height="100"><textarea name="" rows="" cols=""  id="remark" readonly="readonly"></textarea> </td>
161 165
 					</tr>
166
+					<tr class='mechanism'>
167
+						<td width="100" height="100"> 机构职能</td>
168
+						<td colspan="3" height="100">
169
+							<textarea name="" rows="" cols="" id="mechanism" disabled></textarea>
170
+						</td>
171
+					</tr>
162 172
 				</table>
163 173
 				<ul class="tab_list clearfix">
164 174
 					<li class="active">设定依据</li>
@@ -228,6 +238,7 @@
228 238
 			<script>
229 239
 				
230 240
 				var ids=helper.request.queryString("ids");
241
+				var depId=helper.request.queryString("DeptId");
231 242
 				$(document).ready(function(){
232 243
 					$('.tab_list li').click(function(){
233 244
 					   var index=$(this).index();
@@ -235,6 +246,27 @@
235 246
 					   $('.tab_content>div').eq(index).show().siblings().hide();
236 247
 					   
237 248
 					})
249
+					if(depId&&depId!=99999&&depId!=0){
250
+				  	 $.ajax({
251
+							type:"get",
252
+							url:huayi.config.callcenter_url +"Department/GetDept",
253
+							async:true,
254
+							dataType:'json',
255
+							data:{
256
+								token: $.cookie("token"),
257
+								id:depId
258
+							},
259
+							success:function(result){
260
+								if(result.state.toLowerCase()=='success'){
261
+									var con=result.data;
262
+									$('#mechanism').val(con.F_Remark);
263
+								}
264
+													
265
+							}
266
+						});
267
+					}else{
268
+						$('.mechanism').css('display','none')
269
+					}
238 270
 					//按钮【按钮一】的回调
239 271
 					$.ajax({
240 272
 						type: "post",