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
4a2432f4
Commit
4a2432f4
authored
May 19, 2022
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20220519
parent
9bb85e17
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletions
+17
-1
apps/view_index/view.py
+10
-1
apps/view_mobile/view_atlas.py
+7
-0
No files found.
apps/view_index/view.py
View file @
4a2432f4
...
...
@@ -529,12 +529,19 @@ def company_detail():
# 供应链地图
supplier
=
CompanySupplier
.
query
.
filter_by
(
company_id
=
id
)
.
all
()
if
company
:
province
=
company
.
province
if
company
.
province
else
""
city
=
company
.
city
if
company
.
city
else
""
if
city
==
province
:
city
=
''
district
=
company
.
district
if
company
.
district
else
""
data
=
{
"select1_info"
:
{
"id"
:
company
.
id
,
"name"
:
company
.
company_name
,
# 企业名
"telephone"
:
company
.
telephone
if
company
.
telephone
else
""
,
# 电话
"web_site"
:
company
.
web_site
if
company
.
web_site
else
""
,
# 网址
"email"
:
company
.
email
if
company
.
email
else
""
,
# 邮箱
"address"
:
company
.
address
if
company
.
address
else
""
,
# 地址
"location"
:
province
+
city
+
district
,
"jwd"
:
{
"lng"
:
company
.
lng
if
company
.
lng
else
""
,
# 经度
"lat"
:
company
.
lat
if
company
.
lat
else
""
},
# 维度
"info"
:
company
.
company_info
if
company
.
company_info
else
""
,
# 企业信息
...
...
@@ -721,13 +728,15 @@ def enterprise_detail():
if
enterprise
:
province
=
enterprise
.
province
if
enterprise
.
province
else
""
city
=
enterprise
.
city
if
enterprise
.
city
else
""
if
city
==
province
:
city
=
''
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
""
,
# 经度
...
...
apps/view_mobile/view_atlas.py
View file @
4a2432f4
...
...
@@ -236,6 +236,11 @@ def company_detail():
else
:
company_ids
=
[]
if
company
:
province
=
company
.
province
if
company
.
province
else
""
city
=
company
.
city
if
company
.
city
else
""
if
city
==
province
:
city
=
''
district
=
company
.
district
if
company
.
district
else
""
data
=
{
"id"
:
company
.
id
,
"company_name"
:
company
.
company_name
,
"legal"
:
company
.
legal
if
company
.
legal
else
""
,
# 法人
...
...
@@ -244,6 +249,8 @@ def company_detail():
"capital"
:
company
.
capital
if
company
.
capital
else
""
,
# 注册资本
"telephone"
:
company
.
telephone
if
company
.
telephone
else
""
,
# 电话
"address"
:
company
.
address
if
company
.
address
else
""
,
# 地址
"location"
:
province
+
city
+
district
,
"email"
:
company
.
email
if
company
.
email
else
"-"
,
# 邮箱
# "web_site": company.web_site if company.web_site else "-", # 网址
"company_info"
:
company
.
company_info
if
company
.
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