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
ec812502
Commit
ec812502
authored
Jul 21, 2023
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20230721
parent
24e74b70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
apps/__init__.py
+5
-1
apps/inves_manage/siku_view.py
+13
-13
No files found.
apps/__init__.py
View file @
ec812502
...
...
@@ -49,7 +49,11 @@ def creat_app(config_name):
:param config_name: str 配置模式的名称('develop', 'product')
:return: object flask的app对象
'''
app
=
Flask
(
__name__
)
# app = Flask(__name__)
app
=
Flask
(
__name__
,
static_url_path
=
'/statics'
,
# 配置静态文件的访问 url 前缀
static_folder
=
'statics'
,
# 配置静态文件的文件夹
template_folder
=
'templates'
)
app
.
after_request
(
after_request
)
config_class
=
config_map
.
get
(
config_name
)
...
...
apps/inves_manage/siku_view.py
View file @
ec812502
...
...
@@ -1754,10 +1754,10 @@ def batch_export_project1():
return
jsonify
(
code
=
RET
.
SESSIONERR
,
msg
=
"用户信息校验失败,请重新登陆后尝试!"
)
select_id_list
=
req_dic
[
"select_id_list"
]
path
=
'./apps/statics/'
# pro_path = 'D:/中研项目代码/flask_jincheng/apps/statics/'
pro_path
=
'http://39.100.39.50:5050/statics/'
# 项目路径
# pro_path = SERVER_NAME + '/static/' # 项目路径
path
=
'./apps/statics/
project_file/
'
# pro_path = 'D:/中研项目代码/flask_jincheng/apps/statics/
project_file/
'
pro_path
=
'http://39.100.39.50:5050/statics/
project_file/
'
# 项目路径
# pro_path = SERVER_NAME + '/static/
project_file/
' # 项目路径
if
not
select_id_list
:
return
jsonify
(
code
=
RET
.
PARAMERR
,
msg
=
"参数不能为空!"
)
target_data_list
=
[]
...
...
@@ -1856,9 +1856,9 @@ def batch_export_project2():
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
SESSIONERR
,
msg
=
"用户信息校验失败,请重新登陆后尝试!"
)
select_id_list
=
req_dic
[
"select_id_list"
]
path
=
'./apps/statics/'
# pro_path = 'D:/中研项目代码/flask_jincheng/apps/statics/'
pro_path
=
'http://39.100.39.50:5050/statics/'
# 项目路径
path
=
'./apps/statics/
project_file/
'
# pro_path = 'D:/中研项目代码/flask_jincheng/apps/statics/
project_file/
'
pro_path
=
'http://39.100.39.50:5050/statics/
project_file/
'
# 项目路径
if
not
select_id_list
:
return
jsonify
(
code
=
RET
.
PARAMERR
,
msg
=
"参数不能为空!"
)
target_data_list
=
[]
...
...
@@ -1972,9 +1972,9 @@ def batch_export_project3():
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
SESSIONERR
,
msg
=
"用户信息校验失败,请重新登陆后尝试!"
)
select_id_list
=
req_dic
[
"select_id_list"
]
path
=
'./apps/statics/'
# pro_path = 'D:/中研项目代码/flask_jincheng/apps/statics/'
pro_path
=
'http://39.100.39.50:5050/statics/'
# 项目路径
path
=
'./apps/statics/
project_file/
'
# pro_path = 'D:/中研项目代码/flask_jincheng/apps/statics/
project_file/
'
pro_path
=
'http://39.100.39.50:5050/statics/
project_file/
'
# 项目路径
if
not
select_id_list
:
return
jsonify
(
code
=
RET
.
PARAMERR
,
msg
=
"参数不能为空!"
)
target_data_list
=
[]
...
...
@@ -2102,9 +2102,9 @@ def batch_export_project4():
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
SESSIONERR
,
msg
=
"用户信息校验失败,请重新登陆后尝试!"
)
select_id_list
=
req_dic
[
"select_id_list"
]
path
=
'./apps/statics/'
# pro_path = 'D:/中研项目代码/flask_jincheng/apps/statics/'
pro_path
=
'http://39.100.39.50:5050/statics/'
# 项目路径
path
=
'./apps/statics/
project_file/
'
# pro_path = 'D:/中研项目代码/flask_jincheng/apps/statics/
project_file/
'
pro_path
=
'http://39.100.39.50:5050/statics/
project_file/
'
# 项目路径
if
not
select_id_list
:
return
jsonify
(
code
=
RET
.
PARAMERR
,
msg
=
"参数不能为空!"
)
target_data_list
=
[]
...
...
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