diff --git a/WebRoot/html/study/documentList.html b/WebRoot/html/study/documentList.html new file mode 100644 index 0000000..7bc90bf --- /dev/null +++ b/WebRoot/html/study/documentList.html @@ -0,0 +1,10 @@ + + + + + Title + + +我是右边的页面! + + \ No newline at end of file diff --git a/WebRoot/html/study/left.html b/WebRoot/html/study/left.html index a1ab575..f39015a 100644 --- a/WebRoot/html/study/left.html +++ b/WebRoot/html/study/left.html @@ -1,63 +1,68 @@ - 左侧导航树 - - + 维护学习目录结构 + + - - - - - - - + + + + + + + + + + + + - - - + }, + } + window.loadTree = function () { + let zNodes = []; + $.ajax({ + type: "GET", + async: false, + url: '/FengHuang/zjb/getTreeData', + dataType: "json", + success: function (data) { + //修改一下数据源 + for (let v in data) { + if (data[v]["level_id"] == 2) { + data[v]["target"] = "iframeContent"; + data[v]["url"] = "documentList.html?task_id=" + data[v]["id"]; + console.log(data[v]); + } + } + zNodes = data; + zTreeObj = $.fn.zTree.init($("#tree"), setting, zNodes); + } + }) + } + loadTree(); + }) + \ No newline at end of file diff --git a/WebRoot/html/study/studyList.html b/WebRoot/html/study/studyList.html index 9e1db0a..591f723 100644 --- a/WebRoot/html/study/studyList.html +++ b/WebRoot/html/study/studyList.html @@ -1,15 +1,15 @@ - 左侧导航树 + 列表 + - - - - - - - - - - +