|
|
@@ -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
|
});
|