This commit is contained in:
chenyang
2022-07-04 17:50:39 +08:00
parent c99c7ef647
commit 542372873a
3 changed files with 25 additions and 6 deletions
+12 -2
View File
@@ -40,7 +40,7 @@ class CooperationMindLog(AbstractModel):
coop_mind_id = models.BigIntegerField(verbose_name='脑图ID', null=False, blank=False) coop_mind_id = models.BigIntegerField(verbose_name='脑图ID', null=False, blank=False)
log_uuid = models.CharField(verbose_name='操作UUID', max_length=64, null=False, blank=False) log_uuid = models.CharField(verbose_name='操作UUID', max_length=64, null=False, blank=False)
log_content = models.CharField(verbose_name='操作内容', max_length=1024, null=False, blank=False) log_content = models.CharField(verbose_name='操作内容', max_length=1024, null=False, blank=False)
operator = models.BigIntegerField(verbose_name='操作人', null=True) operator_user_id = models.BigIntegerField(verbose_name='操作人', null=True)
operator_ip = models.CharField(verbose_name='操作人IP', null=False, max_length=32) operator_ip = models.CharField(verbose_name='操作人IP', null=False, max_length=32)
client_uuid = models.CharField(verbose_name='客户端ID', max_length=64, null=False, blank=False) client_uuid = models.CharField(verbose_name='客户端ID', max_length=64, null=False, blank=False)
@@ -50,6 +50,16 @@ class CooperationMindLog(AbstractModel):
unique_together = (("coop_mind_id", "log_uuid"),) unique_together = (("coop_mind_id", "log_uuid"),)
indexes = [ indexes = [
models.Index(fields=['coop_mind_id'], ), models.Index(fields=['coop_mind_id'], ),
models.Index(fields=['operator'], ) models.Index(fields=['operator_user_id'], )
] ]
verbose_name = "操作日志表" verbose_name = "操作日志表"
class CooperationMindShare(AbstractModel):
"""
分享记录表
"""
coop_mind_id = models.BigIntegerField(verbose_name='脑图ID', null=False, blank=False)
class Meta:
db_table = 'cooperation_mind_share'
+13 -4
View File
@@ -32,6 +32,7 @@
if (!uid || isNaN(uid)) { if (!uid || isNaN(uid)) {
$('#login_register').show() $('#login_register').show()
$('#logout_a').hide() $('#logout_a').hide()
$('#newMindModal_btn').hide()
} else { } else {
$('#login_register').hide() $('#login_register').hide()
$('#logout_a').show() $('#logout_a').show()
@@ -90,10 +91,18 @@
<div class="card-body"> <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> <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"> <hr style="margin: 0">
<img src="/static/pic/demo_icon.png" class="card-img-top" style="margin-top: 8px;"> <img src="/static/pic/demo_icon.png" class="card-img-top" style="margin-top: 8px;cursor: pointer;" onclick="window.open('detail?id=${item.id}')">
<div style="text-align:right;font-size: 0.8rem;margin-top: 5px;font-family: inherit;"> <div style="text-align:right;font-size: 0.8rem;margin-top: 5px;font-family: inherit;">
<a class="" href="javascript:void(0);" onclick="window.open('detail?id=${item.id}')">编辑</a> <div class="btn-group btn-group-sm" role="group">
<a class="" href="javascript:void(0);" onclick="mind.del_mind(${item.id},'card_${uuid}')">删除</a> <button id="btnGroupDrop1" type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
操作
</button>
<div class="dropdown-menu" aria-labelledby="btnGroupDrop1">
<a class="dropdown-item" href="javascript:void(0);" onclick="window.open('detail?id=${item.id}')">编辑</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);">分享</a>
</div>
</div>
</div> </div>
</div> </div>
</div>` </div>`
@@ -412,7 +421,7 @@
<main role="main" class="col-md-10 ml-sm-auto col-lg-10 px-md-4" id="main"> <main role="main" class="col-md-10 ml-sm-auto col-lg-10 px-md-4" id="main">
<div style="margin-bottom: 0px;" class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"> <div style="margin-bottom: 0px;" class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h5 class="h5">全部文件</h5> <h5 class="h5">全部文件</h5>
<button type="button" class="btn btn-info" data-toggle="modal" data-target="#newMindModal">新建导图</button> <button id="newMindModal_btn" type="button" class="btn btn-info" data-toggle="modal" data-target="#newMindModal">新建导图</button>
</div> </div>
<div class="container-fluid"> <div class="container-fluid">
<!-- <!--
Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 15 KiB