diff --git a/backstage/views.py b/backstage/views.py index 1c8f489..01f7482 100644 --- a/backstage/views.py +++ b/backstage/views.py @@ -16,7 +16,6 @@ def backstage_new_media_public_opinion(request): if request.method == 'POST': filename = request.FILES.get('file') date = request.POST.get("date") - print(filename) if not os.path.exists(settings.MEDIA_ROOT): os.makedirs(settings.MEDIA_ROOT) if filename is None: @@ -61,7 +60,6 @@ def backstage_new_media_public_opinion(request): results=results, update=update, silet=silet, start_data=start_data, end_data=end_data, comment=0, date=date) - print(timelinessmonitoring.n_type) timelinessmonitoring.save() # else: # messages.error(request, '更新次数只能为数字!!!') @@ -129,7 +127,6 @@ def backstage_comment(request): v = l.split(',') try: if v[0] != '评论': - print(v[0]) comment = v[0] reply = v[1] name = v[2] diff --git a/dashboard/static/dashboard/css/home.css b/dashboard/static/dashboard/css/home.css index ca5fa77..ea74078 100644 --- a/dashboard/static/dashboard/css/home.css +++ b/dashboard/static/dashboard/css/home.css @@ -144,6 +144,7 @@ background-color: #A5BBFF; width: 100%; height: 250px; + margin-top: -40px; } .download-head { diff --git a/dashboard/templates/dashboard/base/header.html b/dashboard/templates/dashboard/base/header.html index 3363c06..099bed3 100644 --- a/dashboard/templates/dashboard/base/header.html +++ b/dashboard/templates/dashboard/base/header.html @@ -12,7 +12,7 @@
  • diff --git a/dashboard/templates/dashboard/download-app.html b/dashboard/templates/dashboard/download-app.html index 00044f5..947077c 100644 --- a/dashboard/templates/dashboard/download-app.html +++ b/dashboard/templates/dashboard/download-app.html @@ -28,7 +28,7 @@
    -
    +{#
    #} {# #} - -
    +{# #} +{#
    #}
    @@ -48,22 +48,22 @@
    -

    用户量

    -

    11120

    +

    监测新媒体数量

    +

    {{ newmedia_count }}

    -

    每日使用量

    -

    28936478

    +

    分析文章数量

    +

    {{ article_count }}

    -

    处理文章数量

    -

    30065981

    +

    预警次数

    +

    {{ news_count }}

    @@ -74,8 +74,8 @@
    @@ -86,8 +86,8 @@
    -

    发布时效性监测

    -

    监测最新发布时间、最长更新时间、发布不达标天数等,全面分析新媒体内容发布及时性。

    +

    更新时效性监测

    +

    监测新媒体更新时间,统计最长更新间隔时间、达标天数、最近更新时间等,分析新媒体更新时效性。

    @@ -97,8 +97,8 @@ src="{% static 'dashboard/image/图层 11.png' %}">
    -

    错别字及敏感词监测

    -

    监测新媒体内容中存在的错别字及敏感词,能准确校对政治性错误,并提供错别字及敏感词的定位功能。

    +

    错别字敏感词监测

    +

    采用大数据平台分析发布内容的准确性,提供错别字、敏感词校对建议。

    @@ -106,8 +106,8 @@ style="display: inline-block; vertical-align: middle;margin-top: 10px;width: 40px;height: 35px;" src="{% static 'dashboard/image/图层 12.png' %}">
    -

    外链监测

    -

    监测新媒体内容中的所有外部链接,支持审核,从而及时发现“非法外链”。

    +

    链接有效性监测

    +

    监测新媒体发布内容中所有外部链接,按错误类型汇总各个新媒体的错链监测情况。

    @@ -115,8 +115,8 @@ style="display: inline-block; vertical-align: middle;margin-top: 10px;width: 35px;height: 35px;" src="{% static 'dashboard/image/图层 14.png' %}">
    -

    影响力分析

    -

    在监测到的常规运营指标数据(如发布量、阅读量等)的基础上,通过影响力传播算法,获得新媒体的影响力传播指数。

    +

    互动行为监测

    +

    监测政务新媒体是否提供有效互动功能,群众评论是否及时回应,分析评论数量和评论热词。

    @@ -124,8 +124,8 @@ style="display: inline-block; vertical-align: middle;margin-top: 17px;width: 40px;height: 30px;" src="{% static 'dashboard/image/热点.png' %}">
    -

    热点文章榜

    -

    根据新媒体文章的阅读与分享情况,分析新媒体粉丝关注热点,为内容运营提供依据。

    +

    政务新媒体矩阵

    +

    构建政务新媒体矩阵,体现归属地域、部门领域以及行业特点,提供相应统计、分析和管理辅助。

    @@ -133,8 +133,8 @@ style="display: inline-block; vertical-align: middle;margin-top: 10px;width: 35px;height: 35px;" src="{% static 'dashboard/image/月度考核.png' %}">
    -

    新媒体绩效考核

    -

    基于新媒体矩阵考核指标,定制新媒体绩效考核排名报表。

    +

    新媒体协同宣传

    +

    跨越新媒体平台实现统一管理和协同宣传,使各级各部门能快速响应统一宣传任务,支持短信和语音提醒。

    @@ -143,8 +143,8 @@
    -

    新媒体监测优势
    - ADVANTAGES OF NEW MEDIA MONITORING +

    产品与服务
    + PRODUCTS AND SERVICES

    @@ -153,23 +153,23 @@
    -

    全面

    -

    支持查看可用性统计数据、可用性持续时间、监测点详情监测数据。

    +

    政务新媒体监测服务

    +

    监测政务新媒体更新时效性、评论互动,分析发布内容,掌握舆情热点。

    -

    快速

    -

    日诊断页面资源数可超过1000万。一旦发现问题,则秒级告警。

    +

    网站监测服务

    +

    监测网站功能开设完成度、内容发布准确度、内容更新频度、网站联通有效性。

    -

    准确

    -

    数据预处理,对数据进行归一、过滤,确保数据一致性与准确性。

    +

    政务新媒体统一管理

    +

    实现政务新媒体及其运维人员、管理人员、主体单位综合信息管理。

    - -

    稳定

    -

    自动化的运维监控、异常流量发现并处理的技术。

    + +

    大数据分析服务

    +

    提供大规模数据采集和分析服务,通过云端服务方式向用户提供分析结果和决策支持。

    {#
    #} @@ -184,14 +184,16 @@
    -

    Android客户端下载

    +

    政务新媒体管理

    +

    Android端

    -

    IOS客户端下载

    +

    政务新媒体管理

    +

    iOS端

    @@ -200,58 +202,58 @@
    -
    -
    - -
    -
    - -
    - -
    -
    - -
    -
    - -
    -
    - - - - -
    -
    - - - - -
    +{#
    #} +{#
    #} +{# #} +{#
    #} +{#
    #} +{##} +{#
    #} +{# #} +{#
    #} +{#
    #} +{# #} +{#
    #} +{#
    #} +{# #} +{#
    #} +{#
    #} +{##} +{##} +{##} +{##} +{#
    #} +{#
    #} +{##} +{##} +{##} +{##} +{#
    #}
    -
    - +
    -
    -

    合作连接

    - 公众号 - 微博 - 抖音 - 头条 - 其他 +
    +{#

    合作连接

    #} +{# 公众号#} +{# 微博#} +{# 抖音#} +{# 头条#} +{# 其他#}
    -
    +{#
    #}
    -
    -

    电话:15293151340

    -

    电子邮箱:greatfeature@126.com

    -

    公司地址:兰州市城关区南昌路421号华宇大厦C座

    -
    甘肃大未来科技文化发展有限公司
    +
    +{#

    电话:15293151340

    #} +

    甘肃大未来科技 版权所有 陇ICP备2020003882号-1

    +

    © CopyRight 2020 gsdwl.com. All Rights Reserved

    +{#
    甘肃大未来科技文化发展有限公司
    #}
    diff --git a/dashboard/templates/dashboard/login-for-phone-new.html b/dashboard/templates/dashboard/login-for-phone-new.html index 542603b..360beee 100644 --- a/dashboard/templates/dashboard/login-for-phone-new.html +++ b/dashboard/templates/dashboard/login-for-phone-new.html @@ -40,7 +40,7 @@
    主页 + href="{% url 'dashboard-home' %}">首页 登录
    主页 + href="{% url 'dashboard-home' %}">首页 手机号注册/登录 注册
    diff --git a/dashboard/templates/dashboard/register-new.html b/dashboard/templates/dashboard/register-new.html index 5b59a58..6a468c4 100644 --- a/dashboard/templates/dashboard/register-new.html +++ b/dashboard/templates/dashboard/register-new.html @@ -40,7 +40,7 @@
    主页 + href="{% url 'dashboard-home' %}">首页 登录 0: @@ -246,7 +252,6 @@ 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: @@ -279,7 +284,6 @@ def register(request): image = '/profile/user_default.jpg' else: image = request.FILES.get('image') - print(str(image) + "1111111111111111111111111111111111111111111") if request.POST.get('sex') == '1': sex = '男' elif request.POST.get('sex') == '2': @@ -393,7 +397,6 @@ def get_organization(request): else: d['district'] = '' topten_list.append(d) - print(str(topten_list)) return render(request, 'dashboard/results_by_keywords.html', {'topten_list': topten_list}) @@ -433,7 +436,6 @@ def user_search_by_keyword(request): district = o.district keytype = request.POST.get('keytype') keyword = request.POST.get('ketword') - print(keytype, keyword) userpaginator = None if level == 1: if keytype == '1': @@ -489,7 +491,6 @@ def user_search_by_keyword(request): o['phone'] = User.objects.get(id=u.user_id).username o['organization'] = u.organization.name organization_id = u.organization_id - print(organization_id) if Organization.objects.get(id=organization_id).province and Organization.objects.get( id=organization_id).cities and Organization.objects.get( id=organization_id).district and Organization.objects.get( @@ -528,7 +529,6 @@ def user_search_by_keyword(request): Area_code_2020.objects.get(code=Organization.objects.get(id=organization_id).province))).replace( 'None', '') userallinfo.append(o) - print(userallinfo) return render(request, 'management/user-management.html', {'userallinfo': userallinfo, 'userpaginator': userpaginator, 'user_count': user_count}) @@ -537,7 +537,6 @@ def user_search_by_keyword(request): def news_search_by_keyword(request): keytype = request.POST.get('keytype') keyword = request.POST.get('keyword') - print(keytype, keyword) news = None if keytype == '1': news = News.objects.filter(type='0', title__contains=keyword) @@ -588,12 +587,10 @@ def organization_search_by_keyword(request): keyword = request.POST.get('keyword') user = request.user o = Organization.objects.get(userprofile__user_id=user.id) - print(o) level = o.level.level province = o.province cities = o.cities district = o.district - print(level, province, cities, district) organization = None res = [] if level == 1: @@ -613,7 +610,6 @@ def organization_search_by_keyword(request): organization = Organization.objects.filter(name__contains=keyword).order_by('-created') organization_count = organization.count() for i in organization[:30]: - print(i) o = dict() o['id'] = str(i.id) o['name'] = i.name @@ -1069,7 +1065,6 @@ def group_init_search_by_keyword(request): group_initer = Group.objects.filter(user_id=user.id, name__contains=keyword).order_by('-created') elif keytype == '2': group_initer = Group.objects.filter(user_id=user.id, type__type__contains=keyword).order_by('-created') - print(group_initer) res_g_i = [] init_count = group_initer.count() for r_g_i in group_initer[:30]: @@ -1175,7 +1170,9 @@ def group_super_search_by_keyword(request): def download(request): - return render(request,'dashboard/download-app.html') + 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 4376839..bd04461 100644 --- a/management/views.py +++ b/management/views.py @@ -55,7 +55,6 @@ def user_management(request): o['phone'] = u.user.username o['organization'] = u.organization.name organization_id = u.organization.id - print(organization_id) if Organization.objects.get(id=organization_id).province and Organization.objects.get( id=organization_id).cities and Organization.objects.get( id=organization_id).district and Organization.objects.get( @@ -94,14 +93,12 @@ def user_management(request): Area_code_2020.objects.get(code=Organization.objects.get(id=organization_id).province))).replace( 'None', '') userallinfo.append(o) - print(userallinfo) return render(request, 'management/user-management.html', {'userallinfo': userallinfo, 'userpaginator': userpaginator,'user_count':user_count}) @login_required def user_delete(request, pk): - print(pk) user = User.objects.get(id=pk) user.delete() return HttpResponseRedirect('/management/user/management/') @@ -122,7 +119,6 @@ def user_update(request, pk): passwordold = request.POST.get('passwordold') passwordnew = request.POST.get('passwordnew') confirm_password = request.POST.get('confirm_password') - print(len(passwordold), len(passwordnew), confirm_password) if len(passwordold) != 0 and len(passwordnew) != 0 and len(confirm_password) != 0: if passwordnew == confirm_password: user.email = email @@ -160,11 +156,9 @@ def group_management_init(request): user = request.user level = Userprofile.objects.get(user_id=user.id).organization.level.level - print(level) init_count = Group.objects.filter(user_id=user.id).count() # 创建的矩阵 group_initer = Group.objects.filter(user_id=user.id).order_by('-created') - print(group_initer) paginator = Paginator(group_initer, 6) page = int(request.GET.get('page', 1)) try: @@ -305,7 +299,6 @@ def group_update(request, pk): g_c_c_res.append([list(g_c_c)[0], list(g_c_c)[1]]) group_type = Group_type.objects.all() group_admin = Group_admin.objects.filter(group_id=pk) - print(pk) g_a_list = [] for g_a in group_admin: o = dict() @@ -374,7 +367,6 @@ def group_update(request, pk): status = request.POST.get('status') province = request.POST.get('province') classify = request.POST.get('classify') - print(str(province) + "66666666666666666666666666") if province != '' and province.isdigit(): province_r = province else: @@ -468,7 +460,6 @@ def group_create(request): village_r = village else: village_r = village - print(name, presentation, image, type, status, province, city, district, town, village) if name is not None: group = Group(name=name, presentation=presentation, image=image, type_id=type, status=status, province=province_r, cities=city_r, district=district_r, town=town_r, village=village_r, @@ -512,7 +503,6 @@ def get_user(request): d['phone'] = u.user.username d['o'] = u.organization.name topten_list.append(d) - print(str(topten_list)) return render(request, 'management/user_results_by_keywords.html', {'topten_list': topten_list}) @@ -524,11 +514,9 @@ def group_admin_create(request, pk): messages.error(request, '请选择用户') else: user_name = request.POST.get('user_name') - print(str(user_name)+"1111111111111111111111") res = User.objects.filter(username=user_name).count() if res > 0: user_id = User.objects.get(username=user_name).id - print(str(user_id)+"===================================") else: messages.error(request, '您填写的用户不存在') results = Group_admin.objects.filter(user_id=user_id, group_id=pk).count() @@ -559,11 +547,9 @@ def group_user_create(request, pk): messages.error(request, '请选择用户') else: user_name = request.POST.get('user_name') - print(str(user_name) + "1111111111111111111111") res = User.objects.filter(username=user_name).count() if res > 0: user_id = User.objects.get(username=user_name).id - print(str(user_id) + "===================================") else: messages.error(request, '您填写的用户不存在') results = Group_user.objects.filter(user_id=user_id, group_id=pk).count() @@ -599,12 +585,10 @@ def organization_management(request): organization_count = Organization.objects.all().count() user = request.user o = Organization.objects.get(userprofile__user_id=user.id) - print(o) level = o.level.level province = o.province cities = o.cities district = o.district - print(level, province, cities, district) organization = None res = [] if level == 1: @@ -626,7 +610,6 @@ def organization_management(request): except EmptyPage: organization = paginator.page(paginator.num_pages) for i in organization: - print(i) o = dict() o['id'] = str(i.id) o['name'] = i.name @@ -698,7 +681,6 @@ def organization_update(request, pk): if province: province = Area_code_2020.objects.get(name=province).code city = request.POST.get('city') - print(str(city) + "99999999999999999") if city: city = Area_code_2020.objects.get(name=city).code district = request.POST.get('district') @@ -839,7 +821,6 @@ def newmedia_management_create_weibo(request): if request.method == 'POST': code = request.POST.get('code') weiboid = request.POST.get('weiboid') - print(str(weiboid) + "11111111111111111111111111111111111111") alias = request.POST.get('alias') image = request.FILES.get('image') o = request.POST.get('organization') @@ -927,7 +908,6 @@ def newmedia_management_create_douyin(request): douyin_status_choices_list = [] for w in range(2): douyin_status_choices_list.append(w) - print(douyin_status_choices_list) organization = Organization.objects.filter(status='1').order_by('-name') if request.method == 'POST': code = request.POST.get('code') @@ -1718,7 +1698,6 @@ def news_management_create(request): content = request.POST.get('content') source = request.POST.get('source') image = request.FILES.get('image') - print(str(image) + "5555555555555555555555555") t = None if type == '政策依据': t = '0' @@ -1735,7 +1714,6 @@ def news_management_create(request): elif type == '重点新闻': t = '6' - print(str(title), str(content)) news = News(type=t, title=title, author=author, date=date, content=content, source=source, image=image) news.save() messages.success(request, '添加成功!!!') diff --git a/monitor/views.py b/monitor/views.py index 681f869..f17e793 100644 --- a/monitor/views.py +++ b/monitor/views.py @@ -806,7 +806,6 @@ def timeliness_monitoring_json(request): linxia = [] for d in date: date_list.append(d.date) - print(str(d.date)+"1111111111111111111111111") lanzhou.append(TimelinessMonitoring.objects.filter(city__contains='兰州',date=d.date).aggregate(nums=Sum('update'))['nums']) jiayuguan.append(TimelinessMonitoring.objects.filter(city__contains='嘉峪关',date=d.date).aggregate(nums=Sum('update'))['nums']) jinchang.append(TimelinessMonitoring.objects.filter(city__contains='金昌',date=d.date).aggregate(nums=Sum('update'))['nums']) @@ -860,7 +859,6 @@ def timeliness_monitoring_json_weixin(request): linxia = [] for d in date: date_list.append(d.date) - print(str(d.date)+"1111111111111111111111111") lanzhou.append(TimelinessMonitoring.objects.filter(city__contains='兰州',date=d.date,n_type='微信').aggregate(nums=Sum('update'))['nums']) jiayuguan.append(TimelinessMonitoring.objects.filter(city__contains='嘉峪关',date=d.date,n_type='微信').aggregate(nums=Sum('update'))['nums']) jinchang.append(TimelinessMonitoring.objects.filter(city__contains='金昌',date=d.date,n_type='微信').aggregate(nums=Sum('update'))['nums']) @@ -914,7 +912,6 @@ def timeliness_monitoring_json_weibo(request): linxia = [] for d in date: date_list.append(d.date) - print(str(d.date)+"1111111111111111111111111") lanzhou.append(TimelinessMonitoring.objects.filter(city__contains='兰州',date=d.date,n_type='微博').aggregate(nums=Sum('update'))['nums']) jiayuguan.append(TimelinessMonitoring.objects.filter(city__contains='嘉峪关',date=d.date,n_type='微博').aggregate(nums=Sum('update'))['nums']) jinchang.append(TimelinessMonitoring.objects.filter(city__contains='金昌',date=d.date,n_type='微博').aggregate(nums=Sum('update'))['nums']) @@ -968,7 +965,6 @@ def timeliness_monitoring_json_toutiao(request): linxia = [] for d in date: date_list.append(d.date) - print(str(d.date)+"1111111111111111111111111") lanzhou.append(TimelinessMonitoring.objects.filter(city__contains='兰州',date=d.date,n_type__contains='头条').aggregate(nums=Sum('update'))['nums']) jiayuguan.append(TimelinessMonitoring.objects.filter(city__contains='嘉峪关',date=d.date,n_type__contains='头条').aggregate(nums=Sum('update'))['nums']) jinchang.append(TimelinessMonitoring.objects.filter(city__contains='金昌',date=d.date,n_type__contains='头条').aggregate(nums=Sum('update'))['nums']) @@ -1022,7 +1018,6 @@ def timeliness_monitoring_json_douyin(request): linxia = [] for d in date: date_list.append(d.date) - print(str(d.date)+"1111111111111111111111111") lanzhou.append(TimelinessMonitoring.objects.filter(city__contains='兰州',date=d.date,n_type__contains='抖音').aggregate(nums=Sum('update'))['nums']) jiayuguan.append(TimelinessMonitoring.objects.filter(city__contains='嘉峪关',date=d.date,n_type__contains='抖音').aggregate(nums=Sum('update'))['nums']) jinchang.append(TimelinessMonitoring.objects.filter(city__contains='金昌',date=d.date,n_type__contains='抖音').aggregate(nums=Sum('update'))['nums']) @@ -1076,7 +1071,6 @@ def timeliness_monitoring_json_qita(request): linxia = [] for d in date: date_list.append(d.date) - print(str(d.date)+"1111111111111111111111111") lanzhou.append(TimelinessMonitoring.objects.filter(city__contains='兰州',date=d.date).exclude(n_type__in=['微信', '微博', '今日头条', '抖音']).aggregate(nums=Sum('update'))['nums']) jiayuguan.append(TimelinessMonitoring.objects.filter(city__contains='嘉峪关',date=d.date).exclude(n_type__in=['微信', '微博', '今日头条', '抖音']).aggregate(nums=Sum('update'))['nums']) jinchang.append(TimelinessMonitoring.objects.filter(city__contains='金昌',date=d.date).exclude(n_type__in=['微信', '微博', '今日头条', '抖音']).aggregate(nums=Sum('update'))['nums']) @@ -1113,7 +1107,6 @@ def timeliness_monitoring_json_qita(request): @login_required def index_map(request): 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 = \ @@ -1174,7 +1167,6 @@ def index_warning_count(request): 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)