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
0fc35382
Commit
0fc35382
authored
Aug 16, 2020
by
李严凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改任务分片显示,创建模板传参修改
parent
ef7d8320
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
7 deletions
+29
-7
ReleaseTask.vue
DAPlatform-front/src/components/ReleaseTask.vue
+13
-2
layerShow.vue
...atform-front/src/components/imageAnnotation/layerShow.vue
+1
-1
SelectedCheck.vue
...orm-front/src/components/textAnnotation/SelectedCheck.vue
+3
-2
TabledCheck.vue
...tform-front/src/components/textAnnotation/TabledCheck.vue
+1
-1
task.py
DAPlatform/views/task.py
+1
-0
user.py
DAPlatform/views/user.py
+2
-0
部署方法.md
文档/部署方法.md
+8
-1
No files found.
DAPlatform-front/src/components/ReleaseTask.vue
View file @
0fc35382
...
...
@@ -589,6 +589,18 @@
this
.
dynamicValidateForm
.
layerDomains
=
res
.
data
.
layerDomains
;
this
.
taskName
=
res
.
data
.
taskName
;
this
.
taskId
=
res
.
data
.
taskId
;
var
max
=
res
.
data
.
domains
.
length
;
// console.log("F")
for
(
var
i
=
0
;
i
<
max
;
i
++
)
this
.
activeNameF
.
push
(
i
);
// console.log(res.data.domains)
max
=
res
.
data
.
pictureDomains
.
length
;
// console.log("P")
for
(
var
i
=
0
;
i
<
max
;
i
++
)
this
.
activeNameP
.
push
(
i
);
// console.log(res.data.pictureDomains.length)
max
=
res
.
data
.
layerDomains
.
length
;
// console.log("L")
for
(
var
i
=
0
;
i
<
max
;
i
++
)
this
.
activeNameL
.
push
(
i
);
// console.log(res.data.layerDomains.length)
// console.log(res.data.domains[0].piecesOptions);
}
})
...
...
@@ -1015,7 +1027,7 @@
method
:
'POST'
,
url
:
'/textAnnotation/createTemplated'
,
data
:{
templateId
:
max
+
1
,
//
templateId:max+1,
templateName
:
this
.
form
.
name
,
templateType
:
1
,
creatorId
:
this
.
userInfo
.
userId
,
...
...
@@ -1053,7 +1065,6 @@
this
.
axios
({
method
:
"POST"
,
data
:{
creatorId
:
this
.
userInfo
.
userId
,
templateId
:
this
.
pOptions
[
index
].
templateId
},
url
:
'textAnnotation/deleteTemplate'
,
...
...
DAPlatform-front/src/components/imageAnnotation/layerShow.vue
View file @
0fc35382
...
...
@@ -845,7 +845,7 @@
alert
(
"分数提交失败!"
);
}
else
if
(
res
.
code
==
1
)
{
alert
(
"打分成功"
);
this
.
$router
.
push
({
path
:
"/
taskhall
"
});
this
.
$router
.
push
({
path
:
"/
check
"
});
}
});
// this.commentScore = false;
...
...
DAPlatform-front/src/components/textAnnotation/SelectedCheck.vue
View file @
0fc35382
...
...
@@ -249,14 +249,15 @@ export default {
},
url
:
"task/gradePieces"
,
}).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
.
code
==
0
)
{
alert
(
"分数提交失败!"
);
}
else
if
(
res
.
code
==
1
)
{
alert
(
"打分成功"
);
this
.
$router
.
push
({
path
:
"/
taskhall
"
});
this
.
$router
.
push
({
path
:
"/
check
"
});
}
});
this
.
commentScore
=
false
;
//
this.commentScore = false;
// this.$message("打分成功");
}
},
...
...
DAPlatform-front/src/components/textAnnotation/TabledCheck.vue
View file @
0fc35382
...
...
@@ -307,7 +307,7 @@ export default {
alert
(
"分数提交失败!"
);
}
else
if
(
res
.
code
==
1
)
{
alert
(
"打分成功"
);
this
.
$router
.
push
({
path
:
"/
taskhall
"
});
this
.
$router
.
push
({
path
:
"/
check
"
});
}
});
// this.commentScore = false;
...
...
DAPlatform/views/task.py
View file @
0fc35382
...
...
@@ -191,6 +191,7 @@ def get_task_detail():
# 审核时候打分的接口,前端传送打分的具体信息(文件id,分片id,标注者id,打分详情),后端在标注关系表中查找对应的标注,并将分数存储下来,之后修改审核状态即flag2 = True,代表已审核
@task.route
(
"/gradePieces"
,
methods
=
[
"GET"
])
def
grade
():
print
(
'grade'
)
data_id
=
request
.
args
[
'fileId'
]
userId
=
request
.
args
[
'userId'
]
scoreForm
=
eval
(
request
.
args
[
'scoreForm'
])
...
...
DAPlatform/views/user.py
View file @
0fc35382
...
...
@@ -8,6 +8,7 @@ user = Blueprint("user", __name__, url_prefix="/api/user")
@user.route
(
"/signup"
,
methods
=
[
"Post"
])
def
signup
():
print
(
"signup"
)
data
=
request
.
get_json
(
silent
=
True
)
ret
=
User
.
register
(
data
[
'userName'
],
data
[
'password'
],
data
[
'email'
])
res
=
{
...
...
@@ -20,6 +21,7 @@ def signup():
@user.route
(
"/signin"
,
methods
=
[
"Post"
])
def
signin
():
print
(
"signin"
)
data
=
request
.
get_json
(
silent
=
True
)
ret
=
User
.
login
(
data
[
'userName'
],
data
[
'password'
])
res
=
{
...
...
文档/部署方法.md
View file @
0fc35382
# 工具
# 工具
...
...
@@ -72,3 +72,9 @@ dist中有两个文件**index.html** 和 **static文件夹**
## 页面显示502 bad gateway
大概率是uwsgi服务器没在运行,重新在screen中启动uwsgi
## 前端npm run build报错
![
1597571995472
](
C:\Users\84446\AppData\Roaming\Typora\typora-user-images\1597571995472.png
)
没有在前端文件夹下DAPlatform-fornt
\ No newline at end of file
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