diff --git a/server/models.py b/server/models.py index 604fc7c..2211069 100644 --- a/server/models.py +++ b/server/models.py @@ -40,7 +40,7 @@ class CooperationMindLog(AbstractModel): 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_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) 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"),) indexes = [ models.Index(fields=['coop_mind_id'], ), - models.Index(fields=['operator'], ) + models.Index(fields=['operator_user_id'], ) ] verbose_name = "操作日志表" + + +class CooperationMindShare(AbstractModel): + """ + 分享记录表 + """ + coop_mind_id = models.BigIntegerField(verbose_name='脑图ID', null=False, blank=False) + + class Meta: + db_table = 'cooperation_mind_share' diff --git a/static/html/dashboard.html b/static/html/dashboard.html index 323c742..f7174b6 100644 --- a/static/html/dashboard.html +++ b/static/html/dashboard.html @@ -32,6 +32,7 @@ if (!uid || isNaN(uid)) { $('#login_register').show() $('#logout_a').hide() + $('#newMindModal_btn').hide() } else { $('#login_register').hide() $('#logout_a').show() @@ -90,10 +91,18 @@
` @@ -412,7 +421,7 @@