Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tour_business
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏强
tour_business
Commits
10eaf7d3
Commit
10eaf7d3
authored
Jul 16, 2020
by
魏强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增对账权限;
parent
60fb07a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Controller/IndexController.py
+4
-4
No files found.
Controller/IndexController.py
View file @
10eaf7d3
...
@@ -57,7 +57,7 @@ def index():
...
@@ -57,7 +57,7 @@ def index():
admin_week
[
'spot_info'
]
=
AgentService
.
get_spot_info
(
cur_user
)
admin_week
[
'spot_info'
]
=
AgentService
.
get_spot_info
(
cur_user
)
return
jsonify
(
BASE_RESPONSE
(
data
=
admin_week
)
.
to_dict
())
return
jsonify
(
BASE_RESPONSE
(
data
=
admin_week
)
.
to_dict
())
elif
cur_user
.
level
==
2
:
elif
cur_user
.
level
==
2
or
cur_user
.
level
==
4
:
return
jsonify
(
OPERATE_LEVEL_ERROR
)
return
jsonify
(
OPERATE_LEVEL_ERROR
)
else
:
else
:
return
jsonify
(
OPERATE_ERROR
)
return
jsonify
(
OPERATE_ERROR
)
...
@@ -99,7 +99,7 @@ def index():
...
@@ -99,7 +99,7 @@ def index():
admin_month
[
'spot_info'
]
=
AgentService
.
get_spot_info
(
cur_user
)
admin_month
[
'spot_info'
]
=
AgentService
.
get_spot_info
(
cur_user
)
return
jsonify
(
BASE_RESPONSE
(
data
=
admin_month
)
.
to_dict
())
return
jsonify
(
BASE_RESPONSE
(
data
=
admin_month
)
.
to_dict
())
elif
cur_user
.
level
==
2
:
elif
cur_user
.
level
==
2
or
cur_user
.
level
==
4
:
return
jsonify
(
OPERATE_LEVEL_ERROR
)
return
jsonify
(
OPERATE_LEVEL_ERROR
)
else
:
else
:
return
jsonify
(
OPERATE_ERROR
)
return
jsonify
(
OPERATE_ERROR
)
...
@@ -119,7 +119,7 @@ def index():
...
@@ -119,7 +119,7 @@ def index():
admin_history
[
'history_invalid_money'
]
=
invalid_money_history
admin_history
[
'history_invalid_money'
]
=
invalid_money_history
admin_history
[
'spot_info'
]
=
AgentService
.
get_spot_info
(
cur_user
)
admin_history
[
'spot_info'
]
=
AgentService
.
get_spot_info
(
cur_user
)
return
jsonify
(
BASE_RESPONSE
(
data
=
admin_history
)
.
to_dict
())
return
jsonify
(
BASE_RESPONSE
(
data
=
admin_history
)
.
to_dict
())
elif
cur_user
.
level
==
2
:
elif
cur_user
.
level
==
2
or
cur_user
.
level
==
4
:
agent_history
=
{}
agent_history
=
{}
start_time_week
,
end_time_week
=
Helper
.
getWeekDate
()
start_time_week
,
end_time_week
=
Helper
.
getWeekDate
()
start_time_lastweek
,
end_time_lastweek
=
Helper
.
getLastWeekDate
()
start_time_lastweek
,
end_time_lastweek
=
Helper
.
getLastWeekDate
()
...
@@ -186,7 +186,7 @@ def index():
...
@@ -186,7 +186,7 @@ def index():
admin_today
[
'spot_info'
]
=
AgentService
.
get_spot_info
(
cur_user
)
admin_today
[
'spot_info'
]
=
AgentService
.
get_spot_info
(
cur_user
)
return
jsonify
(
BASE_RESPONSE
(
data
=
admin_today
)
.
to_dict
())
return
jsonify
(
BASE_RESPONSE
(
data
=
admin_today
)
.
to_dict
())
elif
cur_user
.
level
==
2
:
elif
cur_user
.
level
==
2
or
cur_user
.
level
==
4
:
# 代理商
# 代理商
agent_today
=
{}
agent_today
=
{}
agent_today
[
'today_income'
]
=
today_income
agent_today
[
'today_income'
]
=
today_income
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment