cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>服务目录地图</title>
[#include "/business/pages/include/static.html" /]
<script type="text/javascript" src="${common_static}/static/script/jquery.newtree.js"></script>
</head>
<body>
 
[#include "/business/pages/include/header.html" /]
<!-- 
<nav class="fs_nav">
  <div class="fsnav_con">
    <h3>知识库</h3>
    <a href="${base}/business/pages/knowledge/knowledgeMain/knowledgeMap.html" ><span>知识分类地图</span></a> 
    <a href="${base}/business/pages/knowledge/knowledgeMain/knowledgeCiMap.html"><span>配置分类地图</span></a> 
    <a class="focus" href="${base}/business/pages/knowledge/knowledgeMain/knowledgeServiceMap.html"><span>服务目录地图</span></a>  </div>
</nav>-->
<div class="fs_navpath">
  <h3>当前位置</h3>
  <span></span> <a>知识库 </a> 
  <span></span> <em>服务目录地图</em> 
</div> 
<div class="fs_main repositorycon clearfix" >
  <div class="ucmLeft">
       
    <div class="ntt_title"><span></span><a href="javascript:void(0)">知识分类</a></div>               
    <div class=" three_tree">
      [#if listTree?? && listTree?size>0]
        <ul>
         [#list listTree as cate]
            <li [#if firstCate?? && firstCate != cate.ID] class="firstTree"[#else] class="cur firstTree"[/#if]><span></span><a href="javascript:void(0)" >${cate.CATEGORY_NAME}</a>
            [#if cate.ejTree?? && cate.ejTree?size>0]
                <ul class="secondTree" [#if firstCate?? && firstCate != cate.ID] style="display:none;"[/#if]>
                 [#list cate.ejTree as ej]
                    <li [#if secondCate?? && secondCate != ej.ID] class="secondTreeBtn "[#else] class="secondTreeBtn cur"[/#if] ><span></span><a href="javascript:void(0)" >${ej.CATEGORY_NAME}</a>
                     [#if ej.sjTree?? && ej.sjTree?size>0]
                        <ul class="thirdTree" [#if secondCate?? && secondCate != ej.ID] style="display:none;" [/#if]>
                          [#list ej.sjTree as sj]
                            <li class="cur thirdTree" ><span  class="last" ></span><a href="javascript:searchCategory('${sj.ID}');">${sj.CATEGORY_NAME}</a></li>
                           [/#list]
                        </ul>
                        [/#if]
                    </li>
                   [/#list]
                </ul>
               [/#if]
            </li>
            [/#list]
        </ul>
        [#else]
           <div class="loadpos"><span class="nodata"></span></div>
        [/#if]
        </div>
    </div>
    <div class="expert_base repository_width">
    <div class="repository_edit">
          <div class="repository_edit_title"> <span>文库<font>(${num}篇)</font></span> <a href="${base}/business/pages/knowledge/knowledgeDeal/addKnowledge.html">贡献新资源</a> </div>
          <div  id="main">
          </div>
          <div class="pagering" id="pagination">
          </div>
    </div>
    </div>
</div>
[#include "/business/pages/include/footer.html" /]
 
<script type="text/javascript">
var categoryId = '${RequestParameters.category_id}';
var cusId = '${RequestParameters.cusId}';
function query() {
    var params = {"cusId":cusId};
    pagination("${base}/business/pages/knowledge/knowledgeMain/knowledgeData.html","${base}/business/pages/knowledge/knowledgeMain/knowledgeCount.html","main","pagination",{psize:10},params);
}
 
function searchCategory(categoryIdz) {
    categoryId = categoryIdz;
    var params = {"categoryId":categoryIdz,"cusId":cusId};
    pagination("${base}/business/pages/knowledge/knowledgeMain/knowledgeCsData.html","${base}/business/pages/knowledge/knowledgeMain/knowledgeCsCount.html","main","pagination",{psize:10},params);
}
 
function addFavorite(id){
    $.post("${base}/business/pages/knowledge/knowledgeMain/addMyLibraryFavorite.html",{library_id:id},function(data){
        if(data==1){
          searchCategory(categoryId);
          popupTips("收藏成功");
        }else if(data==0){
            popupTips("该条知识已收藏过,不能重复收藏!");
        }else{
            popupTips("收藏失败");
        }
    });
    
}
 
function delFavorite(id){
     window.top.confirmInfo('提示', '确定取消收藏该条知识?', function(){
    $.post("${base}/business/pages/knowledge/knowledgeMain/delMyLibraryFavorite.html",{library_id:id},function(data){
        if(data==1){
          searchCategory(categoryId);
          popupTips("取消成功");
        }else{
            popupTips("取消失败");
        }
    });
    });
    
}
 
$(function() {
    if(categoryId!=''){
        $("#"+categoryId).parent().parent().parent().slideDown();
        $("#"+categoryId).parent().parent().children('ul').slideDown();
        searchCategory(categoryId);
    }else{
        query();
    }
    
    $(".showfocus>a").click(function() {
       $(".showfocus>a").attr("class","");
       $(this).attr("class","focus");
   });
})
function search(kw) {
    if($.util.isEmpty(kw)) {
        window.location.reload(true);
        return;
    }
    
    if(kw.length == 1) {
        popupTips("关键词至少为2个字");
        return;
    }
    
    var type = 1;
    
    //跳转到全文检索
    kw = $.util.encode($.util.encode(kw));
    window.location.href="${base}/business/pages/fulltext/result.html?kw="+kw+"&t="+type;
}
</script>
 
</body>
</html>