+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
发布时效性监测
+
监测最新发布时间、最长更新时间、发布不达标天数等,全面分析新媒体内容发布及时性。
+
+
+
+
+
+
+
+
错别字及敏感词监测
+
监测新媒体内容中存在的错别字及敏感词,能准确校对政治性错误,并提供错别字及敏感词的定位功能。
+
+
+
+
+
+
外链监测
+
监测新媒体内容中的所有外部链接,支持审核,从而及时发现“非法外链”。
+
+
+
+
+
+
影响力分析
+
在监测到的常规运营指标数据(如发布量、阅读量等)的基础上,通过影响力传播算法,获得新媒体的影响力传播指数。
+
+
+
+
+
+
热点文章榜
+
根据新媒体文章的阅读与分享情况,分析新媒体粉丝关注热点,为内容运营提供依据。
+
+
+
+
+
+
新媒体绩效考核
+
基于新媒体矩阵考核指标,定制新媒体绩效考核排名报表。
+
+
+
+
+
+
+
+
+
新媒体监测优势
+ ADVANTAGES OF NEW MEDIA MONITORING
+
+
+
+
+ {#
#}
+
+
+
+
全面
+
支持查看可用性统计数据、可用性持续时间、监测点详情监测数据。
+
+
+
+
快速
+
日诊断页面资源数可超过1000万。一旦发现问题,则秒级告警。
+
+
+
+
准确
+
数据预处理,对数据进行归一、过滤,确保数据一致性与准确性。
+
+
+
+
稳定
+
自动化的运维监控、异常流量发现并处理的技术。
+
+
+ {#
#}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- {# #}
- {#
#}
- {#
#}
- {#
#}
- {#
#}
- {#
#}
- {#
#}
-
-
-
-
-
+
+
+
+
+
+
diff --git a/dashboard/templates/dashboard/index.html b/dashboard/templates/dashboard/index.html
index b1c5790..b5070d3 100644
--- a/dashboard/templates/dashboard/index.html
+++ b/dashboard/templates/dashboard/index.html
@@ -261,7 +261,7 @@
},
grid: {
left: '3%',
- right: '4%',
+ right: '8%',
bottom: '1%',
containLabel: true
},
@@ -523,7 +523,7 @@
toolbox: {
feature: {
{#dataView: {show: true, readOnly: false},#}
- magicType: {show: true, type: ['line', 'bar']},
+ {#magicType: {show: true, type: ['line', 'bar']},#}
{#restore: {show: true},#}
{#saveAsImage: {show: true}#}
}
diff --git a/dashboard/templates/dashboard/login-for-phone-new.html b/dashboard/templates/dashboard/login-for-phone-new.html
new file mode 100644
index 0000000..542603b
--- /dev/null
+++ b/dashboard/templates/dashboard/login-for-phone-new.html
@@ -0,0 +1,150 @@
+{% load static %}
+
+
+
+
+ {#
#}
+
+
+
政务新媒体监测系统
+
+
+
+
+
+
+
+
+
+
+
+
+ {% if messages %}
+
+
+ {% for message in messages %}
+ {{ message }}.
+ {% endfor %}
+
+ {% endif %}
+
+
+
+
+
+
+
+
+
政务新媒体
+
管理系统
+
监测新媒体内容中的敏感词(如黄赌毒、邪教、反共等术语),
+
支持查看上下文,支持敏感词定位。监测新媒体内容中的所有
+
外部链接,支持审核,从而及时发现“非法外链”。
+
+
+
+
+
+
+
+
+
+
+ {#
#}
+ {# #}
+ {#
#}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/dashboard/templates/dashboard/login-new.html b/dashboard/templates/dashboard/login-new.html
new file mode 100644
index 0000000..ec87e70
--- /dev/null
+++ b/dashboard/templates/dashboard/login-new.html
@@ -0,0 +1,175 @@
+{% load static %}
+
+
+
+
+ {#
#}
+
+
+
政务新媒体监测系统
+
+
+
+
+
+
+
+
+
+
+
+
+ {% if messages %}
+
+
+ {% for message in messages %}
+ {{ message }}.
+ {% endfor %}
+
+ {% endif %}
+
+
+
+
+
+
+
+
+
政务新媒体
+
管理系统
+
监测新媒体内容中的敏感词(如黄赌毒、邪教、反共等术语),
+
支持查看上下文,支持敏感词定位。监测新媒体内容中的所有
+
外部链接,支持审核,从而及时发现“非法外链”。
+
+
+
+
+
+
+
+
+
+
+ {#
#}
+ {# #}
+ {#
#}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/dashboard/templates/dashboard/register-new.html b/dashboard/templates/dashboard/register-new.html
new file mode 100644
index 0000000..5b59a58
--- /dev/null
+++ b/dashboard/templates/dashboard/register-new.html
@@ -0,0 +1,238 @@
+{% load static %}
+
+
+
+
+ {#
#}
+
+
+
政务新媒体监测系统
+
+
+
+
+
+
+
+
+
+
+
+
+ {% if messages %}
+
+
+ {% for message in messages %}
+ {{ message }}.
+ {% endfor %}
+
+ {% endif %}
+
+
+
+
+
+
+
+
+
政务新媒体
+
管理系统
+
监测新媒体内容中的敏感词(如黄赌毒、邪教、反共等术语),
+
支持查看上下文,支持敏感词定位。监测新媒体内容中的所有
+
外部链接,支持审核,从而及时发现“非法外链”。
+
+
+
+
+
+
+
+
+
+
+ {#
#}
+ {# #}
+ {#
#}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/dashboard/urls.py b/dashboard/urls.py
index 24fbb6e..98438a6 100644
--- a/dashboard/urls.py
+++ b/dashboard/urls.py
@@ -6,6 +6,7 @@ from dashboard import views
urlpatterns = [
path('', views.home, name='dashboard-home'),
path('index/', views.index, name='dashboard-index'),
+ path('download/', views.download, name='dashboard-download'),
path('login/', views.user_login, name='dashboard-login'),
path('user/login/for/phone/', views.user_login_for_phone, name='dashboard-login-for-phone'),
# 手机用户第一次登录后完善个人信息
diff --git a/dashboard/views.py b/dashboard/views.py
index a12437f..156b9cd 100644
--- a/dashboard/views.py
+++ b/dashboard/views.py
@@ -90,12 +90,12 @@ def user_login(request):
messages.error(request, '账号或密码错误,请您确认账号和密码')
except:
messages.error(request, '账号或密码错误,请您确认账号和密码')
- return render(request, 'dashboard/login.html', {'hash_key': hash_key, 'image_url': image_url})
+ return render(request, 'dashboard/login-new.html', {'hash_key': hash_key, 'image_url': image_url})
def user_login_for_phone(request):
if request.method == 'GET':
- return render(request, 'dashboard/login-for-phone.html')
+ return render(request, 'dashboard/login-for-phone-new.html')
elif request.method == 'POST':
p_code = request.POST.get('check_code')
phone = request.POST.get('phone')
@@ -133,7 +133,7 @@ def user_login_for_phone(request):
else:
print(1233333333)
messages.error(request, '请输入正确的验证码!!!')
- return render(request, 'dashboard/login-for-phone.html')
+ return render(request, 'dashboard/login-for-phone-new.html')
def improve_personal_information(request, pk):
@@ -246,6 +246,7 @@ def register(request):
image_url = captcha_image_url(hash_key)
organization = Organization.objects.filter(status='1')
if request.method == 'POST':
+ print("111111111111111111111111")
if not request.POST.get('organization'):
messages.error(request, '请选择单位')
else:
@@ -259,10 +260,8 @@ def register(request):
messages.error(request, '请输入姓名')
else:
name = request.POST.get('name')
- if not request.POST.get('email'):
- messages.error(request, '请输入邮箱')
- else:
- email = request.POST.get('email')
+
+ # email = request.POST.get('email')
if not request.POST.get('username'):
messages.error(request, '请输入用户名')
else:
@@ -305,7 +304,7 @@ def register(request):
messages.error(request, '对不起,您输入的电话号码已被注册')
return HttpResponseRedirect('/register/')
- if username is not None and password is not None and confirm_password is not None and email is not None and flag:
+ if username is not None and password is not None and confirm_password is not None and flag:
user = User.objects.create_user(username, email, password, last_login=timezone.now())
user.is_active = True
# user.is_staff = True
@@ -318,7 +317,7 @@ def register(request):
user.save()
messages.success(request, '注册成功,请登录')
return HttpResponseRedirect('/login')
- return render(request, 'dashboard/register.html',
+ return render(request, 'dashboard/register-new.html',
{'hash_key': hash_key, 'image_url': image_url, 'organization': organization})
@@ -1175,6 +1174,8 @@ def group_super_search_by_keyword(request):
{'group': group, 'res_g_i': res_g_i, 'count': count, 'level': level})
+def download(request):
+ return render(request,'dashboard/download-app.html')
def app_download(request):
file = open('/var/www/p3/newmediamonitoring/media/app-10.apk', 'rb')
response = HttpResponse(file)
diff --git a/management/views.py b/management/views.py
index 9fa4ee6..4376839 100644
--- a/management/views.py
+++ b/management/views.py
@@ -103,7 +103,7 @@ def user_management(request):
def user_delete(request, pk):
print(pk)
user = User.objects.get(id=pk)
- # user.delete()
+ user.delete()
return HttpResponseRedirect('/management/user/management/')
diff --git a/monitor/views.py b/monitor/views.py
index adad200..681f869 100644
--- a/monitor/views.py
+++ b/monitor/views.py
@@ -9,7 +9,7 @@ from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage
from django.db.models import Sum
from django.http import HttpResponse, JsonResponse
from django.shortcuts import render
-from datetime import timedelta
+from datetime import timedelta,date
# Create your views here.
from django.views.decorators.csrf import csrf_exempt
@@ -1112,7 +1112,8 @@ def timeliness_monitoring_json_qita(request):
@login_required
def index_map(request):
- name = request.GET.get('name')
+ name = request.GET.get('name').split('市')[0]
+ print(name)
timelinessmonitoring_weixin = \
TimelinessMonitoring.objects.filter(city__contains=name, n_type='微信').aggregate(nums=Sum('update'))['nums']
timelinessmonitoring_weibo = \
@@ -1161,21 +1162,22 @@ def index_newmedia_count(request):
"douyin":douyin_list,
"qita":qita_list,
}))
-
def index_warning_count(request):
- date_list = [x.strftime('%Y-%m-%d') for x in list(pd.date_range(start='2019-07-01',end=datetime.datetime.now()))]
- data = []
- for d in date_list:
- news = News.objects.filter(type='3',date=d).count()
- data.append(news)
- print(str(data)+"6666666666666666666666666666666")
- # date = News.objects.distinct('date')
+ # date_list = [x.strftime('%Y-%m-%d') for x in list(pd.date_range(start='2019-07-01',end=datetime.datetime.now()))]
# data = []
- # date_list = []
- # for d in date:
- # date_list.append(d.date)
- # news = News.objects.filter(type='3', date=d).count()
+ # for d in date_list:
+ # news = News.objects.filter(type='3',date=d).count()
# data.append(news)
+ # print(str(data)+"6666666666666666666666666666666")
+ date = News.objects.distinct('date').order_by('-date')
+
+ data = []
+ date_list = []
+ for d in date:
+ print(d.date)
+ date_list.append(str(d.date))
+ news = News.objects.filter(type='3', date=str(d.date)).count()
+ data.append(news)
return HttpResponse(json.dumps({
"status":"1",
"data":data,