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
0ef8c144
Commit
0ef8c144
authored
Feb 14, 2022
by
赵宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
2202041e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
17 deletions
+19
-17
apps/view_index/view.py
+17
-15
apps/view_map/view.py
+2
-2
No files found.
apps/view_index/view.py
View file @
0ef8c144
...
@@ -527,21 +527,23 @@ def company_detail():
...
@@ -527,21 +527,23 @@ def company_detail():
"scope"
:
company
.
business_scope
if
company
.
business_scope
else
"-"
,
# 企业经营范围
"scope"
:
company
.
business_scope
if
company
.
business_scope
else
"-"
,
# 企业经营范围
# "collect": "1",
# "collect": "1",
# "choice": "3"
# "choice": "3"
"tax_code"
:
company
.
tax_code
if
company
.
tax_code
else
"-"
,
"tax_code"
:
company
.
tax_code
if
company
.
tax_code
else
""
,
"register_code"
:
company
.
register_code
if
company
.
register_code
else
"-"
,
"register_code"
:
company
.
register_code
if
company
.
register_code
else
""
,
"high_new"
:
'高新技术企业'
if
company
.
high_new
==
'1'
else
"-"
,
"high_new"
:
'高新技术企业'
if
company
.
high_new
==
'1'
else
""
,
"tbe"
:
'科技型中小企业'
if
company
.
tbe
==
'1'
else
"-"
,
"tbe"
:
'科技型中小企业'
if
company
.
tbe
==
'1'
else
""
,
# "fianacing": '融资企业' if company.fianacing == '1'' else "-",
# "fianacing": '融资企业' if company.fianacing == '1'' else "",
"quoted_company"
:
'上市企业'
if
company
.
quoted_company
==
'1'
else
"-"
,
"quoted_company"
:
'上市企业'
if
company
.
quoted_company
==
'1'
else
""
,
# "patent": '专利企业' if company.patent == '1'' else "-",
# "patent": '专利企业' if company.patent == '1'' else "",
"unicorn"
:
'独角兽企业'
if
company
.
unicorn
==
'1'
else
"-"
,
"unicorn"
:
'独角兽企业'
if
company
.
unicorn
==
'1'
else
""
,
"dengl"
:
'瞪羚'
if
company
.
dengl
==
'1'
else
"-"
,
"dengl"
:
'瞪羚'
if
company
.
dengl
==
'1'
else
""
,
"isfive"
:
'中国500强'
if
company
.
isfive
==
'1'
else
"-"
,
"isfive"
:
'中国500强'
if
company
.
isfive
==
'1'
else
""
,
"zjtg"
:
'山西专精特新企业'
if
company
.
zjtg
==
'1'
else
"-"
,
"zjtg"
:
'山西专精特新企业'
if
company
.
zjtg
==
'1'
else
""
,
"zjtg_gjjxjr"
:
'国家级专精特新小巨人企业'
if
company
.
zjtg_gjjxjr
==
'1'
else
"-"
,
"zjtg_gjjxjr"
:
'国家级专精特新小巨人企业'
if
company
.
zjtg_gjjxjr
==
'1'
else
""
,
"zjtg_sjxjr"
:
'省级专精特新小巨人企业'
if
company
.
zjtg_sjxjr
==
'1'
else
"-"
,
"zjtg_sjxjr"
:
'省级专精特新小巨人企业'
if
company
.
zjtg_sjxjr
==
'1'
else
""
,
"tbe_sjmy"
:
'省级民营科技企业'
if
company
.
tbe_sjmy
==
'1'
else
"-"
,
"tbe_sjmy"
:
'省级民营科技企业'
if
company
.
tbe_sjmy
==
'1'
else
""
,
"scale"
:
'规模以上企业'
if
company
.
tbe_sjmy
==
'1'
else
""
,
},
},
# 经营状况数据封装
# 经营状况数据封装
"select2_info"
:
{
"select2_info"
:
{
...
...
apps/view_map/view.py
View file @
0ef8c144
...
@@ -54,7 +54,7 @@ def attract_map():
...
@@ -54,7 +54,7 @@ def attract_map():
province_data
=
Enterprise
.
query
.
filter_by
(
province
=
pro
)
.
first
()
province_data
=
Enterprise
.
query
.
filter_by
(
province
=
pro
)
.
first
()
df
.
append
({
"name"
:
pro
,
df
.
append
({
"name"
:
pro
,
"value"
:
num
,
"value"
:
num
,
"color"
:
jishu
(
num
),
#
"color": jishu(num),
"jwd"
:
{
"lng"
:
province_data
.
p_lng
,
"lat"
:
province_data
.
p_lat
}})
"jwd"
:
{
"lng"
:
province_data
.
p_lng
,
"lat"
:
province_data
.
p_lat
}})
return
jsonify
(
code
=
RET
.
OK
,
msg
=
"获取成功"
,
data
=
df
)
return
jsonify
(
code
=
RET
.
OK
,
msg
=
"获取成功"
,
data
=
df
)
...
@@ -66,7 +66,7 @@ def attract_map():
...
@@ -66,7 +66,7 @@ def attract_map():
city_data
=
Enterprise
.
query
.
filter_by
(
province
=
province
,
city
=
cit
)
.
first
()
city_data
=
Enterprise
.
query
.
filter_by
(
province
=
province
,
city
=
cit
)
.
first
()
df
.
append
({
"name"
:
cit
,
df
.
append
({
"name"
:
cit
,
"value"
:
num
,
"value"
:
num
,
"color"
:
jishu
(
num
),
#
"color": jishu(num),
"jwd"
:
{
"lng"
:
city_data
.
c_lng
,
"lat"
:
city_data
.
c_lat
}})
"jwd"
:
{
"lng"
:
city_data
.
c_lng
,
"lat"
:
city_data
.
c_lat
}})
return
jsonify
(
code
=
RET
.
OK
,
msg
=
"获取成功"
,
data
=
df
)
return
jsonify
(
code
=
RET
.
OK
,
msg
=
"获取成功"
,
data
=
df
)
...
...
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