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
67d3f46b
Commit
67d3f46b
authored
Dec 23, 2022
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20221223
parent
20d56b71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
apps/view_choose/fill_data.py
+17
-17
No files found.
apps/view_choose/fill_data.py
View file @
67d3f46b
...
...
@@ -102,7 +102,7 @@ def show_all():
section
,
user_name
,
operation_mobile
,
user_id
,
role_id
,
belong_unit
=
verify_identity
(
token
,
action_name
)
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DB
ERR
,
msg
=
"进行访问 {} 操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
return
jsonify
(
code
=
RET
.
SESSION
ERR
,
msg
=
"进行访问 {} 操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
page
=
req_dic
[
'page'
]
per_page
=
req_dic
[
'per_page'
]
...
...
@@ -248,7 +248,7 @@ def download_xlsx():
section
,
user_name
,
operation_mobile
,
user_id
,
role_id
,
belong_unit
=
verify_identity
(
token
,
action_name
)
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DB
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
return
jsonify
(
code
=
RET
.
SESSION
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
template_type
=
req_dic
[
'template_type'
]
if
not
template_type
:
...
...
@@ -394,7 +394,7 @@ def read_template():
section
,
user_name
,
operation_mobile
,
user_id
,
role_id
,
belong_unit
=
verify_identity
(
token
,
action_name
)
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DB
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
return
jsonify
(
code
=
RET
.
SESSION
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
# 载体类型
carrier_type
=
request
.
form
[
'carrier_type'
]
...
...
@@ -705,7 +705,7 @@ def batch_export_build():
section
,
user_name
,
operation_mobile
,
user_id
,
role_id
,
belong_unit
=
verify_identity
(
token
,
action_name
)
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DB
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
return
jsonify
(
code
=
RET
.
SESSION
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
select_id_list
=
req_dic
[
"select_id_list"
]
path
=
'./apps/statics/carrier_file/'
...
...
@@ -824,7 +824,7 @@ def batch_export_land():
section
,
user_name
,
operation_mobile
,
user_id
,
role_id
,
belong_unit
=
verify_identity
(
token
,
action_name
)
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DB
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
return
jsonify
(
code
=
RET
.
SESSION
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
select_id_list
=
req_dic
[
"select_id_list"
]
path
=
'./apps/statics/carrier_file/'
...
...
@@ -913,7 +913,7 @@ def batch_export_factory():
section
,
user_name
,
operation_mobile
,
user_id
,
role_id
,
belong_unit
=
verify_identity
(
token
,
action_name
)
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DB
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
return
jsonify
(
code
=
RET
.
SESSION
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
select_id_list
=
req_dic
[
"select_id_list"
]
path
=
'./apps/statics/carrier_file/'
...
...
@@ -1050,7 +1050,7 @@ def batch_delete():
section
,
user_name
,
operation_mobile
,
user_id
,
role_id
,
belong_unit
=
verify_identity
(
token
,
action_name
)
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DB
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
return
jsonify
(
code
=
RET
.
SESSION
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
delete_id_list
=
req_dic
[
"delete_id_list"
]
if
not
delete_id_list
:
...
...
@@ -1122,7 +1122,7 @@ def batch_audit():
section
,
user_name
,
operation_mobile
,
user_id
,
role_id
,
belong_unit
=
verify_identity
(
token
,
action_name
)
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DB
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
return
jsonify
(
code
=
RET
.
SESSION
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
if
role_id
==
3
:
# 办事员没有审核功能
return
jsonify
(
code
=
RET
.
THIRDERR
,
msg
=
"办事员没有审核功能。"
)
...
...
@@ -1329,7 +1329,7 @@ def carrier_edit_build():
section
,
user_name
,
operation_mobile
,
user_id
,
role_id
,
belong_unit
=
verify_identity
(
token
,
action_name
)
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DB
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
return
jsonify
(
code
=
RET
.
SESSION
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
if
role_id
==
3
:
# 如果是办事员可以编辑自己提报的内容
pass
...
...
@@ -1451,7 +1451,7 @@ def carrier_edit_land():
section
,
user_name
,
operation_mobile
,
user_id
,
role_id
,
belong_unit
=
verify_identity
(
token
,
action_name
)
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DB
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
return
jsonify
(
code
=
RET
.
SESSION
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
if
role_id
==
3
:
# 如果是办事员可以编辑自己提报的内容
pass
if
role_id
==
2
:
# 市直部门这区县领导可以编辑该部门所有办事员提报的内容
...
...
@@ -1524,7 +1524,7 @@ def land_status():
section
,
user_name
,
operation_mobile
,
user_id
,
role_id
,
belong_unit
=
verify_identity
(
token
,
action_name
)
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DB
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
return
jsonify
(
code
=
RET
.
SESSION
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
land_id
=
req_dic
[
'land_id'
]
land_status
=
req_dic
[
'land_status'
]
try
:
...
...
@@ -1561,7 +1561,7 @@ def carrier_edit_factory():
section
,
user_name
,
operation_mobile
,
user_id
,
role_id
,
belong_unit
=
verify_identity
(
token
,
action_name
)
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DB
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
return
jsonify
(
code
=
RET
.
SESSION
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
if
role_id
==
3
:
# 如果是办事员可以编辑自己提报的内容
pass
if
role_id
==
2
:
# 市直部门这区县领导可以编辑该部门所有办事员提报的内容
...
...
@@ -1699,7 +1699,7 @@ def search_carrier_build():
section
,
user_name
,
operation_mobile
,
user_id
,
role_id
,
belong_unit
=
verify_identity
(
token
,
action_name
)
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DB
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
return
jsonify
(
code
=
RET
.
SESSION
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
build_name
=
req_dic
[
'build_name'
]
district_name
=
req_dic
[
'district_name'
]
...
...
@@ -1909,7 +1909,7 @@ def search_carrier_land():
section
,
user_name
,
operation_mobile
,
user_id
,
role_id
,
belong_unit
=
verify_identity
(
token
,
action_name
)
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DB
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
return
jsonify
(
code
=
RET
.
SESSION
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
district_name
=
req_dic
[
'district_name'
]
land_name
=
req_dic
[
'land_name'
]
...
...
@@ -2101,7 +2101,7 @@ def search_carrier_factory():
section
,
user_name
,
operation_mobile
,
user_id
,
role_id
,
belong_unit
=
verify_identity
(
token
,
action_name
)
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DB
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
return
jsonify
(
code
=
RET
.
SESSION
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
district_name
=
req_dic
[
'district_name'
]
factory_name
=
req_dic
[
'factory_name'
]
is_standard
=
req_dic
[
'is_standard'
]
...
...
@@ -2336,7 +2336,7 @@ def show_log():
section
,
user_name
,
operation_mobile
,
user_id
,
role_id
,
belong_unit
=
verify_identity
(
token
,
action_name
)
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DB
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
return
jsonify
(
code
=
RET
.
SESSION
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
page
=
req_dic
[
'page'
]
per_page
=
req_dic
[
'per_page'
]
...
...
@@ -2427,7 +2427,7 @@ def upload_build_picture():
section
,
user_name
,
operation_mobile
,
user_id
,
role_id
,
belong_unit
=
verify_identity
(
token
,
action_name
)
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
DB
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
return
jsonify
(
code
=
RET
.
SESSION
ERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
carrier_id
=
request
.
form
[
'carrier_id'
]
img_flag
=
request
.
form
[
'img_flag'
]
...
...
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