update
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user