update
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
|
||||
$.ajax({
|
||||
type: `get`,
|
||||
url: `list?page=${current_page}&page_size=${page_size}&src_page=${src_page}`,
|
||||
url: `list?page=${current_page}&page_size=${page_size}&s_p=${src_page}`,
|
||||
headers: {"X-CSRFToken": $.cookie("csrftoken")},
|
||||
dataType: "json",
|
||||
success: function (resp) {
|
||||
@@ -107,8 +107,8 @@
|
||||
|
||||
// 添加按钮组
|
||||
let sub_btn;
|
||||
if (src_page === 'main') {
|
||||
sub_btn = `<a class="dropdown-item" href="javascript:void(0);" onclick="window.open('2_d?id=${item.id}')">编辑</a>
|
||||
if (src_page === 'b9b101e') {
|
||||
sub_btn = `<a class="dropdown-item" href="javascript:void(0);" onclick="window.open('2_d?id=${item.id}&s_p=b9b101e')">编辑</a>
|
||||
<a class="dropdown-item" href="javascript:void(0);" onclick="mind.del_mind(${item.id},'card_${uuid}')">删除</a>
|
||||
<a class="dropdown-item" href="javascript:void(0);" onclick="mind.share_mind(${item.id})">分享</a>`
|
||||
} else if (src_page === 'share') {
|
||||
@@ -120,7 +120,7 @@
|
||||
<div class="card-body">
|
||||
<div class="card-title" style="margin-bottom: 0px;font-weight:bold;text-overflow:ellipsis;white-space:nowrap;overflow: hidden;">${item.coop_mind_name}</div>
|
||||
<hr style="margin: 0">
|
||||
<img src="/static/pic/demo_icon.png" class="card-img-top" style="margin-top: 8px;cursor: pointer;" onclick="window.open('2_d?id=${item.id}')">
|
||||
<img src="/static/pic/demo_icon.png" class="card-img-top" style="margin-top: 8px;cursor: pointer;" onclick="window.open('2_d?id=${item.id}&s_p=b9b101e')">
|
||||
<div style="text-align:right;font-size: 0.8rem;margin-top: 5px;font-family: inherit;">
|
||||
<div class="btn-group btn-group-sm" role="group">
|
||||
<button id="btnGroupDrop1" type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">操作</button>
|
||||
@@ -409,7 +409,7 @@
|
||||
/**新页面打开*/
|
||||
setTimeout(function () {
|
||||
const id = resp.data
|
||||
window.open('2_d?id=' + id)
|
||||
window.open('2_d?id=' + id + `&s_p=b9b101e`)
|
||||
}, 500)
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
let h = `{{ h }}`;
|
||||
const me = this;
|
||||
const from_share = id.length === 0;
|
||||
const url = from_share ? `s_d?u=${u}&h=${h}` : 'd?id=' + id;
|
||||
const url = from_share ? `s_d?u=${u}&h=${h}` : 'd?id=' + id + `&s_p=b9b101e`;
|
||||
$.get(url, function (resp) {
|
||||
if (resp.code === -1) {
|
||||
common_alert(resp.msg)
|
||||
|
||||
Reference in New Issue
Block a user