This commit is contained in:
chenyang
2022-07-09 11:45:27 +08:00
parent 3441e59a76
commit bd3fae8bb7
2 changed files with 20 additions and 8 deletions
+14 -1
View File
@@ -61,6 +61,10 @@
async: false async: false
}); });
}, },
/**获得源页面*/
get_src_page: function () {
return $('#src_page').html()
},
/**获得导图*/ /**获得导图*/
fetch_mind: function (current_page, page_size) { fetch_mind: function (current_page, page_size) {
const me = this const me = this
@@ -71,6 +75,11 @@
page_size = me.default_page_size page_size = me.default_page_size
} }
me.current_page_num = current_page me.current_page_num = current_page
// 获得跳转源页面
const src_page = me.get_src_page()
console.log(src_page)
$.ajax({ $.ajax({
type: `get`, type: `get`,
url: `list?page=${current_page}&page_size=${page_size}`, url: `list?page=${current_page}&page_size=${page_size}`,
@@ -389,7 +398,11 @@
<!--script end--> <!--script end-->
</head> </head>
<body> <body>
<span id="uid" style="display: none;">{{ user.id }}</span> <div style="display: none;">
<span id="uid">{{ user.id }}</span>
<span id="src_page">{{ page }}</span>
</div>
<!-- 页眉 start--> <!-- 页眉 start-->
<nav class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow"> <nav class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
<a class="navbar-brand col-md-2 col-lg-2 mr-0 px-3" href="#">协作思维导图</a> <a class="navbar-brand col-md-2 col-lg-2 mr-0 px-3" href="#">协作思维导图</a>
+6 -7
View File
@@ -8,8 +8,8 @@
<link rel="stylesheet" type="text/css" href="/static/bootstrap-4.6.1-dist/css/bootstrap.css"> <link rel="stylesheet" type="text/css" href="/static/bootstrap-4.6.1-dist/css/bootstrap.css">
<style> <style>
#jsmind_container { #jsmind_container {
width: 100%; width: calc(100vw);
height: 800px; height: calc(100vh - 50px);
} }
</style> </style>
<script src="/static/js/jquery-1.11.3.min.js"></script> <script src="/static/js/jquery-1.11.3.min.js"></script>
@@ -136,11 +136,10 @@
</script> </script>
</head> </head>
<body> <body>
<div> <!-- -->
<input type="button" value="折叠" onclick="xxObj.collapse_all()"> <input type="button" value="折叠" onclick="xxObj.collapse_all()" style="position: absolute;top: 0px;z-index: 1000;">
<input type="button" value="展开" onclick="xxObj.expand_all()"> <input type="button" value="展开" onclick="xxObj.expand_all()" style="position: absolute;top: 40px;z-index: 1000;">
</div> <h3 id="h1" style="text-align: center;max-height: 40px;"></h3>
<h3 id="h1" style="text-align: center;"></h3>
<div id="jsmind_container"></div> <div id="jsmind_container"></div>
</body> </body>
</html> </html>