Exemple #1
0
def search():
    if not (g.user.is_super_leader() or g.user.is_aduit() or g.user.is_finance()):
        abort(403)
    title = u'搜索业务售卖类型分析'
    action = request.values.get('action', '')
    if action == 'excel':
        return write_pie_excel(search_excle_data())
    return tpl('/data_query/super_leader/sale_type.html',
               title=title,
               type='search')
Exemple #2
0
def douban_order():
    if not (g.user.is_super_leader() or g.user.is_aduit() or g.user.is_finance()):
        abort(403)
    title = u'豆瓣订单行业分析'
    action = request.values.get('action', '')
    if action == 'excel':
        return write_pie_excel(douban_order_excle_data())
    return tpl('/data_query/super_leader/industry.html',
               title=title,
               type='douban')
Exemple #3
0
def client_order():
    if not (g.user.is_super_leader() or g.user.is_aduit() or g.user.is_finance()):
        abort(403)
    title = u'新媒体订单客户分析'
    action = request.values.get('action', '')
    if action == 'excel':
        return write_pie_excel(client_order_excle_data())
    return tpl('/data_query/super_leader/client.html',
               title=title,
               type='client')
Exemple #4
0
def search():
    if not (g.user.is_super_leader() or g.user.is_aduit() or g.user.is_finance()):
        abort(403)
    title = u'搜索业务媒体执行额分析'
    action = request.values.get('action', '')
    if action == 'excel':
        return write_pie_excel(search_excle_data())
    return tpl('/data_query/super_leader/medium_info.html',
               title=title,
               type="search")
Exemple #5
0
def douban_order():
    if not (g.user.is_super_leader() or g.user.is_aduit()
            or g.user.is_finance()):
        abort(403)
    title = u'豆瓣订单行业分析'
    action = request.values.get('action', '')
    if action == 'excel':
        return write_pie_excel(douban_order_excle_data())
    return tpl('/data_query/super_leader/industry.html',
               title=title,
               type='douban')
Exemple #6
0
def client_order():
    if not (g.user.is_super_leader() or g.user.is_aduit()
            or g.user.is_finance()):
        abort(403)
    title = u'新媒体订单行业分析'
    action = request.values.get('action', '')
    if action == 'excel':
        return write_pie_excel(client_order_excle_data())
    return tpl('/data_query/super_leader/agent.html',
               title=title,
               type='client')