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
312c5226
Commit
312c5226
authored
Jul 28, 2020
by
Wang Yuhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除无用代码
parent
9da9968a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2 additions
and
120 deletions
+2
-120
SelectText.vue
...atform-front/src/components/textAnnotation/SelectText.vue
+0
-21
SelectedCheck.vue
...orm-front/src/components/textAnnotation/SelectedCheck.vue
+0
-20
SelectedText.vue
...form-front/src/components/textAnnotation/SelectedText.vue
+0
-20
Table.vue
DAPlatform-front/src/components/textAnnotation/Table.vue
+1
-20
Tabled.vue
DAPlatform-front/src/components/textAnnotation/Tabled.vue
+0
-19
TabledCheck.vue
...tform-front/src/components/textAnnotation/TabledCheck.vue
+1
-20
No files found.
DAPlatform-front/src/components/textAnnotation/SelectText.vue
View file @
312c5226
...
...
@@ -40,8 +40,6 @@
<br
/>
<div>
<el-button
class=
"button1"
type=
"primary"
@
click=
"submit()"
>
提交
</el-button>
<el-button
class=
"button2"
type=
"primary"
@
click=
"exportContent()"
>
导出文本
</el-button>
<el-button
class=
"button3"
type=
"primary"
@
click=
"exportTokenList()"
>
导出标注
</el-button>
</div>
<!-- 弹窗-->
...
...
@@ -474,25 +472,6 @@ export default {
params
:
{
task
:
encodeURIComponent
(
JSON
.
stringify
(
this
.
task
))
}
});
},
exportContent
()
{
this
.
axios
({
method
:
"post"
,
url
:
"/files/downloadContent"
,
data
:
{
// documentId: "9aa2d69cc66411ea879e54e1ad87433a"
documentId
:
this
.
documentId
}
}).
then
(
res
=>
{
console
.
log
(
res
)
// let blob = new Blob([res], {type : 'application/octet-stream'});
let
blob
=
new
Blob
([
res
],
{
type
:
'text/plain'
});
FileSaver
.
saveAs
(
blob
);
});
},
exportTokenList
()
{
let
blob
=
new
Blob
([
JSON
.
stringify
(
this
.
tokenList
)],
{
type
:
'application/json'
});
FileSaver
.
saveAs
(
blob
);
},
},
mounted
:
function
()
{
this
.
insertDocument
();
...
...
DAPlatform-front/src/components/textAnnotation/SelectedCheck.vue
View file @
312c5226
...
...
@@ -34,8 +34,6 @@
<div
class=
"button1"
>
<el-button
type=
"primary"
@
click=
"commentScore = true"
>
打分
</el-button>
<el-button
type=
"primary"
@
click=
"submit()"
>
提交
</el-button>
<el-button
class=
"button2"
type=
"primary"
@
click=
"exportContent()"
>
导出文本
</el-button>
<el-button
class=
"button3"
type=
"primary"
@
click=
"exportTokenList()"
>
导出标注
</el-button>
<el-dialog
title=
"请打分"
:visible
.
sync=
"commentScore"
width=
"400px"
>
<el-form
:model=
"scoreForm"
>
<el-form-item
label=
"标注准确率"
:label-width=
"formLabelWidth"
>
...
...
@@ -239,24 +237,6 @@ export default {
this
.
$message
(
"打分成功"
);
}
},
exportContent
()
{
this
.
axios
({
method
:
"post"
,
url
:
"/files/downloadContent"
,
data
:
{
documentId
:
this
.
documentId
}
}).
then
(
res
=>
{
console
.
log
(
res
)
// let blob = new Blob([res], {type : 'application/octet-stream'});
let
blob
=
new
Blob
([
res
],
{
type
:
'text/plain'
});
FileSaver
.
saveAs
(
blob
);
});
},
exportTokenList
()
{
let
blob
=
new
Blob
([
JSON
.
stringify
(
this
.
tokenList
)],
{
type
:
'application/json'
});
FileSaver
.
saveAs
(
blob
);
},
submit
()
{
alert
(
"打分成功"
);
// this.$router.push({ path: "/taskhall" });
...
...
DAPlatform-front/src/components/textAnnotation/SelectedText.vue
View file @
312c5226
...
...
@@ -31,8 +31,6 @@
<br
/>
<div>
<el-button
class=
"button1"
type=
"primary"
@
click=
"submit()"
>
提交
</el-button>
<el-button
class=
"button2"
type=
"primary"
@
click=
"exportContent()"
>
导出文本
</el-button>
<el-button
class=
"button3"
type=
"primary"
@
click=
"exportTokenList()"
>
导出标注
</el-button>
</div>
</div>
</el-main>
...
...
@@ -194,24 +192,6 @@ export default {
}
});
},
exportContent
()
{
this
.
axios
({
method
:
"post"
,
url
:
"/files/downloadContent"
,
data
:
{
documentId
:
this
.
documentId
}
}).
then
(
res
=>
{
console
.
log
(
res
)
// let blob = new Blob([res], {type : 'application/octet-stream'});
let
blob
=
new
Blob
([
res
],
{
type
:
'text/plain'
});
FileSaver
.
saveAs
(
blob
);
});
},
exportTokenList
()
{
let
blob
=
new
Blob
([
JSON
.
stringify
(
this
.
tokenList
)],
{
type
:
'application/json'
});
FileSaver
.
saveAs
(
blob
);
},
submit
()
{
this
.
$router
.
push
({
path
:
"/taskhall"
});
}
...
...
DAPlatform-front/src/components/textAnnotation/Table.vue
View file @
312c5226
...
...
@@ -75,8 +75,6 @@
<br
/>
<div>
<el-button
type=
"primary"
@
click=
"submit()"
>
提交
</el-button>
<el-button
class=
"button2"
type=
"primary"
@
click=
"exportContent()"
>
导出文本
</el-button>
<el-button
class=
"button3"
type=
"primary"
@
click=
"exportTokenList()"
>
导出标注
</el-button>
</div>
<!-- 弹窗-->
...
...
@@ -519,24 +517,7 @@ export default {
name
:
"ongoingtaskdetail"
,
params
:
{
task
:
encodeURIComponent
(
JSON
.
stringify
(
this
.
task
))
}
});
},
exportContent
()
{
this
.
axios
({
method
:
"post"
,
url
:
"/files/downloadContent"
,
data
:
{
documentId
:
this
.
documentId
},
responseType
:
"blob"
}).
then
(
res
=>
{
let
blob
=
new
Blob
([
res
],
{
type
:
'application/vnd.ms-excel;charset=utf-8'
,});
FileSaver
.
saveAs
(
blob
,
"download.xlsx"
);
});
},
exportTokenList
()
{
let
blob
=
new
Blob
([
JSON
.
stringify
(
this
.
tokenList
)],
{
type
:
'application/json'
});
FileSaver
.
saveAs
(
blob
);
},
}
},
mounted
:
function
()
{
this
.
insertDocument
();
...
...
DAPlatform-front/src/components/textAnnotation/Tabled.vue
View file @
312c5226
...
...
@@ -77,8 +77,6 @@
<!--div v-if="this.$route.query.isCheck == '1'"-->
<div>
<el-button
type=
"primary"
@
click=
"submit()"
>
提交
</el-button>
<el-button
class=
"button2"
type=
"primary"
@
click=
"exportContent()"
>
导出文本
</el-button>
<el-button
class=
"button3"
type=
"primary"
@
click=
"exportTokenList()"
>
导出标注
</el-button>
</div>
</div>
</el-main>
...
...
@@ -245,23 +243,6 @@ export default {
}
});
},
exportContent
()
{
this
.
axios
({
method
:
"post"
,
url
:
"/files/downloadContent"
,
data
:
{
documentId
:
this
.
documentId
},
responseType
:
"blob"
}).
then
(
res
=>
{
let
blob
=
new
Blob
([
res
],
{
type
:
'application/vnd.ms-excel;charset=utf-8'
,});
FileSaver
.
saveAs
(
blob
,
"download.xlsx"
);
});
},
exportTokenList
()
{
let
blob
=
new
Blob
([
JSON
.
stringify
(
this
.
tokenList
)],
{
type
:
'application/json'
});
FileSaver
.
saveAs
(
blob
);
},
submit
()
{
this
.
$router
.
push
({
path
:
"/taskhall"
});
...
...
DAPlatform-front/src/components/textAnnotation/TabledCheck.vue
View file @
312c5226
...
...
@@ -78,8 +78,6 @@
<div>
<el-button
type=
"primary"
@
click=
"commentScore = true"
>
打分
</el-button>
<el-button
type=
"primary"
@
click=
"submit()"
>
提交
</el-button>
<el-button
class=
"button2"
type=
"primary"
@
click=
"exportContent()"
>
导出文本
</el-button>
<el-button
class=
"button3"
type=
"primary"
@
click=
"exportTokenList()"
>
导出标注
</el-button>
<el-dialog
title=
"请打分"
:visible
.
sync=
"commentScore"
width=
"400px"
>
<el-form
:model=
"scoreForm"
>
<el-form-item
label=
"标注准确率"
:label-width=
"formLabelWidth"
>
...
...
@@ -310,24 +308,7 @@ export default {
this
.
$router
.
push
({
path
:
'/taskhall'
});
}
})
},
exportContent
()
{
this
.
axios
({
method
:
"post"
,
url
:
"/files/downloadContent"
,
data
:
{
documentId
:
this
.
documentId
},
responseType
:
"blob"
}).
then
(
res
=>
{
let
blob
=
new
Blob
([
res
],
{
type
:
'application/vnd.ms-excel;charset=utf-8'
,});
FileSaver
.
saveAs
(
blob
,
"download.xlsx"
);
});
},
exportTokenList
()
{
let
blob
=
new
Blob
([
JSON
.
stringify
(
this
.
tokenList
)],
{
type
:
'application/json'
});
FileSaver
.
saveAs
(
blob
);
}
}
},
mounted
:
function
()
{
this
.
insertDocument
();
...
...
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