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

Commit cd11ed22 by Wang Yuhang

接口文档修改,获取任务多返回发布者id,获取文件和标注者时返回标注关系id

parent b28011f9
......@@ -18,7 +18,8 @@
<ul v-loading="loading">
<li v-for="item in executors" :key="item.id">
<span>{{item.nickname}}</span>
<el-button type="primary" size="mini" plain @click="goto(item)">待审核</el-button>
<el-button v-if="!item.state" type="primary" size="mini" plain @click="goto(item)">待审核</el-button>
<i v-else class="el-icon-success"></i>
</li>
</ul>
</el-dialog>
......@@ -67,10 +68,7 @@ export default {
},
goto (executor) {
var {file, type} = this, self = this
var params = {
file: encodeURIComponent(JSON.stringify(file)),
executor: encodeURIComponent(JSON.stringify(executor))
}
var params = { file, executor }
function goto (path) {
self.$router.push({ name: path, params })
}
......
......@@ -7,9 +7,10 @@
<el-divider></el-divider>
<pieces-table :task-id="task.id" showProgress>
<template v-slot:option="slotProps">
<el-button type="primary" size="mini" plain
<el-button v-if="!slotProps.file.state" type="primary" size="mini" plain
@click="doOption(slotProps.file,slotProps.type)"
>标注</el-button>
<i v-else class="el-icon-success"></i>
</template>
</pieces-table>
</div>
......@@ -34,11 +35,7 @@ export default {
},
methods: {
doOption (file, type) {
var params = {
file: encodeURIComponent(JSON.stringify(file)),
task: encodeURIComponent(JSON.stringify(this.task))
}
var self = this
var params = { file, task: this.task }, self = this
function goto (path) {
self.$router.push({ name: path, params })
}
......
......@@ -24,8 +24,7 @@
<div class="file" v-for="item in map[props.row.id]" :key="item.id">
<i class="el-icon-document"></i>
<span class="file-name">{{item.name}}</span>{{item.size}}
<slot v-if="!item.state" name='option' :file='item' :type='props.row.type' :pieceId='props.row.id'></slot>
<i v-else class="el-icon-success"></i>
<slot name='option' :file='item' :type='props.row.type' :pieceId='props.row.id'></slot>
</div>
</div>
</template>
......
......@@ -84,27 +84,27 @@ export default new Router({
component: checkdetail
},
{
path: '/select/:file',
path: '/select/:file/:task',
name: 'SelectText',
component: SelectText
},
{
path: '/selected/:file',
path: '/selected/:file/:task',
name: 'SelectedText',
component: SelectedText
},
{
path: '/table/:file',
path: '/table/:file/:task',
name: 'table',
component: Table
},
{
path: '/image/:file',
path: '/image/:file/:task',
name: 'image',
component: imageAnnotiation
},
{
path: '/layer/:file',
path: '/layer/:file/:task',
name: 'layer',
component: layerAnnotation
}
......
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