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
79cf087d
Commit
79cf087d
authored
Apr 18, 2023
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20230417
parent
82bdce55
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
11 deletions
+0
-11
apps/big_data/view.py
+0
-0
apps/models.py
+0
-1
apps/view_index/view.py
+0
-10
No files found.
apps/big_data/view.py
View file @
79cf087d
This diff is collapsed.
Click to expand it.
apps/models.py
View file @
79cf087d
...
@@ -618,7 +618,6 @@ class Project(BaseModel, db.Model):
...
@@ -618,7 +618,6 @@ class Project(BaseModel, db.Model):
project_stage_id
=
db
.
Column
(
db
.
Integer
,
comment
=
'项目阶段id:落地项目为1,招商项目为2'
)
project_stage_id
=
db
.
Column
(
db
.
Integer
,
comment
=
'项目阶段id:落地项目为1,招商项目为2'
)
name
=
db
.
Column
(
db
.
String
(
255
),
comment
=
'工程名'
)
# 一.工程名
name
=
db
.
Column
(
db
.
String
(
255
),
comment
=
'工程名'
)
# 一.工程名
district
=
db
.
Column
(
db
.
String
(
255
),
comment
=
'区县名称'
)
# 二.县区
district
=
db
.
Column
(
db
.
String
(
255
),
comment
=
'区县名称'
)
# 二.县区
# money = db.Column(db.String(255), comment='项目投资金额') # 三.(2)项目投资金额
money
=
db
.
Column
(
db
.
Float
,
comment
=
'项目投资金额'
)
# 三.(2)项目投资金额
money
=
db
.
Column
(
db
.
Float
,
comment
=
'项目投资金额'
)
# 三.(2)项目投资金额
attract_industry
=
db
.
Column
(
db
.
String
(
255
),
comment
=
'招引业态'
)
# 三.(2)项目投资金额
attract_industry
=
db
.
Column
(
db
.
String
(
255
),
comment
=
'招引业态'
)
# 三.(2)项目投资金额
type
=
db
.
Column
(
db
.
String
(
255
),
comment
=
'工程类型'
)
# 三.(1)工程类型
type
=
db
.
Column
(
db
.
String
(
255
),
comment
=
'工程类型'
)
# 三.(1)工程类型
...
...
apps/view_index/view.py
View file @
79cf087d
...
@@ -159,10 +159,6 @@ def menu():
...
@@ -159,10 +159,6 @@ def menu():
}
}
# 2. 左上角获取经济指标数据
# 2. 左上角获取经济指标数据
# year = datetime.now().year - 1
# jjzb_data = get_jjzb(district, year)
# year = datetime.now().year
# jjzb_data1 = get_jjzb(district, year)
jjzb_data
=
get_jjzb
(
district
,
1
)
jjzb_data
=
get_jjzb
(
district
,
1
)
jjzb_data1
=
get_jjzb
(
district
,
2
)
jjzb_data1
=
get_jjzb
(
district
,
2
)
...
@@ -185,10 +181,6 @@ def menu():
...
@@ -185,10 +181,6 @@ def menu():
count_szjj
=
company
.
filter_by
(
f_type
=
16
)
.
count
()
# 数字经济
count_szjj
=
company
.
filter_by
(
f_type
=
16
)
.
count
()
# 数字经济
count_whly
=
company
.
filter_by
(
f_type
=
17
)
.
count
()
# 文化旅游
count_whly
=
company
.
filter_by
(
f_type
=
17
)
.
count
()
# 文化旅游
count_qt
=
count_all
-
count_gt
-
count_gjd
-
count_mcq
-
count_zbzz
-
\
count_zz
-
count_mhg
-
count_xcl
-
count_lsjc
-
count_yy
-
\
count_smfz
-
count_xdfwy
-
count_szjj
-
count_whly
# 产业结构分布
# 产业结构分布
indu_dic
=
[
indu_dic
=
[
{
"name"
:
"钢铁"
,
"value"
:
count_gt
},
# {百分比,value}
{
"name"
:
"钢铁"
,
"value"
:
count_gt
},
# {百分比,value}
...
@@ -206,8 +198,6 @@ def menu():
...
@@ -206,8 +198,6 @@ def menu():
{
"name"
:
"文化旅游"
,
"value"
:
count_whly
}
{
"name"
:
"文化旅游"
,
"value"
:
count_whly
}
]
]
# TODO 4.五大千亿级产业集群
data
=
{
data
=
{
"jjzb_dic"
:
jjzb_data
,
# 左上角经济指标数据
"jjzb_dic"
:
jjzb_data
,
# 左上角经济指标数据
"jjzb_dic1"
:
jjzb_data1
,
# 左上角经济指标数据
"jjzb_dic1"
:
jjzb_data1
,
# 左上角经济指标数据
...
...
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