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
70e0e201
Commit
70e0e201
authored
Aug 15, 2020
by
郭婉茹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug: check the wrong person
parent
26f0cb43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
57 deletions
+57
-57
SelectedCheck.vue
...orm-front/src/components/textAnnotation/SelectedCheck.vue
+7
-4
TabledCheck.vue
...tform-front/src/components/textAnnotation/TabledCheck.vue
+50
-53
No files found.
DAPlatform-front/src/components/textAnnotation/SelectedCheck.vue
View file @
70e0e201
...
...
@@ -97,6 +97,7 @@ export default {
score
:
""
,
},
formLabelWidth
:
"120px"
,
executors
:
[],
};
},
beforeMount
()
{
...
...
@@ -105,21 +106,23 @@ export default {
this
.
task
=
this
.
$route
.
params
.
task
;
this
.
relationId
=
this
.
$route
.
params
.
relationId
;
this
.
piece
=
this
.
$route
.
params
.
piece
;
this
.
executors
=
this
.
$route
.
params
.
executor
;
},
methods
:
{
// 插入数据库
insertDocument
()
{
// console.log("userId" + this.$store.state.userInfo.userId);
// console.log("insertDocument");
// console.log("userId" + JSON.stringify(this.executors));
// console.log("file" + JSON.stringify(this.file));
//console.log("task" + JSON.stringify(this.task));
//
console.log("task" + JSON.stringify(this.task));
// console.log("relationId" + JSON.stringify(this.relationId));
//console.log("piece" + JSON.stringify(this.piece));
//
console.log("piece" + JSON.stringify(this.piece));
this
.
axios
({
method
:
"post"
,
url
:
"/textAnnotation/insertDocument"
,
data
:
{
templateId
:
this
.
piece
.
template
,
annotatorId
:
this
.
$store
.
state
.
userInfo
.
userI
d
,
annotatorId
:
this
.
executors
.
i
d
,
creatorId
:
this
.
task
.
creator_id
,
relationId
:
this
.
relationId
,
textUrl
:
this
.
file
.
url
,
...
...
DAPlatform-front/src/components/textAnnotation/TabledCheck.vue
View file @
70e0e201
<
template
>
<div
class=
"select-container"
>
<el-container>
<el-aside
class=
"sidebar3"
>
<el-aside
class=
"sidebar3"
>
<!-- 实体列表 -->
<div
class=
"sidebar-box3"
>
<div>
...
...
@@ -93,7 +92,7 @@
</
template
>
<
script
>
import
FileSaver
from
'file-saver'
;
import
FileSaver
from
"file-saver"
;
export
default
{
data
()
{
return
{
...
...
@@ -111,7 +110,7 @@ export default {
begin
:
0
,
end
:
0
,
entityId
:
""
,
attribute
:
[]
attribute
:
[]
,
},
token
:
{
tokenId
:
""
,
// 编号
...
...
@@ -119,7 +118,7 @@ export default {
begin
:
0
,
// row
end
:
0
,
// 终止位置
entityId
:
""
,
// column
attribute
:
[]
// 属性
attribute
:
[]
,
// 属性
},
row
:
[],
column
:
{},
...
...
@@ -133,7 +132,7 @@ export default {
defaultProps
:
{
children
:
"children"
,
label
:
"label"
label
:
"label"
,
},
//count: 1,
ifAlert
:
false
,
// 弹窗
...
...
@@ -143,16 +142,17 @@ export default {
nowContent
:
{
tablename
:
""
,
tableData
:
[],
name
:
[]
name
:
[]
,
},
allContent
:
[],
numOfSheet
:
0
,
commentScore
:
false
,
scoreForm
:
{
accuracy
:
""
,
score
:
""
score
:
""
,
},
formLabelWidth
:
"120px"
,
executors
:
[],
};
},
beforeMount
()
{
...
...
@@ -160,6 +160,7 @@ export default {
this
.
task
=
this
.
$route
.
params
.
task
;
this
.
relationId
=
this
.
$route
.
params
.
relationId
;
this
.
piece
=
this
.
$route
.
params
.
piece
;
this
.
executors
=
this
.
$route
.
params
.
executor
;
},
methods
:
{
// 插入数据库
...
...
@@ -171,15 +172,15 @@ export default {
method
:
"post"
,
url
:
"/textAnnotation/insertDocument"
,
data
:
{
templateId
:
this
.
piece
.
template
,
// TODO 模板id
annotatorId
:
this
.
$store
.
state
.
userInfo
.
userI
d
,
templateId
:
this
.
piece
.
template
,
annotatorId
:
this
.
executors
.
i
d
,
creatorId
:
this
.
task
.
creator_id
,
relationId
:
this
.
relationId
,
textUrl
:
this
.
file
.
url
,
type
:
"xlsx"
,
fileId
:
this
.
file
.
id
}
}).
then
(
res
=>
{
fileId
:
this
.
file
.
id
,
}
,
}).
then
(
(
res
)
=>
{
if
(
res
.
return_code
==
200
)
{
this
.
documentId
=
res
.
result
;
//console.log("this.documentId: " + this.documentId);
...
...
@@ -191,7 +192,7 @@ export default {
}
else
{
this
.
$message
({
message
:
res
.
return_info
,
type
:
"error"
type
:
"error"
,
});
}
});
...
...
@@ -202,9 +203,9 @@ export default {
method
:
"post"
,
url
:
"/files/getExcelContent"
,
data
:
{
documentId
:
this
.
documentId
}
}).
then
(
res
=>
{
documentId
:
this
.
documentId
,
}
,
}).
then
(
(
res
)
=>
{
if
(
res
.
return_code
==
200
)
{
var
i
;
var
nowContent
=
{};
...
...
@@ -220,7 +221,7 @@ export default {
}
else
{
this
.
$message
({
message
:
res
.
return_info
,
type
:
"error"
type
:
"error"
,
});
}
});
...
...
@@ -233,21 +234,20 @@ export default {
method
:
"post"
,
url
:
"/textAnnotation/getTokenList"
,
data
:
{
documentId
:
this
.
documentId
}
}).
then
(
res
=>
{
documentId
:
this
.
documentId
,
}
,
}).
then
(
(
res
)
=>
{
if
(
res
.
return_code
==
200
)
{
res
.
result
.
forEach
(
element
=>
{
res
.
result
.
forEach
(
(
element
)
=>
{
this
.
tokenInit
=
element
;
console
.
log
(
" token: "
+
JSON
.
stringify
(
this
.
tokenInit
));
this
.
tokenList
.
push
(
this
.
tokenInit
);
// TODO 初始渲染
});
console
.
log
(
" this.tokenList: "
+
JSON
.
stringify
(
this
.
tokenList
));
}
else
{
this
.
$message
({
message
:
res
.
return_info
,
type
:
"error"
type
:
"error"
,
});
}
});
...
...
@@ -290,9 +290,9 @@ export default {
parseInt
(
this
.
scoreForm
.
accuracy
)
<
0
)
this
.
$message
(
"准确度应在0~100范围内"
);
else
if
(
parseInt
(
this
.
scoreForm
.
score
)
>
100
||
parseInt
(
this
.
scoreForm
.
score
)
<
0
else
if
(
parseInt
(
this
.
scoreForm
.
score
)
>
100
||
parseInt
(
this
.
scoreForm
.
score
)
<
0
)
this
.
$message
(
"分数范围在0~100"
);
else
{
...
...
@@ -300,34 +300,31 @@ export default {
this
.
$message
(
"打分成功"
);
}
},
submit
(){
// alert("打分成功");
// this.$router.push({path: '/taskhall'});
// alert("inin");
this
.
axios
({
method
:
"get"
,
params
:{
userId
:
this
.
$route
.
params
.
executor
.
id
,
fileId
:
this
.
file
.
id
,
scoreForm
:
this
.
scoreForm
},
url
:
"task/gradePieces"
,
}).
then
(
res
=>
{
if
(
res
.
code
==
0
){
alert
(
"分数提交失败!"
);
}
else
if
(
res
.
code
==
1
){
alert
(
"打分成功"
);
this
.
$router
.
push
({
path
:
'/taskhall'
});
}
})
}
submit
()
{
// alert("打分成功");
// this.$router.push({path: '/taskhall'});
// alert("inin");
this
.
axios
({
method
:
"get"
,
params
:
{
userId
:
this
.
$route
.
params
.
executor
.
id
,
fileId
:
this
.
file
.
id
,
scoreForm
:
this
.
scoreForm
,
},
url
:
"task/gradePieces"
,
}).
then
((
res
)
=>
{
if
(
res
.
code
==
0
)
{
alert
(
"分数提交失败!"
);
}
else
if
(
res
.
code
==
1
)
{
alert
(
"打分成功"
);
this
.
$router
.
push
({
path
:
"/taskhall"
});
}
});
},
},
mounted
:
function
()
{
mounted
:
function
()
{
this
.
insertDocument
();
}
}
,
};
</
script
>
...
...
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