update
This commit is contained in:
@@ -61,6 +61,10 @@
|
||||
async: false
|
||||
});
|
||||
},
|
||||
/**获得源页面*/
|
||||
get_src_page: function () {
|
||||
return $('#src_page').html()
|
||||
},
|
||||
/**获得导图*/
|
||||
fetch_mind: function (current_page, page_size) {
|
||||
const me = this
|
||||
@@ -71,6 +75,11 @@
|
||||
page_size = me.default_page_size
|
||||
}
|
||||
me.current_page_num = current_page
|
||||
|
||||
// 获得跳转源页面
|
||||
const src_page = me.get_src_page()
|
||||
console.log(src_page)
|
||||
|
||||
$.ajax({
|
||||
type: `get`,
|
||||
url: `list?page=${current_page}&page_size=${page_size}`,
|
||||
@@ -389,7 +398,11 @@
|
||||
<!--script end-->
|
||||
</head>
|
||||
<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-->
|
||||
<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>
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
<link rel="stylesheet" type="text/css" href="/static/bootstrap-4.6.1-dist/css/bootstrap.css">
|
||||
<style>
|
||||
#jsmind_container {
|
||||
width: 100%;
|
||||
height: 800px;
|
||||
width: calc(100vw);
|
||||
height: calc(100vh - 50px);
|
||||
}
|
||||
</style>
|
||||
<script src="/static/js/jquery-1.11.3.min.js"></script>
|
||||
@@ -136,11 +136,10 @@
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<input type="button" value="折叠" onclick="xxObj.collapse_all()">
|
||||
<input type="button" value="展开" onclick="xxObj.expand_all()">
|
||||
</div>
|
||||
<h3 id="h1" style="text-align: center;"></h3>
|
||||
<!-- -->
|
||||
<input type="button" value="折叠" onclick="xxObj.collapse_all()" style="position: absolute;top: 0px;z-index: 1000;">
|
||||
<input type="button" value="展开" onclick="xxObj.expand_all()" style="position: absolute;top: 40px;z-index: 1000;">
|
||||
<h3 id="h1" style="text-align: center;max-height: 40px;"></h3>
|
||||
<div id="jsmind_container"></div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user