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

Commit afb8b152 by 郭婉茹

deleteToken

parent 827e0c1c
......@@ -38,16 +38,21 @@ export default {
},
methods: {
doOption (file, type) {
var params = { file: encodeURIComponent(JSON.stringify(file)) }
var self = this
var self = this, params = {
file,
task: this.task,
relationId: file.relation_id
}
function goto (path) {
self.$router.push({ name: path, params })
}
switch (type) {
case '文本': goto('SelecteText'); break
case '文本':
if (file.url.endsWith('xlsx')) { goto('table') }
if (file.url.endsWith('txt')) { goto('SelectText') }
break
case '图片': goto('image'); break
case '图层': goto('layer'); break
case '表格': goto('table')
case '图层': goto('layer')
}
}
}
......
......@@ -6,16 +6,19 @@
style="background-color: rgba(255,255,255,0);box-shadow: 0px 0px 0px rgba(255,255,255,0);padding-right: 20px"
>
<!-- 实体列表 -->
<div class="sidebar-box">
<div class="sidebar-box1">
<div>
<div class="img-list-title">实体列表</div>
<div class="img-title-list-box">
<div class="img-title-list">
<div class="img-list-title1">实体列表</div>
<div class="img-title-list-box1">
<div class="img-title-list1">
<div
class="tokenList"
v-for="it in tokenList"
:key="it"
style="user-select:none; float: left;"
style="user-select:none; float: left;width:220px;
white-space: nowrap;
text-overflow: ellipsis;
overflow:hidden;"
>
<el-tag
size="small"
......@@ -24,7 +27,7 @@
:disable-transitions="false"
@close="deleteToken(it)"
>
<a class="token" v-html="it.word"></a>
<div class="token" v-html="it.word"></div>
</el-tag>
<br />
</div>
......@@ -32,18 +35,6 @@
</div>
</div>
</div>
<!-- 文本列表 -->
<div class="sidebar-box">
<div>
<div class="img-list-title">文本列表</div>
<div class="img-title-list-box">
<div
id="img-title-list"
style="user-select:none; float:left; padding: 5px;"
>{{file.name}}</div>
</div>
</div>
</div>
</el-aside>
<!-- 文本界面 -->
<el-main class="filter-container" style="background-color: #FFFFFF">
......@@ -121,7 +112,6 @@ export default {
},
beforeMount() {
// 从通用传来文本信息
// TODO quary instead of params to fix the bug during refreshing 没办法统一改就task存字段,刷新后去库里找
this.file = this.$route.params.file;
this.task = this.$route.params.task;
this.relationId = this.$route.params.relationId;
......@@ -538,14 +528,18 @@ export default {
margin-top: 15px;
margin-bottom: 10px;
}
.img-list-title {
.sidebar-box1{
position:fixed;
width:260px;
}
.img-list-title1 {
line-height: 40px;
padding: 0 10px;
background: #409eff;
color: white;
}
.img-title-list-box {
height: 250px;
.img-title-list-box1 {
height: 550px;
overflow: auto;
background-color: white;
//margin-top: 13px;
......@@ -561,6 +555,10 @@ export default {
//margin-bottom: 9px;
}
.token {
width:150px;
white-space: nowrap;
text-overflow: ellipsis;
overflow:hidden;
font-size: 18px;
}
</style>
......@@ -26,16 +26,6 @@
</div>
</div>
</div>
<div class="sidebar-box">
<div>
<div class="img-list-title">文本列表</div>
<div class="img-title-list-box">
<div id="img-title-list" style="user-select:none">
<el-tree :data="textData" :props="defaultProps" @node-click="handleNodeClick"></el-tree>
</div>
</div>
</div>
</div>
</el-aside>
<el-main class="filter-container" style="background-color: #FFFFFF">
......@@ -128,7 +118,6 @@ export default {
},
beforeMount() {
// 从通用传来文本信息
// TODO quary instead of params to fix the bug during refreshing 没办法统一改就task存字段,刷新后去库里找
this.file = this.$route.params.file;
this.task = this.$route.params.task;
this.relationId = this.$route.params.relationId;
......@@ -328,4 +317,8 @@ export default {
.token {
font-size: 18px;
}
.sidebar-box{
position:fixed;
width:260px;
}
</style>
......@@ -35,12 +35,17 @@
<!-- 文本列表 -->
<div class="sidebar-box">
<div>
<div class="img-list-title">文本列表</div>
<div class="img-list-title">表单列表</div>
<div class="img-title-list-box">
<div
id="img-title-list"
style="user-select:none; float:left; padding: 5px;"
>{{file.name}}</div>
<div id="img-title-list" style="user-select:none; float:left; padding: 5px;">
<div
v-for="item in allContent"
:key="item.tablename"
@click="changeSheet(item.tablename)"
>
<el-link icon="el-icon-edit" type="primary">{{ item.tablename }}</el-link>
</div>
</div>
</div>
</div>
</div>
......@@ -56,6 +61,7 @@
border
style="width: 100%,height:200px"
@cell-click="select"
:row-class-name="tableRowClassName"
>
<el-table-column
v-for="col in nowContent.name"
......@@ -148,12 +154,11 @@ export default {
tableData: [],
name: []
},
allContent: []
allContent: [],
numOfSheet: 0
};
},
beforeMount() {
// 从文本分出表格
// TODO quary instead of params to fix the bug during refreshing
this.file = this.$route.params.file;
this.task = this.$route.params.task;
this.relationId = this.$route.params.relationId;
......@@ -204,6 +209,7 @@ export default {
if (res.return_code == 200) {
var i;
var nowContent = {};
this.numOfSheet = res.result.numOfSheet;
for (i = 0; i < res.result.numOfSheet; i++) {
nowContent.tablename = res.result.content[i].sheetName;
nowContent.tableData = res.result.content[i].content;
......@@ -272,6 +278,16 @@ export default {
}
});
},
// 更改表单
changeSheet(name) {
for (var i = 0; i < this.numOfSheet; i++) {
// console.log("in " + name + " " + this.nowContent.tablename)
if (name == this.allContent[i].tablename) {
// console.log("match " + JSON.stringify(this.allContent[i]))
this.nowContent = this.allContent[i];
}
}
},
// 定位原文token
select(row, column) {
this.row = row;
......@@ -298,15 +314,37 @@ export default {
console.log(" tokenList select" + JSON.stringify(this.tokenList));
this.ifAlert = true; // 打开标注弹窗
},
// TODO 表格标注颜色bug
cellStyle({ row, column, rowIndex, columnIndex }) {
this.tokenList.forEach(item => {
if (item.word == row[column.property]) {
return "warning-row";
//return 'success-row';
}
});
},
// tableRowClassName({ row, column, rowIndex, columnIndex }) {
// if (columnIndex === 0) {
// console.log("columnIndex");
// console.log(columnIndex);
// return "warning-row";
// } else if (rowIndex === 3) {
// console.log("columnIndex");
// return "success-row";
// }
// return "";
// },
// tableRowClassName({ row, rowIndex }) {
// console.log(this.tokenList);
// let self = this;
// for (let i = 0; i < self.tokenList.length; i++) {
// console.log(self.tokenList[i].begin)
// if (rowIndex === self.tokenList[i].begin) {
// return "warning-row";
// }
// }
// },
// // TODO 表格标注颜色bug
// cellStyle() {
// this.tokenList.forEach(item => {
// if (item.word == row[column.property]) {
// //this.$refs.singleTable.setCurrentRow(row);
// return "warning-row";
// //return 'success-row';
// }
// });
// },
// 添加标注 // TODO 大于段落的标注还是无法渲染
uploadToken() {
this.ifAlert = false;
......@@ -561,6 +599,7 @@ export default {
color: white;
}
.img-title-list-box {
padding: 7px;
height: 250px;
overflow: auto;
background-color: white;
......
1.做笔记
在任务1中做好笔记非常重要,尤其是在听力段落中。有两个原因:
阅读文章将在演讲后重新出现,并且在你写作时可见。因此,尽管注意作者的立场和要点很重要,但你无需在阅读文章中做大量注释。
与阅读相比,你应该写更多有关听力的文章。那就对了!在你的回答中,关于教授的观点和反驳的文章应多于作者两倍。因此,在演讲过程中做好笔记至关重要。
这一点必须要强调:在听力文章中记下好的笔记!
关于听力段落的内容,你所写的内容将比阅读内容多两倍。
聆听并将你的笔记与聆听中的笔记进行比较。
2.不要引用
对于TOEFL综合写作任务,要求你用自己的话来解释作者和教授的观点!因此,把一切都解释一下是非常重要的。
阅读文章尤其如此。请记住,在撰写论文时,阅读部分就在你眼前。如果你直接引用作者的阅读段落,那么TOEFL电子评分系统把这部分内容辨认出来,并直接导致你的分数降低。
例如,假设阅读段落指出:
“ there are many who argue that corn ethanol should replace fossil fuel gas as the primary source for running cars.”
不要在你的作文中写: “The author discusses howthere are many who argue that corn ethanol should replace fossil fuel gas as the primary source for running cars.”
加粗的部分是完全一样的,这是许多同学会犯的错误!
那么怎么写呢?我们可以对作者的观点进行阐述,进行paraphrase,例如可以这么写:“The author discusses the advantages of switching from fossil fuels to the alternative energy source: corn-based ethanol”
3.要使用过渡词和短语
过渡性单词和短语是写作的关键组成部分,尤其是在托福写作任务一中。在阅读和听力文章中,你需要在形成鲜明对比的观点之间转换。保持文章连贯性的最佳方法是在不同观点之间使用过渡词。
对过渡词的良好使用,能够向TOEFL评分者和电子评分者证明,你对英语和北美学术论文结构掌握良好。以下是一些常见的过渡性单词和短语:
给各个要点和理由进行排序
位置:
整理各段落中的要点/每个正文段落的第一句
and then, first of all, firstly, in the first place, first and foremost,firstly, secondly, thirdly, next, after that, meanwhile, lastly, later, finally, while
阐述、添加想法
位置:
在正文中论述听力的要点
在解释你的理由时,通常是正文的第二句话
在阐述例子时
above all, actually, additionally, as well as, as a matter of fact, in addition, believe it or not, furthermore, indeed, in fact, just as, moreover
举例说明
位置:
介绍你的个人例子或轶事时
as an illustration, for example, for instance, I remember when, such as
显示因果关系
位置:
在正文结尾处和/或将您的故事与主题相关时,在每个正文段落的末尾
as a result, because, consequently, due to, hence, so, therefore, thus, for this reason
对比
位置:
在每个段落中介绍听力段落的观点时
在介绍和结论中认识相反的论点
although, at the same time, but, contrary to, even though, however, nevertheless, nonetheless, on the other hand, still, when in fact, yet, whereas, besides, despite the fact that, conversely
总结
位置:
结论段落/每个正文段落的最后一句
all in all, as noted above, finally, in conclusion, in short, in the end, on the whole, to conclude, to sum up
\ No newline at end of file
1.做笔记
在任务1中做好笔记非常重要,尤其是在听力段落中。有两个原因:
阅读文章将在演讲后重新出现,并且在你写作时可见。因此,尽管注意作者的立场和要点很重要,但你无需在阅读文章中做大量注释。
与阅读相比,你应该写更多有关听力的文章。那就对了!在你的回答中,关于教授的观点和反驳的文章应多于作者两倍。因此,在演讲过程中做好笔记至关重要。
这一点必须要强调:在听力文章中记下好的笔记!
关于听力段落的内容,你所写的内容将比阅读内容多两倍。
聆听并将你的笔记与聆听中的笔记进行比较。
2.不要引用
对于TOEFL综合写作任务,要求你用自己的话来解释作者和教授的观点!因此,把一切都解释一下是非常重要的。
阅读文章尤其如此。请记住,在撰写论文时,阅读部分就在你眼前。如果你直接引用作者的阅读段落,那么TOEFL电子评分系统把这部分内容辨认出来,并直接导致你的分数降低。
例如,假设阅读段落指出:
“ there are many who argue that corn ethanol should replace fossil fuel gas as the primary source for running cars.”
不要在你的作文中写: “The author discusses howthere are many who argue that corn ethanol should replace fossil fuel gas as the primary source for running cars.”
加粗的部分是完全一样的,这是许多同学会犯的错误!
那么怎么写呢?我们可以对作者的观点进行阐述,进行paraphrase,例如可以这么写:“The author discusses the advantages of switching from fossil fuels to the alternative energy source: corn-based ethanol”
3.要使用过渡词和短语
过渡性单词和短语是写作的关键组成部分,尤其是在托福写作任务一中。在阅读和听力文章中,你需要在形成鲜明对比的观点之间转换。保持文章连贯性的最佳方法是在不同观点之间使用过渡词。
对过渡词的良好使用,能够向TOEFL评分者和电子评分者证明,你对英语和北美学术论文结构掌握良好。以下是一些常见的过渡性单词和短语:
给各个要点和理由进行排序
位置:
整理各段落中的要点/每个正文段落的第一句
and then, first of all, firstly, in the first place, first and foremost,firstly, secondly, thirdly, next, after that, meanwhile, lastly, later, finally, while
阐述、添加想法
位置:
在正文中论述听力的要点
在解释你的理由时,通常是正文的第二句话
在阐述例子时
above all, actually, additionally, as well as, as a matter of fact, in addition, believe it or not, furthermore, indeed, in fact, just as, moreover
举例说明
位置:
介绍你的个人例子或轶事时
as an illustration, for example, for instance, I remember when, such as
显示因果关系
位置:
在正文结尾处和/或将您的故事与主题相关时,在每个正文段落的末尾
as a result, because, consequently, due to, hence, so, therefore, thus, for this reason
对比
位置:
在每个段落中介绍听力段落的观点时
在介绍和结论中认识相反的论点
although, at the same time, but, contrary to, even though, however, nevertheless, nonetheless, on the other hand, still, when in fact, yet, whereas, besides, despite the fact that, conversely
总结
位置:
结论段落/每个正文段落的最后一句
all in all, as noted above, finally, in conclusion, in short, in the end, on the whole, to conclude, to sum up
\ No newline at end of file
1.做笔记
在任务1中做好笔记非常重要,尤其是在听力段落中。有两个原因:
阅读文章将在演讲后重新出现,并且在你写作时可见。因此,尽管注意作者的立场和要点很重要,但你无需在阅读文章中做大量注释。
与阅读相比,你应该写更多有关听力的文章。那就对了!在你的回答中,关于教授的观点和反驳的文章应多于作者两倍。因此,在演讲过程中做好笔记至关重要。
这一点必须要强调:在听力文章中记下好的笔记!
关于听力段落的内容,你所写的内容将比阅读内容多两倍。
聆听并将你的笔记与聆听中的笔记进行比较。
2.不要引用
对于TOEFL综合写作任务,要求你用自己的话来解释作者和教授的观点!因此,把一切都解释一下是非常重要的。
阅读文章尤其如此。请记住,在撰写论文时,阅读部分就在你眼前。如果你直接引用作者的阅读段落,那么TOEFL电子评分系统把这部分内容辨认出来,并直接导致你的分数降低。
例如,假设阅读段落指出:
“ there are many who argue that corn ethanol should replace fossil fuel gas as the primary source for running cars.”
不要在你的作文中写: “The author discusses howthere are many who argue that corn ethanol should replace fossil fuel gas as the primary source for running cars.”
加粗的部分是完全一样的,这是许多同学会犯的错误!
那么怎么写呢?我们可以对作者的观点进行阐述,进行paraphrase,例如可以这么写:“The author discusses the advantages of switching from fossil fuels to the alternative energy source: corn-based ethanol”
3.要使用过渡词和短语
过渡性单词和短语是写作的关键组成部分,尤其是在托福写作任务一中。在阅读和听力文章中,你需要在形成鲜明对比的观点之间转换。保持文章连贯性的最佳方法是在不同观点之间使用过渡词。
对过渡词的良好使用,能够向TOEFL评分者和电子评分者证明,你对英语和北美学术论文结构掌握良好。以下是一些常见的过渡性单词和短语:
给各个要点和理由进行排序
位置:
整理各段落中的要点/每个正文段落的第一句
and then, first of all, firstly, in the first place, first and foremost,firstly, secondly, thirdly, next, after that, meanwhile, lastly, later, finally, while
阐述、添加想法
位置:
在正文中论述听力的要点
在解释你的理由时,通常是正文的第二句话
在阐述例子时
above all, actually, additionally, as well as, as a matter of fact, in addition, believe it or not, furthermore, indeed, in fact, just as, moreover
举例说明
位置:
介绍你的个人例子或轶事时
as an illustration, for example, for instance, I remember when, such as
显示因果关系
位置:
在正文结尾处和/或将您的故事与主题相关时,在每个正文段落的末尾
as a result, because, consequently, due to, hence, so, therefore, thus, for this reason
对比
位置:
在每个段落中介绍听力段落的观点时
在介绍和结论中认识相反的论点
although, at the same time, but, contrary to, even though, however, nevertheless, nonetheless, on the other hand, still, when in fact, yet, whereas, besides, despite the fact that, conversely
总结
位置:
结论段落/每个正文段落的最后一句
all in all, as noted above, finally, in conclusion, in short, in the end, on the whole, to conclude, to sum up
\ No newline at end of file
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