Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DA-Platform
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
文档服务地址:
http://47.92.0.57:3000/
周报索引地址:
http://47.92.0.57:3000/s/NruNXRYmV
Open sidebar
Berlin
DA-Platform
Commits
c749a876
Commit
c749a876
authored
Jun 28, 2020
by
李景熙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改图片分片说明无法显示的bug
parent
54dfa64c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Slice.py
DAPlatform/Dao/Slice.py
+5
-2
No files found.
DAPlatform/Dao/Slice.py
View file @
c749a876
...
...
@@ -77,23 +77,26 @@ def delete_slice(id):
# 查找某任务下的分片
def
find_slice_by_task
(
task_id
):
try
:
find
=
Slice
.
select
(
Slice
.
slice_id
,
Slice
.
document_number
,
Slice
.
type
,
Slice
.
model_id
)
.
where
(
find
=
Slice
.
select
(
Slice
.
slice_id
,
Slice
.
document_number
,
Slice
.
type
,
Slice
.
model_id
,
Slice
.
illustration
)
.
where
(
Slice
.
task_id
==
task_id
)
index
=
0
list
=
[]
while
index
<
len
(
find
):
if
find
[
index
]
.
type
==
'0'
:
t
=
"文本"
template
=
find
[
index
]
.
model_id
elif
find
[
index
]
.
type
==
'1'
:
t
=
"图片"
template
=
find
[
index
]
.
illustration
else
:
t
=
"图层"
template
=
find
[
index
]
.
illustration
list
.
append
(
{
'id'
:
find
[
index
]
.
slice_id
,
'fileNum'
:
find
[
index
]
.
document_number
,
'type'
:
t
,
'template'
:
find
[
index
]
.
model_id
'template'
:
template
}
)
index
+=
1
...
...
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