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
c006660f
Commit
c006660f
authored
Dec 23, 2022
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20221223
parent
ac14c43b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
apps/view_choose/fill_data.py
+14
-14
No files found.
apps/view_choose/fill_data.py
View file @
c006660f
...
@@ -1331,12 +1331,12 @@ def carrier_edit_build():
...
@@ -1331,12 +1331,12 @@ def carrier_edit_build():
current_app
.
logger
.
error
(
e
)
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
SESSIONERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
return
jsonify
(
code
=
RET
.
SESSIONERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
if
role_id
==
3
:
# 如果是办事员可以编辑自己提报的内容
#
if role_id == 3: # 如果是办事员可以编辑自己提报的内容
pass
#
pass
if
role_id
==
2
:
# 市直部门这区县领导可以编辑该部门所有办事员提报的内容
#
if role_id == 2: # 市直部门这区县领导可以编辑该部门所有办事员提报的内容
pass
#
pass
if
role_id
==
1
:
# 局领导能看到所有审核通过的内容
#
if role_id == 1: # 局领导能看到所有审核通过的内容
return
jsonify
(
code
=
RET
.
THIRDERR
,
msg
=
"局领导不能编辑数据。"
)
#
return jsonify(code=RET.THIRDERR, msg="局领导不能编辑数据。")
build_id
=
req_dic
[
'id'
]
build_id
=
req_dic
[
'id'
]
construction_time
=
req_dic
[
'construction_time'
]
construction_time
=
req_dic
[
'construction_time'
]
...
@@ -1345,7 +1345,7 @@ def carrier_edit_build():
...
@@ -1345,7 +1345,7 @@ def carrier_edit_build():
detail_address
=
req_dic
[
'detail_address'
]
detail_address
=
req_dic
[
'detail_address'
]
if
not
all
([
district_name
,
build_name
,
detail_address
]):
if
not
all
([
district_name
,
build_name
,
detail_address
]):
return
jsonify
(
code
=
RET
.
PARAMERR
,
msg
=
"区域名称、载体名称、信息地址不能为空!"
)
return
jsonify
(
code
=
RET
.
PARAMERR
,
msg
=
"区域名称、载体名称、信息地址不能为空!"
)
district_name
=
get_district
(
district_name
)
#
district_name = get_district(district_name)
# lng = ''
# lng = ''
# lat = ''
# lat = ''
...
@@ -1562,19 +1562,19 @@ def carrier_edit_factory():
...
@@ -1562,19 +1562,19 @@ def carrier_edit_factory():
except
Exception
as
e
:
except
Exception
as
e
:
current_app
.
logger
.
error
(
e
)
current_app
.
logger
.
error
(
e
)
return
jsonify
(
code
=
RET
.
SESSIONERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
return
jsonify
(
code
=
RET
.
SESSIONERR
,
msg
=
"进行{}操作时用户信息校验失败,请重新登陆后尝试!"
.
format
(
action_name
))
if
role_id
==
3
:
# 如果是办事员可以编辑自己提报的内容
#
if role_id == 3: # 如果是办事员可以编辑自己提报的内容
pass
#
pass
if
role_id
==
2
:
# 市直部门这区县领导可以编辑该部门所有办事员提报的内容
#
if role_id == 2: # 市直部门这区县领导可以编辑该部门所有办事员提报的内容
pass
#
pass
if
role_id
==
1
:
# 局领导能看到所有审核通过的内容
#
if role_id == 1: # 局领导能看到所有审核通过的内容
return
jsonify
(
code
=
RET
.
THIRDERR
,
msg
=
"局领导不能编辑数据。"
)
#
return jsonify(code=RET.THIRDERR, msg="局领导不能编辑数据。")
factory_id
=
req_dic
[
'factory_id'
]
factory_id
=
req_dic
[
'factory_id'
]
district_name
=
req_dic
[
'district_name'
]
district_name
=
req_dic
[
'district_name'
]
factory_name
=
req_dic
[
'factory_name'
]
factory_name
=
req_dic
[
'factory_name'
]
detail_address
=
req_dic
[
'detail_address'
]
detail_address
=
req_dic
[
'detail_address'
]
if
not
all
([
district_name
,
factory_name
,
detail_address
]):
if
not
all
([
district_name
,
factory_name
,
detail_address
]):
return
jsonify
(
code
=
RET
.
PARAMERR
,
msg
=
"区域名称、载体名称、信息地址不能为空!"
)
return
jsonify
(
code
=
RET
.
PARAMERR
,
msg
=
"区域名称、载体名称、信息地址不能为空!"
)
district_name
=
get_district
(
district_name
)
#
district_name = get_district(district_name)
is_standard
=
req_dic
[
'is_standard'
]
is_standard
=
req_dic
[
'is_standard'
]
rent_money
=
req_dic
[
'rent_money'
]
rent_money
=
req_dic
[
'rent_money'
]
...
...
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