Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
automatedtestplatform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
automatedtestplatform
Commits
8bac5d1d
Commit
8bac5d1d
authored
Nov 30, 2022
by
王英豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改新增
parent
b73fd0bb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
27 deletions
+19
-27
testing_progress.cpython-37.pyc
...ting_progress/__pycache__/testing_progress.cpython-37.pyc
+0
-0
testing_progress.py
automated_main/models/testing_progress/testing_progress.py
+1
-1
personnel_allocation_view.py
...rogress/personnel_allocation/personnel_allocation_view.py
+18
-26
No files found.
automated_main/models/testing_progress/__pycache__/testing_progress.cpython-37.pyc
View file @
8bac5d1d
No preview for this file type
automated_main/models/testing_progress/testing_progress.py
View file @
8bac5d1d
...
@@ -11,7 +11,7 @@ class TestingProgress(models.Model):
...
@@ -11,7 +11,7 @@ class TestingProgress(models.Model):
duration
=
models
.
TextField
(
"测试内容-标题"
,
default
=
""
,
max_length
=
1000
,
null
=
True
)
duration
=
models
.
TextField
(
"测试内容-标题"
,
default
=
""
,
max_length
=
1000
,
null
=
True
)
group
=
models
.
IntegerField
(
"是否分组"
,
default
=
1
)
# 1 是 0 不是
group
=
models
.
IntegerField
(
"是否分组"
,
default
=
1
)
# 1 是 0 不是
parent
=
models
.
IntegerField
(
"父id"
,
null
=
True
,
default
=
0
)
parent
=
models
.
IntegerField
(
"父id"
,
null
=
True
,
default
=
0
)
type
=
models
.
CharField
(
"图表颜色"
,
max_length
=
50
,
null
=
Fals
e
)
type
=
models
.
CharField
(
"图表颜色"
,
max_length
=
50
,
null
=
Tru
e
)
description
=
models
.
TextField
(
"描述"
,
default
=
""
,
max_length
=
20000
,
null
=
True
)
description
=
models
.
TextField
(
"描述"
,
default
=
""
,
max_length
=
20000
,
null
=
True
)
testing_progress
=
models
.
CharField
(
"测试进度"
,
max_length
=
300
,
null
=
True
)
testing_progress
=
models
.
CharField
(
"测试进度"
,
max_length
=
300
,
null
=
True
)
update_time
=
models
.
DateTimeField
(
auto_now_add
=
True
)
update_time
=
models
.
DateTimeField
(
auto_now_add
=
True
)
...
...
automated_main/view/testing_progress/personnel_allocation/personnel_allocation_view.py
View file @
8bac5d1d
...
@@ -12,8 +12,8 @@ import datetime
...
@@ -12,8 +12,8 @@ import datetime
import
time
import
time
import
os
import
os
import
logging
import
logging
logger
=
logging
.
getLogger
(
'django'
)
logger
=
logging
.
getLogger
(
'django'
)
class
PersonnelAllocationView
(
View
):
class
PersonnelAllocationView
(
View
):
...
@@ -31,32 +31,24 @@ class PersonnelAllocationView(View):
...
@@ -31,32 +31,24 @@ class PersonnelAllocationView(View):
logger
.
info
(
'222222222222'
)
logger
.
info
(
'222222222222'
)
logger
.
info
(
ENV_PROFILE
)
logger
.
info
(
ENV_PROFILE
)
logger
.
info
(
'222222222222'
)
logger
.
info
(
'222222222222'
)
try
:
if
'color'
in
data
.
keys
():
TestingProgress
.
objects
.
create
(
testing_progress_title
=
data
[
'text'
],
start_date
=
data
[
'start_date'
],
end_date
=
data
[
'end_date'
],
duration
=
data
[
'duration'
],
group
=
data
[
'group'
],
parent
=
data
[
'parent'
],
testing_progress
=
data
[
'progress'
],
type
=
data
[
'color'
],
description
=
data
[
'description'
])
else
:
TestingProgress
.
objects
.
create
(
testing_progress_title
=
data
[
'text'
],
group
=
data
[
'group'
],
parent
=
data
[
'parent'
],
testing_progress
=
''
,
type
=
''
,
description
=
''
)
except
Exception
as
e
:
logger
.
info
(
'33333333'
)
print
(
e
)
logger
.
info
(
'33333333'
)
pass
if
'color'
in
data
.
keys
():
TestingProgress
.
objects
.
create
(
testing_progress_title
=
data
[
'text'
],
start_date
=
data
[
'start_date'
],
end_date
=
data
[
'end_date'
],
duration
=
data
[
'duration'
],
group
=
data
[
'group'
],
parent
=
data
[
'parent'
],
testing_progress
=
data
[
'progress'
],
type
=
data
[
'color'
],
description
=
data
[
'description'
])
else
:
TestingProgress
.
objects
.
create
(
testing_progress_title
=
data
[
'text'
],
group
=
data
[
'group'
],
parent
=
data
[
'parent'
],
testing_progress
=
''
,
type
=
''
,
description
=
''
)
return
response_success
(
"创建成功"
)
return
response_success
(
"创建成功"
)
...
...
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