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
cb241a83
Commit
cb241a83
authored
Sep 06, 2020
by
郭婉茹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check in text
parent
11064315
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
38 deletions
+48
-38
SelectText.vue
...atform-front/src/components/textAnnotation/SelectText.vue
+2
-2
SelectedCheck.vue
...orm-front/src/components/textAnnotation/SelectedCheck.vue
+46
-36
No files found.
DAPlatform-front/src/components/textAnnotation/SelectText.vue
View file @
cb241a83
...
...
@@ -5,7 +5,7 @@
<!-- 实体/属性模板 -->
<div
class=
"sidebar-box1"
>
<div>
<div
class=
"img-list-title1"
>
实体/属性模板
</div>
<div
class=
"img-list-title1"
>
标注:
{{
this
.
token
.
word
}}
</div>
<div
class=
"img-title-list-box1"
>
<div
style=
"overflow: auto; height: calc(100vh - 61px - 100px - 40px - 60px);"
>
<p
v-html=
"'实体:'+ token.entityId"
/>
...
...
@@ -91,7 +91,7 @@ export default {
},
token
:
{
tokenId
:
""
,
word
:
""
,
word
:
"
未选择
"
,
begin
:
0
,
end
:
0
,
entityId
:
""
,
...
...
DAPlatform-front/src/components/textAnnotation/SelectedCheck.vue
View file @
cb241a83
...
...
@@ -5,7 +5,7 @@
<!-- 实体/属性模板 -->
<div
class=
"sidebar-box1"
>
<div>
<div
class=
"img-list-title1"
>
实体/属性模板
</div>
<div
class=
"img-list-title1"
>
标注:
{{
this
.
token
.
word
}}
</div>
<div
class=
"img-title-list-box1"
>
<div
style=
"overflow: auto; height: calc(100vh - 61px - 100px - 40px - 60px);"
>
<p
v-html=
"'实体:'+ token.entityId"
/>
...
...
@@ -39,16 +39,9 @@
</div>
</el-aside>
<!-- 文本界面 -->
<el-main
class=
"filter-container3"
style=
"background-color: #FFFFFF"
>
<el-main
class=
"filter-container3"
style=
"background-color: #FFFFFF"
>
<div
style=
"overflow-y:auto;height:100%;"
>
<div
class=
"content3"
@
mouseup=
"select()"
v-html=
"content"
></div>
<div
class=
"content3"
@
mouseup=
"select()"
v-html=
"content"
></div>
<div
class=
"content_left1"
>
<div
...
...
@@ -56,35 +49,22 @@
v-for=
"it in tokenList"
:key=
"it"
style=
"user-select:none; float: left;"
>
<el-tag
size=
"small"
@
click=
"changeToken(it)"
closable
:disable-transitions=
"false"
@
close=
"deleteToken(it)"
>
<a
style=
"font-size: 18px;"
v-html=
"it.word"
></a>
<el-checkbox>
<a
style=
"font-size: 18px;"
v-html=
"it.word"
></a>
<a
style=
"font-size: 14px;"
>
: 实体
</a>
<a
style=
"font-size: 14px;"
v-html=
"it.entityId"
></a>
<a
style=
"font-size: 14px;"
v-html=
"it.entityId"
></a>
<a
style=
"font-size: 14px;"
>
属性
</a>
<a
style=
"font-size: 14px;"
v-html=
"it.attribute"
></a>
<el-button
<a
style=
"font-size: 14px;"
v-html=
"it.attribute"
></a>
<!--el-button
style="margin-left: auto;font-size: 12px"
@click="countScore()"
size="mini"
type="text"
>
标注正确
</el-button
>
</el-
tag
>
>
O
</el-button--
>
</el-
checkbox
>
</div>
</div>
<div
style=
"overflow:auto;font-size: 15px;float: right;"
>
...
...
@@ -121,7 +101,7 @@ export default {
},
token
:
{
tokenId
:
""
,
word
:
""
,
word
:
"
未选择
"
,
begin
:
0
,
end
:
0
,
entityId
:
""
,
...
...
@@ -289,7 +269,10 @@ export default {
// 属性
this
.
treeData
=
res
.
result
.
entityList
;
for
(
var
i
=
0
;
i
<
this
.
treeData
.
length
;
i
++
)
{
this
.
treeToArray
.
push
({
"id"
:
this
.
treeData
[
i
].
id
,
"label"
:
this
.
treeData
[
i
].
label
});
// 属性
this
.
treeToArray
.
push
({
id
:
this
.
treeData
[
i
].
id
,
label
:
this
.
treeData
[
i
].
label
,
});
// 属性
if
(
this
.
treeData
[
i
].
children
!=
[])
{
this
.
transfer
(
this
.
treeData
[
i
].
children
);
}
...
...
@@ -449,17 +432,44 @@ export default {
this
.
$refs
.
tree
.
setCheckedNodes
(
res
);
},
transfer
(
children
)
{
if
(
children
==
[])
return
;
if
(
children
==
[])
return
;
for
(
var
i
=
0
;
i
<
children
.
length
;
i
++
)
{
this
.
treeToArray
.
push
({
"id"
:
children
[
i
].
id
,
"label"
:
children
[
i
].
label
});
this
.
treeToArray
.
push
({
id
:
children
[
i
].
id
,
label
:
children
[
i
].
label
});
if
(
children
[
i
]
!=
[])
{
this
.
transfer
(
children
[
i
].
children
);
}
}
},
save
()
{
alert
(
"打分成功"
);
this
.
submit
();
this
.
$router
.
push
({
path
:
"/check"
});
},
submit
()
{
// alert("打分成功");
// console.log("route:")
// console.log(this.$route.params.executor.id)
// if(this.scoreForm.score == '' || this.scoreForm.accuracy == ''){
// alert("请打分和填写准确率");
// return;
// }
this
.
axios
({
method
:
"get"
,
params
:
{
userId
:
this
.
$route
.
params
.
executor
.
id
,
fileId
:
this
.
$route
.
params
.
file
.
id
,
score
:
this
.
computeScore
,
},
url
:
"task/gradePieces"
,
}).
then
((
res
)
=>
{
// console.log(res);
// console.log("dafennjg");
if
(
res
.
code
==
0
)
{
alert
(
"分数提交失败!"
);
}
else
if
(
res
.
code
==
1
)
{
// alert("打分成功");
// this.$router.push({ path: "/taskhall" });
}
});
},
// 打分
addScore
()
{
...
...
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