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
aa1c1728
Commit
aa1c1728
authored
Dec 13, 2022
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20221211
parent
184384d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
apps/view_atlas/view.py
+6
-1
No files found.
apps/view_atlas/view.py
View file @
aa1c1728
...
@@ -484,13 +484,18 @@ def industry_policy():
...
@@ -484,13 +484,18 @@ def industry_policy():
try
:
try
:
indu_policy
=
''
indu_policy
=
''
size
=
''
size
=
''
name_list
=
''
name
=
Industry
.
query
.
filter_by
(
nid
=
inid
)
.
first
()
.
oname
# 获取导航对应的真名
name
=
Industry
.
query
.
filter_by
(
nid
=
inid
)
.
first
()
.
oname
# 获取导航对应的真名
if
name
==
'光机电'
:
name_list
=
[
"光通讯"
,
"光学镜头"
,
"硬质合金"
,
"工业机器人"
]
# name = '煤层气'
# name = '煤层气'
print
(
name
)
print
(
name
)
if
industry_level
==
1
:
if
industry_level
==
1
:
if
policy_level
==
1
:
# 国家级
if
policy_level
==
1
:
# 国家级
indu_policy
=
InduPolicy
.
query
.
filter
(
indu_policy
=
InduPolicy
.
query
.
filter
(
InduPolicy
.
navigat
.
like
(
"
%
{}
%
"
.
format
(
name
)),
InduPolicy
.
navigat
.
like
(
"
%
{}
%
"
.
format
(
name
))
if
name
!=
'光机电'
else
text
(
''
),
InduPolicy
.
navigat
.
in_
(
name_list
)
if
name
==
'光机电'
else
text
(
''
),
InduPolicy
.
level
==
"国家"
,
InduPolicy
.
level
==
"国家"
,
InduPolicy
.
org
==
policy_type
if
policy_type
!=
'全部'
else
text
(
''
),
InduPolicy
.
org
==
policy_type
if
policy_type
!=
'全部'
else
text
(
''
),
InduPolicy
.
year
==
policy_year
if
policy_year
else
text
(
''
),
InduPolicy
.
year
==
policy_year
if
policy_year
else
text
(
''
),
...
...
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