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
66077144
Commit
66077144
authored
Dec 02, 2022
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20221202
parent
b6eadcd3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
21 deletions
+12
-21
apps/inves_manage/project_manager.py
+3
-3
apps/inves_manage/siku_view.py
+9
-18
No files found.
apps/inves_manage/project_manager.py
View file @
66077144
...
...
@@ -132,7 +132,7 @@ def check_project_detail1():
try
:
project_obj
=
ProjectManagement
.
query
.
filter_by
(
id
=
project_id
,
is_delete
=
0
)
.
first
()
if
project_obj
.
industry
and
project_obj
.
industry2
:
industry
=
project_obj
.
industry
+
'
-
'
+
project_obj
.
industry2
industry
=
project_obj
.
industry
+
'
/
'
+
project_obj
.
industry2
if
project_obj
.
industry
and
not
project_obj
.
industry2
:
industry
=
project_obj
.
industry
project_data
=
{
"id"
:
project_obj
.
id
,
...
...
@@ -599,8 +599,8 @@ def project_edit():
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
SESSIONERR
,
msg
=
"进行编辑项目信息操作时用户信息校验失败,请重新登陆后尝试!"
)
if
'
-
'
in
industry
:
industry
=
industry
.
split
(
'
-
'
)
if
'
/
'
in
industry
:
industry
=
industry
.
split
(
'
/
'
)
industry1
=
industry
[
0
]
industry2
=
industry
[
1
]
else
:
...
...
apps/inves_manage/siku_view.py
View file @
66077144
...
...
@@ -466,19 +466,10 @@ def search_project():
SikuProject
.
flag
>=
flag
if
flag
else
text
(
''
),
# 线索库包含所有阶段的项目
SikuProject
.
is_delete
==
0
,
SikuProject
.
distribute_condition
.
in_
(
distribute_condition_list
)
if
distribute_condition_list
else
SikuProject
.
distribute_condition
==
distribute_condition
if
distribute_condition
else
text
(
''
),
# SikuProject.distribute_condition == distribute_condition if distribute_condition else text(''),
# SikuProject.distribute_condition.in_(distribute_condition_list) if distribute_condition_list else text(''),
SikuProject
.
project_name
==
project_name
if
project_name
else
text
(
''
),
SikuProject
.
investor_name
==
investor_name
if
investor_name
else
text
(
''
),
SikuProject
.
investor_district
==
investor_district
if
investor_district
else
text
(
''
),
SikuProject
.
project_type
.
in_
(
project_type_list
)
if
project_type_list
else
SikuProject
.
project_type
==
project_type
if
project_type
else
text
(
''
),
# SikuProject.industry.in_(
# industry_list) if industry_list else SikuProject.industry == industry if industry else text(
# ''),
# SikuProject.industry2.in_(
# industry2_list) if industry2_list else SikuProject.industry2 == industry2 if industry2 else text(
# ''),
SikuProject
.
investment_volume
>=
float
(
investment_volume_list
[
0
])
if
investment_volume_list
else
text
(
''
),
SikuProject
.
investment_volume
<=
float
(
investment_volume_list
[
1
])
if
investment_volume_list
else
text
(
''
),
SikuProject
.
investment_volume
>=
float
(
investment_volume
[
0
])
if
investment_volume
and
not
investment_volume_list
else
text
(
''
),
...
...
@@ -619,9 +610,9 @@ def add_project():
investor_district1
=
investor_district
investor_district2
=
''
project_type
=
req_dic
[
'project_type'
]
if
'
-
'
in
project_type
:
project_type1
=
project_type
.
split
(
'
-
'
)[
0
]
project_type2
=
project_type
.
split
(
'
-
'
)[
1
]
if
'
/
'
in
project_type
:
project_type1
=
project_type
.
split
(
'
/
'
)[
0
]
project_type2
=
project_type
.
split
(
'
/
'
)[
1
]
else
:
project_type1
=
project_type
project_type2
=
''
...
...
@@ -1060,9 +1051,9 @@ def edit_project_detail():
investor_district1
=
investor_district
investor_district2
=
''
project_type
=
req_dic
[
'project_type'
]
if
'
-
'
in
project_type
:
project_type1
=
project_type
.
split
(
'
-
'
)[
0
]
project_type2
=
project_type
.
split
(
'
-
'
)[
1
]
if
'
/
'
in
project_type
:
project_type1
=
project_type
.
split
(
'
/
'
)[
0
]
project_type2
=
project_type
.
split
(
'
/
'
)[
1
]
else
:
project_type1
=
project_type
project_type2
=
''
...
...
@@ -1517,9 +1508,9 @@ def edit_project():
else
:
investor_district1
=
investor_district
investor_district2
=
''
if
'
-
'
in
project_type
:
project_type1
=
project_type
.
split
(
'
-
'
)[
0
]
project_type2
=
project_type
.
split
(
'
-
'
)[
1
]
if
'
/
'
in
project_type
:
project_type1
=
project_type
.
split
(
'
/
'
)[
0
]
project_type2
=
project_type
.
split
(
'
/
'
)[
1
]
else
:
project_type1
=
project_type
project_type2
=
''
...
...
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