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
9bb85e17
Commit
9bb85e17
authored
May 19, 2022
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20220519
parent
9809f8fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
20 deletions
+6
-20
apps/view_360company/view.py
+0
-19
apps/view_index/view.py
+6
-1
No files found.
apps/view_360company/view.py
View file @
9bb85e17
...
...
@@ -184,25 +184,6 @@ def search():
# 搜索框
if
company
:
args_query
[
"company_name"
]
=
company
# # 添加搜索历史
# try:
# user = User.query.get(user_id)
# b = []
# if user.searchlist:
# for j in user.searchlist:
# b.append(j.history)
# if company in b:
# user.searchlist.remove(user.searchlist[b.index(company)])
# if len(b) > 5:
# user.searchlist.remove(user.searchlist[0])
# search = SearchList(history=company)
# db.session.add(search)
# user.searchlist.append(search)
# db.session.commit()
# except Exception as e:
# db.session.rollback()
# current_app.logger.error(e)
# return jsonify(code=RET.DBERR, msg="数据库错误")
if
f_name
:
args_term
[
'f_name'
]
=
f_name
...
...
apps/view_index/view.py
View file @
9bb85e17
...
...
@@ -719,12 +719,17 @@ def enterprise_detail():
# 供应链地图
supplier
=
EnterpriseSupplier
.
query
.
filter_by
(
company_id
=
id
)
.
all
()
if
enterprise
:
province
=
enterprise
.
province
if
enterprise
.
province
else
""
city
=
enterprise
.
city
if
enterprise
.
city
else
""
district
=
enterprise
.
district
if
enterprise
.
district
else
""
data
=
{
"select1_info"
:
{
"id"
:
enterprise
.
id
,
"name"
:
enterprise
.
company_name
,
# 企业名
"telephone"
:
enterprise
.
telephone
if
enterprise
.
telephone
else
""
,
# 电话
"web_site"
:
enterprise
.
web_site
if
enterprise
.
web_site
else
""
,
# 网址
"email"
:
enterprise
.
email
if
enterprise
.
email
else
""
,
# 邮箱
"address"
:
enterprise
.
address
if
enterprise
.
address
else
""
,
# 地址
# "address": enterprise.address if enterprise.address else "", # 地址
"location"
:
province
+
city
+
district
,
"jwd"
:
{
"lng"
:
enterprise
.
lng
if
enterprise
.
lng
else
""
,
# 经度
"lat"
:
enterprise
.
lat
if
enterprise
.
lat
else
""
},
# 维度
"info"
:
enterprise
.
company_info
if
enterprise
.
company_info
else
""
,
# 企业信息
...
...
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