瀏覽代碼

查看知识库修改

liuzhen 6 年之前
父節點
當前提交
d2780f893b

+ 1 - 1
WebUI/CallCenterWeb.UI/js/index.js

@@ -1932,4 +1932,4 @@ function Read(signid, e) {
1932 1932
 		});
1933 1933
 }
1934 1934
 //获取知识库消息
1935
-setInterval(getnew,10000)
1935
+setInterval(getnew,20000)

+ 27 - 4
WebUI/CallCenterWeb.UI/zhiShiKu/askRecords.html

@@ -463,18 +463,41 @@
463 463
         }
464 464
         //格式化操作
465 465
 		function Dispose(val, row) {
466
-			return '<ul class="tool_downs">' +
467
-				'<li><a href="javascript:;" class="aBtn" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="add_knowledge(\'' + row.F_DemandsId + '\')" title="添加知识库">添加知识库</a></li>' +
466
+			if(row.F_RepositoryId&&row.F_RepositoryId!=0){
467
+				return '<ul class="tool_downs">' +
468
+				'<li><a href="javascript:;" class="aBtn" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="see_knowledge(' + row.F_RepositoryId +')" title="查看知识库">查看知识库</a></li>' +
469
+//				'<li><a href="javascript:;" class="aBtn" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="add_knowledge(' + row.F_DemandsId +','+row.F_Deptid+')" title="添加知识库">添加知识库</a></li>' +
468 470
 				'<li><a href="javascript:;" class="aBtn" style="margin-left:0px;" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="btn_details(\'' + row.F_DemandsId + '\')" title="详情">详情</a></li>' +
469 471
 				'<li class="edit"><a href="javascript:;" class="aBtn" style="margin-left:0px;" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="btn_edit(\'' + row.F_DemandsId + '\')" title="编辑">编辑</a></li>' +
470 472
 				'<li class="delete_list"><a href="javascript:;" class="aBtn hide_btn" style="margin-left:0px;" authorize="yes" id="HY_delete_' + row.F_DemandsId + '" onclick="btn_delete(' + row.F_DemandsId + ')" title="删除">删除</a></li>' +
471 473
 				'</ul>';
474
+			}else{
475
+				return '<ul class="tool_downs">' +
476
+//				'<li><a href="javascript:;" class="aBtn" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="see_knowledge(' + row.F_RepositoryId +')" title="查看知识库">查看知识库</a></li>' +
477
+				'<li><a href="javascript:;" class="aBtn" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="add_knowledge(' + row.F_DemandsId +','+row.F_Deptid+')" title="添加知识库">添加知识库</a></li>' +
478
+				'<li><a href="javascript:;" class="aBtn" style="margin-left:0px;" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="btn_details(\'' + row.F_DemandsId + '\')" title="详情">详情</a></li>' +
479
+//				'<li class="edit"><a href="javascript:;" class="aBtn" style="margin-left:0px;" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="btn_edit(\'' + row.F_DemandsId + '\')" title="编辑">编辑</a></li>' +
480
+//				'<li class="delete_list"><a href="javascript:;" class="aBtn hide_btn" style="margin-left:0px;" authorize="yes" id="HY_delete_' + row.F_DemandsId + '" onclick="btn_delete(' + row.F_DemandsId + ')" title="删除">删除</a></li>' +
481
+				'</ul>';
482
+			}
483
+			
484
+		}
485
+		//查看知识库
486
+		function see_knowledge(ids){
487
+				//iframe窗
488
+			    layer.open({
489
+			      	type: 2,
490
+			      	title: '查看知识库详情',
491
+			      	area: ['70%', '60%'],
492
+			      	maxmin:true,
493
+			      	content: 'newRepositoryDetail.html?ids='+ ids
494
+			    });
472 495
 		}
473 496
 		//添加到知识库
474
-		 function add_knowledge(str) {
497
+		 function add_knowledge(str,deptid) {
475 498
             layer.open({
476 499
                 type: 2,
477
-                content: "newRepositoryAdd.html?wid=" + str, //iframe的url,no代表不显示滚动条
500
+                content: "newRepositoryAdd.html?wid=" + str +"&depId="+deptid, //iframe的url,no代表不显示滚动条
478 501
                 title: '新增知识库',
479 502
                 area: ['60%', '80%'], //宽高
480 503
             });

+ 26 - 7
WebUI/CallCenterWeb.UI/zhiShiKu/askRecords1.html

@@ -464,18 +464,37 @@
464 464
         }
465 465
         //格式化操作
466 466
 		function Dispose(val, row) {
467
-			return '<ul class="tool_downs">' +
468
-				'<li><a href="javascript:;" class="aBtn" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="add_knowledge(\'' + row.F_DemandsId + '\')" title="添加知识库">添加知识库</a></li>' +
469
-				'<li><a href="javascript:;" class="aBtn" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="btn_details(\'' + row.F_DemandsId + '\')" title="详情">详情</a></li>' +
470
-//				'<li class="edit"><a href="javascript:;" class="aBtn" style="margin-left:20px;" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="btn_edit(\'' + row.F_DemandsId + '\')" title="编辑">编辑</a></li>' +
471
-//				'<li class="delete_list"><a href="javascript:;" class="aBtn hide_btn" style="margin-left:20px;" authorize="yes" id="HY_delete_' + row.F_DemandsId + '" onclick="btn_delete(' + row.F_DemandsId + ')" title="删除">删除</a></li>' +
467
+			if(row.F_RepositoryId&&row.F_RepositoryId!=0){
468
+				return '<ul class="tool_downs">' +
469
+				'<li><a href="javascript:;" class="aBtn" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="see_knowledge(' + row.F_RepositoryId +')" title="查看知识库">查看知识库</a></li>' +
470
+//				'<li><a href="javascript:;" class="aBtn" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="add_knowledge(' + row.F_DemandsId +','+row.F_Deptid+')" title="添加知识库">添加知识库</a></li>' +
471
+				'<li><a href="javascript:;" class="aBtn" style="margin-left:0px;" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="btn_details(\'' + row.F_DemandsId + '\')" title="详情">详情</a></li>' +
472 472
 				'</ul>';
473
+			}else{
474
+				return '<ul class="tool_downs">' +
475
+//				'<li><a href="javascript:;" class="aBtn" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="see_knowledge(' + row.F_RepositoryId +')" title="查看知识库">查看知识库</a></li>' +
476
+				'<li><a href="javascript:;" class="aBtn" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="add_knowledge(' + row.F_DemandsId +','+row.F_Deptid+')" title="添加知识库">添加知识库</a></li>' +
477
+				'<li><a href="javascript:;" class="aBtn" style="margin-left:0px;" authorize="yes"  id="HY_details_' + row.F_DemandsId + '" onclick="btn_details(\'' + row.F_DemandsId + '\')" title="详情">详情</a></li>' +
478
+				'</ul>';
479
+			}
480
+			
481
+		}
482
+		//查看知识库
483
+		function see_knowledge(ids){
484
+				//iframe窗
485
+			    layer.open({
486
+			      	type: 2,
487
+			      	title: '查看知识库详情',
488
+			      	area: ['70%', '60%'],
489
+			      	maxmin:true,
490
+			      	content: 'newRepositoryDetail.html?ids='+ ids
491
+			    });
473 492
 		}
474 493
 		//添加到知识库
475
-		 function add_knowledge(str) {
494
+		 function add_knowledge(str,deptid) {
476 495
             layer.open({
477 496
                 type: 2,
478
-                content: "newRepositoryAdd.html?wid=" + str, //iframe的url,no代表不显示滚动条
497
+                content: "newRepositoryAdd.html?wid=" + str +"&depId="+deptid, //iframe的url,no代表不显示滚动条
479 498
                 title: '新增知识库',
480 499
                 area: ['60%', '80%'], //宽高
481 500
             });