12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>算法管理</title>
- <script src="../../js/min-loader-next.js"></script>
- </head>
- <body class="content">
- <div class="order-body" style = "width : 20%; height : 700px; display: inline-table;">
- <div id="reportTypeTreeDiv" class="demo-tree-more" style = "margin : 35px"></div>
- </div>
- <div class="order-body" style="width : 75%; height : 700px; display: inline-table;">
- <blockquote class="layui-elem-quote" style = "margin : 20px;width: 90%;height: 50px;">数据算法</blockquote>
- <p id = "utilName" style = "margin-left : 20px;">工具表:<a id = "utilName"></a></p>
- <div style = "width: 100%; margin : 20px; text-align:left;width: 90%;" class = "layui-upload-drag">
- <p>数据算法如下:</p>
- <div id = "content"></div>
- </div>
- </div>
- <script>
- var pageId = "210003";
- // 报告生成事查看算法
- var reportTypeId = getQueryString("reportTypeId");
- if (!isEmpty(reportTypeId)) {
- contentQuery(reportTypeId);
- }
-
- layui.use(['tree', 'util'], function(){
- var tree = layui.tree
- ,layer = layui.layer
- ,util = layui.util;
-
- $.request({
- action : 'AlgorithmManageAction/reportTypeTree',
- data : {
- },
- success : function(data) {
- tree.render({
- elem: '#reportTypeTreeDiv'
- ,data: data.data
- ,accordion: true
- ,click: function(obj){
- if (!obj.data.children) {
- contentQuery(obj.data.id)
- }
- }
- });
- },
- error : function(data2) {
- $.ErrorAlert(data2.MINErrorMessage);
- }
- });
- })
-
- function contentQuery(reportTypeId) {
- $.request({
- action : 'AlgorithmManageAction/algorithmQuery',
- data : {
- reportTypeId : reportTypeId
- },
- success : function(data) {
- if (isEmpty(data.utilName)) {
- $("#utilName").html("");
- } else {
- $("#utilName").html(data.utilName);
- }
- if (isEmpty(data.content)) {
- $("#content").html("");
- } else {
- $("#content").html(data.content);
- }
- },
- error : function(data2) {
- $.ErrorAlert(data2.MINErrorMessage);
- }
- });
- }
- </script>
- </body>
- </html>
|