文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit cb241a83 by 郭婉茹

check in text

parent 11064315
......@@ -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: "",
......
......@@ -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;"
@click="changeToken(it)"
:disable-transitions="false"
>
<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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment