Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mancheng
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
Administrator
mancheng
Commits
4b6d3fe9
Commit
4b6d3fe9
authored
Feb 01, 2023
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20230201
parent
46920b0b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
apps/view_choose/common.py
+5
-5
apps/view_choose/map_view.py
+3
-4
apps/view_user/view.py
+2
-0
No files found.
apps/view_choose/common.py
View file @
4b6d3fe9
...
@@ -11,7 +11,7 @@ class Common(object):
...
@@ -11,7 +11,7 @@ class Common(object):
CarrierLand
.
upload_time
>
time1
if
time1
else
text
(
''
),
CarrierLand
.
upload_time
>
time1
if
time1
else
text
(
''
),
CarrierLand
.
upload_time
<
time2
if
time2
else
text
(
''
),
CarrierLand
.
upload_time
<
time2
if
time2
else
text
(
''
),
CarrierLand
.
land_nature
==
land_nature
if
land_nature
else
text
(
''
),
CarrierLand
.
land_nature
==
land_nature
if
land_nature
else
text
(
''
),
CarrierLand
.
district_name
==
district_name
if
district_name
!=
'晋城市'
else
text
(
''
),
CarrierLand
.
district_name
==
district_name
if
district_name
else
text
(
''
),
CarrierLand
.
upload_time
>
upload_time
if
upload_time
else
text
(
''
),
CarrierLand
.
upload_time
>
upload_time
if
upload_time
else
text
(
''
),
)
.
all
()
)
.
all
()
return
area_obj_list
return
area_obj_list
...
@@ -23,7 +23,7 @@ class Common(object):
...
@@ -23,7 +23,7 @@ class Common(object):
CarrierFactory
.
upload_time
>
time1
if
time1
else
text
(
''
),
CarrierFactory
.
upload_time
>
time1
if
time1
else
text
(
''
),
CarrierFactory
.
upload_time
<
time2
if
time2
else
text
(
''
),
CarrierFactory
.
upload_time
<
time2
if
time2
else
text
(
''
),
CarrierFactory
.
audit_status
==
1
,
CarrierFactory
.
audit_status
==
1
,
CarrierFactory
.
district_name
==
district_name
if
district_name
!=
'晋城市'
else
text
(
''
),
CarrierFactory
.
district_name
==
district_name
if
district_name
else
text
(
''
),
)
.
all
()
)
.
all
()
return
area_obj_list
return
area_obj_list
...
@@ -33,7 +33,7 @@ class Common(object):
...
@@ -33,7 +33,7 @@ class Common(object):
CarrierFactory
.
upload_time
>
time1
if
time1
else
text
(
''
),
CarrierFactory
.
upload_time
>
time1
if
time1
else
text
(
''
),
CarrierFactory
.
upload_time
<
time2
if
time2
else
text
(
''
),
CarrierFactory
.
upload_time
<
time2
if
time2
else
text
(
''
),
CarrierFactory
.
audit_status
==
1
,
CarrierFactory
.
audit_status
==
1
,
CarrierFactory
.
district_name
==
district_name
if
district_name
!=
'晋城市'
else
text
(
''
),
CarrierFactory
.
district_name
==
district_name
if
district_name
else
text
(
''
),
CarrierFactory
.
upload_time
>
upload_time
if
upload_time
else
text
(
''
)
CarrierFactory
.
upload_time
>
upload_time
if
upload_time
else
text
(
''
)
)
.
all
()
)
.
all
()
return
empty_area_obj_list
return
empty_area_obj_list
...
@@ -44,7 +44,7 @@ class Common(object):
...
@@ -44,7 +44,7 @@ class Common(object):
CarrierBuild
.
upload_time
>
time1
if
time1
else
text
(
''
),
CarrierBuild
.
upload_time
>
time1
if
time1
else
text
(
''
),
CarrierBuild
.
upload_time
<
time2
if
time2
else
text
(
''
),
CarrierBuild
.
upload_time
<
time2
if
time2
else
text
(
''
),
CarrierBuild
.
audit_status
==
1
,
CarrierBuild
.
audit_status
==
1
,
CarrierBuild
.
district_name
==
district_name
if
district_name
!=
'晋城市'
else
text
(
''
),
CarrierBuild
.
district_name
==
district_name
if
district_name
else
text
(
''
),
)
.
all
()
)
.
all
()
return
area_obj_list
return
area_obj_list
...
@@ -54,7 +54,7 @@ class Common(object):
...
@@ -54,7 +54,7 @@ class Common(object):
CarrierBuild
.
upload_time
>
time1
if
time1
else
text
(
''
),
CarrierBuild
.
upload_time
>
time1
if
time1
else
text
(
''
),
CarrierBuild
.
upload_time
<
time2
if
time2
else
text
(
''
),
CarrierBuild
.
upload_time
<
time2
if
time2
else
text
(
''
),
CarrierBuild
.
audit_status
==
1
,
CarrierBuild
.
audit_status
==
1
,
CarrierBuild
.
district_name
==
district_name
if
district_name
!=
'晋城市'
else
text
(
''
),
CarrierBuild
.
district_name
==
district_name
if
district_name
else
text
(
''
),
CarrierBuild
.
upload_time
>
upload_time
if
upload_time
else
text
(
''
)
CarrierBuild
.
upload_time
>
upload_time
if
upload_time
else
text
(
''
)
)
.
all
()
)
.
all
()
return
empty_area_obj_list
return
empty_area_obj_list
apps/view_choose/map_view.py
View file @
4b6d3fe9
...
@@ -11,7 +11,6 @@ from apps.view_choose import api_address
...
@@ -11,7 +11,6 @@ from apps.view_choose import api_address
from
apps.view_choose.common
import
Common
from
apps.view_choose.common
import
Common
from
apps.util
import
verify_token
from
apps.util
import
verify_token
from
apps.view_choose.choose_view
import
get_district_name
"""产业地图页面"""
"""产业地图页面"""
...
@@ -21,10 +20,10 @@ from apps.view_choose.choose_view import get_district_name
...
@@ -21,10 +20,10 @@ from apps.view_choose.choose_view import get_district_name
def
show_area
():
def
show_area
():
req_dic
=
request
.
get_json
()
req_dic
=
request
.
get_json
()
district_name
=
req_dic
[
'district_name'
]
district_name
=
req_dic
[
'district_name'
]
token
=
request
.
headers
[
'token'
]
token
=
request
.
headers
[
'token'
]
# if not district_name:
# district_name = get_district_name(token, district_name)
district_name
=
get_district_name
(
token
)
area_data
=
[]
area_data
=
[]
# 今年的1月1号
# 今年的1月1号
...
@@ -249,7 +248,7 @@ def month_rate():
...
@@ -249,7 +248,7 @@ def month_rate():
token
=
request
.
headers
[
'token'
]
token
=
request
.
headers
[
'token'
]
district_name
=
get_district_name
(
token
)
# district_name = get_district_name(token, district_name
)
com
=
Common
()
com
=
Common
()
data_list
=
[]
data_list
=
[]
...
...
apps/view_user/view.py
View file @
4b6d3fe9
...
@@ -274,6 +274,7 @@ def login_bypwd():
...
@@ -274,6 +274,7 @@ def login_bypwd():
# 验证手机号与密码
# 验证手机号与密码
try
:
try
:
user
=
User
.
query
.
filter_by
(
mobile
=
mobile
,
flag
=
2
)
.
first
()
user
=
User
.
query
.
filter_by
(
mobile
=
mobile
,
flag
=
2
)
.
first
()
district_name
=
user
.
district_name
except
Exception
as
e
:
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DATAERR
,
msg
=
"获取用户信息失败"
)
return
jsonify
(
code
=
RET
.
DATAERR
,
msg
=
"获取用户信息失败"
)
...
@@ -316,6 +317,7 @@ def login_bypwd():
...
@@ -316,6 +317,7 @@ def login_bypwd():
data
=
{
"msg"
:
"登录成功"
,
data
=
{
"msg"
:
"登录成功"
,
"token"
:
token
,
"token"
:
token
,
"flag"
:
user
.
flag
,
"flag"
:
user
.
flag
,
"district_name"
:
district_name
,
"page_permission_list"
:
page_permission_list
,
"page_permission_list"
:
page_permission_list
,
"fun_permission_list"
:
fun_permission_list
})
"fun_permission_list"
:
fun_permission_list
})
...
...
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